Please modify SANE backends instructions as described below.

0) Install libsane as usual.

1) After installation, create the "scanner" group.

groupadd scanner

2) Generate udev rules for all scanners.

sh tools/udev/convert-usermap.sh tools/hotplug/libsane.usermap

Note: the generated "libsane.rules" file is a bit suboptimal (slow) because the "don't walk the entire list of rules for uevents that we don't want to handle" logic is not implemented correctly.

To fix this (optionally), replace the following line in the generated "libsane.rules" file

SUBSYSTEM!="usb_device", ACTION!="add", GOTO="libsane_rules_end"

with the following two lines:

ACTION!="add", GOTO="libsane_rules_end"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"

(alternatively, you may want to edit the convert-usermap.sh script instead of the generated file)

3) Install them.

install -m644 libsane.rules /etc/udev/rules.d/31-libsane.rules

Result: all raw USB nodes for all known scanners are owned by the "scanner" 
group.

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to