Just a short Tutorial today. It’s surprising how many people do not know this. To change the hostname under Linux, open a terminal window. Type the following code.
sudo nano /etc/hosts
and change the text to your new hostname. Changes will take effect on Restart.
To enter Root Terminal in Ubuntu, use Applications -> Accessories -> Terminal. Then type ’sudo -s’ and hit return. Type in your administrator password, hit [Enter] and you’re done.