Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
I have a laser printer i have setup on a RH8 machine using the CUPS system. I can print from it locally, fine. My issue is that i have setup another rh8 machine and i would like to print to that laser printer remotely. I have setup cups on it and tried to access the printer through the cups web interface, using the http and ipp sections but to no luck. What am i doing wrong?
I got the printer to show up on the cups web interface on the remote system, by adding BrowseAddress 192.168.1.255(the boardcast address for my network) to my cupsd.config file on my printer server (the pc thats directly connected to the printer). But when i try to print it kicks this message, "The connection was refused when attempting to contact hostname.domain.com:631." I check the error logs on the remote system and it says, "E [03/Mar/2003:22:15:27 -0500] [Job 12] Unable to get printer status (client-error-not-found)!" On the print server the error log reads, "E [03/Mar/2003:22:15:33 -0500] get_printer_attrs: resource name '/samsung' no good!" I also notice the remote pc ip address is being logged in the access log on the printer server, as well.This looks like an access,permissions, and/or security problem in the config files of the cups server. Has anyone had the problem before? Or can anyone offer advice? I looked at the cupsd.config file on the print server and the security section seems fine at it default values, but i experimented to no affect. I know the problem is my lack of knowledge, but i'm tring to read and understand. I am at a loss.
Actually I had the server error log wrong. It was "Unsupported format 'application/octet-stream'. Hint: Do you have the raw file printing enabled?" So I uncommented the raw filter in the mime.convs and in the mime.type config files in /etc/cups/(on the cups server). I am now able to print from my samba client now. But my RH8.0 client machine still couldn't. So I experimented. I went to the "Printer System Switcher" and switched from cups back to lpr and rebooted. During the reboot I went to the CUPS server (another RH8 machine as will) and under "server settings"-"services" I enabled "cups-lpd" (which according to the description. it states that it supports the lpd protocol communication with CUPS). Once the client machine rebooted I used the standard printing tool in rh8 to add a lpd printer. It worked great. It can print to the remote cups printer using lpd. Dont get me wrong, i am happy that it is finally printing. But I am still wondering why cups(client) to cups(server) communications are not working. I think my main problem with it was on the remote rh8 machine, the cups client. The remote printer would show up but when I went to print the test page (or any other doc), it kicked, "the connection was refused." Does anyone have any ideas on what I need to do on the cups client configuration(i mean the remote rh8 pc). I don't really know if I should be editing the cupsd.conf and/or the client.conf files(on the client pc). Heck to be honest I don't have a clue right know until I do further research. Any thoughts, advice, tips, or extra knowlegde would be apprectiated.
gsmonk, cups has quite a lot of configuration options.
As you have probably already found, they are set in /etc/cups/cupsd.conf and this file is well commented.
To avoid "connection refused" you need to set your cups server to allow connections from the machines on your network. You will also need to open port 631 on your firewall, if you have one running on your machine.
Edit Remember that the server is the one controlling the printer, so on the client machine, when you tell the cups client about the printer on the server, refer to it as a "Raw Printer", you don't have to select its manufacturer or model from the list, the server knows this information, all you need to do is give the printer a suitable name and description.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.