Edit /etc/hosts.
Copy the line that says
Code:
127.0.0.1 localhost.localdomain localhost
immediately below and change the last localhost for whatever you want to name your computer. At the end you should have something like this:
Code:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost.localdomain MyLinuxBox
where MyLinuxBox can be whatever you choose.
Then edit /etc/sysconfig/network, comment out the HOSTNAME line and type a new
Code:
HOSTNAME=MyLinuxBox
where MyLinuxBox is whatever you typed in /etc/hosts. At the end it should look something like this:
Code:
NETWORKING=yes
#HOSTNAME=localhost.localdomain
HOSTNAME=MyLinuxBox
Reboot your box
Good luck