PDA

View Full Version : [ubuntu] Broken desktop. - login looping



Raymond_van_Driel
June 23rd, 2015, 02:18 AM
Hello, and thanks.

New to Linux (obviously, as I have apparently done something very stupid).

Running in VMware.

Logged in to GUI, started a terminal and typed something like "sudo su" <pass>, and "startx". OS/VM hung.
Restart. X starts, but Login with my user cycles back to the login screen (after playing drums sound)
Can run other text terminals etc using same user. (eg, with CTRL ALT F2)
How can I recover my desktop?

Ray.

steeldriver
June 23rd, 2015, 03:40 AM
Hello and welcome to the forums

From the CTRL ALT F2 (or other) virtual terminal, check the ownership and permissions of your .Xauthority and .ICEauthority hidden files e.g.



ls -l ~/.{ICE,X}authority


They need to be owned by and writeable by the account owner else the desktop session can't start

Raymond_van_Driel
June 23rd, 2015, 04:31 AM
-rw------- 1 dabade dabade 9540 /home/dabade/.ICEauthority - (me)
-rw------- 1 root root 151 /home/dabade/.Xauthority

So that's correct, right?

Thanks, Ray.

steeldriver
June 23rd, 2015, 07:11 AM
No, .Xauthority needs to be owned by you - either delete it (it will be regenerated on next successful X session start) or



sudo chown dabade:dabade /home/dabade/.Xauthority

Raymond_van_Driel
June 23rd, 2015, 08:35 AM
That did it, thanks.