I get this message when I try to log in./etc/mdm/Xsession: Beginning session setup.../etc/mdm/Xsession: 1: /etc/profile: id: not found/etc/mdm/Xsession: 12: [: Illegal number: /etc/mdm/Xsession: Executing default failed, will try to run x-terminal-emulator/etc/mdm/Xsession: 205: exec: x-terminal-emulator: not foundI've found a very similar problem here: Unable to log in. xsession-errors file looks like it could be useful if I understood but when I try to access the terminal by pressing Ctrl+Alt+F1 and type a command I get the following error:me@me-ThinkPad-E520 / $ cat /etc/profileTraceback (most recent call last):file /usr/lib/command-not-found, line 21, in <module>     os.execvp(python3, [sys.argv[0]+sys.argv)File /usr/lib/python2,7/os.py, line 344, in execvp    _execvpe (file,args)File /usr/lib/python2.7/os.py line 380, in _execvpe    func (fullname, *argtest)OSError: [Errno 2] No such file or directoryBefore this happened I was installing Maven.
Linux Mint 17, your session lasted less than 10 seconds?
linux mint;session