DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th May 2011
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default Scanning without root with sane

I have a scanner that I use with scanimage(1) from sane:
Code:
ugen0 at uhub3 port 2 "STMicroelectronics Biometric Coprocessor" rev 1.00/0.01 addr 2
It won’t detect the device if not root, even with chmod 777 /dev/ugen0* (which I know is a very bad idea). This is annoying when I forget to change the ownership of the resulting scanned image back to me.

I saw that -current has a saned rc.d(8) script, so I ran “/etc/rc.d/saned start” in hopes of it Just Working, but got the same results—no device detection with scanimage(1) without root. The saned man page seemed to mostly be about network configuration, and I’m running locally.

Does anyone run sane without needing root? If so, how?
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
  #2   (View Single Post)  
Old 16th May 2011
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 546
Thanked 9 Times in 9 Posts
Default

The information given above may be confusing. I initially thought that you wish to set up a document scanner. The STMicroelectronics Biometric Coprocessor is a finger print scanner.

If you are trying to setup a document scanner I would give the scanner model and also check to see if it is a supported device on the Saned site.

As far as setting up a document scanner for a user the documentation on how to generate a scanner group is here:
http://www.openbsd.org/cgi-bin/cvswe...e=text%2Fplain

and in
Code:
/usr/local/share/doc/sane-backends/README
Reply With Quote
  #3   (View Single Post)  
Old 16th May 2011
backrow backrow is offline
Real Name: Anthony J. Bentley
Shell Scout
 
Join Date: Jul 2009
Location: Albuquerque, NM
Posts: 116
Thanked 10 Times in 4 Posts
Default

Quote:
Originally Posted by shep View Post
The information given above may be confusing. I initially thought that you wish to set up a document scanner. The STMicroelectronics Biometric Coprocessor is a finger print scanner.
Whoops. Here is the correct device:
Code:
ugen0 at uhub4 port 3 "Canon CanoScan" rev 1.10/1.00 addr 2
Quote:
Originally Posted by shep View Post
As far as setting up a document scanner for a user the documentation on how to generate a scanner group is here:
http://www.openbsd.org/cgi-bin/cvswe...e=text%2Fplain
Thanks, I never noticed this. Works great now.
Quote:
Originally Posted by shep View Post
and in
Code:
/usr/local/share/doc/sane-backends/README
Code:
$ ls /usr/local/share/doc/sane-backends/README
ls: /usr/local/share/doc/sane-backends/README: No such file or directory
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems.
Reply With Quote
  #4   (View Single Post)  
Old 16th May 2011
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 733
Thanked 36 Times in 32 Posts
Default

Quote:
Originally Posted by backrow View Post

Does anyone run sane without needing root? If so, how?
Of course On this computer I have locally attached Epson Perfection 1670.
The scanner uses uscanner driver (or at least it used to since from this dmesg I see ugen attached). Uscanner is I think removed from 4.9 anyway and form most scanner one had to disable manually from the generic kernel. My scanner uses snapscan sane-backends and requires firmware which you have to extract with
cabextract from Windows driver. The firmware needs to be uploaded in
/usr/local/share/sane/snapscan/your-firmwarefile.bin. Now the things that you are really interested in:

