Use /etc/hostname to set hostname.