In this tutorial you will learn how to change your hostname (computer name) on Ubuntu Server.
Code used during this tutorial:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# How to change your hostname (computer name) on Ubuntu Linux # Show the system's host name hostname sudo vi /etc/hostname UbuntuVM-http sudo vi /etc/hosts 127.0.1.1 UbuntuVM-http # sudo: unable to resolve host UbuntuVM sudo hostname UbuntuVM-http # Ok sudo hostname UbuntuVM-http hostname # Connect using SSH ssh ubuntu-vm # Reboot the system sudo reboot Useful links: http://www.howtogeek.com/197934/how-to-change-your-hostname-computer-name-on-ubuntu-linux/ |
Useful links:
http://www.howtogeek.com/197934/how-to-change-your-hostname-computer-name-on-ubuntu-linux/