Setup a shared scanner
mouse 289 · person cloud · link
Last update
2017-11-03
2017
11-03
« — »
1
2
3
4
5
6
7
8
9
10
11
12
apt-get install sane sane-utils

scanimage -L # check if a local scanner is found

# add hostnames and/or IP addresses/subnets
pico /etc/sane.d/saned.conf # eg: 192.168.1.0/24

# enable local users to see the scanner
adduser username scanner

systemctl enable saned.socket
systemctl start  saned.socket

Configure a client host:

1
2
3
4
# edit /etc/sane.d/net.conf:
#   - uncomment the net backend entry
#   - and add the IP address/hostname of the sane server
scanimage -L # check the remote scanner is found

On windows you can use SaneTwain, on Android the SaneDroid app.

Note: If your sane-utils < 1.0.25 is broken under systemd, fix it with these steps:

1
apt-get install libsystemd-dev

In /lib/systemd/system/saned@.service set StandardInput=socket and append Alias=saned.service to [Install] section.

1
2
3
systemctl daemon-reload
systemctl enable saned.socket
systemctl start  saned.socket

Source: debian wiki