Print server


16 posts
by normal » Sun May 27, 2012 10:05 pm
I have only one printer and several computers on my lan and whenever I want to print from any of them I have to turn the one computer that the printer is connected to just to print.. What software should I look for if I want to connect an old printer to the RPi and serve it?
Posts: 61
Joined: Sun May 27, 2012 9:50 pm
by obarthelemy » Sun May 27, 2012 10:33 pm
I now that one ! (lucky break, I know very little ^^): Samba

http://wiki.samba.org/index.php/Samba_as_a_print_server
Posts: 1399
Joined: Tue Aug 09, 2011 10:53 pm
by j-4 » Sun Jun 03, 2012 2:26 pm
A better solution is to use CUPS. This is the standard printing service on all unix systems and it has excelent printer sharing features, eg. sharing with ipp (internet printing protocoll) which is understood by any operating system.
Further, cups serves a webinterface for configuration and maintainance. For example you see, if the job has arived, how many pages were printed, you can add printers,....
You can even share the printer with and without passwords and there exists a whole accounting system.

On the RPi you even do not have to install printer driver. Just add the printer as raw printer and only the clients will have to install the drivers.

After installing cups (as superuser) with
apt-get install cups
you can activate the sharing features:

# Activate remote printing:
sudo cupsctl --remote-printers
# Share local printers:
sudo cupsctl --share-printers
#Activate remote controlling (enables webinterface to be accessable from the whole lan):
sudo cupsctl --remote-admin
# Everything in one go :-)
sudo cupsctl --share-printers --remote-printers --remote-admin

After this you should be able to log into the webinterface with (ip-address is something like 192.168.1.3)
http://ip-address:631

There you can add you printer and change all the necessary stuff llike default options,...
The best help page i found is only german (unfortunately), but google translate might translate it for you: http://wiki.ubuntuusers.de/cups

Have fun and feel free to ask questions! ;-)
Posts: 1
Joined: Sun Jun 03, 2012 2:14 pm
by Rohan Kapoor » Wed Jun 06, 2012 5:29 pm
I've been working with CUPS and AirPrint (as well as Google Cloud Print). Here's a demo video I made showing the Raspberry Pi serving as an AirPrint server for iOS devices.

http://rohankapoor.com/2012/06/demonstr ... nt-server/

I will releasing a full photo/video tutorial demonstrating how to set this up shortly on my website. I'll link to it here when it's posted.
Posts: 8
Joined: Sat Apr 21, 2012 7:18 pm
Location: USA
by Rohan Kapoor » Tue Jun 12, 2012 4:42 pm
Rohan Kapoor wrote:I've been working with CUPS and AirPrint (as well as Google Cloud Print). Here's a demo video I made showing the Raspberry Pi serving as an AirPrint server for iOS devices.

http://rohankapoor.com/2012/06/demonstr ... nt-server/

I will releasing a full photo/video tutorial demonstrating how to set this up shortly on my website. I'll link to it here when it's posted.


Here's the photo tutorial - just released it: http://rohankapoor.com/2012/06/configur ... nt-server/
Posts: 8
Joined: Sat Apr 21, 2012 7:18 pm
Location: USA
by Drew » Thu Jun 14, 2012 11:49 pm
Rohan Kapoor wrote:Here's the photo tutorial - just released it: http://rohankapoor.com/2012/06/configur ... nt-server/


That tutorial worked for me too, thanks :)

Incidentally I left out the gutenprint drivers & it seems fine without them, the package seems to be gimp-gutenprint according to ...
Code: Select all
apititude search gutenprint
Posts: 39
Joined: Fri Jan 20, 2012 3:50 am
by Rohan Kapoor » Fri Jun 15, 2012 12:45 am
Drew wrote:
Rohan Kapoor wrote:Here's the photo tutorial - just released it: http://rohankapoor.com/2012/06/configur ... nt-server/


That tutorial worked for me too, thanks :)

Incidentally I left out the gutenprint drivers & it seems fine without them, the package seems to be gimp-gutenprint according to ...
Code: Select all
apititude search gutenprint


I'm actually not sure if I'm using them myself. I know that a libgutenprint was installed along with cups. I know I'm not using the gimp-gutenprint drivers at all.
Posts: 8
Joined: Sat Apr 21, 2012 7:18 pm
Location: USA
by rkr » Wed Jun 20, 2012 7:56 pm
I have an ancient HP PSC 1410 I'd like to be available to every pc/laptop/phone/tablet on my home network.
Would this CUPS thing let me use ALL of the functions of this mfd? I'm particularly keen on scanning ability if that's possible....

