Change hostname permanently on UBUNTU 14.04
in renaming the hostname, you must edit two files inside of your /etc folder. these files are the hosts and the hostname
sudo gedit /etc/hosts
"the following config will appear and you can now change the hostname of what you prefer"
127.0.0.1 localhost
127.0.1.1 hostname
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
then run..
sudo gedit /etc/hostname
"it will show you a hostname/word which is you current hostname. rename it into a new hostname that you prefer."
the run...
sudo reboot
No comments:
Post a Comment