Today I needed to change the hostname of my virtual guest machine running CentOS.

  • Login with putty.exe
  • Goto /etc/sysconfig/
  • Type vi network
  • Press i on the keyboard and change the HOSTNAME to your preferred servername
  • Press ESC on the keybord
  • Save the configuration by :wq!
  • Reboot

2007-11-21_154313.png

That’s all!