Linux - SoftwareThis 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.
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.
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.
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.
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.
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.