Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing on a RedHat 9 box

Status
Not open for further replies.

TheBigBasicQ

Programmer
Dec 20, 2001
107
IN
I installed my HP laserjet 6L on my Red Hat box(actually, Kudzu automatically detected it ^^). I cant print anything. When I add a queue it adds it fine. But when I try printing a test page it just gives me an error "Check whether CUPS is installed and running" or "Could not connect to server - service unavailable". CUPS is installed and is running. I searched the man pages for help. But all it could tell me was to see the docs at or something. I couldnt see it because of the error i get(see below).

Another error that I am coming across is that when I type in localhost or 127.0.0.1 in mozilla I get an error that the connection was refused. Why should it say so?

Nobody is perfect =(
.
.
.
.
I am nobody =D
 
As root, run 'netstat -pnat' and see if anything is listening on port 631. I get something like this:
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State  PID/Program name
tcp        0      0 0.0.0.0:22    0.0.0.0:*       LISTEN 23098/sshd
tcp        0      0 127.0.0.1:25  0.0.0.0:*       LISTEN 5246/sendmail: acce
look for <address>:631 in the Local Address column. If nothing shows up, try starting the cups service (/etc/init.d/cups start). You say it's running though. Possibly some host-based permissions to get right, or cups tried to start, then died and you didn't realize it? Honestly, about a year ago I printed a test page after installing Linux on a box. That was the ONLY time I've ever printed using the penguin ;-)

As for the connection refused, checking the output from netstat and see if anything is listening on port 80 (sounds like it isn't). Do an /etc/init.d/httpd start and you should be ok.

Probably should also check to see if /etc/hosts has a '127.0.0.1 localhost' line it. Sounds like it does though, since it knew where to look to get a connection refused.

----
JBR
 
Hi,
I tried starting httpd but it is giving me this error:
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName ....[FAILED]

I checked out /etc/hosts and i found just a 127.0.0.1 entry so i changed it to &quot;127.0.0.1 localhost&quot;(without the quotation ofcourse) And CUPS is running. But I cant still print =(. Its still saying:

There was a problem sending CUPS test page to 'lp0' queue: lpr: unable to print file: server-error-service-unavailable

When i enter the control centre, I get the following error:

&quot;Unable to retrieve the printer list. Error message received from manager:
Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. Error: connection refused.&quot;

I think my system's domain name isnt configured properly which is why i am receiving such errors.

Nobody is perfect =(
.
.
.
.
I am nobody =D
 
You need to edit /etc/httpd/httpd.conf, search for &quot;ServerName&quot;, and edit/uncomment it so that it says:
ServerName localhost

Give that a shot, restart httpd, see what happens.

----
JBR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top