LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2009, 08:34 AM   #1
Ignotum Per Ignotius
Member
 
Registered: Sep 2009
Location: UK
Distribution: Slackware, Arch
Posts: 75
Blog Entries: 4

Rep: Reputation: 43
Can't Network Scanner (Epson 1250) Using SANED (In Slackware 12.2)


Hi.

...Probably being totally stupid (my apologies in advance), but I can't figure out what I'm doing wrong: here's the setup.
  • Two Linux boxes, both running standard installations of Slackware 12.2 (using the supplied generic, non-SMP, 2.6.27.7 kernel).
  • One has an Epson Perfection 1250 scanner attached to it via the USB port.

To do this, I used SANE (version 1.0.19) and the plustek backend. I commented out all entries in the /etc/sane.d/dll.conf file except "net" and "plustek". The only other alteration I made was the following:

/etc/sane.d/plustek.conf
Code:
# My addition for Epson Perfection 1250  
[usb]   0x04b8  0x010f
device /dev/usb/scanner0
I put this at the top of the file, after the first batch of comments, leaving the remainder of the file unchanged.

I also set up the other machine identically, and tried the scanner on it (physically unplugging it and plugging it in) --- it worked fine.

So, no problems getting the scanner working...

However, I'd like to be able to scan over the network.

On the machine connected to the scanner (which I'll call the server), I've done the following:

I've created a group called saned and a user called saned. The saned user belongs to the groups saned and scanner.

Here are the changes I've made to the configuration files on the server:

/etc/services
Code:
sane-port       6566/tcp   #SANE network scanner daemon
/etc/inetd.conf
Code:
sane-port stream tcp nowait saned.saned /usr/sbin/saned saned
/etc/sane.d/saned.conf
Code:
192.168.0.1/64
On the client, I've created the saned user & group (same UID, same GID as on the server), added myself as user to the scanner group, and duplicated on the client the server's /etc/sane.d files along with the configuration files above (in case I wish to swap my scanner physically from one computer to the other, and hence switch client & server).

Finally, on the client, I've made the following addition:
/etc/sane.d/net.conf:
Code:
Jeremiah
("Jeremiah" is the name of my server.)

When I run sane-find-scanner on the client, no scanner is found.

However, when I run netcat on the client...

Code:
nc -v Jeremiah 6566
...it tells me this

Code:
Jeremiah.Junkyard [192.168.0.1] 6566 (sane-port) open
Finally, each computer is included in the other's /etc/hosts.allow file.

...So whaddami doing wrong?!

I've Googled for help, to no avail. I searched here, and found these two articles, which helped clarify a few things, but I'm still stuck. So, in desperation, I've registered, and hereby make known my plight... I'm not sure whether this is the best section in which to post the problem: if not, I apologise, and would appreciate it if someone could give me some pointers. Finally, if my post's a total dog's dinner, please forgive me --- though I've been running Linux for years, I'm a real chump and definitely don't have the computing-gene.

Any help gratefully received,


Paul.
 
Old 09-27-2009, 03:59 PM   #2
Ignotum Per Ignotius
Member
 
Registered: Sep 2009
Location: UK
Distribution: Slackware, Arch
Posts: 75

Original Poster
Blog Entries: 4

Rep: Reputation: 43
Got it working --- after over a week's wrestling with it (and no replies )...

The offending line was the one in /etc/saned.conf:

Code:
192.168.0.1/64
In despair, I tried noodling around and ended up replacing this range with a series of smaller ranges:

Code:
192.168.0.1/16
192.168.0.16/32
192.168.0.33/48
...And it worked! Though I've no idea why.

I set up the other machine in the same way (with a suitably modified /etc/net.conf) and now I can scan over the network, regardless of which machine the scanner's physically connected to (quite handy, given how often the gear's shuffled around here).

...So now my setup is all exactly as planned.

Hurrah.

Hope this helps someone out there (feel free to let me know if it does --- if only to demonstrate that I'm not talking to myself ).


Paul.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Epson V200 PHOTO Scanner and Slackware 12 kairen Slackware 16 03-05-2010 11:20 AM
Epson Scanner and Slackware 12.2 Chuck56 Slackware 5 07-12-2009 10:40 PM
Epson V100 usb scanner under Slackware 11 randyb314159 Linux - Hardware 2 02-06-2007 08:30 PM
scanner problem Epson 1250 Mark_in_Hollywood Linux - Newbie 1 05-05-2006 08:45 PM
Epson Perfection 1250/Photo USB flatbed scanner ggtux Linux - Hardware 1 08-22-2005 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration