LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices

Reply
 
Search this Thread
Old 10-22-2008, 08:53 PM   #1
LinuxTexan
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 15
I added to the PATH in rc.local. Why won't it stick? Also, can I delete Apps?


Two questions. I have Puppy 4.1 retro on a USB thumbdrive. Persistence is working fine except that I cannot permanently change the PATH. I need to add a directory that I created and have it in the path on boot up. I modified /etc/rc.d/rc.local but it isn't persistent. Is this because my directory isn't present during initialization? My directory is in the pup_save file, however.

I think remastering with the PATH modified would create a build that would be persistent. Is that what I need to do?

Also, I'm wanting to use this in an embedded project that won't need some of the apps, like mpaint, etc. Can they be deleted or uninstalled safely? PET Package Manager only allows install/uninstall of programs that I don't currently have on it. If I can't remove them then I will live with it. It would just be nice to regain the storage space since the apps will never be run. I have another USB that I can put the full package on. Most of them are named "default" so I don't want to damage anything. Can anyone tell me how or if it is worth the effort?
 
Old 10-22-2008, 09:20 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
I'm assuming you're using bash as your shell: The PATH variable gets set from /etc/profile or ~/.bash_profile. Setting it from rc.local won't have the effect you're looking for. I haven't used Puppy so I can't help with uninstalling apps.
 
Old 10-23-2008, 09:37 AM   #3
LinuxTexan
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Normally, I would agree with changing the profile. Puppy comes up as root user (which I like). I added the change to /etc/rc.d/profile/profile.sh as well and saw no effect.

Does anyone know what I'm missing?
 
Old 10-23-2008, 02:31 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Is the shell running as a login shell? For example if you start bash directly, is it as bash -l? Or, with aterm, aterm -ls, etc. From memory, the profile files are only read for login shells and the rc files (/etc/bashrc, ~/.bashrc) are read for non-login as well as login shells.
 
Old 10-24-2008, 07:37 AM   #5
LinuxTexan
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Original Poster
Rep: Reputation: 15
That's my recollection as well. Puppy doesn't require a login and automatically comes up as root and uses the bash shell. That's perfect for my use. I expected to modify the /etc/rc structure and there are notes in Puppy to that effect. It's just that I can't seem to make the PATH change persistent and it isn't obvious to me why.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
added /u02/scripts/startdb.sh in rc.local but not working sathyguy Linux - Newbie 4 04-14-2008 04:30 PM
have added a routing path for a different network but samba share can't be accessed.. rishipandit007 Linux - Software 1 02-27-2007 10:00 AM
can local packages be added to sources.list? wabbalee Linux - Software 9 02-01-2007 08:30 AM
shell script to compare filese b/w local and remote and delete files from local serve dsids Linux - Networking 9 08-23-2006 07:20 AM
LXer: Commercial apps added to Ubuntu updates LXer Syndicated Linux News 0 08-16-2006 03:33 PM


All times are GMT -5. The time now is 07:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration