I'm running linux mint 14 and when I try to log in I get an error saying "Session lasted less than 10 seconds…". When I click on details it says:
/etc/mdm/Xsession: Beginning session setup...
/etc/mdm/Xsession: 1: /etc/profile: id: not found
/etc/mdm/Xsession: 12: [: Illegal number:
/etc/mdm/Xsession: 173: /etc/mdm/Xsession: grep: not found
/etc/mdm/Xsession: Executing default failed, will try to run x-terminal-emulator
/etc/mdm/Xsession: 205: exec: x-terminal-emulator: not found
I edited the /etc/environment file so maybe that has something to do with it.
I restarted in recovery mode and selected "Drop to root shell prompt". I attempted to edit the /etc/environment file, but it says it's read only (even while using sudo).
What can i do?
Best Answer
I mounted with read-write privileges with:
And changed contents of environment file back to:
This solved the problem.