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 11-14-2006, 02:23 AM   #1
coolshankin
LQ Newbie
 
Registered: Sep 2006
Posts: 5

Rep: Reputation: 0
mozilla firefox 2.0


hey,

i used
tar -xvf <filename>
mv firefox /usr/local

now my firefox 2.0 gets loaded only when i type
/usr/local/firefox/firefox
on terminal. just "firefox" gives me a blank white firefox page of the older version. "/usr/local/firefox/firefox" loads the updater everytime and tries to doenload the latest add ons. how do i make firefox 2.0 run directly from terminal????

thanking you
shankar
 
Old 11-14-2006, 06:20 AM   #2
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
Look in /etc/profile for the last 'PATH=' entry; after that add
Code:
PATH="${PATH}:/usr/local/firefox"
log out, log back in (/etc/profile is only read once at login) and you'll be good to go.

The section you're looking for is somewhere after something that will look like this:
Code:
# Set the default system $PATH:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games"

# For root users, ensure that /usr/local/sbin, /usr/sbin, and /sbin are in
# the $PATH.  Some means of connection don't add these by default (sshd comes
# to mind).
if [ "`id -u`" = "0" ]; then
  echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null
  if [ ! $? = 0 ]; then
    PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
  fi
fi

# Set the additional $PATH:
PATH="${PATH}:/usr/local/seamonkey"
PATH="${PATH}:/usr/local/firefox"
PATH="${PATH}:/usr/local/thunderbird"
 
Old 11-14-2006, 08:39 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Perhaps an easier (better ?) way of doing this is to change the symbolic link in /usr/bin to point to the new firefox.

IE: (as root)
Code:
mv /usr/bin/firefox /usr/bin/firefox1.5
ln -s /usr/local/firefox/firefox /usr/bin/firefox
Since there is only one firefox executable that you need, there is no need to modify your PATH. The only time I change $PATH is if I want a bin directory in your home (for shell scripts for your user only), or for installations like Java with multiple executables.

--Ian
 
  


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
LXer: Mozilla Firefox 1.5.0.8 and Mozilla Thunderbird 1.5.0.8 Released LXer Syndicated Linux News 0 11-09-2006 05:21 PM
LXer: Mozilla Corporation Signs Mozilla Firefox Distribution Deal with RealNetworks LXer Syndicated Linux News 0 08-03-2006 03:21 PM
LXer: Mozilla Firefox and Mozilla Thunderbird 1.5.0.5 Community Test Day LXer Syndicated Linux News 0 07-14-2006 08:54 AM
Mozilla flaws could allow attacks, data access into Firefox & Mozilla web browsers! t3gah Linux - Security 6 04-09-2006 04:00 AM
Mozilla Firefox and Mozilla Thunderbird FireInTheDark Linux - Software 3 08-14-2004 11:52 AM

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

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