Saturday, September 19, 2009

Change machine name in ubuntu

To change machine name in ubuntu use following command:

sudo gedit /etc/hosts /etc/hostname

for Xubuntu use command

sudo nanao /etc/hosts /etc/hostname

It will open two files in different tabs of geditor. Change hostname in both the files and save. Quit the geditor / nano

The machine name has been changed, re-login to see the change.

No comments: