LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-01-2011, 08:37 AM   #1
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
cups / sane server system requirements


Howdy Slackers:

I have a 2010 model laptop running slackware 13.1, and after setting up a udev rule for my epson rx700 printer/scanner, this laptop can print to the rx700 without problems, and I can scan straight into gimp with xsane... I can even share the printer and scanner over my local lan... oh joy!

this is great for me... however when I pack up my laptop and hit the road, the other folks in the house cannot print or scan over the network anymore, so I tried to get an older desktop we have laying about to be the cups / sane server instead of my laptop. I tried a Dell Dimension 8300, and a Dell Optiplex GX 260... Both have USB 2.0... however, on fresh slackware 13.37 installs, even after the udev rule, neither old computer is successful finding the scanner with sane-find-scanner, although it is listed in output of lsusb...

does anyone know if there is a workaround on these older machines, or have there been some hardware changes in the last 8 years that the machines haven't undergone, and I should give up trying to get one to be cups/sane server for rx700..
 
Old 07-01-2011, 10:42 AM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by slac-in-the-box View Post
...
this is great for me... however when I pack up my laptop and hit the road, the other folks in the house cannot print or scan over the network anymore, so I tried to get an older desktop we have laying about to be the cups / sane server instead of my laptop. I tried a Dell Dimension 8300, and a Dell Optiplex GX 260... Both have USB 2.0... however, on fresh slackware 13.37 installs, even after the udev rule, neither old computer is successful finding the scanner with sane-find-scanner, although it is listed in output of lsusb...
Did you configure the computer properly? I've once written this: http://www.linuxquestions.org/linux/...r_over_network tutorial about scanning in the network. You must have done it similar with your laptop since you've got it working, but maybe you'll check every point of the described settings (on the server).

First thing that I am thinking of: did you configure inetd? try the nmap command in order to check if the port for sane is open.
Code:
nmap -p 6566 192.168.178.10 (of course the IP of your scannerserver here)
Markus
 
Old 07-01-2011, 01:43 PM   #3
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780

Original Poster
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
ty markush for your response, and for your excellent tutorial...

however in my case, it is not the networking of the scanner that is hassling me, but rather finding the scanner with sane-find-scanner...

on the laptop, once my user is in the scanner group, and once I create the udev rule for the scanner containing idVendor and idProduct, which I get with lsusb, my user can find my usb connected scanner with sane-find-scanner, and it can scan with sane and xsane. No hassles...

The udev rule I save as /etc/udev/rules.d/80-libsane.rules, and it looks as follows:
Code:
# EPSON Stylus Photo RX700
ATTRS{idVendor}=="04b8", ATRS{idProduct}=="0810", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
If I wanted laptop to be scannerserver, I could follow your excellent tutorial, and sleep well tonight.

Problem is, I don't want laptop to be scanner server. I have the older P4 desktops mentioned, and was hoping to get one of those turned into scanner server... but I didn't figure on proceeding with the networking side of the server until after I could get one of them to find the scanner and make scans locally, like the laptop can...

unfortunately, adding user to scanner group and creating udev rule isn't enough on the older models... they see device with lsusb... but they don't see any connected usb scanner with sane-find scanner, not as user in scanner group, nor as root, which also is in scanner group... so I am suspecting hardware... I have some other older machines I can test it on, but if someone knew anything about some change to the USB 2.0 standard that could be affecting this, maybe I could rule out some of them as being too old...

I have an old poweredge 2650... I'm gonna try it next, then a g4 xserve with slackintosh 12 -- doing the same steps each time that got it working on laptop...

maybe I'll just have to get a sheevaplug and try armedslack... but hopefully can get more work out of an older piece of hardware... hate to buy if I don't have to...
 
Old 07-01-2011, 02:51 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
mh, I think I didn't understand your question, I was thinking your clients cant find the scanner over the lan.

What happens if you use sane-find-scanner as root, and what if you use "scanimage -L" as root (on the local machine)?

Did you add your users to the lp group? as you know, both, lp and scanner group are necessary for a multifunction-device.

I'm pretty sure that with Slack-13.37 a special udev-rules is not necessary for the scannerserver.

Markus
 
1 members found this post helpful.
Old 07-01-2011, 07:19 PM   #5
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780

Original Poster
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Quote:
I'm pretty sure that with Slack-13.37 a special udev-rules is not necessary for the scannerserver.
What! I finally figured out how to make em... and now we don't need em... go figure...



Anyhow, I got it working

The weird bit is that sane-find-scanner never comes up with any results... however, scanimage -L does

Fusing bits from your tutorial with bits from this one, got me scanning over the network! The only place I varied from your tutorial, was that I created a user called saned and added it to the scanner group... my inet.conf line was

Code:
sane-port     stream     tcp     nowait     saned.scanner     /usr/sbin/saned     saned
the other variation from your tutorial was that I was able to use hostnames in /etc/sane.d/saned.conf (and /etc/sane.d/net.conf on client) provided that the hostnames were already defined in the /etc/hosts file on the scanner server and on each client.

All is working... except that sane-find-scanner doesn't find the usb connected scanner on the scanner server, even though scanimage -L does...

thanks for your help
 
Old 07-02-2011, 03:11 AM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello slac-in-the-box,

I'm happy to read the the tutorial was useful for you , I did not yet receive any feedback about it.

Surely there are several other ways to use the scanner in the network. The permissions have been the point where I had the most effort to get it working. When I got it working the first time, I was using Gentoo.

A question: you did not mention if your users are member of the lp-group. Are they? if not, maybe the sane-find-scanner problem is related to that. Normally you'll need to be member of lp in order to get permissions to use a multifunction-device.

Markus
 
Old 07-03-2011, 08:23 PM   #7
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 780

Original Poster
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
yes...

users are in the lp group as well... I don't know why the sane-find-scanner fails... I just didn't have the persistence to proceed further, and figured scanner was undetected... but it scans just fine...

it is a cups server as well, and that is working great... I only had to add rules in firewall to allow tcp on port 6566 for saned and 631 for cupsd in and out of server and clients...

now I'm a gonna go scan today's receipts... (still don't have ocr going to grab totals and vendors from receipts and enter into database yet... still things to work on, lol)
 
  


Reply



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
PXE server hardware requirements (probably NFS server hardware requirements) Ipolit Linux - Networking 0 07-27-2009 01:33 AM
sane: conflicting advice man sane-usb/howto sonichedgehog Linux - Newbie 6 12-02-2007 05:48 PM
system requirements for samba server for 100 users boToo Linux - Server 6 12-02-2006 06:17 PM
hplip backend for sane and CUPS unable to detect OfficeJet T65 on parallel port kris_kiil Linux - Hardware 2 04-23-2006 12:34 PM
System requirements for RH Adv. Server 2.1 blas Linux - General 3 06-10-2003 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:43 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