DISCUSSION: Setting Up a Network Printer using CUPS
LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
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.
Yep, that looks very cool: a nice succinct howto I am bound to say! But then there are the obscure hiddens and gotchas like: what do you put in the printer URI if you are using a multi-function printer e.g.: HP Officejet R45 that uses hpoj?
Also you refer to the ipp printer path as ipp://server_ip_address/printer/printer_name which unfortunately is not necessarily always the case. Is that printer singular or printers plural and does that have to match the <Location /Printers>tag in the cupsd.conf file?
Good question! Since I don't have a multi-function printer to test, I can offer a big I don't know. My apologies.
However, I do know that the "printer" is singular and the printer_name needs to match the cupsd.conf file on the server machine. I got most of my info from this CUPS System Amdministrator's Guide. That may give you some more info for a muliuse printer.
After installing CUPS, /etc/rc.d/rc.cups is not executable by default.
One needs to "chmod +x /etc/rc.d/rc.cups" then execute it.
Once it is changed to executable, it will start at boot.
If it is not chmodded, you cannot run "/etc/rc.d/rc.cups start" like the tutorial says.
Just a FYI.
Hello all,
This is good info as in most of LQ. I have a printer it is an HP photosmart 2710 with a network connection sitting on my network with an ip of xxx.x.xx.xxx . I have spent numerous hours trying to get it to work. This printer is not connected to any computer on my network. I have cups installed nothing special there. I also removed LPRNG this program conflicts with cups. In cups set up your printer and set it to Device URI: socket://xxx.xx.x.xxx the ip of the printer also set it for the default printer and mine worked like a champ. After doing hours of reading and hunting I could not find info for stand alone printers on a network. I also used the web browser to set up the printer on cups using http://127.0.0.1:631 use your root account and password and configure the printer. Also start up /etc/rc.d/rc.cups . I wanted to share this because printers have been a real sore spot for me for the past years using Linux.
Rick
I have been running an HP Photosmart 8450 as a stand-alone networked printer... and having no problems printing to it with both my windows and Linux computers.
As a "for example", here are the approximate steps I took to make it work...
You should now see the cups web interface. Go to add a new printer... when you get to the Device URI field, enter the string given previously by the "hp-makeuri" command, which should look something like
This procedure does not work for me. When attempting to 'add printer' using localhost:631 am asked to enter User Name and Password for CUPS. Have tried Administrator(root) and password for host and user id & password for client.
This procedure does not work for me. When attempting to 'add printer' using localhost:631 am asked to enter User Name and Password for CUPS. Have tried Administrator(root) and password for host and user id & password for client.
Client system is Kubuntu 6.06.
neither for me well the root + root passwd... I am running SuSE 10.1
This was most helpful to me. I've had networking to Windows printers and to Linux printers from windows down for some time, but this was the first time I have tried networking printers in a Linux only network. I hit one stumbling block not mentioned, if you are running Firestarter or another "firewall" program, be sure and tell it you have to have port 631 open. Took me a couple of hours of work to figure out what the problem was.
You should now see the cups web interface. Go to add a new printer... when you get to the Device URI field, enter the string given previously by the "hp-makeuri" command, which should look something like
hp:/net/Photosmart_8400_series?ip=192.168.0.20
Print a test page and see if it works.
Hey that "hp-makeuri" is an awesome command! Thanks ylikone!
I followed the above thread and comments - but no joy.
My problem was with the server. The printers I'd set up (different
dpis) were visible from the client but the client couldn't print
to the printers. I'd get error messages.
I changed a few more settings and lo and behold.... there was joy.
These were:
#To listen to all hosts on your subnet - not just the server....
From Listen localhost:631 to Listen *:631
#To allow other hosts on the subnet to access the server....
Allow from @LOCAL
#To broadcast to other hosts on the subnet from the server....
BrowseAddress @LOCAL
# @LOCAL eliminates the need to know other client addresses on the lan.
# Probably quite useful in the case of DHCP.
b.
Last edited by Bill-3; 03-03-2009 at 04:46 PM.
Reason: Adding additional information
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.