How To: Change Computer/Host Name On Ubuntu 11.10

Here is a guide that will show you how to change your computer name. If you want to change the name because you made a mistake in naming the system during the installation process (or any other reason) follow these steps:

First you need to change the hostname, to do this open a terminal window (press Superkey and type: terminal) and copy+paste the following line:

sudo gedit /etc/hostname

Now replace the current host name for the new host name, save and close the file.

Now you need to replace the current host name for the new one you used in the previous step. To open the hosts file copy+paste the following line:

sudo gedit /etc/hosts

And replace the system name after When done save and close the hosts file and restart your computer. To check if it worked open a terminal window and the new computer name will be shown after yourusername@

Share Button
Loading Facebook Comments ...

Leave a Reply

Your email address will not be published. Required fields are marked *

eighteen − 1 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Follow Me On:

Interesting Sites
Ask Ubuntu Ubuntu
Ubuntudicas WepUpd8
OMG! Ubuntu! The Fan Club Ubuntu Software
NoobsLab Ubuntu Geek
Linux game database Linux Games
Ads by Google
Who's Online
11 visitors online now
11 guests, 0 members