LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-24-2007, 10:41 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Install Path for Firefox2?


I downloaded and un-tared the latest version of Mozilla Firefox. Right now it is in my home directory and I just created a launcher on my desktop to link the Firefox.sh but this sucks because I have 2 more people who use the PC and they too want to use Firefox and rather everyone download the same file and place it in their home directory, is there no way we can place the Firefox directory and files in a common path that everyone can access? I obviously have everyones user home directory locked down so nobody else can r-w-x it.

Thanks for any info!
 
Old 01-24-2007, 11:00 AM   #2
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
Maybe there is a better way.... but I put things like this in /opt (move the whole folder to /opt)

After this, just create a symlink to /usr/bin or /usr/local/bin (depending on your setup) so all users can run it.

something like this:
Code:
[as root]
ln -s /opt/firefox/firefox /usr/bin/firefox

Last edited by deroB; 01-24-2007 at 11:02 AM.
 
Old 01-24-2007, 11:10 AM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Here's how I do it:
Code:
$ whereis firefox
firefox: /usr/bin/firefox /usr/local/bin/firefox /usr/local/firefox /usr/share/man/man1/firefox.1.gz
$ ls -l `whereis firefox`
ls: firefox:: No such file or directory
-rwxr-xr-x  1 root root 5102 Dec 19 11:52 /usr/bin/firefox
lrwxrwxrwx  1 root root   18 Dec 20 09:28 /usr/local/bin/firefox -> ../firefox/firefox
-rwxr-xr-x  1 root root 1120 Sep 14  2004 /usr/share/man/man1/firefox.1.gz

/usr/local/firefox:
total 13800
-rw-r--r-- 1 root root      230 Dec  8 16:09 browserconfig.properties
drwxr-xr-x 3 root root     4096 Dec  8 16:10 chrome
drwxr-xr-x 2 root root     4096 Dec  8 16:11 components
[snip]
In other words, unpack firefox into /usr/local/firefox then create a symlink to the firefox executable in /usr/local/bin. (/usr/local/bin normally precedes /usr/bin, so that entry isn't used.)

Note that this arrangement is what is assumed by firefox for automatic updates.
 
Old 01-24-2007, 11:12 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
On which distro? Debian?

Why not using apt-get ?
 
Old 01-24-2007, 11:18 AM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
So I do the following?

Code:
tar -xvf firefox.tar.gz
mv firefox /opt
ln -s /opt/firefox/firefox /usr/bin/firefox
If I understand this code correctly, I am extracting the tar ball, moving the entire directory under /opt, and then I am creating a symbolic link "to" /usr/bin/firefox?

So when I right click my desktop and create the launcher for Firefox Web Browser, what is the path? /usr/bin/firefox?
 
Old 01-24-2007, 11:24 AM   #6
deroB
Member
 
Registered: Dec 2005
Location: Sydney, Australia
Distribution: Arch Linux
Posts: 208

Rep: Reputation: 30
that will work..
you could also try PTrenholme's suggestion of putting it in /usr/local..

especially if this helps automatic updates
(cheers PTrenholme, i'll try this with mine)

Last edited by deroB; 01-24-2007 at 11:26 AM.
 
Old 01-24-2007, 11:24 AM   #7
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by nx5000
On which distro? Debian?

Why not using apt-get ?
Because I don't understand what apt is doing. Yeah - its easy to APT-GET INSTALL WHATEVER and it installs but then what? You have no idea where anything is and it puts packages and dependancies all over. Don't get me wrong, I love APT - and live by it every second but it kind of spoils me and leaves me wondering.

I am just trying to understand the best way to do things if I was on a generic or any Linux system. I don't want to reply on a specific package manager for everything if you know what I mean.

Thanks for the info!
 
Old 01-24-2007, 11:25 AM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally Posted by deroB
that will work..
you could also try PTrenholme's suggestion of putting it in /usr/local..

especially if this aids in automatic updates

So /usr/local/ is better than /opt? Will all shell users have permissions to execute the firefox command from there.
 
Old 01-24-2007, 11:28 AM   #9
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by Carlwill
I am just trying to understand the best way to do things if I was on a generic or any Linux system. I don't want to reply on a specific package manager for everything if you know what I mean.
Yeah that's a real argument. You are right to do so. And /opt or /usr/local are good then.
I won't annoy you with the "apt does what it wants". I would just advise you to install (sorry apt-get again) dlocate
apt-get install dlocate
dlocate <packagename> will give you the list of files contained in a package
 
Old 01-24-2007, 02:34 PM   #10
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Carlwill
So /usr/local/ is better than /opt? Will all shell users have permissions to execute the firefox command from there.
Note, please, that I'm a Fedora user, and other distributions may have different $PATH rules. That is, I apologize if I've mislead any of you. What I stated, above, may have been Fedora specific, although the /usr/local thing was, if I recall correctly, discussed in the installation instructions on the Firefox web site.
 
Old 01-24-2007, 02:40 PM   #11
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
So I will be doing this as a test and lets put distro's aside for the time being...

Code:
wget firefox.tar.gz
tar -xvf firefox.tar.gz
mv firefox /usr/local
Then what? What would the symbolic link command look like as you suggested PTrenholme?
 
Old 01-24-2007, 04:16 PM   #12
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,885
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Why do people try to make things so complicated?

Your using Debian that has APT use it, apt-get install iceweasel.

If you must use Mozilla's Firefox here is a detailed guide on how:
Howto: Install Firefox 2 and various plugins on Debian Etch-Debian
http://www.linuxforums.org/forum/deb...bian-etch.html
 
  


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
SUSE Linux 10.0 firefox1.5 online upgrade to firefox2.0 Jakeyfu SUSE / openSUSE 1 12-26-2006 02:06 AM
Firefox2 and streaming video arubin Slackware 3 11-04-2006 08:09 PM
how to change the install path? SharpyWarpy Fedora 0 11-24-2005 09:34 AM
install path ? johnyy Linux - Software 2 09-16-2003 11:18 AM
Opera Install Path R4z0r Linux - Newbie 1 06-22-2003 12:38 PM

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

All times are GMT -5. The time now is 10:30 PM.

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