From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 11:00:19 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 378A5776 for ; Thu, 22 Jan 2015 11:00:19 +0000 (UTC) Received: from mail-wg0-x235.google.com (mail-wg0-x235.google.com [IPv6:2a00:1450:400c:c00::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B5BDCF24 for ; Thu, 22 Jan 2015 11:00:18 +0000 (UTC) Received: by mail-wg0-f53.google.com with SMTP id a1so983435wgh.12 for ; Thu, 22 Jan 2015 03:00:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:cc:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=bZtGpNfsy3KGoS1rcg/tjZNStzYd2FdKuziRaI5zVTs=; b=Gh2h9OcYUXaILYgFEF2O3YhIEowJ+xd/b7tMbAyNZPK79/sB673yvu8lygygnFqz10 WkxgHH7/cmUeux68pbrWDk3rzDV6kCM9C0zl2ys8dPWLC3yCi50C4+ZQtI89rHCJ4WwJ qQKXsOQTgfD2UUe7hsJ1kS5eilVDYR//Dx3KyxGmDPhlYibJirH+FmPd0Dy408wUNwq+ X7f9kfM1VfIkmtHPjzHJhy/b9Kl/jhYIDO1DrmMvQD5la7dmMOkC6NsAiKQigrcygJYe SkgrGGbj2mlIAtqKFVP2mNFe2do5LqBqiNdrz2xgwNhLulEj2i0yZeERCxK21Wqzxa1S ZaFQ== X-Received: by 10.194.175.202 with SMTP id cc10mr1714688wjc.27.1421924416813; Thu, 22 Jan 2015 03:00:16 -0800 (PST) Received: from MARC-THINKPAD.queenland (AOrleans-656-1-23-170.w90-20.abo.wanadoo.fr. [90.20.238.170]) by mx.google.com with ESMTPSA id g10sm2545099wic.7.2015.01.22.03.00.15 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Thu, 22 Jan 2015 03:00:15 -0800 (PST) Date: Thu, 22 Jan 2015 12:00:14 +0100 From: =?UTF-8?B?TcOkcms=?= Owen Cc: freebsd-questions@freebsd.org Subject: Re: SANE Network Scanner Message-ID: <20150122120014.3f3e6d67@MARC-THINKPAD.queenland> In-Reply-To: <20150121214628.3b42c157@MARC-THINKPAD.queenland> References: <20150121214628.3b42c157@MARC-THINKPAD.queenland> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2015 11:00:19 -0000 On Wed, 21 Jan 2015 21:46:28 +0100 M=C3=A4rk Owen wrote: >=20 >=20 > Begin forwarded message: >=20 > Date: Wed, 21 Jan 2015 20:11:54 +0100 > From: M=C3=A4rk Owen > To: Zsolt Udvari > Subject: Re: SANE Network Scanner >=20 >=20 > On Wed, 21 Jan 2015 19:20:06 +0100 > Zsolt Udvari wrote: >=20 > > Did you enable your client's IP in saned.conf? > > Check here: > > https://wiki.archlinux.org/index.php/Sane#Network_scanning I've > > done it with RPI, and followed ArchWiki - you don't need inetd. > >=20 > > 2015-01-21 17:51 GMT+01:00 M=C3=A4rk Owen : > >=20 > > > Hi, > > > > > > I'm trying to share an Epson Perfection 3490 over the network > > > through SANE. I know it is supported because it worked on linux > > > (Debian). The host (FreeBSD 10.1) recognizes it and it seems to > > > work if I invoke this command: > > > > > > scanimage -d snapscan:libusb:/dev/usb:/dev/ugen1.3 --format pnm > > > > /tmp/outfile.pnm > > > > > > The issue is that my clients (all Debian 7 boxes) don't seem to be > > > able to detect the scanner over the network using xsane or the > > > scanimage -L / sane-find-scanner -q commands. > > > > > > Maybe some of you will be able to enlighten me. Here are the > > > content of a few configuration files from the server: > > > > > > /etc/rc.conf > > > inetd_enable=3D"YES" > > > saned_enable=3D"YES" > > > > > > /etc/services > > > sane-port 6566/tcp #SANE > > > > > > /etc/inetd.conf > > > sane-port stream tcp nowait > > > saned /usr/local/sbin/saned saned > > > > > > In /usr/local/etc/sane.d/dll.conf, everything is commented except > > > 'snapscan' as FreeBSD seems to detect the scanner as snapscan and > > > not epson. > > > > > > /usr/local/etc/sane.d/snapscan.conf > > > #------------------------------ General > > > ----------------------------------- > > > > > > # Change to the fully qualified filename of your firmware file, if > > > # firmware upload is needed by the scanner > > > firmware /usr/local/share/sane/snapscan/Esfw52.bin > > > > > > # If not automatically found you may manually specify a device > > > name. > > > > > > # For USB scanners also specify bus=3Dusb, e.g. > > > # /dev/usb/scanner0 bus=3Dusb > > > > > > # For SCSI scanners specify the generic device, e.g. /dev/sg0 on > > > Linux. # /dev/sg0 > > > > > > > > > #--------------------------------------------------------------------= ------- > > > # No changes should be necessary below this line > > > > > > #--------------------------------------------------------------------= ------- > > > > > > #-------------------------- SCSI scanners > > > ---------------------------------- # These SCSI devices will be > > > probed automatically scsi AGFA * Scanner > > > scsi COLOR * Scanner > > > scsi Color * Scanner > > > scsi ACERPERI * Scanner > > > > > > #--------------------------- USB scanners > > > ----------------------------------- # These USB devices will be > > > probed automatically # (This will currently work only on Linux) > > > > > > # Benq/Acer/Vuego 310U > > > usb 0x04a5 0x1a20 > > > usb 0x04a5 0x1a26 > > > > > > # Benq/Acer/Vuego 320U > > > usb 0x04a5 0x2022 > > > > > > # Benq/Acer/Vuego 620U / 620UT > > > usb 0x04a5 0x1a2a > > > usb 0x04a5 0x2040 > > > > > > # Benq/Acer/Vuego 640U > > > usb 0x04a5 0x2060 > > > > > > # Benq/Acer/Vuego 640BU > > > usb 0x04a5 0x207e > > > > > > # Benq/Acer/Vuego 640BT > > > usb 0x04a5 0x20be > > > > > > # Benq/Acer/Vuego 1240U > > > usb 0x04a5 0x20c0 > > > > > > # Benq/Acer/Vuego 3300 / 4300 > > > usb 0x04a5 0x20b0 > > > > > > # Benq/Acer/Vuego 4300 > > > usb 0x04a5 0x20de > > > > > > # Benq 5000E / 5000U > > > usb 0x04a5 0x20f8 > > > > > > # Benq 5000 > > > usb 0x04a5 0x20fc > > > > > > # Benq/Acer 5300 > > > usb 0x04a5 0x20fe > > > > > > # Benq 5250C > > > usb 0x04a5 0x2137 > > > > > > # Agfa 1236U > > > usb 0x06bd 0x0002 > > > > > > # Agfa 1212U > > > usb 0x06bd 0x0001 > > > usb 0x06bd 0x2061 > > > > > > # Agfa Snapscan e10 > > > usb 0x06bd 0x2093 > > > > > > # Agfa Snapscan e20 > > > usb 0x06bd 0x2091 > > > > > > # Agfa Snapscan e25 > > > usb 0x06bd 0x2095 > > > > > > # Agfa Snapscan e26 > > > usb 0x06bd 0x2097 > > > > > > # Agfa Snapscan e40 > > > usb 0x06bd 0x208d > > > > > > # Agfa Snapscan e42 > > > usb 0x06bd 0x20ff > > > > > > # Agfa Snapscan e50 > > > usb 0x06bd 0x208f > > > > > > # Agfa Snapscan e52 > > > usb 0x06bd 0x20fd > > > > > > # Epson Perfection 660 > > > usb 0x04b8 0x0114 > > > > > > # Epson Perfection 1670 > > > usb 0x04b8 0x011f > > > > > > # Epson Perfection 2480 > > > usb 0x04b8 0x0121 > > > > > > # Epson Perfection 3490 > > > usb 0x04b8 0x0122 > > > > > > # Epson Stylus CX-1500 > > > usb 0x04b8 0x080c > > > _______________________________________________ > > > freebsd-questions@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > To unsubscribe, send any mail to " > > > freebsd-questions-unsubscribe@freebsd.org" > > > >=20 > Yes, I did. Here's my saned.conf: >=20 > # saned.conf > # Configuration for the saned daemon >=20 > ## Daemon options > # Port range for the data connection. Choose a range inside [1024 - > 65535]. # Avoid specifying too large a range, for performance reasons. > # > # ONLY use this if your saned server is sitting behind a firewall. If > your # firewall is a Linux machine, we strongly recommend using the > # Netfilter nf_conntrack_sane connection tracking module instead. > # > # data_portrange =3D 10000 - 10100 >=20 >=20 > ## Access list > # A list of host names, IP addresses or IP subnets (CIDR notation) > that # are permitted to use local SANE devices. IPv6 addresses must be > enclosed # in brackets, and should always be specified in their > compressed form. # > # The hostname matching is not case-sensitive. >=20 > #scan-client.somedomain.firm > #192.168.0.1 > 192.168.1.0/24 > #[2001:db8:185e::42:12] > #[2001:db8:185e::42:12]/64 >=20 > # NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and > # /etc/services must also be properly configured to start > # the saned daemon as documented in saned(8), services(4) > # and inetd.conf(4) (or xinetd.conf(5)). I'm going to answer myself here. I managed to solve my issue, it was in fact a simple permission problem. I changed my /etc/devfs.rules files by replacing 'usb' with 'saned': [system=3D5] add path 'ugen1.3' mode 0660 group saned add path 'usb/1.3.*' mode 0660 group saned As Zsolt said, I removed the inetd service and simply let SANED share the scanner over the network by itself and it worked. Thanks for the help.