Cannot login by GUI, startx starts for root only
Solution 1:
The comment from link in question helped.
- At the login screen, press
control+alt+F3
. - Login
sudo rm .Xauthority
sudo rm .ICEauthority
sudo reboot
Looks like running X as root makes the .Xauthority
and .ICEauthority
files owned by root as described in linked post.