Change Computer Name / Host Name Ubuntu Linux (8.10)

by on Feb.19, 2009, under linux/ubuntu

If you want to change the computer name of your linux box, it’s quite simple. Use the following commands to ensure the name is changed.

sudo nano /etc/hostname

And then make sure your hosts file is updated with the new name as well

sudo nano /etc/hosts

I typically use nano (pico) because to me it seems more user friendly and intutive. You may use vi or any such editor you wish.

:, , , , ,
2 comments for this entry:
  1. Valentine Aaqil Mahmood

    Thanks you :)

  2. Bitrunner

    An easy GUI way to do this is open up a shell/terminal and type:

    sudo nautilus

    you will then be prompted for your root password (so enter it)

    Nautilus will open up, (which is like the windows explorer of Gnome for all you noobs)(and Gnome is the window manager in Ubuntu 8.10 for the ubernoobs))
    You could open Nautilus through Places/Computer, but that way you would not be running it as root, and you will get denied permissions to change protected files… so sudo it.

    Point and click your way to (Filesystem).. “etc” folder …
    and “hosts” and “hostname” text files will each be one of the white icons way down the list.
    Just double click on each one to open them, make your changes and SAVE

    Much less intimidating for the shell virgins, but what a mouthful.

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...