To get started, press Ctrl – Alt – T on your keyboard to open the Terminal. Next, type the command below to open the hostname file.
gksu gedit /etc/hostname
Then change the name to whatever you like and save the file.
Next, while command console is still open, type the command below to open the hosts file.
gksu gedit /etc/hosts
Finally, change the name shown to complete the change and save the file.
Enjoy and Good Luck!!!