Howto redefine the hostname on Debian/Ubuntu
Just a small procedure as a self-reminder (I seem to have to use it just seldom enough to forget it each time – thanks Marvil):
- define the new hostname on the 127.0.0.1 localhost line (after localhost) in /etc/hosts
- set the new name in /etc/hostname
- issue a “hostname -F /etc/hostname
- done
Advertisement