Date: Wed, 1 Oct 2008 22:28:27 +0200 From: Roland Smith <rsmith@xs4all.nl> To: John Vliouras <borgibo@vivodinet.gr> Cc: questions@freebsd.org Subject: Re: Scanner Message-ID: <20081001202827.GB58548@slackbox.xs4all.nl> In-Reply-To: <48E3A52D.7080201@vivodinet.gr> References: <48E3A52D.7080201@vivodinet.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
--TRYliJ5NKNqkz5bu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 01, 2008 at 07:28:29PM +0300, John Vliouras wrote: > I wonder if this is the right place to ask a question regarding FreeBsd7 > and the Handbook. <snip> > The problem is my scanner a Canon Lide 60. Running #scanimage -L I get > "device `genesys:libusb:/dev/usb1:/dev/ugen0' is a Canon Lide 60 flatbed > scanner" which is right and it shows up with xsane as root (when I am > lucky to use xsane as root in gnome) <snip> > I cannot find "/etc/devfs.rules" file, it does not exist. I tried to > make one adding what I was instructed, to no avail. I tried to put > "[system=3D5]" etc in the "/etc/defaults/devfs.rules" file, which exists, > but it did not work either. A new install doesn't have a devfs.rules file. You must create it. What I did to get my scanner and other devices working is the following; - Use pw(8) to create a group named usb, adding my user-id to the group: pw groupadd -n usb -m my_user_id - Write /etc/devfs.rules to give the usb group access: [customruleset=3D10] add path 'da*' mode 0660 group usb add path 'msdosfs/*' mode 0660 group usb add path 'uscanner*' mode 0660 group usb add path 'usb*' mode 0660 group usb add path 'ugen*' mode 0660 group usb (The third 'add' line is for the scanner.) - Activate the ruleset in /etc/rc.conf: devfs_system_ruleset=3D"customruleset" - Now either reboot the machine, or restart devfs using=20 '/etc/rc.d/devfs restart' - Then plug in the scanner and switch it on. You should see /dev/uscanner appear with the right permissions. For the scanner to work in sane, you might need to edit its configuration files. You should edit /usr/local/etc/sane.d/dll.conf to make it load the genesys backend. (just add a line 'genesys' if not present.) The LiDE 60 is listed in /usr/local/etc/sane.d/genesys.conf, but if it doesn't work, add a line 'usb /dev/uscanner0' to genesys.conf. On my FreeBSD page[1] I documented the system configuration that I did on my machine. You might find it usefull. Roland [1] http://www.xs4all.nl/~rsmith/freebsd/index.html --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --TRYliJ5NKNqkz5bu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjj3WsACgkQEnfvsMMhpyVYsgCeM+VGnRdPFEhNFv3gWFXt3wGo CKoAoIU8nPqImMg2F46e+XKEnLnC6vcX =jizV -----END PGP SIGNATURE----- --TRYliJ5NKNqkz5bu--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081001202827.GB58548>