On Wed, Aug 31, 2022 at 01:13:11PM +0100, li...@xza.fr wrote:
> 
> SCANNING ON OPENBSD WITH SANE, AS NON-ROOT USER
> 
> foreword: wanted to put this guide somewhere
> 
> 
> install sane:
> 
> # pkg_add sane 
> 
> 
> plug in the scanner, and immediately after, run this command:
> 
> # dmesg | tail -20
> ugen0 at uhub0 port 3 "<scanner name>"
> 
> the output should appear as above
> 
> 
> now take a note of the number after 'ugen' and the number after
> 'uhub'. in this example that number is 0 for both.
> 
> now to get a bit more info on the hardware, run:
> 
> # usbdevs
> Controller /dev/usb0:
> addr 01: ____
> addr 02: XXXX:YYYY <scanner name>
> 
> the output should appear as above
> 
> 
> so say we want to scan as the user 'theo', then theo needs access to
> both /dev/usb0 as well as /dev/ugen0.00
> 
> so execute the following command
> 
> # chgrp theo /dev/ugen0.* /dev/usb0
> # chmod g+rwx /dev/ugen0.* /dev/usb0

What's wrong with /usr/local/share/doc/pkg-readmes/sane-backends ?


Reply via email to