LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 11-26-2003, 06:50 AM   #1
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 81

Rep: Reputation: 15
lp filename yields "cannot open connection to localhost - Connection refused"


I am using CUPS on Slackware. When I try to print from a shell, using lp or lpr, I get:

cannot open connection to localhost - Connection refused
Make sure the remote host supports the LPD protocol
and accepts connections from this host and from non-privileged (>1023) ports
Waiting 10 seconds before retry

But localhost is reachable (ping and telnet work). I can also print from KDE applications, but not from shell!
 
Old 11-26-2003, 07:35 AM   #2
ter_roshak
Member
 
Registered: May 2001
Location: Everett, WA
Distribution: Gentoo, RedHat
Posts: 102

Rep: Reputation: 15
Is it one specific file, or any file that you try to print from a shell? Also, I have had problems in the past when I have had the lpd service started and CUPS started...it didn't work...so you may want to verify that.

Josh
 
Old 11-26-2003, 07:39 AM   #3
jjge
Member
 
Registered: Jun 2003
Location: Kalkar, Germany
Distribution: Slackware
Posts: 81

Original Poster
Rep: Reputation: 15
it happens with any (printable) file from my home dir.
 
Old 12-28-2003, 11:02 PM   #4
Sumerman
LQ Newbie
 
Registered: Dec 2003
Posts: 1

Rep: Reputation: 0
Most likely you also installed lprng when you installed CUPS in Slackware. Run removepkg on the lprng package (see /var/log/packages to see if you have installed the lprng package). If it's there, that is probably the problem. After you have removed lprng, you will probably need to reinstall CUPS and perhaps reinstall your printer again. Under CUPS, lpr is a symbolic link to lpr-cups. If you have installed lprng on top of CUPS, the symbolic link doesn't exist and you are actually running the lpr that is part of lprng rather than lpr-cups.

Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS problem! "localhost:631, connection refused"!!! robbow52 Debian 5 03-04-2009 01:27 PM
"Connection refused by localhost..." but why? anindyanuri Linux - Networking 2 03-18-2005 11:30 AM
ircd.conf: "Connection failed. Error: Connection refused" hamish Linux - Software 3 03-10-2005 07:23 AM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 07:49 AM
"connection refused" on port 993, when not coming from localhost spam4scott Linux - Networking 2 07-14-2003 06:35 AM


All times are GMT -5. The time now is 11:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration