Debian This forum is for the discussion of Debian Linux.
|
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-18-2003, 08:37 AM
|
#1
|
Member
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110
Rep:
|
CUPS problem! "localhost:631, connection refused"!!!
I'm a newbie with Debian (a couple of weeks now) and I'm having a terrible time setting up CUPS printing. I'm trying to print to a printer on a Windows pc on my home network. I've installed and configured SAMBA and I've installed CUPS. I've checked settings everywhere that I can find...
My /etc/hosts file:
127.0.0.1 debian localhost
# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
debian:/etc#
A section from my /etc/network/interfaces file:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet DHCP
A section from my /etc/cups/cupsd.conf:
#Port 80
#Port 443
Port 631
Listen 127.0.0.1:631
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
And finally, the listing from ifconfig:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:2697 errors:0 dropped:0 overruns:0 frame:0
TX packets:2697 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:231072 (225.6 KiB) TX bytes:231072 (225.6 KiB)
I've changed various settings in various files, restarted CUPS and still when I try to connect with localhost:631 to administer CUPS (using Mozilla), I receive a "connection refused" error. I'm at my wit's end!!! I "had" it working a few days ago (I could get to the html administration utility, I couldn't get the printer working!), but gave up in frustration! Since then, I've "changed" a number of things (I'm running Woody 3.0r1) and upgraded to Gnome2.2 and xfree86 1.4. I don't "think" this had an effect on things but...
Does anyone have an idea of where I might look?
Thanks in advance for your help!
|
|
|
10-20-2003, 05:13 PM
|
#2
|
Member
Registered: Sep 2003
Distribution: Debian/GNU
Posts: 30
Rep:
|
It almost sounds like cups is not running. If you run "/etc/init.d/cupsys start" does that fix it?
or
does "ps -auxw | grep cups" show a cupsd process in the background?
|
|
|
10-21-2003, 07:07 PM
|
#3
|
Member
Registered: Oct 2003
Location: Kentucky, USA
Distribution: Debian "SID"
Posts: 110
Original Poster
Rep:
|
CUPS/Localhost:631 Fixed...
I have fixed my CUPS problem with the "connection refused" when trying to connect with the html CUPS configuration program (localhost:631). I had to enable "hostnamelookups" in the cupsd.conf file.
I have not fixed my printing problem yet but at least I can get to the CUPS HTML administration utility! I was able to set up and configure the printer but print jobs are "aborted"!
My printing problem may be driver related... I have to enable debugging on the CUPS error_log file to get a better idea where the process is failing...
I'm printing to a Windows PC (via SAMBA)... Yes I know I would be better going the other way but this is my "learning" pc!!!! It has been cobbled together from spare parts and does not have USB. I have $22 (US) in it and I don't want to spend an more on it!!
The error is "stopped with status 22!" and I hope to research things a bit more.
I would appreciate any thoughts!
|
|
|
03-04-2009, 02:16 AM
|
#4
|
LQ Newbie
Registered: Oct 2004
Posts: 6
Rep:
|
Quote:
Originally Posted by robbow52
<Location />
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
|
Have you tried:
<Location />
Order Deny,Allow
Deny From All
Allow From All
</Location>
|
|
|
03-04-2009, 02:24 PM
|
#5
|
Senior Member
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824
|
Do you bump six year old posts often?
|
|
|
03-04-2009, 02:27 PM
|
#6
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep:
|
Bah, <kicks self for not looking at date>
|
|
|
All times are GMT -5. The time now is 03:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|