LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 04-15-2002, 04:43 PM   #1
scobapro
LQ Newbie
 
Registered: Apr 2002
Location: Rexburg, ID
Distribution: Red Hat 7.2
Posts: 8

Rep: Reputation: 0
Angry weird /etc/inittab /etc/hosts problem in Gnome


after installing Red Hat 7.2 with GNOME I began noticing a few strange problems. First, I get a command prompt login instead of the GUI. startx works fine, but this seems strange because I have checked /etc/inittab and it is set to '5' and not '3'. After starting X I get a message that says GNOME couldn't find "probasco-r" (that's my last name and first initial) and that I should add it to /etc/hosts. I tried this, and after rebooting I got the GUI login, but my internet connection (broadband ethernet) quit working. After messing around with my network settings forever, I gave up and reinstalled Red Hat (again with GNOME). This solved my internet problem, but I still have to use startx and I still get the GNOME error.
I would really appreciate any suggestions anyone has!
 
Old 04-15-2002, 08:20 PM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Could you post the contents of /etc/hosts, as well the name that gets returned when you run the hostname command?
 
Old 04-15-2002, 09:04 PM   #3
scobapro
LQ Newbie
 
Registered: Apr 2002
Location: Rexburg, ID
Distribution: Red Hat 7.2
Posts: 8

Original Poster
Rep: Reputation: 0
okey dokey....

/etc/hosts:
127.0.0.1 localhost.localdomain localhost

hostname:
probasco-r

thanks for having a look at this!
 
Old 04-16-2002, 04:02 AM   #4
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
In /etc/hosts, add an entry for your NIC's IP with a corresponding hostname (and optionally, an alias). My /etc/hosts looks like this:
127.0.0.1 localhost.localdomain localhost
192.168.0.2 penguinbox.localdomain penguinbox

Replace "192.168.0.2 penguinbox.localdomain penguinbox" with your IP and hostname. If you obtain your IP info via DHCP from your ISP, this won't work; I'd do the research on how to make that work, but it's getting late, so I have to log off for now and get some sleep...

Last edited by DMR; 04-16-2002 at 04:03 AM.
 
Old 04-16-2002, 11:59 AM   #5
scobapro
LQ Newbie
 
Registered: Apr 2002
Location: Rexburg, ID
Distribution: Red Hat 7.2
Posts: 8

Original Poster
Rep: Reputation: 0
Right that makes sense...

When I put probasco-r.localdomain probasco-r
int /etc/hosts I used the IP 127.0.0.1 which I understand is some sort of reference to my computer. In a way that kind of explains the reason the internet quit working when I added this line.
Right now I'm pretty sure my IP address comes from my ISP and isn't always the same. Should I talk to them and find out how it works?

Thanks for your time.
 
Old 04-16-2002, 03:51 PM   #6
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Quote:
Originally posted by scobapro
When I put probasco-r.localdomain probasco-r
int /etc/hosts I used the IP 127.0.0.1 which I understand is some sort of reference to my computer.
Right. The 127.0.0.1 address is reserved for the loopback device, which is a special, virtual device used by machines running TCP/IP.
Quote:
In a way that kind of explains the reason the internet quit working when I added this line.
Yes, same as above.
Quote:
Right now I'm pretty sure my IP address comes from my ISP and isn't always the same. Should I talk to them and find out how it works?
Good luck! With most ISPs, you can expect a looooong pause on the other end of the phone the minute you say "Linux".


Here's something that might work-
Entries in /etc/hosts can have more than one alias associated with them. Try using "probasco-r " as a second alias for the localhost entry:
Code:
127.0.0.1 localhost.localdomain localhost probasco-r
You'll probably have to restart your network services (or just restart the 'puter) for the change to take effect.

Last edited by DMR; 04-27-2002 at 04:48 AM.
 
Old 04-16-2002, 05:46 PM   #7
scobapro
LQ Newbie
 
Registered: Apr 2002
Location: Rexburg, ID
Distribution: Red Hat 7.2
Posts: 8

Original Poster
Rep: Reputation: 0
works perfectly!
Thanks for all of the help! I never would have found it on my own.
--scobapro
 
Old 04-17-2002, 12:31 AM   #8
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Sweet, glad it worked out.

Last edited by DMR; 04-17-2002 at 12:33 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
weird problem with gnome splash screen +0+4|_ n00b Linux - Newbie 1 01-31-2005 12:32 AM
Weird Gnome problem drummervin Linux - Newbie 1 11-29-2004 03:27 AM
dropline gnome - weird problem cb951303 Slackware 2 09-02-2004 08:02 AM
weird Dropline Gnome problem with iptables Gates1026 Slackware 2 02-19-2004 08:50 AM
/etc/hosts gnome problem stunhcterts Linux - Software 7 03-13-2003 05:22 AM


All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration