суббота, 4 июня 2011 г.

UBUNTU: change hostname

To view current hostname:
sysctl kernel.hostname

To change it:
 sysctl kernel.hostname=NewHostname
Or better edit /etc/hostname

Also don't forget to edit /etc/hosts to prevent sudo showing stupid "unable to resolve" error.