How to change computer name in Ubuntu

Posted in:Tips 'n Tricks

Computer name is normally given during the OS installing phases. But you could easily change the computer name with a simple GUI tool which is there in Ubuntu by default.There is a command line tool as well if you are so particular.GUI tool is simple and easy to use.Here is a step by step guide on how to change the computer name.

Using GUI

  • Go to System -> Administration -> Networking
  • Network settings
       General Tab -> Host Settings -> Hostname: Specify the computer name 
  • save changes and restart your computer.

Using command line

  • Goto terminal and type the following
          gksudo gedit /etc/hostname
  • Change your hostname Also take a look at /etc/hosts. And change your old name to your new one too.

Content Courtesy: http://www.ubuntuguide.org
Content License:http://www.gnu.org/copyleft/fdl.htm

Press the button below if you liked this site.
webmaster's picture

The brains or the lack of it behind Ubuntu Manual. Crazy about Linux, hates windows except for the fact that it runs many of his favorite games by default. Loves blogging

writeforus