User Tools

Site Tools


computing:linux:scanner_shared

Shared Network Scanner on Ubuntu

Installation

sudo apt-get install sane-utils

As root run:

scanimage -L

Add the 'saned' user to the 'scanner' group:

:!: This may not needed (already done by the package installer) on newer versions of Linux

if ! id saned; then groupadd saned; useradd -g saned -G scanner -s /bin/false -d /dev/null saned; fi

Add your non-root user to the scanner group with the command:

usermod -a -G username scanner

After the above procedure, you can now run scanimage -L as 'username'.

scanimage -L

On Ubuntu Karmic I had to edit the permissions and reboot:

gksudo gedit /lib/udev/rules.d/50-udev-default.rules

# libusb device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0666"

Configuration

Edit saned.conf:

gksudo gedit /etc/sane.d/saned.conf

Add:

localhost
192.168.2.0/24

Verify the entry in /etc/services:

grep sane-port /etc/services

sane-port       6566/tcp        sane saned      # SANE network scanner daemon

Create the following file:

gksudo gedit /etc/xinetd.d/saned

# default: off
# description: The sane server accepts requests
# for network access to a local scanner via the
# network.
service sane-port
{
  port        = 6566
  socket_type = stream
  wait        = no
  user        = saned
  group       = scanner
  server      = /usr/sbin/saned
}

Restart xinetd:

sudo /etc/init.d/xinetd restart

Verify the system is listening on port 6566:

netstat -tap

Network Clients

gksudo gedit /etc/sane.d/net.conf

Add hostname of scanner server.

Troubleshooting

Kill xinetd and restart manually in debug mode:

sudo xinetd -d

scanimage -d net:localhost:test -T
computing/linux/scanner_shared.txt · Last modified: 2012/09/23 13:10 by gcooper