I recently change my hostname with
sudo hostname matthew-laptop
and edited /etc/hosts and checked cat /etc/hostname outputs matthew-laptop, which it does.
However when I try and login on startup, it goes to the terminal says cannot resolve host to 127.0.0.1 (I have apache installed maybe it's just that) and then redirects me to the login page. I am able to log on in a different.. workspace? (I press ctrl + alt + 2), so I have command line access but I don't know how to fix this.
[Edit]
My hosts file:
127.0.0.1 localhost
127.0.1.1 matthew-laptop
127.0.0.1 billyalmondart.dev
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
[Edit]
When I log in I get this briefly:
could not write bytes: Broken pipe