| Ubuntu: Change Hostname |
|
|
|
| Tech Notes - Linux |
| Written by Rick |
| Monday, 02 November 2009 09:20 |
|
I had to snag this one for posterity from http://www.ducea.com/2006/08/07/how-to-change-the-hostname-of-a-linux-system/ Â Permanent hostname change on Debian based systemsDebian based systems use the file /etc/hostname to read the hostname of the system at boot time and set it up using the init script /etc/init.d/hostname.sh
So on a Debian based system we can edit the file /etc/hostname and change the name of the system and then run:
to make the change active. The hostname saved in this file (/etc/hostname) will be preserved on system reboot (and will be set using the same script we used hostname.sh). |





