When I type echo $PATH, I get the output:
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
However, I modified my PATH variable using gksudo gedit
/etc/environment; the file now reads PATH="/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games".
I am not sure why I am getting two different value of PATH. How can I fix it?
I am running Xfce on a Chromebook using Crouton.
gksudo gedit /etc/environmentand then added"/opt/texbin"saved it rebooted but still the same problem. – DBS Apr 16 '15 at 21:40~/.bashrcthat saysexport PATH=$PATH:.... All you need to do is add a colon to the end and include the path. Example:export PATH=$PATH:...:/new/path– cremefraiche Apr 16 '15 at 21:44~/.bashrcis run every time an interactive shell is opened, while~/.bash_profileis run when a login shell is opened. Pick which file best suits your needs. – cremefraiche Apr 16 '15 at 21:54~/.bashrcor similar. What do you need the/opt/texbinfor? – Faheem Mitha Apr 16 '15 at 22:05/etc/profileis where Debian/Ubuntu sets PATH. – Faheem Mitha Apr 16 '15 at 22:18/etc/environmentdoes not work, and I don't see why it should. See also http://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-ubuntu/95373#comment437238_95373 However, I recommend you just use~/.bashrc. I personally use the TeX Live binary packages though. – Faheem Mitha Apr 16 '15 at 22:25Description: Ubuntu 14.04.2 LTS. I tried modifying my ~./bashrc file but it is not working. Does it have something to do with running linux over chrome using crouton?– DBS Apr 18 '15 at 12:28~/.bashrc? – Faheem Mitha Apr 18 '15 at 18:04(ctrl+ alt+ t)and typed$PATHthe changes weren't there. when I typedwhich latexthe shell prompt didnt respond. – DBS Apr 19 '15 at 10:13