How to change the hostname on an Ubuntu or Linux Mint system with the command line.

Changing the hostname on a Linux system is very easy indeed. Use this command to set a new hostname. homer@homer-eME730:~$ sudo hostname netbook.local Then edit the /etc/hosts file to set the new hostname. homer@homer-eME730:~$ sudo vim.tiny /etc/hosts And edit it to the new value. 127.0.0.1 localhost 127.0.1.1 netbook.local # The following lines are desirable for … Read more