Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Sane: no connection to server
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Lokesh
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2012
Posts: 131

PostPosted: Wed Sep 06, 2017 4:23 pm    Post subject: [solved]Sane: no connection to server Reply with quote

Hello again,

I have set up a server to make my printer and scanner available to the network. My scanner is the Agfa SnapScan 1236U, plugged into the usb of the server. The server seems to work properly, since on my dual-boot-other-linux Debian, all I had to do is to edit the net.conf
Code:
cat /etc/sane.d/net.conf
# 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.0.1
This file does not exist on my Gentoo client after installation of the frontend
Code:
emerge -pv sane-backends

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-gfx/sane-backends-1.0.25-r1::gentoo  USE="nls usb -doc -gphoto2 -ipv6 -snmp -systemd -threads -v4l -xinetd -zeroconf" ABI_X86="(64) -32 (-x32)" SANE_BACKENDS="snapscan -abaton -agfafocus -apple -artec -artec_eplus48u -as6e -avision -bh -canon -canon630u -canon_dr -canon_pp -cardscan -coolscan -coolscan2 -coolscan3 -dc210 -dc240 -dc25 -dell1600n_net -dmc -epjitsu -epson -epson2 -fujitsu -genesys -gt68xx -hp -hp3500 -hp3900 -hp4200 -hp5400 -hp5590 -hpljm1005 -hpsj5s -hs2p -ibm -kodak -kodakaio -kvs1025 -kvs20xx -kvs40xx -leo -lexmark -ma1509 -magicolor -matsushita -microtek -microtek2 -mustek -mustek_pp -mustek_usb -mustek_usb2 -nec -net -niash -p5 -pie -pixma -plustek -plustek_pp -pnm -qcam -ricoh -rts8891 -s9036 -sceptre -sharp -sm3600 -sm3840 -sp15c -st400 -stv680 -tamarack -teco1 -teco2 -teco3 {-test} -u12 -umax -umax1220u -umax_pp -xerox_mfp"


and
Code:
emerge -pv xsane

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-gfx/xsane-0.999-r2::gentoo  USE="jpeg lcms nls ocr png tiff -gimp" 0 KiB
So I created /etc/sane.d/net.conf and filled it with the server information as on the Debian system.

Scanimage -L immediately returns no scanners found. Compared to the Debian system, where this command kept the system for several seconds busy, it implies to me that it was not searching the network.

What is missing, a USE flag, a package?

Lokesh
_________________
Sometimes frustrated Linux User


Last edited by Lokesh on Fri Sep 08, 2017 6:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lokesh
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2012
Posts: 131

PostPosted: Fri Sep 08, 2017 1:55 pm    Post subject: Reply with quote

Too bad :(
Nobody having an idea?
_________________
Sometimes frustrated Linux User
Back to top
View user's profile Send private message
Lokesh
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2012
Posts: 131

PostPosted: Fri Sep 08, 2017 6:56 pm    Post subject: Reply with quote

The SANE wiki should be updated!

The simple solution is:
emerge -pv sane-backends returns a list of scanner drivers following SANE-BACKENDS="..."
This includes the net driver, kind of hidden. It needs to be included in addition to your scanner driver.
The line in the global make.conf should look like this:
Code:
cat /etc/portage/make.conf
...
...
SANE_BACKENDS="driver-for-your-scanner net"

That's it. Rebuilt (or install) sane-backends and it is all there. The /etc/sane.d/net.conf only needs to be amended by the servers ip-address, and your done.

Bonne soirée à tous
_________________
Sometimes frustrated Linux User
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum