LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-04-2005, 06:00 AM   #1
coolbest
LQ Newbie
 
Registered: Feb 2005
Location: Auckland, New Zealand
Distribution: Gentoo 2004.3
Posts: 4

Rep: Reputation: 0
Question Where to install Firefox?


Hi,

I extremly new to the world of linux, recently decided to switch from windows and see what the whole hype is about. I trying to install a Firefox 1.0 on my mandrake 10.0 (i currently have Firefox 0.8 installed using Mandrakeś urpmi util) but i have no idea as to which folder i should install it into. In windows it was simple - 99% of programs wento into Program Files folder, so whats the equivalent of that on linux?

Please help, as i about to follow these instructions from the other forum:
Quote:
1. Try to find existing installation.
2. Give up.
3. Reboot back to windows.
Kind regards,
Nick Goloborodko
 
Old 02-04-2005, 06:04 AM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
The equivalent for user installed programs is /usr or /usr/local folder. It doesnt really matter where you install as long as you run it from there. I installed firefox from source. It was installed into the directory, I unpacked the source to. It was a bit tricky as the executable was named similarly to the installer executable. So it took me some time to find it. The easies way for you to find a file is to run updatedb and then use the command locate filename to find a filename.
 
Old 02-04-2005, 06:07 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
are you trying to install the binary firefox package from mozilla.org?
 
Old 02-04-2005, 06:15 AM   #4
coolbest
LQ Newbie
 
Registered: Feb 2005
Location: Auckland, New Zealand
Distribution: Gentoo 2004.3
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by __J
are you trying to install the binary firefox package from mozilla.org?
Yep
 
Old 02-04-2005, 06:22 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
when you run the installer, it creates an installation (by default, though this can be changed) in your home directory. This is fine but it will only work for that user. With the prebuilt binaries, I personally like to install it to /usr/local/firefox (run the installer as root and tell it to install to that directory) and create a symbolic link in /usr/local/bin:

Code:
ln -s /usr/local/firefox/firefox /usr/local/bin/firefox
which will put firefox in your path.
Keep in mind this is only my preference and with these prebuilt packages you can install them anywhere you want without any problems.

By convention, /usr is where the files that came with your system are and /usr/local is for any changes you have made to the system. Note that if you have a prefix /usr, the parts of an installed program are split up ( not like the Program Files directory in Windows where every program has it's own directory) into the appropriate directories.

executable binaries go into bin (so a prefix of /usr they will end up in /usr/bin)
icons, themes, etc.. go into share
header files for compiling against the app/library go into include
libraries, both shared and static go into lib
man pages go into man
and so on.

the above does not apply to the prebuilt "all-in-one" packages like firefox and mozilla. They use a different method of throwing everything into the same directory and using shell scripts (inside you installed firefox directory open up firefox with a text editor and you will find out that it is not the actual browser, but a shell script. firefox-bin is the browser itself, but you have to call it through the firefox script) and altering your environmental variables.

Last edited by __J; 02-04-2005 at 06:28 AM.
 
Old 02-04-2005, 06:28 AM   #6
coolbest
LQ Newbie
 
Registered: Feb 2005
Location: Auckland, New Zealand
Distribution: Gentoo 2004.3
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by __J
when you run the installer, it creates an installation (by default, though this can be changed) in your home directory. This is fine but it will only work for that user. With the prebuilt binaries, I personally like to install it to /usr/local/firefox (run the installer as root and tell it to install to that directory) and create a symbolic link in /usr/local/bin:

Code:
ln -s /usr/local/firefox/firefox /usr/local/bin/firefox
which will put firefox in your path.
By convention, /usr is where the files that came with your system are and /usr/local is for any changes you have made to the system. Note that if you have a prefix /usr, the parts of an installed program are split up ( not like the Program Files directory in Windows where every program has it's own directory) into the appropriate directories.

executable binaries go into bin (so a prefix of /usr they will end up in /usr/bin)
icons, themes, etc.. go into share
header files for compiling against the app/library go into include
libraries, both shared and static go into lib
man pages go into man
and so on.
Thank you very much for clearing that up Linux file system was a bit of a gray area for me.

Kind regards,
Nick Goloborodko
 
Old 02-04-2005, 06:34 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Those are generall rules and you will find that distro's all do things differently. It's just a matter of learning the particular distro your on and how they do things. It all gets easier after awhile
 
Old 02-04-2005, 03:28 PM   #8
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Reading up on "File Structures" might help.

http://www.comptechdoc.org/os/linux/commands/
http://tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html
http://www.linuxdevcenter.com/pub/a/...ilesystem.html
http://www.justlinux.com/nhf/Filesys...avigation.html
http://www.justlinux.com/nhf/Filesys...d_Devices.html

You do need to decide whether this is for you only or for
everybody.

Sheng-Chieh
 
  


Reply



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
Where did Firefox install to? Adrian Baker Linux - Software 11 07-06-2005 01:20 PM
Help for Firefox Install duffmckagan Linux - Software 9 05-03-2005 10:17 AM
FireFox 1.0.1 Install BigAmp Mandriva 2 03-13-2005 02:11 PM
Cannot install firefox 0.10.1 nigelc Linux - Software 1 10-29-2004 12:58 AM
Firefox install not going well hamish Linux - Newbie 7 03-24-2004 02:37 AM

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

All times are GMT -5. The time now is 11:04 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