adellalin
May 28th, 2010, 04:49 PM
I have tried to add some system variables on my ubuntu 9.04. So I edited /etc/environment like this:
export JAVA_HOME=/usr/local/java
expott GRAILS_HOME=/home/adella/grails
PATH="/usr/bin:..."
export PATH=$PATH:$JAVA_HOME:$GRAILS_HOME/bin
But it didn't work, didn't pick grails on the path. So I figure a reboot may help. It turned out to be a big mistake. I can't even log in, I think it might be this faulty /etc/environment messed up the shell.
I tried to repair with CD but it didn't find there is anything:( wrong.
Please help me! What do I do to fix it?
THanks
export JAVA_HOME=/usr/local/java
expott GRAILS_HOME=/home/adella/grails
PATH="/usr/bin:..."
export PATH=$PATH:$JAVA_HOME:$GRAILS_HOME/bin
But it didn't work, didn't pick grails on the path. So I figure a reboot may help. It turned out to be a big mistake. I can't even log in, I think it might be this faulty /etc/environment messed up the shell.
I tried to repair with CD but it didn't find there is anything:( wrong.
Please help me! What do I do to fix it?
THanks