This post originated from an RSS feed registered with Java Buzz
by Fred Grott.
Original Post: Linux environment file no-nos
Feed Title: ShareMe Technologies LLC-The Mobile Future
Feed URL: http://www.jroller.com/shareme/feed/entries/rss
Feed Description: A Weblog about Java programming and digital convergence on mobile devices in such areas as P2P and collaborative technology.
I goofed my global system environment variables up in the /etc/environment file. How do you recover since you only now have failsafe terminal login? You use the basic Bash cat, echo, and redirection, and cp to fix the problem. Basically, read the environment file first lien as that is correct.
Than echo that line redirected to a new fileile called environment.new. cp the enviroment file to environment.old as you need the other line sto re-set what shoudl be in /etc/profile. Than cp environment.new and overwrite environment file.
Than the final step is to reboot and everything should work with you being able to login into the full gdm/gnome.