Rename an Ubuntu Linux Server

I had to look this up (I forgot about /etc/hosts):

To rename an Ubuntu server (in this case 12.04), SSH to the server and:

  1. sudo hostname (update name)
  2. sudo vi /etc/hosts (update name)
  3. sudo service hostname start (restart hostname service)

That’s all you need.

Leave a Reply