Click to See Complete Forum and Search --> : setting hostname


JesterDev
03-01-2004, 09:43 PM
When I log into gnome I get some error about my host name not being right. It looks like a mac address (LAN card) and then it says try again, login anyway.

How do I fix this?

The same address also appears in the console.

happybunny
03-01-2004, 09:45 PM
look at your /etc/hosts file...is your machine name in there?

what about in the /etc/sysconfig/network file?

JesterDev
03-01-2004, 11:17 PM
It's not in either. /etc/sysconfig/network has:

NETWORKING=yes

and /etc/hosts:

127.0.0.1 localhost

I'm not sure what to add to either.

happybunny
03-01-2004, 11:55 PM
my /etc/hosts file:

127.0.0.1 strider localhost.localdomain localhost



my /etc/syconfig/network file:

NETWORKING=yes
HOSTNAME=strider
GATEWAY=1.1.1.1