rss feed Twitter Page Facebook Page Github Page Stack Over Flow Page

Set your hostname and host file

The hostname uniquely identifies your computer on the local network. The hostname can be use in many services or applications. Once the hostname is set, it is not recommended changing it.

To setup the hostname run this command:

echo "choose_a_better_hostname" > /etc/hostname
hostname -F /etc/hostname

Now, let's set the hostname in the host file.

sudo vi /etc/hosts

and Add the IP address(es) and the hostname:       localhost.localdomain	localhost	choose_a_better_hostname