Raspian, SANE and EPSON XP-405 as network scanner
Posted: Mon Nov 07, 2016 3:56 pm
1) Server side (Raspbian 7 Jessie):
USB device for printer/scanner has r/w for group "lp" by default:
/etc/xinetd.d/saned
2) Client side:
In my setup that is Xubuntu 12.04 (64bit).
All you need to do is add server name or IP address of the scanner server to "/etc/sane.d/net.conf".
I would also suggest to enable "connect_timeout" to avoid endless blocking of an application in case the scanner isn't found.
For example, if the server is called "myserver.home", then the net.conf would look like this:
"Simple scan" utility doesn't seem to be able to handle network scanners, so I use "xsane" as scan client application.
That's all.
Have fun!
Links:
To be continued.
USB device for printer/scanner has r/w for group "lp" by default:
This is important, since xinetd must be told to run as group "lp" instead of "saned" or "scanner" in order to access the scanner device:crw-rw-r-- 1 root lp 189, 15 Nov 7 12:03 /dev/bus/usb/001/016
/etc/xinetd.d/saned
Code: Select all
service sane-port
{
socket_type = stream
server = /usr/sbin/saned
protocol = tcp
user = saned
group = lp
wait = no
disable = no
}
2) Client side:
In my setup that is Xubuntu 12.04 (64bit).
All you need to do is add server name or IP address of the scanner server to "/etc/sane.d/net.conf".
I would also suggest to enable "connect_timeout" to avoid endless blocking of an application in case the scanner isn't found.
For example, if the server is called "myserver.home", then the net.conf would look like this:
Code: Select all
connect_timeout = 60
myserver.home
That's all.
Have fun!
Links:
- http://blog.pi3g.com/2013/04/raspberry- ... n-windows/
- https://help.ubuntu.com/community/Scann ... _a_Network
To be continued.