Change Computer Name / Host Name Ubuntu Linux (8.10)
by swicknire 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:
Leave a Reply
You must be logged in to post a comment.
April 9th, 2009 on 10:50 am
Thanks you :)
September 6th, 2009 on 3:47 am
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.