I tried to change my hostname according to this guide for Debian based system:
- I edited
/etc/hostname
- I ran
/etc/init.d/hostname start
Though there are errors. Always when I write a sudo
command it tells me it can't recognize the hostname. After I restarted the system, the graphical environment wasn't working, the startx
command wasn't successful. So, I changed the hostname back to the old name.
Can I change the hostname without errors?