Re: Printer & localhost:631 -- Don't Give Up Yet
On Thu, 18 Aug 2005 19:59:05 -0700 using the keyboard as a tool Jeff crafted
these words:
|- Charlie,
|-
|- That looks like our winner. As you can see, you have three interfaces.
|- The "lo" interface is your loopback interface. This should be
|- configured with the IP address 127.0.0.1. Apparently it isn't.
|-
|- The quick fix is to run "ifconfig lo 127.0.0.1" as root and you'll be
|- able to ping localhost. I'm not sure you'll be able to configure CUPS,
|- as I think this is a name resolution issue as indicated in the CUPS
|- logs.
|-
|- There is a reason for this however and I hope someone else will chime
in
|- here with some comments. In your email off list your /etc/hosts file
|- has the following line at the top:
|-
|- 127.0.0.1 localhost
|-
|- Let's change this to:
|-
|- 127.0.0.1 localhost localhost.localdomain ariestao
|-
|- I haven't seen your /etc/network/interfaces file, but make sure you
have
|- a stanza in there somewhere along the lines of:
|-
|- # The loopback network interface
|- auto lo
|- iface lo inet loopback
|-
|- I *think* when your lo interface is restarted it should be assigned the
|- address 127.0.0.1. Just for further verification, can you make sure
|- your /etc/nsswitch.conf has a line like this:
|-
|- hosts: files dns
|-
|- We want to make sure that when CUPS starts and looks up the host
|- "ariestao" it is configured to look in "files" (/etc/hosts) where it
|- resolve correctly.
|-
|- Anyway, once you have verified nsswitch.conf is correct, restart CUPS
|- and that name resolution error should be gone.
|-
|- Post again with your results.
|-
|- -Jeff
|-
|- > |- What does "ifconfig -a" show? Can you clarify what error your
|- > browser
|- > |- was giving when you tried to connect to http://127.0.0.1:631/?
|- >
|- > ariestao:~# ifconfig -a
|- > eth0 Link encap:Ethernet HWaddr 00:C0:9F:38:31:75
|- > BROADCAST MULTICAST MTU:1500 Metric:1
|- > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
|- > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
|- > collisions:0 txqueuelen:1000
|- > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|- > Interrupt:4 Base address:0x1800
|- >
|- > lo Link encap:Local Loopback
|- > LOOPBACK MTU:16436 Metric:1
|- > RX packets:0 errors:0 dropped:0 overruns:0 frame:0
|- > TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
|- > collisions:0 txqueuelen:0
|- > RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|- >
|- > ppp0 Link encap:Point-to-Point Protocol
|- > inet addr:144.139.163.21 P-t-P:139.134.24.241
|- > Mask:255.255.255.255
|- > UP POINTOPOINT RUNNING NOARP MULTICAST MTU:576 Metric:1
|- > RX packets:1564 errors:0 dropped:0 overruns:0 frame:0
|- > TX packets:1162 errors:0 dropped:0 overruns:0 carrier:0
|- > collisions:0 txqueuelen:3
|- > RX bytes:596135 (582.1 KiB) TX bytes:59323 (57.9KiB)
|-
|-
|-
Jeff, you have it. Absoloominlootly marvellous, you are a legend.
I had to change nothing at all, and you just caught me in time. I went out to
cut some Tagasaste for the sheep, and thought, before I reinstall, I would
have another look. There was your post.
I just did as you said:-
ifconfig lo 127.0.0.1
And then in Firefox tried http://localhost:631 and there it was, CUPS up and
ready.
My /etc/hosts file is:-
127.0.0.1 localhost
<my netaddress for this machine> ariestao
Thanks to Mirko, and the way to find the address for this machine, because of
my doubt, and it still not working to Clive.
My /etc/hostname file is:-
ariestao <my netaddress for this machine>
I think that's all that is different. Have a worked on several files, but have
returned everything else to "as was" when it didn't work.
Now I will configure my printer and see if that works as it should.
I have to thank you for your time and perseverance, and timing as well.
Thank you very much indeed.
Charlie
*************
Registered Linux User:- 329524
+++++++++++++++++++++++++++++++++++
My facts shall be falsehoods to the common sense. I would so state facts that
they shall be significant, shall be myths or mythologies. Facts which the mind
perceived, thoughts which the body thought -- with these I deal.
.............................Henry David Thoreau
***********************************************
Trying Linux Debian Sarge
_____________________
Reply to: