I added to the PATH in rc.local. Why won't it stick? Also, can I delete Apps?
PuppyThis forum is for the discussion of Puppy Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.