ubuntu

Changing the hostname or computer name in ubuntu

Here is the very simple steps to change the hostname provided during the installation of Ubuntu:

Edit /etc/hostname and change to the new value.

vi /etc/hostname

127.0.0.1 localhost
127.0.1.1 ubuntu.local ubuntu # change to your new hostname/xyz

Now after a reboot, your hostname will be the new one you chose.

Share and Enjoy

  • Facebook
  • Twitter
  • Google Plus
  • Live
  • Delicious
  • Digg
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
  • Instapaper
  • FriendFeed