20 February 2016

Ubuntu: Change Hostname


  1. Become super user:
    sudo -i
  2. Edit the hostname in these two files:
    vi /etc/hostname
    vi /etc/hosts
  3. Restart the hostname service:
    service hostname restart

No comments:

Post a Comment