Changing from localhost?
I know this might seem like a pretty newb-ish question but how do I change my hostname permanently, I know how to change it temporarily with the hostname command, but I want it to stay that name even when I reboot.
Any help? |
Edit /etc/hosts.
Copy the line that says Code:
127.0.0.1 localhost.localdomain localhost Code:
127.0.0.1 localhost.localdomain localhost Then edit /etc/sysconfig/network, comment out the HOSTNAME line and type a new Code:
HOSTNAME=MyLinuxBox Code:
NETWORKING=yes Good luck |
Excellent!
I knew the network file was there, but didn't know to edit the hosts file. Thank you. |
No problema. Thats what we are here for.
|
All times are GMT -5. The time now is 11:59 AM. |