I tried setting a new environment variable (I use linux mint 17). After restarting, I couldn't log back in. It says:
Your Session only lasted less thant 10 Seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with on of the failsafe sessions to see if you can fix this problem.
the ~/.xsession-errors file contains the following:
/etc/mdm/Xsession: Beginning session setup /etc/mdm/Xsession:: 3: export: :/home/myusername/mallet-2.0.7/:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin: bad variable name
so I basically tried to change the environment variable, trashed something in the process and can't log in. How can I repair this without logging in, while keeping all the data on my computer?
The command I used for changing the environment variable was
sudo gedit /etc/environment echo "export PATH=$PATH:/home/myusername/mallet-2.0.7/" >> ~/.bashrc
Any help would be greatly appreciated!