User Tools

Site Tools


linux:ubuntu:ubuntu_server_hostname

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

linux/ubuntu/ubuntu_server_hostname.txt · Last modified: 2017/08/10 11:00 (external edit)