Feb
10
How to Set the Hostname
How to set your system’s hostname and FQDN (fully qualified domain name).
Your hostname should be something unique! The system’s hostname has no relationship to websites or email services hosted on it – it just provides a name for the system itself. Your hostname should NOT be “www” or anything else overly generic.
Issue the following commands to set the hostname, replacing “alphabet” with the hostname of your choice:
root@zero:/# echo "alphabet" > /etc/hostname root@zero:/# hostname -F /etc/hostname
Edit the file “/etc/default/dhcpcd” (ff it exists) to comment out the “SET_HOSTNAME” directive:
File excerpt: /etc/default/dhcpcd
#SET_HOSTNAME='yes'
And then Update /etc/hosts.
How to Set the Hostname,