Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144483 - printing-howto needs an addition
Summary: printing-howto needs an addition
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: nm (RETIRED)
URL: http://www.gentoo.org/doc/en/printing...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-19 20:53 UTC by Caleb Cushing
Modified: 2006-09-05 07:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caleb Cushing 2006-08-19 20:53:03 UTC
I was having problems setting up a print server following this doc... my other linux box couldn't see the server. I looked at 

http://gentoo-wiki.com/HOWTO_Linux_printer_sharing_with_CUPS

and it told me to make sure that I had Port 631 in cupsd.conf sure enough it was commented. 

this should be added to the documentation in all relevant area's. but especially in the remote printer access section.
Comment 1 arthur_torrey 2006-08-25 15:39:46 UTC
I would like to confirm this bug, I encountered the same problem, where I could not print from my Gentoo box over the network to my printer attached to another (Ubuntu but it doesn't really matter)box.  The printer worked fine on the local box, but couldn't be seen from the remote box.  After following the existing doc in http://www.gentoo.org/doc/en/printing-howto.xml, the printer would appear when I browsed to the local box port 631 (as it should) but I could'nt make a test print.  Instead I would get an error message.  When I did "lpstat -t," I would get a connection refused error. 

I did extensive searching in the docs, on the forums, in some of my hard copy books, etc. and could not find the solution

I finally found the wiki article mentioned below, and read the following -

"When you set up the CUPS server to be accessed from CUPS clients for printing the client will try to access the CUPS server at the port you specified or the default port of 631. A quick way to find out if the client can connect to the CUPS server is to type: 
shell> telnet <cups_server_address> 631

If you are getting 
telnet: Unable to connect to remote host: Connection refused

this means the server has not opened outside connections to its CUPS port (631). In this case make sure that file /etc/cups/cupsd.conf on the CUPS server has the following line uncommented: File: /etc/cups/cupsd.conf 

Port 631 


And also, make sure the line that looks like this is commented out: File: /etc/cups/cupsd.conf 

# Listen 127.0.0.1:631 


These changes will allow access to the CUPS's server port from other computers."

I checked my cupsd.conf on the server box, and found that I had the EXACT problem described above.  As soon as I did the mentioned changes in what I had commented out, and restarted the server, everything started working properly.

PLEASE ADD THIS INFORMATION TO THE OFFICIAL DOCUMENTATION!!!

I consider this a major / blocker class bug as the lack of this information kept me from being able to make printing work!
Comment 2 nm (RETIRED) gentoo-dev 2006-09-03 19:24:06 UTC
I did some poking around in cupsd.conf and some testing...so I made sure that users will definitely have a working CUPS that listens to port 631; now both 127.0.0.1:631 and localhost:631 are commented out, since it's possible that users will have one or the other (or both) in their config. This is a universal fix.

Fixed in CVS, thanks for reporting.
Comment 3 Caleb Cushing 2006-09-05 07:31:28 UTC
as long as you haven't just turned every new install of cups into a print server that's listening for remote connections... what you've done is ok. 

if what you've done though is set it up as a print server by default this could be a bad thing... as in some situations I'm not sure people would want to readily share there printers to other *nix boxes.