LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-16-2003, 10:10 PM   #1
Ro_laids
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Rep: Reputation: 0
Newbie Login Error HELP!


Hey guys,
Here's the deal I'm so new to Linux Im lucky I got this far. I'm using Red Hat 8.0 personal. I've installed the OS everything is loaded nic card sound card vid card etc. everything even works. However, when I try to login in to Linux I get this error " Could not look up internet address for (my Computer name). This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding (my computer name) to the file /etc/hosts."
"Then I get the options to login anyways or Try again. "


How can I fix this issue?
Remember i'm really new to Linux so please be as descriptive as possible. I've tried to access etc/host but I'm to far lost to fix the problem.
 
Old 04-17-2003, 01:09 AM   #2
jackopa
LQ Newbie
 
Registered: Nov 2001
Distribution: Red Hat
Posts: 23

Rep: Reputation: 15
Ro_laids
I had this exact same problem and was able to solve it by running /sbin/ifconfig to show my IP address, then used vi to add the line-- "xxxxx(my ip address) yyyy(my hostname) below the already existing line for localhost loopback address of 127.0.0.1 -- then just log out and in again and it works.
 
Old 04-17-2003, 01:34 AM   #3
Ro_laids
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Original Poster
Rep: Reputation: 0
"Ro_laids
I had this exact same problem and was able to solve it by running /sbin/ifconfig to show my IP address, then used vi to add the line-- "xxxxx(my ip address) yyyy(my hostname) below the already existing line for localhost loopback address of 127.0.0.1 -- then just log out and in again and it works."


Thanks for the reply! One more question though. When in (VI) what do I do then? I'm really knew to vi. I dont know what to type in vi... Call me an idiot if you will, but I'm still learning this whole Linux thing and to tell you the truth I'm actually having fun doing it.
 
Old 04-17-2003, 03:35 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
When you first start vi press [i] to enter insert mode. Then just type in the line you need, then press [esc], then press [:], then type wq[enter] to save the file.
 
Old 04-17-2003, 05:26 PM   #5
Ro_laids
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Original Poster
Rep: Reputation: 0
x1-6-00-50-bf-1e-f6-02# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost




This is what etc/hosts looks like after I start messing with VI. LOL Im loving this.... Ok I realize this isnt right. How do I fix the very top line where I tried to insert my computer info? And also Am I even in the rigth spot to fix the login error that Im having? If so I erally dont understand what I have to type "the actual line that will fix my problem" I know I have to use my ip addy and computer name but what format do I use to enter it in VI. Im so lost... HA gotta love us newbies.... Ill keeptryin g stuff maybe Ill figure it out on my own. That would be good for me. Help plz guys!!!
 
Old 04-17-2003, 05:43 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Well, I was just trying to help you use vim, and I don't really know the answer to your problem (I don't use gnome), but I believe jackopa suggested adding this line:
Code:
00.00.00.00 mycomputer
where '00.00.00.00' is your ip address, and 'mycomputer' is your hostname. I get the impression however, that you have not set your hostname yet. I would do so using the hostname command ie:
Code:
hostname mycomputer
Then edit your /etc/hosts file so it looks like:
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain mycomputer
This may do the trick for you, else, follow jackopa's advice.
 
Old 04-17-2003, 08:19 PM   #7
Ro_laids
LQ Newbie
 
Registered: Apr 2003
Posts: 6

Original Poster
Rep: Reputation: 0
THANKS A MILLION GUYS!!!!!! We got it working beautifully. I took everyones advice here so thanks to you all. I feel like a kid in a candy store. HA I ended up trying to edit etc/hosts using VI but I think I need to read some more on the whole vi thing I can get around in there but not real well give me some more time and I think I will grasp it with ease. I ended up editing using the gnome network configuration tool. (easy way) I used my ip addy and host name in the editing and logged out and then back in and presto problem GONE! WOW that was really easy thanks.....



JAY
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie gentoo login rfw62 Linux - Software 3 05-02-2005 04:37 PM
Newbie with login troubles mclieu Fedora 14 03-07-2005 04:27 PM
Newbie needs help with login larrabee Fedora - Installation 8 10-04-2004 01:49 PM
[Newbie problem] No graphical login togp Linux - Newbie 7 05-07-2003 12:24 PM
Complete Newbie, login probs clyne Linux - Newbie 8 07-28-2001 02:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:07 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
Open Source Consulting | Domain Registration