#2065: Remove the "usb" group
----------------------------------------+-----------------------------------
 Reporter:  ra...@…                     |       Owner:  bdu...@…                
   
     Type:  task                        |      Status:  assigned                
   
 Priority:  normal                      |   Milestone:  6.4                     
   
Component:  BOOK                        |     Version:  SVN                     
   
 Severity:  normal                      |    Keywords:                          
   
----------------------------------------+-----------------------------------

Comment(by alexan...@…):

 Tested SANE (frontends & backends, as well as xsane) in the following
 configuration:

 Libtiff and libgphoto2 are installed. For libgphoto2, I used this:

 {{{
 groupadd -g 52 camera &&
 ./configure --prefix=/usr --sysconfdir=/etc udevscriptdir=/lib/udev &&
 make &&
 make install &&
 /usr/lib/libgphoto2/print-camera-list udev-rules mode 0664 group camera
 >/etc/udev/rules.d/65-libgphoto2.rules
 }}}

 (please ignore the fact that a program is installed in /lib/udev that
 needs libraries in /usr - it will be retried when /usr is mounted)

 For SANE backends and frontends, instructions were taken from the book.
 They don't quite work out of the box:

  * There is a group ID conflict with sshd (reported as ticket #2796).
  * The udev rules use the old SYSFS syntax. sed 's/SYSFS/ATTRS/g' does the
 conversion trick.
  * Make sure that non-scanner USB devices (e.g., hubs) in /dev/bus/usb
 have 0664 permissions (i.e., are readable), because otherwise scanner
 access will fail. The working configuration is the default in LFS-6.4, but
 not in 6.3.
  * I have to edit /etc/sane.d/gt68xx.conf so that my scanner is recognized
 as Mustek ScanExpress 1200 UB Plus and not the other model sharing the
 same USB ID, and save the firmware file from http://www.meier-
 geinitz.de/sane/gt68xx-backend/firmware/sbfw.usb as
 /usr/share/sane/gt68xx/sbfw.usb. Both actions are documented in the sane-
 gt68xx manual page. BLFS already directs the users there.
  * The book says "Once the saned  daemon has been configured, add any
 desired users to the scanner group". However, if the scanner is not
 supposed to be shared over the network, then the daemon is not supposed to
 be used (and thus is not supposed to be configured), and the users should
 still be added to the group. Even more, if both the daemon is used and the
 user is added to the group, then the local USB scanner will be seen twice:
 once directly and once as a network scanner connected to 127.0.0.1.

 After correcting these issues, both xscanimage and xsane work as expected.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2065#comment:14>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to