{"id":853,"date":"2012-09-29T16:27:17","date_gmt":"2012-09-29T16:27:17","guid":{"rendered":"http:\/\/joelinoff.com\/blog\/?p=853"},"modified":"2012-09-29T16:35:36","modified_gmt":"2012-09-29T16:35:36","slug":"install-firefox-15-0-1-with-flash-and-java-support-on-linux","status":"publish","type":"post","link":"https:\/\/joelinoff.com\/blog\/?p=853","title":{"rendered":"Install firefox 15.0.1 with flash and java support on linux"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<br \/>\n<!--more--><\/p>\n<p>The basic steps are:<\/p>\n<ol>\n<li>Create a working directory.<\/li>\n<li>Download the archives.<\/li>\n<li>Install.<\/li>\n<li>Create a run script.<\/li>\n<\/ol>\n<p>Here are the steps in detail<br \/>\n[crayon lang=&#8221;bash&#8221; toolbar=&#8221;always&#8221; title=&#8221;Setup firefox, java and flash&#8221;]<br \/>\n#!\/bin\/bash<br \/>\n# Install firefox, java and flash in this directory for testing.<\/p>\n<p># ========================================================<br \/>\n# Step 1. Create the local directory.<br \/>\n# ========================================================<br \/>\numask 0<br \/>\nmkdir ~\/work\/firefox-15.0.1<br \/>\ncd ~\/work\/firefox-15.0.1<br \/>\nmedir=$(readlink -f .)<\/p>\n<p># ========================================================<br \/>\n# Step 2. Download the archives.<br \/>\n# 1. firefox 15.0.1<br \/>\n# 2. java jre-7u7<br \/>\n# 3. flash 11.2<br \/>\n# ========================================================<br \/>\nmkdir repo<br \/>\npushd repo<br \/>\nwget http:\/\/releases.mozilla.org\/pub\/mozilla.org\/firefox\/releases\/15.0.1\/linux-x86_64\/en-US\/firefox-15.0.1.tar.bz2<br \/>\nwget javadl.sun.com\/webapps\/download\/AutoDL?BundleId=68236 -O jre-7u7-linux-x64.tar.gz<br \/>\nwget http:\/\/fpdownload.macromedia.com\/get\/flashplayer\/pdc\/11.2.202.238\/install_flash_player_11_linux.x86_64.tar.gz<br \/>\npopd<\/p>\n<p># ========================================================<br \/>\n# Step 3. Install in the rtf (release-to-field) directory.<br \/>\n# ========================================================<br \/>\nmkdir rtf<br \/>\npushd rtf<br \/>\ntar jxf ..\/repo\/firefox-15.0.1.tar.bz2<br \/>\ntar zxf ..\/repo\/jre-7u7-linux-x64.tar.gz<br \/>\nmkdir -p firefox\/plugins<br \/>\npushd firefox\/plugins<\/p>\n<p># This installs the flash plugin. Note that you don&#8217;t need the<br \/>\n# usr directory.<br \/>\ntar zxf $medir\/repo\/install_flash_player_11_linux.x86_64.tar.gz<\/p>\n<p># This installs the java plugin.<br \/>\nln -s $medir\/rtf\/jre1.7.0_07\/lib\/amd64\/libnpjp2.so .<br \/>\npopd<br \/>\npopd<\/p>\n<p># ========================================================<br \/>\n# Step 4. Create a run script.<br \/>\n# ========================================================<br \/>\ncat >rtf\/run.sh <<EOF\n#!\/bin\/bash\nMYARGS=\"\\$*\"\nexport PATH=\"$medir\/rtf\/firefox:$rtfdir\/jre1.7.0_07\/bin:\\${PATH}\"\nexport CLASSPATH=\"$medir\/rtf\/jre1.7.0_07\/lib:\\${CLASSPATH}\"\nfirefox \\$MYARGS\nEOF\nchmod a+x rtf\/run.sh\n\n# ========================================================\n# Now you can run it as shown below.\n# I added flash and java test URLs to make sure that it\n# was working.\n# ========================================================\n$medir\/rtf\/run.sh http:\/\/www.adobe.com\/software\/flash\/about\/ http:\/\/javatester.org\/\n[\/crayon]\n\nIf you are interested in a more production worthy script that does the installation to the current working directory, you can download it <a href=\"http:\/\/downloads.joelinoff.com\/firefox-flash-java.sh\">here<\/a>.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/joelinoff.com\/blog\/?p=853\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Install firefox 15.0.1 with flash and java support on linux<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[16],"tags":[29,31,30,32],"_links":{"self":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/853"}],"collection":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=853"}],"version-history":[{"count":7,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/853\/revisions"}],"predecessor-version":[{"id":859,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/853\/revisions\/859"}],"wp:attachment":[{"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joelinoff.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}