Recently released Ubuntu 18.04. So I want to show how to change the hostname from Ubuntu 18.04. This is not the same as Ubuntu old version. It’s some critical for the new user.
★ How To Configure Static IP address On Ubuntu 18.04
★ How To Install Zabbix Server On Ubuntu 18.04
Step #01: Open hosts file via nay editor.
root@technologyrsslocal:~# vi /etc/hosts
Insert your hostname then save file. Esc : wq press Enter.
Step #02: Then open hostname file.
root@technologyrsslocal:~# vi /etc/hostname
Insert your hostname then save file. Esc : wq press Enter.
Step #03: Change preserve hostname false option.
root@technologyrsslocal:~# vi /etc/cloud/cloud.cfg
Change false option
preserve_hostname: false
Change to
preserve_hostname: true
Then save it.
reboot your machine otherwise can’t change the hostname on Ubuntu 18.04.
You can see my video for more details. Please subscribe my YouTube channel for more update.
Latest posts by Admin (see all)
- How To Install Zabbix Server 6.4 On AlmaLinux 8 Server - August 9, 2024
- How To Clear RAM Memory Cache Buffer Linux Server - February 29, 2024
- How To Install Apache Cloud Stack Management Server 4.17 On Ubuntu 22.04 - February 1, 2024
Leave a Comment