X

How To Change Host Name From Ubuntu 18.04

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.

0 0 votes
Article Rating
Admin: I am system administrator as Windows and Linux platform. I have 4 years skilled from the professional period. I have to configure Linux based system such as an Asterisk VOIP system, Network monitoring tools (ZABBIX), Virtualization (XEN Server), Cloud computing (Apache CloudStack) etc. Now share my professional skill each interested person. Thanks to all.
Leave a Comment