Red Hat General - TCP/IP problems, RH 8 can't print

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat General > February 2004 > TCP/IP problems, RH 8 can't print





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author TCP/IP problems, RH 8 can't print
Damon

2004-02-05, 5:37 am

Hi.

I screwed up my TCP/IP when trying to put this machine behind a
Smoothwall Express firewall. I've since put that project on hold and am
trying to simply get my RH pc working again.

The printer won't print and OpenOffice crashes if I try to save. I
think both are related to the error message I got from Gnome at startx
"Gnome might not work correctly. Try putting localhosts.localdomain in
/etc/hosts.

Well, I put that back in manually, but it didn't solve anything. I have
tried using the RH network gui tools to get this working again and they
have put the following into my /etc/hosts file.

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.168.0.101 localhost.localdomain drPC

192.168.0.2 is the IP address of my wired/wireless router. It provides
DHCP through an ethernet NIC to this PC and via wireless to a second.

So why won't lpd work? I can't print from Emacs, or even run the test
page from RH's printer tool. Why does OpenOffice crash? And as
importantly, what do I do to fix this mess I've made?

Thanks!

-- Damon
damonriley AT alumni DOT umass DOT edu

Scott Lurndal

2004-02-05, 8:19 am

Damon <damonriley@DONTSPAM.alumni.umass.edu> writes:
>Hi.
>
>I screwed up my TCP/IP when trying to put this machine behind a
>Smoothwall Express firewall. I've since put that project on hold and am
>trying to simply get my RH pc working again.
>
>The printer won't print and OpenOffice crashes if I try to save. I
>think both are related to the error message I got from Gnome at startx
>"Gnome might not work correctly. Try putting localhosts.localdomain in
>/etc/hosts.
>
>Well, I put that back in manually, but it didn't solve anything. I have
>tried using the RH network gui tools to get this working again and they
>have put the following into my /etc/hosts file.
>
># Do not remove the following line, or various programs
># that require network functionality will fail.
>192.168.0.101 localhost.localdomain drPC


Change it to:

127.0.0.1 localhost.localdomain localhost
192.168.0.101 drPC

scott

Damon

2004-02-05, 1:35 pm

Wow, Scott. That worked. Wish I knew why! But I just bought a book on
TCP IP and hopefully I'll be answering my own question. Thanks so much!

-- Damon

Scott Lurndal wrote:
> Damon <damonriley@DONTSPAM.alumni.umass.edu> writes:
>
>
>
> Change it to:
>
> 127.0.0.1 localhost.localdomain localhost
> 192.168.0.101 drPC
>
> scott
>


Chris

2004-02-07, 5:35 am

>> Change it to:
[color=blue]
> Wow, Scott. That worked. Wish I knew why! But I just bought a book on
> TCP IP and hopefully I'll be answering my own question. Thanks so much!


It's not really an ip issue. The short answer is that many services and
programs rely on the name 'localhost' resolving to 127.0.0.1.

Funny work story. One of the techs had modified all of the host files
on the HPs and dropped the localhost line. Everything worked fine until
the DNS server died because the DNS server would always resolve localhost
to 127.0.0.1. Took him a day to figure it out.

-Chris


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com