Difference between revisions of "Sane"

From Blue-IT.org Wiki

 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
== Ubuntuusers article (German) ==
 +
Contributions to:
 +
* [http://wiki.ubuntuusers.de/Sane Sane]
 +
 
=== Scanserver with saned under Ubuntu 10.04 ===
 
=== Scanserver with saned under Ubuntu 10.04 ===
 
Unfortunately there seems to be a bug in the inetd service under Ubuntu 10.04.
 
Unfortunately there seems to be a bug in the inetd service under Ubuntu 10.04.
Line 8: Line 12:
 
  sudo apt-get install openbsd-inetd
 
  sudo apt-get install openbsd-inetd
  
== 2. Change the right for saned ==
+
== 2. Change the rights for saned ==
 
  sudo addgroup scanner
 
  sudo addgroup scanner
 
  sudo usermod -G scanner -a saned
 
  sudo usermod -G scanner -a saned
Line 21: Line 25:
 
  192.168.0.0/24
 
  192.168.0.0/24
  
On the client  edti ''/etc/sane.d/net.conf'' and add the servers IP or hostname
+
On the client  edit ''/etc/sane.d/net.conf'' and add the servers IP or hostname
 
  ## saned hosts
 
  ## saned hosts
  scanserver
+
  scanserver_ip_or_hostname
  
 
== 5. Restart the service ==
 
== 5. Restart the service ==
 
  sudo openbsd-inetd restart
 
  sudo openbsd-inetd restart
 +
 +
== Test ==
 +
cat /etc/services | grep 6566
 +
sane-port 6566/tcp sane saned # SANE network scanner daemon
 +
 +
cat /etc/inetd.conf | grep sane
 +
sane-port      stream  tcp    nowait  root    /usr/sbin/saned saned
 +
 +
cat /etc/group | grep sane
 +
saned:x:118:
 +
scanner:x:1001:saned
 +
 +
scanimage -L
 +
device `net:localhost:epson2:/dev/sg0' is a Epson Perfection1200 flatbed scanner
  
 
That's it.
 
That's it.
  
 
Beside the point wether it is secure to run saned as "root", this works!
 
Beside the point wether it is secure to run saned as "root", this works!
 +
 +
[[Category:Scanning]]

Latest revision as of 20:00, 8 January 2012

Ubuntuusers article (German)

Contributions to:

Scanserver with saned under Ubuntu 10.04

Unfortunately there seems to be a bug in the inetd service under Ubuntu 10.04.

Therefore the configuration of saned scanserver had changed.

1. Install openbsd-inetd

sudo apt-get purge inetutils-inetd
sudo apt-get install openbsd-inetd

2. Change the rights for saned

sudo addgroup scanner
sudo usermod -G scanner -a saned

3. Configure inetd

Edit /etc/inetd.conf and add the following

sane-port       stream  tcp     nowait  root     /usr/sbin/saned saned

4. Configure saned

On the server edit /etc/sane.d/saned.conf according to your local network:

## Access list
192.168.0.0/24

On the client edit /etc/sane.d/net.conf and add the servers IP or hostname

## saned hosts
scanserver_ip_or_hostname

5. Restart the service

sudo openbsd-inetd restart

Test

cat /etc/services | grep 6566

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

cat /etc/inetd.conf | grep sane

sane-port       stream  tcp     nowait  root     /usr/sbin/saned saned

cat /etc/group | grep sane

saned:x:118:
scanner:x:1001:saned

scanimage -L

device `net:localhost:epson2:/dev/sg0' is a Epson Perfection1200 flatbed scanner

That's it.

Beside the point wether it is secure to run saned as "root", this works!