Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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 have just reinstalled Slackware again after messing a few things up this time i want to get it all right and the things that have been bothering me the most are where to install software and how to give my user account a little more access.
If im on the right track a good place to compile and install all of my software would be /usr/local
This is where my next problem comes in. Do i have to login as root to be able to install everything as i have no write access here or am i missing something?
yes, you need to be root... that's the point of it existing. and in general *IF* you do wish to compile your own software, you're best just to let it use the programs defaults, typically /usr/local/bin etc...
Its not that i wish to its a lot to do with the fact i have to.
I have been missing something then as i was refereing to the actual building of the program I thought that this dir would contain parts of the program guess not so can i remove this folder?
And if the program doesnt need installing just copy it over with root.
Do not remove /usr/local - it's an integral part of your system. The message from Acid is that if you let the program install itself as per it's own setup, it will install to the correct places. Unless you have a very good reason to do so, installing a program elsewhere is not a good thing. If you do that and another program relies on it you cannot guarantee that the newer program will work.
What i was getting at was should i create a dir in my /home folder say software build/my new app compile and build it there. Would it then be safe to remove this dir (my new app)? or will there be files in there that are needed?
I can't see what you would gain by doing that. If you build the whole thing under your user account in ~ you will have a program only usable by your user. If you then move it, you will have to su to root to do that. You are building in extra steps. I'd suggest just doing the install as normal.
In my experience, most software can safely be built in your home directory - there usually is a script that will move the binaries into the right directories for you. When all is properly set up, the original source file can simply be dumped. Of course, when an application requires manual installation, that is something different. In that case you do need to move it to the suggested directory - but then again, most of such apps don't need to be moved at all and they'll run from wherever they are.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.