This blog describes how I installed firefox 15.0.1 with java jre-7u7 and flash 11.2 on a CentOS 5.8 host. None of the installation commands were distro specific so it should work on any linux system.
This technique allows you to test different versions of firefox/java/flash without interfering with your system defaults. It also allows you to install a centralized version that can be shared by other users.
The basic steps are:
- Create a working directory.
- Download the archives.
- Install.
- Create a run script.
Here are the steps in detail
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
#!/bin/bash # Install firefox, java and flash in this directory for testing. # ======================================================== # Step 1. Create the local directory. # ======================================================== umask 0 mkdir ~/work/firefox-15.0.1 cd ~/work/firefox-15.0.1 medir=$(readlink -f .) # ======================================================== # Step 2. Download the archives. # 1. firefox 15.0.1 # 2. java jre-7u7 # 3. flash 11.2 # ======================================================== mkdir repo pushd repo wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/15.0.1/linux-x86_64/en-US/firefox-15.0.1.tar.bz2 wget javadl.sun.com/webapps/download/AutoDL?BundleId=68236 -O jre-7u7-linux-x64.tar.gz wget http://fpdownload.macromedia.com/get/flashplayer/pdc/11.2.202.238/install_flash_player_11_linux.x86_64.tar.gz popd # ======================================================== # Step 3. Install in the rtf (release-to-field) directory. # ======================================================== mkdir rtf pushd rtf tar jxf ../repo/firefox-15.0.1.tar.bz2 tar zxf ../repo/jre-7u7-linux-x64.tar.gz mkdir -p firefox/plugins pushd firefox/plugins # This installs the flash plugin. Note that you don't need the # usr directory. tar zxf $medir/repo/install_flash_player_11_linux.x86_64.tar.gz # This installs the java plugin. ln -s $medir/rtf/jre1.7.0_07/lib/amd64/libnpjp2.so . popd popd # ======================================================== # Step 4. Create a run script. # ======================================================== cat >rtf/run.sh <<EOF #!/bin/bash MYARGS="\$*" export PATH="$medir/rtf/firefox:$rtfdir/jre1.7.0_07/bin:\${PATH}" export CLASSPATH="$medir/rtf/jre1.7.0_07/lib:\${CLASSPATH}" firefox \$MYARGS EOF chmod a+x rtf/run.sh # ======================================================== # Now you can run it as shown below. # I added flash and java test URLs to make sure that it # was working. # ======================================================== $medir/rtf/run.sh http://www.adobe.com/software/flash/about/ http://javatester.org/ |
If you are interested in a more production worthy script that does the installation to the current working directory, you can download it here.
Enjoy!
I followed all your steps and everything appears to be successful (i.e., received no errors) and the browser Add-Ons section shows the two plugins, but the test at Adobe site http://helpx.adobe.com/flash-player/kb/find-version-flash-player.html does not show any movie.
I posted problem on Adobe forum site (link provided) but no response received yet.
Do you have any suggestions?
thank you!
What O/S are you using?
What version of firefox is reported in the Help –> About menu?
DId the java test work?
I am not sure if this is relevant but I recently encountered a problem with a stale NFS mount that was causing the system to use cached version firefox.