VectorLinux
October 24, 2014, 03:09:29 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: How to share a printer, Linux to Linux, on your home network  (Read 3316 times)
whatshisname
Packager
Member
****
Posts: 5


« on: January 10, 2010, 03:39:57 pm »

Since I've spent the better part of the day trying to get this to work in Vector Linux, I thought I'd post a "how to" as to "how I done it".  All I was trying to do was share a printer on a desktop running Vector Linux with a laptop on my home network, also running Vector Linux.  Should be simple, right?  Not so much.

Server (desktop to which the printer is directly attached) set-up:

Server Firewall:

If you're running a firewall, open port 631 and allow everyone on your local network to print.

In my case, my local network is 192.168.1.nnn.  So, in Firestarter, I clicked the "policy" tab.  Right clicked in the "Allow connections from host" window and added:

"Allow connections from" IP, host or network: 192.168.0.0/16  (I think you could also enter an IP that matches the first 3 of the 4 "dotted quad" numbers of your IP address.  Thus, in my case,: "192.168.1")

Right click in the "Allow service" window and choose:

"Ipp" from the drop-down box and/or type in "631" for the "port".  When the source is: 192.168.0.0/16 (Again. I think you could also enter an IP of the form: "192.168.1" if your home network router divvies out IP's of the form: 192.168.1.nnn)

Server Printer:

On the computer sharing the printer (server), I setup my printer in CUPS (http://localhost:631).

Give your printer a name.  I suggest a name with no spaces.  Keep it simple and remember it because you're going to need it later.  I used "lj5p".

I chose the "LPT #1" device because my printer is an old HP Laserjet 5p printer.  I presume you'd use the "SCSI" device if you're printer is hooked up by USB.  Continue in the CUPS setup choosing the printer manufacturer and model for the correct printer driver.

Print a test page.  Make sure it works.

Client Setup:

On the client computer (in this case my laptop, also running Vector Linux), add a printer using the CUPS interface (same URL: http://localhost:631).

This time through choose "Internet Printing Protocol (ipp)" as the device.

Now for the Device URI, the important part and absolutely essential:

The URI will be of the following form:

ipp://ip.address.of.computer.sharing.printer:631/printers/NameYouGaveThePrinter

so, in my case:

ipp://192.168.1.2:631/printers/lj5p

The examples CUPS use for an ipp printer are totally off the mark and the cause of an afternoon's worth of consternation!

Continue with the choosing of the printer manufacturer and the model number for the drivers.

You should be good to go.

Hope this helps someone.  It's surprising how little documentation there is on the Internet about Linux to Linux printer sharing.


Logged
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« Reply #1 on: January 10, 2010, 05:02:27 pm »

Excellent, I'll test it out tomorrow.
Ken
Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!