to change an ubuntu system's hostname, do the following:
# /bin/hostname new.name # vi /etc/hosts # grep -r old.name /etc # /etc/init.d/cron restarton a debian system, do the following:
# /bin/hostname new.name # vi /etc/hostname # vi /etc/hosts # grep -r old.name /etc # sysctl kernel.hostname=new.name # /etc/init.d/cron restart
No comments:
Post a Comment