LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-12-2004, 04:19 PM   #1
SlawioG
LQ Newbie
 
Registered: Nov 2004
Location: Wroclaw, Poland
Distribution: Slackware 10
Posts: 6

Rep: Reputation: 0
Problem with starting CUPS in Slackware 10


I have a problem with running CUPS in Slackware10 - I always get "The connection was refused when attempting to connect to localhost:631 (or 127.0.0.1:631)" - i couldn't write it properly here, because of forum restrictions about url addresses :[ .Kprinter from KDE doesn't work also - I always get message that it wasn't able to connect to CUPS server. I've tried different versions of CUPS (1.1.20-i486-1 from Slackware CD and 1.1.22-i486 from Slackware current). I hadn't installed LPR/LPRng (so it's obviously not conflict with it). The demon is working fine, it's listening at port 631 (netstat -nl|grep 631 ,then lsof -i:631). I had thought at first that it has something to do with firewall, so I disabled firewall (/etc/rc.d/chmod a-rx firewall.rc) and rebooted. Nothing happened - the same problem. Then I thought that the problem is connected somehow to the hosts.deny and hosts.allow files in /etc/ so I hashed the lines #ALL: ALL and #ALL: ALL: DENY respectively. Cups still not working. Do you have any clues? I need help.

Last edited by SlawioG; 12-12-2004 at 04:28 PM.
 
Old 12-12-2004, 05:19 PM   #2
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Have you posted in the Slackware forum? I almost always get a good, fast answer there.

I'm no pro, and I often have trouble understanding log files, but the CUPS debug log helped me. You have to edit /etc/cups/cupsd.conf so as to turn on LogLevel debug. Then restart the CUPS daemon with "/etc/rc.d/rc.cups start". Then try to print something. Then look at the log at /var/log/cups/error_log.

Worked for me, but then my problem was pretty straightforward.
 
Old 12-13-2004, 02:17 AM   #3
iluvatar
Member
 
Registered: Jul 2003
Location: netherlands
Distribution: debian
Posts: 403

Rep: Reputation: 30
I had this problem too, solved it like this: /usr/bin/lpr linked to /usr/bin/lpr-cups. backup the original /usr/bin/lpr, then cd to /usr/bin and do "ln -s lpr-cups lpr". this is slackware related problem due to the fact slackware installs cups first, wich makes this link itself, but later on it installes lpr, wich overwrites the link.

greetz,
.-=~ iluvatar ~=-.

Last edited by iluvatar; 12-13-2004 at 02:19 AM.
 
Old 12-13-2004, 05:36 PM   #4
SlawioG
LQ Newbie
 
Registered: Nov 2004
Location: Wroclaw, Poland
Distribution: Slackware 10
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you for advice, but none of these eventually worked . I'm in need to use printer desperately, so I've decided to reinstall Slackware, after few days of fruitless struggle to find out why CUPS isn't working. Now it works fine (despite active firewall and other tweaks I usually make). It will be a mystery for me then. Thanks again.
 
Old 12-13-2004, 08:44 PM   #5
Slovak
Member
 
Registered: Oct 2004
Location: North Olmsted, Oh
Distribution: Slackware 10
Posts: 206

Rep: Reputation: 30
as root run "cupsd" to start the server first, then try to connect to it.
also run "chmod +x /etc/rc.d/rc.cups" to change permission for regular users

Last edited by Slovak; 12-13-2004 at 08:47 PM.
 
Old 12-13-2004, 08:58 PM   #6
SlawioG
LQ Newbie
 
Registered: Nov 2004
Location: Wroclaw, Poland
Distribution: Slackware 10
Posts: 6

Original Poster
Rep: Reputation: 0
As I said - it's working fine now. I always do maintanance jobs using root account, so the problem wasn't related to the permissions (I guess ). Thanks
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with starting CUPS in Slackware 10 (copy from the Software forum) SlawioG Slackware 2 12-13-2004 05:38 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Problem trying to install gnome cups manager on slackware acjt Linux - Software 2 07-05-2004 12:43 AM
Slackware 9 and CUPS (CUPS=crap) - printing carboncopy Slackware 21 07-29-2003 03:27 PM
KDE 3.0.1, CUPS, & Slackware problem DanMan101 Linux - Hardware 2 03-18-2003 01:01 AM


All times are GMT -5. The time now is 02:30 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