echo MYHOSTNAME | sudo tee /etc/hostname and reboot works for me