Page 1 of 1

how to make a PATH extension permanent?

Posted: Fri 04 May 2012, 10:11
by abu_ilya
I'm making a new version of puppy-eloix based on lupu 5.28. I started by integrating LaTeX in it, which works rather well thus far. I now would add
the following path /usr/local/texlive/2011/bin/i386-linux/ permanently to the current PATH.
I tried this by editing .bashrc and adding the line:
export PATH=$PATH:/usr/local/texlive/2011/bin/i386-linux/
however this does not work, I then tried to add the same line to /etc/profile but that doesn't work neither.
So here's my question how can I make a PATH extension permanent?

thanks
abu_ilya

Posted: Fri 04 May 2012, 13:50
by Semme
Hi Abu- you're right. The place to make it permanment is /etc/profile. You need to reboot..

Posted: Fri 04 May 2012, 14:01
by abu_ilya
Semme wrote:Hi Abu- you're right. The place to make it permanment is /etc/profile. You need to reboot..
I did reboot and also made sure the edited profile-file was in /tmp/etc/ when remastering but unfortunately the path was not extended. So the path must be set somewhere else, but where???

thanks
abu

Posted: Fri 04 May 2012, 14:53
by Semme
OK- kind of a longshot but, try this, reset your path'n reboot. Mine stuck..

Posted: Fri 04 May 2012, 15:14
by bigpup
Maybe do this.
In /etc/profile

Change this line

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin"

To this

PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin:/usr/local/texlive/2011/bin/i386-linux"

And reboot.

Posted: Fri 04 May 2012, 15:24
by Semme
Correct! Line 2- each path with a colon separator..

Posted: Sat 05 May 2012, 11:34
by abu_ilya
Semme wrote:OK- kind of a longshot but, try this, reset your path'n reboot. Mine stuck..
I just was going to try out your suggestion and the one from "Bigpup" when I noticed that after booting the last version on another PC the path-extension was succesfull, I don't understand why it wasn't on the PC where I made the CD earlier...

regards,
abu_ilya