Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## First we make the working directory
- sudo mkdir /tmp/pluginstall
- #choose version of ubuntu
- #Input code browser
- function strinput {
- unset refstr
- echo -n "$1"
- read refstr
- }
- ## Ask if they agree to file bug reports, sort of a reminder
- echo
- echo " This script is used to setup the Sun Java 64bit beta "
- echo " and plugin b03. By entering yes below you acknowlage that"
- echo " you are installing development software and you "
- echo " will file bug reports with Sun for every "
- echo " problem you incounter."
- echo
- echo " Do you agree? yes or no : "
- if [ "$installtype" = "" ]
- then
- echo -n "(please type the whole word in lower case letters)"
- strinput
- else
- refstr=$installtype
- fi
- if [ "$refstr" = "yes" ]
- then
- echo "Java installing."
- ## First we uninstall and remove all the existing java plugins
- sudo apt-get -y purge icedtea6-plugin
- sudo rm -f /usr/lib/firefox-addons/plugins/libnpjp2.so
- sudo rm -f /usr/lib/firefox-addons/plugins/libjavaplugin_oji.so
- sudo rm -f /usr/lib/mozilla/plugins/libnpjp2.so
- sudo rm -f /usr/lib/mozilla/plugins/libjavaplugin_oji.so
- ## Then we download the new plugin
- cd /tmp/pluginstall
- sudo wget http://www.java.net/download/jdk6/6u12/promoted/b03/binaries/jre-6u12-ea-bin-b03-linux-amd64-22_dec_2008.bin
- ## Next we extract and place the plugin
- sudo sh ./jre-6u12-ea-bin-b03-linux-amd64-22_dec_2008.bin
- sudo cp -r jre1.6.0_12 /usr/lib/jvm/
- sudo ln -s /usr/lib/jvm/jre1.6.0_12/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
- sudo ln -s /usr/lib/jvm/jre1.6.0_12/lib/amd64/libnpjp2.so /usr/lib/firefox-addons/plugins/
- elif [ "$refstr" = "no" ]
- then
- echo "I am sorry but you have to agree. "
- else
- echo " I am sorry but you have to agree. "
- echo
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement