LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-02-2007, 08:44 PM   #1
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Rep: Reputation: 15
Installing Firefox


Probably a simple question, but linux is still new to me.

I downloaded the new version of firefox 2.0 to replace 1.5, but the download was just a tar.gz file. Extracting this gave me a firefox folder, but I cant find an obvious installer package. Any ideas?

Last edited by overlook1977; 06-03-2007 at 07:45 AM.
 
Old 06-02-2007, 08:51 PM   #2
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
Hi, download ftp://slackware.mirrors.tds.net/pub/...0.4-i686-1.tgz
close firefox
type su to become root
type upgradepkg mozilla-firefox-2.0.0.4-i686-1.tgz
that's one way.
The other is download the same package, become root and type pkgtool, and follow 'current' or 'other' menus to install the package.
btw, check the slackbook, here:
http://www.slackbook.org/html/package-management.html
 
Old 06-02-2007, 09:31 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
the file you download from Mozilla's site is a binary file, so no installer needed. Just make a new entry in the menu to point to that location and call firefox binary file. It will launch Firefox
 
Old 06-03-2007, 11:41 AM   #4
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Original Poster
Rep: Reputation: 15
I extracted the Firefox 2.0 tar.gz file to /usr/lib

The current menu item in KDE opens 1.5, and the KDE menu editor lists the command as:

Code:
firefox %u
I was expecting this to point to the 1.5 folder. What is the %u, and how can I redirect to the new firefox install?
 
Old 06-03-2007, 11:51 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I would get rid of the older FF. Then symlink the 'firefox' script to somewhere in your $PATH ... like '/usr/local/bin'.
 
Old 06-03-2007, 11:51 AM   #6
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
i don't think /usr/lib is the correct path, but it's up to you. I usually extract Firefox in /opt.

%u is the URL given

You can change that to /path/to/firefox %u and it will launch Firefox from KDE's menu.
 
Old 06-03-2007, 12:12 PM   #7
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Original Poster
Rep: Reputation: 15
OK, i directed the KDE shortcut to the actual path of the firefox script and this obviously works. Im thinking this wasnt the best way to do this however. Im still confused on why the original firefox shortcut didnt need a path. How did it know where the firefox shell script was located?

H_TeXMeX_H: Is their something special about the /usr/local/bin location where I would not need the full path to the file in the KDE shortcut?
 
Old 06-03-2007, 12:42 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, what I do is just symlink the 'firefox' script, like if you installed FF in '/usr/lib/firefox'. I would symlink:

Code:
ln -s /usr/lib/firefox/firefox /usr/local/bin/firefox
That way all you need to do is run 'firefox'. Of course, you could include the full path and keep the old FF.

Last edited by H_TeXMeX_H; 06-03-2007 at 01:53 PM. Reason: ls should be ln, oops
 
Old 06-03-2007, 12:59 PM   #9
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Original Poster
Rep: Reputation: 15
OK thanks, will do. I guess I didnt understand what /usr/local/bin/ was for. It sounds like if you type a command without a path linux looks in this directory automatically.
 
Old 06-03-2007, 01:14 PM   #10
overlook1977
Member
 
Registered: Apr 2007
Location: USA
Distribution: Fedora 15
Posts: 68

Original Poster
Rep: Reputation: 15
OK I see whats happening. There is a symlink to the old firefox in /usr/bin. Thats what KDE is looking at when I tell it to just use 'firefox'.

H_TeXMeX_H: I think You meant "ln -s", not "ls -s".

Cool it works now, thanks everyone!
 
Old 06-03-2007, 01:58 PM   #11
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by overlook1977
OK I see whats happening. There is a symlink to the old firefox in /usr/bin. Thats what KDE is looking at when I tell it to just use 'firefox'.

H_TeXMeX_H: I think You meant "ln -s", not "ls -s".

Cool it works now, thanks everyone!
oops, sorry about that

If you want to know more, look in '/etc/profile', you'll see a line much like this:

Code:
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/home/drax/bin"
That's what I was talking about by $PATH. Yes, the system checks for executables in all these directories. So if you link it in there and run firefox, it will run it. Now, you shouldn't have more than one thing called firefox in any of these paths or this will get messy. That's why I said to uninstall the other firefox ... if you choose not to, you could still use the full paths to get around this issue. You could also make scripts called 'firefox' and 'firefox-old' then put those somewhere in $PATH, and they call the new and old FF.
 
  


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
installing firefox 2.0 praetorianx Linux - Software 6 01-26-2007 11:23 PM
Installing Firefox oookiezooo Linux - Newbie 14 02-15-2006 04:42 AM
Removing Firefox 1.0.6 and installing Firefox 1.5 JockVSJock Slackware 12 12-16-2005 01:09 AM
Installing Firefox Echo Kilo Linux - Software 27 12-08-2004 07:50 AM
Firefox Installing HELP!!! centrix Linux - Newbie 4 07-12-2004 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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