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.
Комментариев нет:
Отправить комментарий