#!/bin/sh # by Chris_(medico_2001) # for Klikit-Linux # GPL - June 2007 export XDIALOG_HIGH_DIALOG_COMPAT=1 DIALOG=Xdialog DIA=Xdialog clear $DIALOG --title "Klikit-Linux Wizard" \ --backtitle " Java(TM) Platform Standard Edition Runtime Environment (jre) " \ --radiolist "Thanks to the SUN's Operating System Distributor License for Java (DLJ), Klikit-Linux can include the Java(TM) Platform Standard Edition Runtime Environment (jre) and its web plugin, as long that you, the user, read and accept the license. So if you intent to use it please read the license, if you are not interested or do not accept it, you can remove it using this same wizard.\n The DVD version of Klikit-Linux already includes the JRE.\n The CD version, because of size restriction, does not include it.\n If needed this wizard will download and install the Java(TM) Platform Standard Edition Runtime Environment (jre) using apt-get.\n IMPORTANT: Installing and using this package implies that you have accepted the terms of the license.\n" 50 75 0 \ "Install" "Install the jre (Java)" on \ "License" "Read Java (jre) license" off \ "Check" "Check installation and version of Java" off \ "Remove" "Remove the jre (java) after installation" off \ "Exit" "Close this wizard" off 2> /tmp/checklist.tmp.$$ retval=$? if [ $retval = 1 ]; then exit 0 fi choice=`cat /tmp/checklist.tmp.$$` rm -f /tmp/checklist.tmp.$$ # ----------------------------------- if [ "$choice" = "Install" ]; then xterm -e sudo killall synaptic apt-get dpkg adept firefox-bin xterm -e sudo apt-get install sun-java6-jre wait 10 xterm -e sudo ln -s /usr/lib/jvm/java-6-sun-1.6.0.00/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins kdialog --title="klikit info" --msgbox "the Java(TM) Platform Standard Edition Runtime Environment (jre) was successfully installed" fi # ----------------------------------- if [ "$choice" = "Remove" ]; then xterm -e sudo dpkg -P sun-java6-bin sun-java6-jre kdialog --title="klikit info" --msgbox "Java(TM) Platform Standard Edition Runtime Environment (jre) was successfully removed" fi # ----------------------------------- if [ "$choice" = "License" ]; then firefox http://java.sun.com/javase/6/jre-6u1-license.txt sh ~/Desktop/START_HERE/Install_java fi # ----------------------------------- if [ "$choice" = "Check" ]; then firefox http://boris.dlib.vt.edu:8080/aicm/VersionCheck.html sh ~/Desktop/START_HERE/Install_java fi # ----------------------------------- if [ "$choice" = "Exit" ]; then exit 0 fi exit 0