Printing to networked system........................
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Printing to networked system........................
Used to do this thru Samba aout 10 years ago.
Have 2 Ubuntu 9.04 systems. One is a tower w/ an HP 990C printer. It (the printer) works great from the tower. The other is a Gateway laptop. They are connected thru a router, the Gateway being wireless, the tower being wired. I set up the printer on the tower to be 'shared'. From the laptop, I can see the tower's name, but cannot access it.
With everything being linux, all you need is Cups on both boxes. Sounds like the tower has the printer and is working. So install cups on the lappy. I think all I had to do was go into cups through your web browser, http://localhost:631 and it should find the printer. It was that simple.
You do not need samba for printing linux to linux.
Seem to be stuck on which URI to use. CUPS on both systems. Hardware seems not to be the problem, as the tower and the lappy, when both running windblows, I can print from the lappy to the tower all day. I can give you all the info u need. Any suggestions?
Here is what works for me. URI 'ipp://192.168.1.26:631/printers/HL2040' Enter what is between the single quotes. Edit the IP address to match your server. The middle word printers has to be there. The last field is the name of the printer.
Seem to be stuck on which URI to use. CUPS on both systems.
I didn't find this difficult to set up, and I did it a few years ago when I was very green with linux.
On your tower, take a look at /etc/cups/cupsd.conf (which is well commented) and make sure your printer can be shared with, and is advertised to, your LAN IPs.
On your laptop set up cups to use the printer on your tower.
I seem to remember an option to scan for printer servers on my LAN, which made it easier once I had corrected the LAN IP address range from what was offered (I happen to be on a 10.x.y.x network)
My printer has an URI like this: ipp://server:631/printers/HPLaserJet6P
Obviously, if you do not have an entry for server in your /etc/hosts file, you'll need to give the numerical LAN IP of your server something like this:
ipp://192.168.0.2:631/printers/HPLaserJet6
When you add that printer to the laptop's cups, do not select a "Printer Driver" as this is all handled by your tower. Just set it as a "Raw Printer" (There's a checkbox to do allow you to do this).
From the client, can you connect cups? Enter 'http://samrdesktop:631' If this will connect, then there is something wrong with the printer setup. If it will not connect, try replacing the name samrdesktop with the IP address of that system. If it doesn't connect then, there is something wrong on the sever.
From the client, can you connect cups? Enter 'http://samrdesktop:631' If this will connect, then there is something wrong with the printer setup. If it will not connect, try replacing the name samrdesktop with the IP address of that system. If it doesn't connect then, there is something wrong on the sever.
I'm a little confused by your statement (if it connects, there's something wrong, if it dosen't connect there's something wrong)
Tried the system name and the ip address (192.168.2.102:631), I got a timeout from the server.
I can ping the server from the client (get quite a few dups)
Guess I gotta look @ the server now.
Anywhere else I can look?
Thanx, Sam
Last edited by cybersam45; 05-04-2009 at 10:35 AM.
Reason: oops
If this will connect, then there is something wrong with the printer setup
I'm trying to find out if you can connect from the client to the server, specifically cups on the server. You connect to cups through port 631, unless you have modified the configuration to make it use some other port.
From this statement
Quote:
Tried the system name and the ip address (192.168.2.102:631), I got a timeout from the server.
you are not connecting. I see you can ping the server.
I think you need to find out if cups is running on your server. I would bet no at this point.
Open a konsole, and run the command 'ps aux | grep cups' ( just what is between the single quotes ).
I had the same problem and this what you need to do;
First get the cups driver for your printer.
verify cups and lpd are installed. usually this is done by default.
then you need to open a terminal as root to run the following syntax.
1) sudo aa-complain cupsd
2) sudo mkdir /usr/share/cups/model
3) ln -s /etc/init.d/cupsys /etc/init.d/lpd
4) mkdir /var/spool/lpd ( this is required if folder does not exist)
7) Command (for dpkg) : dpkg -l | grep (your priner here)
This to check the drivers installed
8) Open a web browser and go to "http://localhost:631/printers".
Click "Modify Printer" and set following parameters.
- "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect" for Device
- lpd://(Your printer's IP address)/ binary_p1 for Device URI
- your printer here for Make/Manufacturer Selection
- Your printer's name for Model/Driver Selection
the above is lower case upper case sensative
do a test print
my printer is connected to a 4 port switch and any pc in the network can print to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.