[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Printer & localhost:631 -- Don't Give Up Yet



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)





Reply to: