From KevinWiki

Jump to: navigation, search


Set Hostname

$ sudo echo "your-hostname" >> /etc/hostname 
$ sudo hostname -F /etc/hostname 

If it exists, edit the file /etc/default/dhcpcd to comment out the "SET_HOSTNAME" directive:

file: /etc/default/dhcpcd


Update /etc/hosts

  1. Replace with the ip address of the server.
  2. Replace with the domain name of the server.
  3. replace your-domain with the hostname of the server.
file:/etc/hosts        localhost.localdomain    localhost     your-domain
Personal tools