How to configure networked scanner?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

How to configure networked scanner?

Post by jsfarinet »

I've problems to get working a networked scanner (an Epson Stylus Office) . It is published to the lan (a wifi net) with an ip and it is well recognized by other devices (Mac and an old box running debian). So, presume, it should work with Salix as well, but i don't see how to get to it?

Neither xsane nor simplescan seem to see it (they only offer the webcam as a viable scan device).

TIA for any pointer!
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: How to configure networked scanner?

Post by westms »

jsfarinet wrote:I've problems to get working a networked scanner (an Epson Stylus Office) . It is published to the lan (a wifi net) with an ip and it is well recognized by other devices (Mac and an old box running debian). So, presume, it should work with Salix as well, but i don't see how to get to it?

Neither xsane nor simplescan seem to see it (they only offer the webcam as a viable scan device).

TIA for any pointer!
I know a way to use SANE via the LAN. Perhaps there are still others.
You need to use the SANE Network Daemon saned. It is part of the SANE package.
Please read http://penguin-breeder.org/sane/saned for a detailed explanation. The saned man page is also helpful.
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: How to configure networked scanner?

Post by gapan »

Assuming Salix is in the client PC here.

This is my /etc/sane.d/net.conf file and it just works with simplescan:

Code: Select all

# This is the net backend config file.

## net backend options
# Timeout for the initial connection to saned. This will prevent the backend
# from blocking for several minutes trying to connect to an unresponsive
# saned host (network outage, host down, ...). Value in seconds.
# connect_timeout = 60

## saned hosts
# Each line names a host to attach to.
# If you list "localhost" then your backends can be accessed either
# directly or through the net backend.  Going through the net backend
# may be necessary to access devices that need special privileges.
# localhost
192.168.1.66
there is only a single line of useful settings in there, the last one with the ip of the PC that has the scanner (actually an HP printer/scanner) attached.

Make sure your user is a member of the scanner group.
Image
Image
westms
Posts: 298
Joined: 17. Mar 2013, 18:51

Re: How to configure networked scanner?

Post by westms »

gapan wrote:Assuming Salix is in the client PC here.
[...]
there is only a single line of useful settings in there, the last one with the ip of the PC that has the scanner (actually and HP printer/scanner) attached.
gapan, your device is connected to a computer that is on the LAN. jsfarinets question, I understand that the device is connected directly to the LAN
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: How to configure networked scanner?

Post by jsfarinet »

westms wrote:
gapan wrote:Assuming Salix is in the client PC here.
[...]
there is only a single line of useful settings in there, the last one with the ip of the PC that has the scanner (actually and HP printer/scanner) attached.
gapan, your device is connected to a computer that is on the LAN. jsfarinets question, I understand that the device is connected directly to the LAN
Right westms! The network is like this: gateway/router whereto are connected by wireless several devices among them the Epson Stylus Office (which has the ip *.*.*.105).

Now, cups recognizes it: Printing works fine. But not so scanning. I'll try out your indication (i already have tried the sane daemon but after boot and manually from within X. Maybe i'll have to add it to rc.local? An re-boot ... ?)
User avatar
jsfarinet
Posts: 305
Joined: 23. Nov 2014, 07:32

Re: How to configure networked scanner?

Post by jsfarinet »

Answering to myself:

I think i have it: I added simply

Code: Select all

saned
to rc.local. And then i changed in /etc/sane.d/epson2.conf the last line from

Code: Select all

net autodiscovery
to

Code: Select all

net *.*.*.105
Now it seems to work. To be really sure i also did was man saned said about inetd.conf and /etc/services.

Just a question out of curiousity: the configuration of the paragraph "saned hosts" in /etc/sane.d/net.conf and of "Access list" in /etc/sane.d/saned.conf in some way pretty much cover the same?
User avatar
gapan
Salix Wizard
Posts: 6361
Joined: 6. Jun 2009, 17:40

Re: How to configure networked scanner?

Post by gapan »

Yes, they should be the same. Actually filenames in /etc/sane.d/ shouldn't matter. It's the content that does.
Image
Image
Post Reply