After running once
startx command in terminal i can not login as user anymore to my normal desktop. It still works as root. I am using the Mate desktop environment. Can any one help?
cd ~ sudo chown username:groupname .Xauthority
You must have restarted X server as a root user and thus the file .
Xauthority which was owned by the user, now got owned by root.
Try giving back the ownership as suggested.