Tuesday, December 04, 2012

Change hostname of Ubuntu machine

To change Ubuntu(Debian/Mint) machine hostname, edit /etc/hostname. You may have to reboot machine for the changes to take effect. Note that for the new name to resolve locally, you need to edit /etc/hosts. The line that contains below localhost should match with the hostname.

No comments: