How To Change Host Name From Ubuntu 18.042 min read
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.
[email protected]:~# vi /etc/hosts
Insert your hostname then save file. Esc : wq press Enter.
Step #02: Then open hostname file.
[email protected]:~# vi /etc/hostname
Insert your hostname then save file. Esc : wq press Enter.
Step #03: Change preserve hostname false option.
[email protected]:~# 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.
- How To Install Odoo 16 on Ubuntu 22.04 - May 14, 2023
- 12 Steps to Organize Photos on Your Computer - March 20, 2023
- 9 Ways to Speed Up Your MacBook Yosemite - February 21, 2023
We really appreciate for your support for buying me a coffee.
It takes us a while to compose and upload new content, as they have to be checked to see if Properly works. We appreciate you if you help me for one cup of coffee to keep us awake and always deliver good quality content.
No contribution is small of an amount. We are grateful for any amount you support us with. Thank you!