Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Desktop / X-Windows
Reload this Page Any ideas?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Desktop / X-Windows Anything X. Gnome, KDE, remote desktop's, XGames etc.

Reply
 
Thread Tools Display Modes
Old 01-11-2003   #1 (permalink)
NegativeXero
Just Joined!
 
Join Date: Jan 2003
Posts: 1
Any ideas?

When I start gnome .. I get an error and it tells me that there is a problem and it might be fixed by adding dhcp-966-63 to the /etc/hosts .. i did i added that exactly and im still getting the error it says that gnome might not work correctly .. if this error isn't fixed then it gives me an option to try again or continue anyways .. just wondering if there is a way to fix this ... i think it has something maybe to do with my isp or something but im really not sure thanks for reading this. I am running Redhat 8.0

PS I am very newbie so if you have suggestions please try and be discriptive in how to do things
NegativeXero is offline   Reply With Quote
Old 01-11-2003   #2 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
What is your network configuration? Ie. what network cards do you have and what IP addresses are assigned to them. It's not the name of the cards themselves that I am after, but the interface names. If you don't know, start a terminal, and run "/sbin/ifconfig -a". That will list all interfaces and their data.
Also, what is your hostname? Get this by running "hostname" in the terminal.
Dolda2000 is offline   Reply With Quote
Old 01-11-2003   #3 (permalink)
majorwoo
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
it sounds like he is letting DHCP assign his hostname also, so he may have added it - but it has probably changed since then.
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 01-11-2003   #4 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Yes, but shouldn't the dhcp client daemon add that to /etc/hosts, in that case?
Dolda2000 is offline   Reply With Quote
Old 01-11-2003   #5 (permalink)
majorwoo
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
i dont think that is the default , i think you would have to add a line to /etc/dhclient-exit-hooks to get that functionality - otherwise if you use a static hostname (which is more common i believe) it would overwrite it everytime, or spend time checking.
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 01-11-2003   #6 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
Now that you mention it, it's really not impossible. But it should at least be possible to configure dhclient not to set the hostname to what it got. I wouldn't imagine that it's actually used later.
Dolda2000 is offline   Reply With Quote
Old 01-11-2003   #7 (permalink)
genlee
Linux Engineer
 
Join Date: Jan 2003
Location: Lebanon, pa
Posts: 994
echo "pick a hostname" > /etc/hostname
echo "127.0.0.1 localhost hostname-you-picked" > /etc/hosts
genlee is offline   Reply With Quote
Old 01-11-2003   #8 (permalink)
majorwoo
Linux User
 
Join Date: Jul 2002
Location: Daytona Beach, FL
Posts: 487
Send a message via AIM to majorwoo
that is a wonderful onetime fix - next time he gets a different IP DHCP will overwrite this if he is getting his hostname from DHCP.\

Check your /etc/sysconfig/network for a line

HOSTNAME=your_host_name

if that line exists DHCP will not set your hostname for you(at least mine doesn't, so Im assuimg this is where it gets it from), so you can then add

127.0.0.1 your_host_name to /etc/hosts and gnome should be happy.
__________________
majorwoo

Quiet brain, or I\'ll stab you with a Q-tip.
majorwoo is offline   Reply With Quote
Old 01-11-2003   #9 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
I'm sorry I can't speak for dhclient anymore... I've had to reinstall pump since dhclient wouldn't properly release leases and so made my DDNS unreliable.
Anyway, I think that all the HOSTNAME setting in /etc/sysconfig/network is used for is for actually setting the hostname. I don't think dhclient or any of its wrapping scripts uses it for not updating the hostname. Don't you think that yours just doesn't update the hostname since it doesn't get one from the DHCP server? Of course, it wouldn't hurt setting it, and it might be that if you don't have a proper hostname, dhclient will update it at will.
Anyway, isn't there an option for dhclient not to update the hostname?

I, too, would recommend against genlee's fix, however. Not only is it not RedHat compatible, it is also, as majorwoo stated, just a one time fix. The next time you update your lease, the hostname will be changed nonetheless.
Dolda2000 is offline   Reply With Quote
Old 01-11-2003   #10 (permalink)
genlee
Linux Engineer
 
Join Date: Jan 2003
Location: Lebanon, pa
Posts: 994
It will work with redhat, just make the proper changes to where the files are located it. I use it with dhcpcd and it works. Dhcp does not overwrite any of my changes.
genlee is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
useradd script ideas? jwilliams Linux Programming & Scripting 7 06-04-2006 11:07 PM
Good ideas / bad ideas for everyone Mazza The Coffee Lounge 4 09-10-2005 02:19 AM
Slackware A setup only, not working, any ideas? Dredd2032 Slackware Linux Help 3 09-10-2004 10:05 AM
Ideas to make installs simpler. - Anonymous Installation 1 03-18-2004 05:22 PM
programming ideas big_k105 Linux Programming & Scripting 10 11-11-2003 03:43 AM




All times are GMT. The time now is 01:35 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0