How to Change the Hostname on Debian (hostnamectl, /etc/hostname, /etc/hosts)
Change the hostname on Debian the right way: use hostnamectl set-hostname, update /etc/hostname and /etc/hosts (127.0.1.1), and avoid the sudo resolve-host error.
Read More »