How to Change System ( Localhost ) name in Ubuntu 11.04 ?

Hi Guys,

Just want to share this small tip as it may help someone around the world. You just need to edit two files to change it.

      Step 1 : Open /etc/hostname with root permission . You can use gedit to open -> “sudo gedit /etc/hostname”

Change the system name to the name you prefer.

      Step 2 : Open /etc/hosts with root permission . You can use gedit to open -> “sudo gedit /etc/hosts”

Again change the system name to the name you prefer.

      Step 3 : Restart your system to apply the changes.

This applies to the most of the Linux distributions. Your suggestions/comments are invited.

Regards,

Balachandar KM

2 thoughts on “How to Change System ( Localhost ) name in Ubuntu 11.04 ?

Leave a reply to Hector Cancel reply