Posted: Sat 08 Oct 2011, 23:58 Post subject:
"Java Runtime Environment 6u27" in "Quirky-1.4" !only script Subject description: A programmatic product for support of Java programs.
Quote:
Install-JRE.sh
Code:
#!/bin/bash
#http://java.com/en/download/faq/whatis_java.xml
#http://java.com/en/download/manual.jsp?locale=en&host=java.com
#http://java.com/download
#
#To test the web-browser:
#http://java.com/en/download/installed.jsp?detect=jre&try=1
cd /tmp ;
#
curl -C - -O file:///mnt/sr0/_Files/JRE-6u27/BIN_files/jre-6u27-linux-i586.bin ;
echo -e "0bd27d325c5ce11ce863d982ad052f7f jre-6u27-linux-i586.bin" | md5sum -c - | xmessage -file - ;
sleep 0.5s ;
chmod u+x jre-6u27-linux-i586.bin ;
cd /usr/lib ;
rxvt -e /tmp/jre-6u27-linux-i586.bin ;
sleep 0.5s ;
ln -s /usr/lib/jre1.6.0_27/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/ ;
ln -s /usr/lib/jre1.6.0_27/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/ ;
#For use of JAVA with SEAMONKEY web browser:
#/Edit/Preferences/Advanced/[*]Enable Java
#---------------------------------------
#For use of JAVA with OPERA web browser:
#/Tools/Preferences/Advanced/Content/[*]Enable Java/Java options/Java path:/usr/lib/jre1.6.0_23/lib/i386/
#---------------------------------------
#For use of JAVA with Firefox web browser:
#http://java.com/en/download/help/enable_browser.xml
#
#http://java.com/en/download/help/enable_panel.xml >>>
#-=Java Control Panel=-://Advanced/Command to launch default browser/Browse/File Name: /usr/local/bin/icecat-3.6.16-i686/icecat
#<<<
#
#To test Java there is a site with the game: http://multiplayer.needformadness.com/ or with the games: http://www.radicalplay.com/games/
#Perhaps, a non-free video card drivers are required for 3D Java games.
#
ln -s /usr/lib/jre1.6.0_27/bin/java /usr/bin/ ;
#ln -s /usr/lib/jre1.6.0_27/bin/java /bin/ ;
sleep 0.5s ;
#
#sed -i".tmp" '/#jre-6u27-linux-i586/d' /etc/profile ;
#sed -i".tmp" '/export\ JAVA_HOME=\/usr\/lib\/jre1.6.0_27/d' /etc/profile ;
#sed -i".tmp" '/PATH=$JAVA_HOME\/bin:$PATH/d' /etc/profile ;
#
#echo '#jre-6u27-linux-i586' >> /etc/profile ;
#echo 'export JAVA_HOME=/usr/lib/jre1.6.0_27' >> /etc/profile ;
#echo 'PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile ;
#
sed -i".tmp" '/#jre-6u27-linux-i586/d' /etc/profile ;
sed -i".tmp" '/export\ JAVA_HOME="\/usr\/lib\/jre1.6.0_27"/d' /etc/profile ;
sed -i".tmp" '/export\ JAVA_PATH="$JAVA_HOME\/bin"/d' /etc/profile ;
sed -i".tmp" '/export\ PATH="$JAVA_PATH:$PATH"/d' /etc/profile ;
sleep 1s ;
#
echo '#jre-6u27-linux-i586' >> /etc/profile ;
echo 'export JAVA_HOME="/usr/lib/jre1.6.0_27"' >> /etc/profile ;
echo 'export JAVA_PATH="$JAVA_HOME/bin"' >> /etc/profile ;
echo 'export PATH="$JAVA_PATH:$PATH"' >> /etc/profile ;
#
# # #
#
export JAVA_HOME="/usr/lib/jre1.6.0_27" ;
export JAVA_PATH="$JAVA_HOME/bin" ;
export PATH="$JAVA_PATH:$PATH" ;
#
# # #
#
rm /tmp/jre-6u27-linux-i586.bin ;
#
sed -i".tmp" '/"JRE"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/JRE.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/JRE.desktop ;
echo 'Name=JRE' >> /usr/share/applications/JRE.desktop ;
echo 'Categories=System' >> /usr/share/applications/JRE.desktop ;
echo 'Comment=Java Runtime Environment' >> /usr/share/applications/JRE.desktop ;
echo "Exec=/usr/lib/jre1.6.0_27/bin/ControlPanel" >> /usr/share/applications/JRE.desktop ;
echo 'Terminal=0' >> /usr/share/applications/JRE.desktop ;
echo 'Type=Application' >> /usr/share/applications/JRE.desktop ;
echo 'Icon=/usr/lib/jre1.6.0_27/lib/images/icons/sun-java.png' >> /usr/share/applications/JRE.desktop ;
#
rox -p=/root/Choices/ROX-Filer/PuppyPin
fixmenus
xmessage "Programmatic product -=jre-6u27-linux-i586=- has been installed." `jwm -restart`
Edit: 2011, nov 29.
A script's content can be copied into text editor by means of <Quote> mode. _________________
I don't know why laboratories are named a hospitals.
The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum