Home | Hardware | Internet News |Web Hosting |IT Management |Network Storage
LinuxPlanet
Search 
  Power Search | Tips 

 Front Door
 Discussion
 LinuxEngine
 Opinions
 Reports
 Reviews
 Tutorials
 News
 Technology Jobs

 Browse by subject.
Free Newsletter

Linux Planet
Linux Today
More Free Newsletters

Be a Commerce Partner


















internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Print this article
Email this article

   LinuxPlanet / Tutorials



Use Networked Printers and Scanners with HPLIP
Sharing Scanners Over the Network

Carla Schroder
Monday, August 20, 2007 02:38:42 PM

Sharing a scanner over the network has limited value, because most folks don't find it convenient to gallop great distances back and forth between their computers and scanners. But it's not so bad sharing a scanner between a few computers that are in reasonable proximity to each other, and then the person using the PC that the scanner is attached to gets pestered only a little instead of a lot.

The first step is making sure your scanner works for ordinary users and doesn't require root privileges. Linux's new best friend udev has turned device permissions into a New Fun Headache, so hopefully your distribution ships with a nice udev configuration that neither vexes nor annoys, but does the work for you. As, presumably, it is designed to do. On Ubuntu all you do is add local users to the scanner group. On other distributions who knows; see Manage Linux Hardware with udev for some pointers on making udev bow to your will.

Now you need to make sure that saned, the Linux scanner daemon, is installed on the PC that the scanner is connected to, which we'll call the server. On Debian this comes in the sane-utils package, and on Fedora it's in sane-frontends. Then you control it from either inetd or xinetd. inetd users need a line like this in /etc/inetd.conf:

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

This assumes that your saned user and group are both saned. If they're something else, change the saned.saned bit.

In /etc/xinetd.conf, use these lines:

 service sane-port
{ port = 6566 socket_type = stream wait = no user = saned group = saned server = /usr/sbin/saned }

Again, adjust your user and group if necessary.

Now you need a couple of saned tweaks on both the clients and the server. On the server edit /etc/sane.d/saned.conf to include IP addresses, an address range, or hostnames of allowed PCs like this:

# local hostnames
 debianpad
 xena
 stinkpad

# or just give a subnet range
 192.168.1.0/24 

Then on client machines edit /etc/sane.d/net.conf to include the hostname or address of the scanner:

 uberpc 

On the server, restart (x)inetd:

 # /etc/init.d/xinetd restart


Figure 1. Kooka Finds a Networked Scanner

Now fire up your favorite scanner software on the client. Kooka will show a window like Figure 1.

Hurrah! Success! Now you can scan in comfort from your own computer. Xsane has a Windows version, so that's a good option for Windows clients. Configure the client file the same way as on Linux, except the slashes tip the wrong way, so you're editing C:\sane\etc\saned.d\net.conf.

What about directly-connected network scanners, like the HP 3052? Use either Zeroconf, or configure your clients just like for scanners attached to Linux PCs. Check out your EWS or HP Toolbox for configuration and access controls.

Resources

« Back: HP vs. Samsung Smackdown

Skip Ahead

1 HP vs. Samsung Smackdown
2 Networked Printers
3 Sharing Scanners Over the Network





Linux is a trademark of Linus Torvalds.


internet.com home | search | help! | about us

Jupiter Online Media

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers