[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

¡Esta es una revisión vieja del documento!


En proceso de traducción. Victor

Usar un escáner en una red

Este Howto describe cómo se puede usar un escáner que está conectado a otra computadora Slackware a través de la red.

Software necesario

Todos los paquetes que son necesarios están disponibles en una instalación de Slackware. Estos son sane y xsane para el escáner. También se utiliza el demonio del super-servidor de Internet inetd (en el servidor del escáner) para escuchar la red en busca de trabajo del escáner.

Permisos

Tengo un dispositivo multifunción HP-PSC-1410 antiguo que está conectado a mi servidor a través de USB. Para utilizar el dispositivo para escanear (localmente o a través de la red), uno tiene que ser miembro del escáner y del grupo lp -. Tenga en cuenta que cualquier usuario que se agregue con el comando adduser de Slackware, es miembro de este grupo de forma predeterminada.

Configuración del servidor

Uno tiene que editar el archivo /etc/sane.d/saned.conf . Dado que el inetd se usa para escuchar la red, la única parte que tiene que configurar es la “Lista de acceso”. Enumera las direcciones IP de las computadoras a las que se les permite acceder al escáner. Es posible enumerar direcciones IP individuales o la dirección de la subred completa, aquí utilizo

192.168.98.0/24

En el archivo /etc/inetd.conf uno necesita una línea

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

Asegúrese de tener la siguiente línea en su archivo /etc/services

sane-port          6566/tcp

Luego tendrás que reiniciar el inetd-daemon.

/etc/rc.d/rc.inetd restart

Testing the network-settings for the server

With the nmap command one can scan the ports and find out if the sane-port is open, sane uses port 6566

Samsung ~ # nmap -p 6566 192.168.178.10

Starting Nmap 5.21 ( http://nmap.org ) at 2010-11-29 19:54 CET
Nmap scan report for srv-zuhause.home.local (192.168.98.10)
Host is up (0.0031s latency).
PORT     STATE SERVICE
6566/tcp open  unknown
MAC Address: xx:xx:xx:xx:xx:xx (xx Computer)

Nmap done: 1 IP address (1 host up) scanned in 0.23 seconds

The command can be executed on the server as well as any client, the ip-adress is the one of the server!

Configuration of the client(s)

On the client one has to edit the /etc/sane.d/net.conf file and add a line with the IP-adress of the server.

#/etc/sane.d/net.conf
192.168.98.10

Theoretically it is possible to insert the DNS-name of the server (instead of it's IP-adress) in the net.conf file, but it didn't work here.

Also be sure that in the file /etc/sane.d/dll.conf is a line with the word “net”

#/etc/sane.d/dll.conf
# enable the next line if you want to allow access through the network:
net
...

Testing the client-configuration

With the command scanimage -L we can check if the scanner is recognized by the system

markus@Samsung ~ $ scanimage -L
device `net:192.168.98.10:hpaio:/usb/PSC_1400_series?serial=CN619D724804DZ' is a Hewlett-Packard PSC_1400_series all-in-one.

Now if you open xsane on the client you should be able to use the scanner.

Sources

 es:howtos:network_services:scanning_with_sane_in_a_network ()