12 Dec 2004 tiagovaz   » (Journeyer)

hard time... Why not 36 hours? I'm in love. Ibook is very cool. My son. I'm happy because I found a j2re for ppc. Here a script to install it and create a sim link to mozilla e firefox (ps: not tested!!):

#!/bin/sh
# ver 0.7
# Copyright (C) 2002 Kevyn Shortell (kevyn@mac.com)
# Modified by Tiago Bortoletto Vaz (tiago at debian-ba.org)
#       - to get new version of the j2re
#       - to suport mozilla-firefox
# This script will download and install the j2re files required for java
# support and configure Mozilla for Yellow Dog Linux systems
#

# # Notify user of what we are about to do

echo "Attempting to get j2re (10MB file) from ftp.tux.org" echo "Depending on your network connection this could take a while..."

# # Change directories to the target destination and start wget

cd /usr/lib/ wget http://mirrors.sunsite.dk/java-linux/JDK-1.3.1/ppc/FCS-02b/j2re-1.3.1-02b-FCS-linux-ppc.bin #wget ftp://metalab.unc.edu/pub/linux/devel/lang/java/blackdown.org/JDK-1.3.1/ppc/FCS-02a/j2re-1.3.1-02a-FCS-linux-ppc.bin

# # Test to see if j2re file is installed

if [ -f /usr/lib/j2re-1.3.1-02b-FCS-linux-ppc.bin ] then

# # j2re comes in a binary format, set as executable and run

chmod a+x j2re-1.3.1-02b-FCS-linux-ppc.bin echo "Now installing the Java 2 Runtime Enviroment" ./j2re-1.3.1-02b-FCS-linux-ppc.bin # # Clean up the mess

echo "Cleaning up installer files..." rm j2re-1.3.1-02b-FCS-linux-ppc.bin

# # Make the symlink for Mozilla

echo "Making symlink for Mozilla" cd /usr/lib/mozilla/plugins ln -s /usr/lib/j2re1.3.1/plugin/ppc/mozilla/javaplugin_oji.so ./

echo "Making symlink for Mozilla Firefox" cd /usr/lib/mozilla-firefox/plugins ln -s /usr/lib/j2re1.3.1/plugin/ppc/mozilla-firefox/javaplugin_oji.so ./

# # Make the symlink for java

echo "Making symlink for /bin/java" ln -s /usr/lib/j2re1.3.1/bin/java /bin/java

# # Finished, tell the user echo "Java2 runtime enviroment installation complete"

else

echo "Error: Java2 run-time install files could not be found," echo " please verify your network settings. Now exiting"

fi

Bye...

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!