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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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...
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.