Friday, June 05, 2009

Change Hostname of Ubuntu Machine

To change hostname of Ubuntu machine use following commands

Edit file /etc/hostname and change the hostname in that file

run the command sudo /etc/init.d/hostname.sh start

run the command sudo sysctl kernel.hostname=newHostname

No comments: