Recent Changes - Search:

Softwares

.

Changing-hostname-ubuntu-linux

Main.Changing-hostname-ubuntu-linux History

Hide minor edits - Show changes to output

Changed line 11 from:
(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
to:
(:table border=1 width=80% bgcolor=#cccc99 cellspacing=0 :)
Changed line 18 from:
(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
to:
(:table border=1 width=80% bgcolor=#cccc99 cellspacing=0 :)
Changed line 27 from:
(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
to:
(:table border=1 width=80% bgcolor=#cccc99 cellspacing=0 :)
Changed line 36 from:
(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
to:
(:table border=1 width=80% bgcolor=#cccc99 cellspacing=0 :)
Added lines 1-43:
(:Google1:)
(:Googlemm:)
----
!!Changing Hostname in Ubuntu
----

Login to your ubuntu system.

Run

(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
sudo hostname two.example.com
(:tableend:)

Edit /etc/hosts

(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
sudo pico /etc/hosts
(:tableend:)

Change the old hostname to two.exmple.com

Also Edit /etc/hostname

(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
sudo pico /etc/hostname
(:tableend:)

Change the old hostname to the new one.

And then reboot your system

(:table border=1 bgcolor=#cccc99 cellspacing=0 :)
(:cellnr:)
sudo reboot
(:tableend:)

----
(:Google1:)
(:Googlemm:)
Edit - History - Print - Recent Changes - Search
Page last modified on November 01, 2011, at 06:59 AM