thanks :D
Posts: 36
Joined: Wed Mar 14, 2012 6:07 am
by Rohan Kapoor » Wed Jun 20, 2012 8:49 pm
rkr wrote:I have an ancient HP PSC 1410 I'd like to be available to every pc/laptop/phone/tablet on my home network.
Would this CUPS thing let me use ALL of the functions of this mfd? I'm particularly keen on scanning ability if that's possible....

thanks :D


CUPS will not allow you to use all of the functions - it is a print server only, it doesn't do anything for scanning. I would look into SANE http://www.sane-project.org/ and see if it supports your mfd. If it does, you should be able to set it up for network scanning.
Last edited by Rohan Kapoor on Wed Jun 20, 2012 9:07 pm, edited 1 time in total.
Posts: 8
Joined: Sat Apr 21, 2012 7:18 pm
Location: USA
by HansH » Wed Jun 20, 2012 9:04 pm
There is a simple (small) printer daemon for this called p910nd
see: http://p910nd.sourceforge.net/
Posts: 212
Joined: Mon Sep 05, 2011 7:49 am
by rkr » Sun Jun 24, 2012 12:39 pm
Rohan Kapoor wrote:
rkr wrote:I have an ancient HP PSC 1410 I'd like to be available to every pc/laptop/phone/tablet on my home network.
Would this CUPS thing let me use ALL of the functions of this mfd? I'm particularly keen on scanning ability if that's possible....

thanks :D


CUPS will not allow you to use all of the functions - it is a print server only, it doesn't do anything for scanning. I would look into SANE http://www.sane-project.org/ and see if it supports your mfd. If it does, you should be able to set it up for network scanning.


Unfortunately SANE doesn't support my PSC 1410. Any other idea(s)?
Posts: 36
Joined: Wed Mar 14, 2012 6:07 am
by Drew » Sun Jun 24, 2012 12:52 pm
rkr wrote:Unfortunately SANE doesn't support my PSC 1410. Any other idea(s)?


Try the manufacturer's software…
http://h10025.www1.hp.com/ewfrf/wc/soft ... uct=441115
http://hplipopensource.com/hplip-web/mo ... eries.html
or maybe try apt-get install HPLIP which may even install the HP versions ?
Posts: 39
Joined: Fri Jan 20, 2012 3:50 am
by rkr » Sun Jun 24, 2012 6:27 pm
Drew wrote:
rkr wrote:Unfortunately SANE doesn't support my PSC 1410. Any other idea(s)?


Try the manufacturer's software…
http://h10025.www1.hp.com/ewfrf/wc/soft ... uct=441115
http://hplipopensource.com/hplip-web/mo ... eries.html
or maybe try apt-get install HPLIP which may even install the HP versions ?

Actually, I wanted a headless server to which commands can be given from android/iOS. Would that be possible with HPLIP and some other Linux sharing hackery?
Posts: 36
Joined: Wed Mar 14, 2012 6:07 am
by Drew » Sun Jun 24, 2012 7:05 pm
rkr wrote:
Drew wrote:
rkr wrote:Unfortunately SANE doesn't support my PSC 1410. Any other idea(s)?


Try the manufacturer's software…
http://h10025.www1.hp.com/ewfrf/wc/soft ... uct=441115
http://hplipopensource.com/hplip-web/mo ... eries.html
or maybe try apt-get install HPLIP which may even install the HP versions ?

Actually, I wanted a headless server to which commands can be given from android/iOS. Would that be possible with HPLIP and some other Linux sharing hackery?


I don't know, how about you try installing the driver & adding the printer? I'd guess that you could make printing work via CUPS & Airprint by using the tutorial & that may work with Android if it supports zeroconf a.k.a. bonjour a.k.a. Airprint. From there you would need to add zeroconfig services for scanner sharing & all the other services (the airprint-generate.py does this in the tutorial), a Linux box should be able to host them. I really don't know what this printer is or what Android can do, this stuff is kinda new to me too.
Posts: 39
Joined: Fri Jan 20, 2012 3:50 am
by rkr » Mon Jun 25, 2012 5:22 am
ok thanks.
will see what can be done when my pi arrives.

any other experienced responses also welcome....
Posts: 36
Joined: Wed Mar 14, 2012 6:07 am
by claenjoy » Wed Apr 23, 2014 4:41 pm
Posts: 1
Joined: Wed Apr 23, 2014 4:39 pm