LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-08-2008, 11:09 AM   #1
elsheepo
Member
 
Registered: Feb 2008
Location: Los Angeles
Distribution: Slackware-current
Posts: 86

Rep: Reputation: 19
Installing Programs, where do they go?


Where is the most common, or the "normal" place to install programs? So that all users can use them? I don't suppose its

/root/LimeWire/saved

because wouldent that prohibit any other users from useing the program?
 
Old 03-08-2008, 11:21 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,140
Blog Entries: 4

Rep: Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227Reputation: 3227
Nope! /root is "root"'s private playpen ...

And I hope that you are not using your system routinely as "root!"

A good place to install programs of your own is /usr/local, which as the name implies is a place to put "user programs" that are "local to" this particular machine, in other words not part of the ordinary Linux installation.

Best-practice:
On my systems, I have set up a special "maintenance user," called (say...) maint, whose purpose is to do installs, but who is not the all-powerful god, root. The "maint" user that I've set up is used for no other purpose. Therefore, since "maint" owns all those (non-system) program files, and has the necessary access-rights to put them in these local places (but does not have the right to put them in the core system directories), these files ... which "maint" owns and has benevolently decided to share with the rest of my universe ... are protected from malicious code that might be executing, say, "as me."

Furthermore, since "maint" does not have access to the most-inner sanctum that is "the system itself," I know that the various installation-scripts I am using cannot make changes, malicious or accidental or otherwise, outside of the proper locations I've set up for "my, local but world-accessible," program files.

Just as with Windows, it is imperative that you forever dismiss the status of running "your" machine as an Administrative, or "root," or otherwise super-powerful user. Give yourself no more privileges and access than you absolutely require to do whatever you are doing at the time. When you "lock your doors," Linux (and Windows) can require a key ... and can say with almost-absolute certainty that nothing can open that locked door without one. You can never be sure what programs might find themselves running on your machine, "as 'you' and with 'your' privileges" but with deliberately malicious intent. By properly protecting those assets, yes, from 'yourself,' you shut that attack-vector down. You give yourself an extremely-stable and secure machine, and you can take away all that useless "anti-virus crap" at your leisure. This mantra applies equally on Windows (NT or better, and with an NTFS not FAT32 filesystem), on Linux, and on OS/X.

Last edited by sundialsvcs; 03-08-2008 at 11:23 AM.
 
Old 03-08-2008, 11:22 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
You can set permissions to let anyone use a program--regardless of what folder it's in.

/root is one place I would NOT expect to find programs. That directory is normally for the system administrator.

There are a minimum of 6 places where executable code (including scripts) typically get stored (in parentheses are SOME, but the ONLY, common uses):
/bin (utilities typically used by everyone)
/sbin (utilities normally used by the sysadmin)
/usr (applications used by everyone and installed by the package manager)
/etc (startup scripts)
/opt (custom installation by a user--not using the package manager)
/home/username (scripts written by an individual user for personal use)

While there are conventions for these things, there are no hard rules. One thing to look at is the Linux Filesystem Hierarchy
http://tldp.org/LDP/Linux-Filesystem.../html/c23.html

Last edited by pixellany; 03-08-2008 at 11:25 AM.
 
Old 03-08-2008, 11:26 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062Reputation: 1062
That depends -- if it's "system" software; i.e., that which normally comes as part of or an add-on to a distribution, it would go in /usr and its subdirectories (/usr/bin, /usr/share, etc.). If it's add-on software (something you get from, oh, Sourceforge), then it would usually go in /usr/local (/usr/local/bin, ...). If it's an application package; e.g., OpenOffice.org, it would most likely go in /opt with symbolic links to the /usr tree (the soffice executable generally is symbolically linked to /usr/bin).
 
Old 03-08-2008, 11:46 AM   #5
elsheepo
Member
 
Registered: Feb 2008
Location: Los Angeles
Distribution: Slackware-current
Posts: 86

Original Poster
Rep: Reputation: 19
sweet. I chose /usr/local/LimeWire/

Thats another question i had, i have created a new user account through the command line, and i can log in as the user when linux starts, but when it comes to KDE it seems like it hasent created the same user account for KDE?? any sudjestions?
 
Old 03-08-2008, 07:01 PM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,194

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
Yes, check your spelling before posting.

As for your problem, which distro are you using? (That can be added to your profile and makes it easier for us to understand your problem)

If you can log into the console, you should be able to log into KDE. Maybe Ubuntu thinks differently about it, Ubuntu doesn't like if you do command line thingies.

Does the new user name show up in the KDE login window?

jlinkels
 
  


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
Installing Programs suckerr70 Linux - Newbie 7 04-20-2005 10:20 PM
Installing programs iAchilles Linux - Newbie 8 02-28-2005 04:38 AM
I need help installing programs... jnassiri Linux - Newbie 11 09-15-2004 07:23 AM
installing programs bmrtin Linux - Newbie 5 02-04-2004 10:46 AM
installing programs - help please brookes Mandriva 2 10-19-2003 05:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 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
Open Source Consulting | Domain Registration