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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-13-2005, 06:02 PM
|
#1
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Rep:
|
Equivalent to MS's "Program Files"
Alright, so now that I've got my mouse working 100%, I have some general questions about the filesystem and X regarding where installed programs are stored and how you go about setting up shortcuts for them.
Question 1:
When downloading a program, where should I download it to? Is my home folder okay?
Question 2:
When installing that program, where should it be installed? How can I install it for all users?
Question 3:
How do I go about creating a shortcut with the proper icon, and can I do it for all users? (do I use the .bin, the .sh? they don't have the program's icon)
Thanks immensely,
Seiken
|
|
|
02-13-2005, 06:04 PM
|
#2
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
/usr/local/bin is where most user instaled programs should go
/usr/bin is also good
/bin is ok, but not as good
and yes, id download into your home directory... or perhaps a special downloads directory within your home directory
|
|
|
02-13-2005, 06:07 PM
|
#3
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
You might find the Filesystem Hierarchy Standard useful for getting a sense of how the Unix directory structure is laid out. Note: this varies between Linux distros and sometime fairly significantly between different type of Unix and Unix-like systems.
|
|
|
02-13-2005, 06:28 PM
|
#4
|
Member
Registered: Sep 2004
Location: Canada
Distribution: Slackware 14
Posts: 248
Original Poster
Rep:
|
btmiller: thank you for the link to the FHS. I have a lot of reading to do.
frieza: after I have the installed program in /user/local/bin (in this example, I have a folder in there called Mozilla Firefox with all the Firefox files in it), how do I go about making a shortcut in the umm, Gnome Menu (?) for all users to start the program?
|
|
|
02-13-2005, 06:43 PM
|
#5
|
Senior Member
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
|
not sure about the gnome menu, but if you left click on a blank section of the bar, it should give you an option to add a 'launcher' to the panel, then just put in the path /usr/local/bin/firefox (or browse to it if you need to) and make sure it has an icon
|
|
|
02-13-2005, 10:01 PM
|
#6
|
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088
Rep:
|
Perhaps it would be better to install programs to /usr/local or /opt. Then you create a symbolic link to the application in /usr/bin.
EG:
Code:
ln -s /usr/local/firefox/firefox /usr/bin
will create a link in /usr/bin called firefox. You can then start firefox with the command "firefox".
This is more in compliance with the FileSystem Standard, and IMHO keeps things tidier.
--Ian
|
|
|
02-14-2005, 02:24 AM
|
#7
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
You don't install all the program's related files into /usr/local/bin, /usr/local == C:\Program FIles, the bin directory just contains the binary files or links to them. You can also install "optional" software into /opt
|
|
|
02-14-2005, 05:24 AM
|
#8
|
Member
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400
Rep:
|
If you're using Slackware the easiest thing to do is to find the package either on the Slackware ftp's or on http://linuxpackages.net/ (be sure to choose the right version number). Then download that package to your homedir (or where ever) and run 'installpkg <package>'. That way Slack will install it for you and you can run it by typing 'firefox' or 'mozilla-firefox' depending on the package.
|
|
|
All times are GMT -5. The time now is 12:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|