I had this Ubuntu infinite login loop problem, and after searching the forum, I did these steps.
Ctrl + Alt + F6 ls -lah
-rw------- 1 root root 20 Dec .Xauthority
So I did
chown username:username .Xauthority as mentioned by someone in the forums.
After this I tried to login from my user, and it worked, but now I'm facing a new problem, that is, the Launcher and Panel are missing. Did I do anything wrong ?
Further I did
dconf reset -f /org/compiz/
But it gave an error
error: cannot autolaunch D-Bus without X11 $DISPLAY
How do I solve this problem?