LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-01-2012, 09:54 AM   #1
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Rep: Reputation: 29
Root, install (application) to all or multiple users


Instead of installing a program on a users home directory individually, how can I install a program that I want all users or certain users to have in one shot?

I'm sure it can be done as root or su, somehow.

I am new to Slackware and learning a lot in a short period of time. Linux is Amazing!
 
Old 04-01-2012, 12:03 PM   #2
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Original Poster
Rep: Reputation: 29
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?

Any help or feedback would be highly appreciated.
 
Old 04-01-2012, 08:17 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
To be honest, it depends on the specific app; what is it?
 
Old 04-01-2012, 08:49 PM   #4
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Original Poster
Rep: Reputation: 29
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.
 
Old 04-01-2012, 09:46 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
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.
 
Old 04-01-2012, 10:09 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Instead of installing it in the user's home folder, install it in somewhere accessible by everyone, such as /usr/local/
 
Old 04-02-2012, 03:30 AM   #7
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
You can check the installation guide and installation command switches, will be helpful for installing the package for all the users. Which package you're trying to install?
 
Old 04-02-2012, 07:33 AM   #8
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Original Poster
Rep: Reputation: 29
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.

Steps:
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.
 
Old 04-02-2012, 07:50 AM   #9
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Quote:
Originally Posted by Dman58 View Post
In windows when you install something, all users usually have it by default as well from that initial install.
Same on GNU/Linux distros.
 
Old 04-02-2012, 10:22 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Quote:
Originally Posted by Dman58 View Post
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.
 
Old 04-02-2012, 11:50 AM   #11
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Original Poster
Rep: Reputation: 29
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?

Last question:
Are new user accounts automatically setup with those programs that have been installed?
 
Old 04-02-2012, 12:44 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
"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.
 
Old 04-02-2012, 01:03 PM   #13
Dman58
Member
 
Registered: Nov 2010
Location: The Danger Zone
Distribution: Slackware & everything else in a VM
Posts: 286

Original Poster
Rep: Reputation: 29
Thank you, that about sums it up!
 
  


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
How Do I bypass an application login screen and get root access to install fresh... alfredvelez Linux - Newbie 1 05-19-2010 12:05 PM
New install 12.2 root has sound not users okos Slackware 4 01-10-2009 09:17 PM
Multiple Autologins; Multiple Users; Multiple Sessions mrclisdue Linux - Desktop 1 09-26-2007 06:50 AM
How do i give root access to multiple users? bakekelwa Linux - Newbie 14 07-19-2007 12:14 PM
Root acces to multiple users BoldKiller Linux - Security 7 01-14-2004 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration