Changing the hostname or computer name in ubuntu


Here is the very simple steps to change the hostname provided during the installation of Ubuntu:

Edit /etc/hostname and change to the new value.

vi /etc/hostname

127.0.0.1 localhost
127.0.1.1 ubuntu.local ubuntu # change to your new hostname/xyz

Now after a reboot, your hostname will be the new one you chose.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s