How to change your Hostname (Ubuntu)

1. First, open a terminal and type:
[email protected]:~$ gksu gedit /etc/hostname
You should see a line stating your current hostname. For eg. iPad

2. Change the hostname to something you desired. Save and close the file.

3. Back in your terminal, type:
[email protected]:~$ gksu gedit /etc/hosts
4. Change the line: iPad

to your-new-hostname

Save and close the file.
Reboot and your new hostname should appear in the terminal now.
*copy code without [email protected]:~$