Eureka Moment Wiki

One eureka moment at the time

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

Discussion

Enter your comment:
K V​ O Z I
 
linux/ubuntu/ubuntu_server_hostname.txt · Last modified: 2019/10/31 09:05 (external edit)