1. In the terminal enter:
sudo gedit /etc/hostname
2. The file should be an empty text file. Save the file with the hostname you'd like to set.
3. In the terminal enter:
sudo /etc/init.d/hostname.sh start
4. Reboot.
sudo gedit /etc/hostname
sudo /etc/init.d/hostname.sh start