[SOLVED] Root, install (application) to all or multiple users
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 know if it's a Slackbuild it can be done by downloading the source & Slackbuild into /my/build/dir, unpacking the Slackbuild & moving the source into the new dir that was unpacked. Then chmod the Slackbuild to be executable, cd to /tmp and installpkg (app_name).tgz. This should install for all users. Haven't tried it yet tho.
But if its not a Slackbuild or a current version how do I do it globally so all users have that program when they login?
Lets say VLC or or a new web browser like thunderbird?
If its a general application that most users should have by default there must be a simple way of installing the application system wide for all users. Instead of having to login to each user and install it over and over per user. That would get annoying.
Well, for something like firefox, it is the case that a standard install via root will enable it for all users.
If you have found that not to be the case, we need to know what SW and how you installed it.
I didn't have a particular program in mind. I was thinking in general.
EXAMPLE: A new install on a certain machine with 5 users. Lets say I
wanted all of them to have a certain web browser, media player, general programs like that. Nothing advanced, Is it a matter of where the package is downloaded and executed or is there a certain command that will link the root install to all users?
I hope I'm asking this correctly.
Get program, untar, install for all users.
Lol, bad or maybe good example. In windows when you install something, all users usually have it by default as well from that initial install.
I didn't have a particular program in mind. I was thinking in general..
The reason we need a specific example is because Linux already does what you're asking. You've clearly run into this before though, so with a specific example we can help you debug it, since what you've experienced is not the norm.
I can't remember any piece of software that wasn't immediately available to all users after installing on my machines.
Reason being, I installed Firefox, version 4.0 is default so I installed 11.0 as root. When I login as a different user the program was still at 4.0. Next I installed Thunderbird, when I switched users it was there. So I guess I did something wrong the 1st go round.
Maybe the old version has to be deleted? or Maybe I'm loosing my mind and that user wasn't created at the time of installation?
Are new user accounts automatically setup with those programs that have been installed?
"installed" programs typically put the executable (or a link to the executable) in a shared bin directory, such as /bin, /usr/bin, /usr/local/bin, etc. These directories are accessible by all users, present and future. The programs aren't installed for the users, they're simply installed and any user can access them.
IIRC, firefox (if not installed by your package management system) does not actually install anything, when you extract it it just gives you the ready-to-go directory. It's then up to you to put this directory somewhere so that it can be accessed by other users, such as /usr/local/, and then symlink the executable into a common bin folder, such as /usr/local/bin/ so everybody can run it. It's been a while since I've installed firefox without going through the distro's pacakge management system though, so things might have changed.