Table of Contents |
---|
Introduction
A machine has a scanner attached to it and this resource should be shared in the network. How to configure and install sane
Installation
server and client
The basic package that provides the scan daemon is saned, this needs to be installed on the server and the client
Code Block |
---|
aptitude install sane |
LTSP specfic
If the packages need to be installed on the ltsp client first run the ltsp-chroot command
Code Block |
---|
ltsp-chroot -m apt-get install sane |
No need to run the ltsp-update-image just yet, as the package needs to be configured
Configuration
server
On the server we need to enable the start of the daemon
Code Block | ||
---|---|---|
| ||
RUN=yes |
Configure the network to where it should expose the scanner, adapt to actual configuration
Code Block | ||
---|---|---|
| ||
192.168.10.0/24 |
and add the saned user to the group lp, or whatever group write permissions are set
Code Block |
---|
adduser saned lp |
restart the saned service
Code Block |
---|
service saned stop service saned start |
client
Configure the host it should connect to scanners, adapt to actual configuration
Code Block | ||
---|---|---|
| ||
192.168.10.1 |
LTSP specific
Edit the file in the ltsp filesystem
Code Block | ||
---|---|---|
| ||
192.168.10.1 |
and now update the image
Code Block |
---|
ltsp-update-image |
Trouble Shooting
no access to device
error message "Access to resource has been denied"
check if the scanner is recognized by the system
Code Block # as root lsusb --snip-- Bus 002 Device 005: ID 03f0:3b17 Hewlett-Packard LaserJet M1005 MFP --snip--
in this case, look at the permissions of bus 002 and device 005
Code Block ls -l /dev/bus/usb/002/005 crw-rw-r--+ 1 root lp 189, 132 Jan 21 12:00 /dev/bus/usb/002/005
And see that the process that needs to access the scanner is in the correct group. To change the group, edit the udev rules in /etc/udev/rules.d/