Code:
$ uname -a
OpenBSD oko.bagdala2.net 4.8 GENERIC.MP#361 i386
$ cat /etc/group|grep sane
_saned:*:553:oko
$ ls -l /dev/uscanner0
crw-rw----  1 root  _saned   77,   0 Aug 27  2010 /dev/uscanner0
$ ls -l /dev/usb*
crw-rw-r--  1 root  wheel   61,   0 Aug 27  2010 /dev/usb0
crw-rw-r--  1 root  wheel   61,   1 Aug 27  2010 /dev/usb1
crw-rw-r--  1 root  wheel   61,   2 Aug 27  2010 /dev/usb2
crw-rw-r--  1 root  wheel   61,   3 Aug 27  2010 /dev/usb3
crw-rw-r--  1 root  wheel   61,   4 Aug 27  2010 /dev/usb4
crw-rw-r--  1 root  wheel   61,   5 Aug 27  2010 /dev/usb5
crw-rw-r--  1 root  wheel   61,   6 Aug 27  2010 /dev/usb6
crw-rw-r--  1 root  wheel   61,   7 Aug 27  2010 /dev/usb7
$ ls -l /dev/ugen*
crw-rw-r--  1 root  wheel   63,   0 Aug 27  2010 /dev/ugen0.00
crw-rw-r--  1 root  wheel   63,   1 Aug 27  2010 /dev/ugen0.01
crw-rw-r--  1 root  wheel   63,   2 May  4 22:36 /dev/ugen0.02
crw-rw-r--  1 root  wheel   63,   3 Aug 27  2010 /dev/ugen0.03
crw-rw-r--  1 root  wheel   63,   4 Aug 27  2010 /dev/ugen0.04
crw-rw-r--  1 root  wheel   63,   5 Aug 27  2010 /dev/ugen0.05
crw-rw-r--  1 root  wheel   63,   6 Aug 27  2010 /dev/ugen0.06
crw-rw-r--  1 root  wheel   63,   7 Aug 27  2010 /dev/ugen0.07
crw-rw-r--  1 root  wheel   63,   8 Aug 27  2010 /dev/ugen0.08
crw-rw-r--  1 root  wheel   63,   9 Aug 27  2010 /dev/ugen0.09
crw-rw-r--  1 root  wheel   63,  10 Aug 27  2010 /dev/ugen0.10
crw-rw-r--  1 root  wheel   63,  11 Aug 27  2010 /dev/ugen0.11
crw-rw-r--  1 root  wheel   63,  12 Aug 27  2010 /dev/ugen0.12
crw-rw-r--  1 root  wheel   63,  13 Aug 27  2010 /dev/ugen0.13
crw-rw-r--  1 root  wheel   63,  14 Aug 27  2010 /dev/ugen0.14
crw-rw-r--  1 root  wheel   63,  15 Aug 27  2010 /dev/ugen0.15
crw-rw-r--  1 root  wheel   63,  16 Aug 27  2010 /dev/ugen1.00
crw-rw-r--  1 root  wheel   63,  17 Aug 27  2010 /dev/ugen1.01
crw-rw-r--  1 root  wheel   63,  18 Aug 27  2010 /dev/ugen1.02
crw-rw-r--  1 root  wheel   63,  19 Aug 27  2010 /dev/ugen1.03
crw-rw-r--  1 root  wheel   63,  20 Aug 27  2010 /dev/ugen1.04
crw-rw-r--  1 root  wheel   63,  21 Aug 27  2010 /dev/ugen1.05
crw-rw-r--  1 root  wheel   63,  22 Aug 27  2010 /dev/ugen1.06
crw-rw-r--  1 root  wheel   63,  23 Aug 27  2010 /dev/ugen1.07
crw-rw-r--  1 root  wheel   63,  24 Aug 27  2010 /dev/ugen1.08
crw-rw-r--  1 root  wheel   63,  25 Aug 27  2010 /dev/ugen1.09
crw-rw-r--  1 root  wheel   63,  26 Aug 27  2010 /dev/ugen1.10
crw-rw-r--  1 root  wheel   63,  27 Aug 27  2010 /dev/ugen1.11
crw-rw-r--  1 root  wheel   63,  28 Aug 27  2010 /dev/ugen1.12
crw-rw-r--  1 root  wheel   63,  29 Aug 27  2010 /dev/ugen1.13
crw-rw-r--  1 root  wheel   63,  30 Aug 27  2010 /dev/ugen1.14
crw-rw-r--  1 root  wheel   63,  31 Aug 27  2010 /dev/ugen1.15
$ dmesg|grep ugen0
ugen0 at uhub0 port 1 "EPSON EPSON Scanner" rev 2.00/1.10 addr 2
$ scanimage -L
device `snapscan:libusb:/dev/usb0:/dev/ugen0' is a EPSON EPSON Scanner flatbed scanner
Do you believe now or I have to add a scan or two
Reply With Quote
  #5   (View Single Post)  
Old 16th May 2011
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 546
Thanked 9 Times in 9 Posts
Default

Code:
$ ls /usr/local/share/doc/sane-backends/README
ls: /usr/local/share/doc/sane-backends/README: No such file or directory
I think the documentation was moved in release 4.9. It can also be found in the appropriate /usr/ports directory.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
root logins phyro OpenBSD Security 3 28th October 2010 09:23 PM
root on ZFS gkontos FreeBSD Installation and Upgrading 12 18th December 2009 09:43 AM
ssh root Nk2Network OpenBSD Security 22 8th April 2009 06:59 PM
NTOP as root sniper007 FreeBSD Security 0 27th January 2009 07:42 PM
Payment Card Industry compliance scanning dk_netsvil General software and network 2 21st July 2008 05:32 AM


All times are GMT. The time now is 07:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick