LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 03-01-2003, 06:52 PM   #1
gsmonk
Member
 
Registered: Nov 2002
Distribution: RedHat 9
Posts: 78

Rep: Reputation: 15
Question Cups printing question


Hello all,

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?

Thanks,
Greg

Last edited by gsmonk; 03-01-2003 at 06:53 PM.
 
Old 03-04-2003, 08:45 PM   #2
gsmonk
Member
 
Registered: Nov 2002
Distribution: RedHat 9
Posts: 78

Original Poster
Rep: Reputation: 15
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.

Thanks,
Greg

Last edited by gsmonk; 03-04-2003 at 08:55 PM.
 
Old 03-06-2003, 08:25 PM   #3
gsmonk
Member
 
Registered: Nov 2002
Distribution: RedHat 9
Posts: 78

Original Poster
Rep: Reputation: 15
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.

Thanks,
Greg

Last edited by gsmonk; 03-06-2003 at 08:31 PM.
 
Old 11-21-2006, 02:16 PM   #4
enyawix
Member
 
Registered: Sep 2003
Location: ky
Distribution: gentoo
Posts: 409

Rep: Reputation: 32
this is a cups or a kernel issue

I have same prob with a local usb printer.

What kernel are you running? what version of cups are you running?

E [21/Nov/2006:00:09:59 -0600] get_printer_attrs: resource name '/classes/Samsung' no good!

I [21/Nov/2006:00:12:12 -0600] Setting Samsung device-uri to "usb://Samsung/ML-2010" (was "file:/dev/null".)



Is this a cups or a kernel issue,
 
Old 11-22-2006, 12:03 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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.

Here are some links to help you:

http://www.linuxquestions.org/linux/...ter_using_CUPS
http://people.aapt.net.au/~frmrick/help/cups.html

HTH

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.

Last edited by tredegar; 11-22-2006 at 12:06 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing Problem (cups / cups-lpd) daleman Linux - Software 3 04-08-2005 08:01 AM
question on cups printing elantbird Red Hat 2 01-14-2005 03:44 PM
CUPS printing goestin Linux - Networking 5 11-18-2004 05:30 AM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration