how to make a PATH extension permanent?

Booting, installing, newbie
Post Reply
Message
Author
abu_ilya
Posts: 71
Joined: Thu 08 May 2008, 13:59

how to make a PATH extension permanent?

#1 Post 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

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

Hi Abu- you're right. The place to make it permanment is /etc/profile. You need to reboot..

abu_ilya
Posts: 71
Joined: Thu 08 May 2008, 13:59

#3 Post 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

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

OK- kind of a longshot but, try this, reset your path'n reboot. Mine stuck..

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#5 Post 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.
Last edited by bigpup on Fri 04 May 2012, 15:26, edited 1 time in total.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

Correct! Line 2- each path with a colon separator..

abu_ilya
Posts: 71
Joined: Thu 08 May 2008, 13:59

#7 Post 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

Post Reply