====== Change Ubuntu hostname ====== Edit the /etc/hostname file - update it with the new desired hostname sudo vim /etc/hostname Also edit /etc/hosts and change the line which reads: 127.0.1.1 your-old-hostname to you new hostname Reboot