From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 20:28:30 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E4DD106569A for ; Wed, 1 Oct 2008 20:28:30 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id E98158FC0C for ; Wed, 1 Oct 2008 20:28:29 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id m91KSRrS017749; Wed, 1 Oct 2008 22:28:28 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 5044EBA8A; Wed, 1 Oct 2008 22:28:27 +0200 (CEST) Date: Wed, 1 Oct 2008 22:28:27 +0200 From: Roland Smith To: John Vliouras Message-ID: <20081001202827.GB58548@slackbox.xs4all.nl> References: <48E3A52D.7080201@vivodinet.gr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TRYliJ5NKNqkz5bu" Content-Disposition: inline In-Reply-To: <48E3A52D.7080201@vivodinet.gr> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: questions@freebsd.org Subject: Re: Scanner X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2008 20:28:30 -0000 --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. > 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) > 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--