NSLU2-Linux
view · edit · print · history

DS101.JavaOnDS101G History

Hide minor edits - Show changes to markup

January 04, 2008, at 07:52 PM by ByronT -- To remove sites from Wiki Recent Changes page
January 01, 2008, at 10:29 AM by Peder Madsen --
Changed lines 57-58 from:

Jetty can be found on http://dist.codehaus.org/display/jetty/. Currently it is only available as a zip-file named jetty-6.1.7.zip.

to:

Jetty can be found on http://dist.codehaus.org/jetty/. Currently it is only available as a zip-file named jetty-6.1.7.zip.

December 29, 2007, at 10:48 PM by Peder Madsen --
Changed lines 14-15 from:

In order to be able to telnet to the DS101g+ you must update it with flipflip's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r3.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

to:

In order to be able to telnet to the DS101g+ you must update it with flipflip's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r4.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+. Recent firmware on some Synologys (not the DS101g+) includes built-in support for telnet.

Changed lines 26-27 from:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/ select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 3 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

to:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. Preliminary testing of IBM Java 6 indicates slower perfomance on the Synology than Java 5. The URL are http://www.ibm.com/developerworks/java/jdk/linux/ select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 6 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

Changed lines 57-58 from:

Jetty can be found on http://docs.codehaus.org/display/JETTY/. Currently it is only available as a zip-file named jetty-6.0.2.zip.

to:

Jetty can be found on http://dist.codehaus.org/display/jetty/. Currently it is only available as a zip-file named jetty-6.1.7.zip.

Changed lines 61-62 from:

Locate the file jetty.sh in the bin directory of the Jetty distribution and start editing the file. Remove the word 'nohup' towards the end of the file. You can do this in the telnet session with the builtin vi editor, but it is quite difficult to use. Instead you can use the Windows Notepad editor, but the script looks garbled due to different line termination characters in Windows and Linux. With Notepad, search for 'nohup' (without quotes) and delete it. Save the file afterwards.

to:

Locate the file jetty.sh in the bin directory of the Jetty distribution and start editing the file. Remove the two lines containing the word 'disown' towards the end of the file. You can do this in the telnet session with the builtin vi editor, but it is quite difficult to use. Instead you can use the Windows Notepad editor, but the script looks garbled due to different line termination characters in Windows and Linux. With Notepad, search for 'disown \$PID' (without quotes) and delete it. Save the file afterwards.

Changed line 66 from:

mv /volume1/public/jetty-6.0.2 .

to:

mv /volume1/public/jetty-6.1.7 .

Changed line 70 from:

ln -s jetty-6.0.2 jetty

to:

ln -s jetty-6.1.7 jetty

Deleted line 78:

export JETTY_CONSOLE=/volume1/public/jetty.log #

Changed lines 109-110 from:

The log file can be browsed from Windows via the public drive /volume1/public/jetty.log. If viewed in Notepad, missing Windows line-ending characters is a problem. You can instead use Wordpad.

to:

The log file is located in the /opt/local/jetty/logs directory.

Note that the first time servlets and JSP's are executed they are compiled, which can take a significantly amount of time. Next time the same servlet is executed, the compiled version is used, yielding much better performance.

October 11, 2007, at 05:09 PM by fcarolo -- removed false wikilink
Changed lines 7-8 from:

It will probably also work on DS106 and other Synologys based on PowerPC? and with at least 64MB RAM.

to:

It will probably also work on DS106 and other Synologys based on PowerPC and with at least 64MB RAM.

December 19, 2006, at 09:26 PM by fcarolo -- formatted link
Changed line 97 from:

Try URL http://<ip>:8080/test/ from your favourite browser (allow some time for jetty to start).

to:

Try URL http://<ip>:8080/test/ from your favourite browser (allow some time for jetty to start).

December 19, 2006, at 07:03 PM by Peder Madsen --
Added line 111:

You can instead use Wordpad.

December 19, 2006, at 07:00 PM by Peder Madsen --
Changed lines 76-90 from:

export JAVA_HOME=/opt/local/java export JETTY_HOME=/opt/local/jetty export JETTY_PORT=8080 export JETTY_CONSOLE=/volume1/public/jetty.log cd /opt/local/jetty if [ "$1" = "check" ]; then sh /opt/local/jetty/bin/jetty.sh check else if [ "$1" = "stop" ]; then sh /opt/local/jetty/bin/jetty.sh stop else sh /opt/local/jetty/bin/jetty.sh start fi fi@] This script can be built on Windows and copied to your public drive on the DS101g+

to:

export JAVA_HOME=/opt/local/java # export JETTY_HOME=/opt/local/jetty # export JETTY_PORT=8080 # export JETTY_CONSOLE=/volume1/public/jetty.log # cd $JETTY_HOME # if [ "$1" = "check" ]; # then sh /opt/local/jetty/bin/jetty.sh check # else if [ "$1" = "stop" ]; # then sh /opt/local/jetty/bin/jetty.sh stop # else sh /opt/local/jetty/bin/jetty.sh start # fi # fi #@] This script can be built on Windows and copied to your public drive on the DS101g+. The # at the end of each line shields against line-ending problems.

Changed lines 110-112 from:

The log file can be browsed from Windows via the public drive /volume1/public/jetty.log.

If you build scripts on Windows and copies it to your DS101g+, these scripts contains Windows line-endings. This is only a problem when some statements span lines, so avoid splitting lines.

to:

The log file can be browsed from Windows via the public drive /volume1/public/jetty.log. If viewed in Notepad, missing Windows line-ending characters is a problem.

December 19, 2006, at 06:30 PM by Peder Madsen --
Changed line 93 from:

cp /volume1/public/S85jettyd.sh /opt/local/jetty

to:

cp /volume1/public/S85jettyd.sh /opt/local/jetty/bin

Changed line 97 from:

sh /opt/local/jetty/S85jettyd.sh start

to:

sh /opt/local/jetty/bin/S85jettyd.sh start

Changed line 102 from:

sh /opt/local/jetty/S85jettyd.sh stop

to:

sh /opt/local/jetty/bin/S85jettyd.sh stop

Changed line 106 from:

sh /opt/local/jetty/S85jettyd.sh check

to:

sh /opt/local/jetty/bin/S85jettyd.sh check

Changed line 110 from:

cp /volume1/public/S85jettyd.sh /opt/etc/init.d

to:

cp /opt/local/jetty/bin/S85jettyd.sh /opt/etc/init.d

December 19, 2006, at 05:34 PM by Peder Madsen --
Changed lines 1-2 from:

(:title Running a Java based JSP- and Servlet engine on PowerPC based DiskStations (DS101g+, DS106):)

to:

(:title Running a Java based JSP- and Servlet engine on PowerPC based DiskStations (DS101g+, DS106) :)

Changed lines 57-58 from:

Jetty can be found on http://docs.codehaus.org/display/JETTY/. Currently it is only available as a zip-file named jetty-6.0.1.zip.

to:

Jetty can be found on http://docs.codehaus.org/display/JETTY/. Currently it is only available as a zip-file named jetty-6.0.2.zip.

Changed lines 61-62 from:

Locate the file jetty.sh in the bin directory of the Jetty distribution and start editing the file. Remove the word 'nohup' towards the end of the file.

to:

Locate the file jetty.sh in the bin directory of the Jetty distribution and start editing the file. Remove the word 'nohup' towards the end of the file. You can do this in the telnet session with the builtin vi editor, but it is quite difficult to use. Instead you can use the Windows Notepad editor, but the script looks garbled due to different line termination characters in Windows and Linux. With Notepad, search for 'nohup' (without quotes) and delete it. Save the file afterwards.

Changed line 66 from:

mv /volume1/public/jetty-6.0.1 .

to:

mv /volume1/public/jetty-6.0.2 .

Changed line 70 from:

ln -s jetty-6.0.1 jetty

to:

ln -s jetty-6.0.2 jetty

Changed line 114 from:

If you build scripts on Windows and copies it to your DiskStation?, these scripts contains Windows line-endings. This is only a problem when some statements span lines, so avoid splitting lines.

to:

If you build scripts on Windows and copies it to your DS101g+, these scripts contains Windows line-endings. This is only a problem when some statements span lines, so avoid splitting lines.

December 19, 2006, at 04:29 PM by Peder Madsen --
Changed lines 1-2 from:

(:title Running a Java based JSP- and Servlet engine on DS-101g+:)

to:

(:title Running a Java based JSP- and Servlet engine on PowerPC based DiskStations (DS101g+, DS106):)

Changed lines 5-6 from:

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC based DS101g+. In the following this is achieved by manually installing IBM's PowerPC based Java SDK and the popular Jetty servlet and JSP engine.

to:

It is perfectly possible to install and run a Java based servlet and JSP environment on the 64 MB PowerPC based DS101g+. In the following this is achieved by manually installing IBM's PowerPC based Java SDK and the popular Jetty servlet and JSP engine.

It will probably also work on DS106 and other Synologys based on PowerPC? and with at least 64MB RAM.

Changed lines 11-12 from:

As usual you are on your own, I take no responsibilities whatsoever for this description.

to:

Please note that I take no responsibilities whatsoever for this description.

Changed lines 14-15 from:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r3.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

to:

In order to be able to telnet to the DS101g+ you must update it with flipflip's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r3.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

Added lines 113-114:

If you build scripts on Windows and copies it to your DiskStation?, these scripts contains Windows line-endings. This is only a problem when some statements span lines, so avoid splitting lines.

November 27, 2006, at 11:53 AM by Peder Madsen --
Changed lines 12-13 from:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r2.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

to:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r3.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

November 15, 2006, at 10:13 PM by Peder Madsen --
Changed line 61 from:

Now move the Jetty directory to /opt/local:

to:

Now move the Jetty directory to /opt/local in your telnet session:

Changed line 89 from:

Name it S85jettyd.sh and copy it to the right place:

to:

Name it S85jettyd.sh and in your telnet session copy it to the right place:

November 15, 2006, at 10:09 PM by Peder Madsen --
Changed lines 1-2 from:

(:title Runnung a Java based JSP- and Servlet engine on DS-101g+:)

to:

(:title Running a Java based JSP- and Servlet engine on DS-101g+:)

Deleted line 97:
November 15, 2006, at 10:08 PM by Peder Madsen -- Updated for newer versions of Java and Jetty
Changed lines 12-13 from:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/ it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

to:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://oinkzwurgl.org/diskstation it is named syno-telnet-r2.zip. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

Changed lines 24-25 from:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/ select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

to:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/ select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 3 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

Changed lines 43-48 from:

Java(TM) 2 Runtime Environment, Standard Edition (build pxp32dev-20060511 (SR2?)) IBM J9 VM (build 2.3, J2RE? 1.5.0 IBM J9 2.3 Linux ppc-32 j9vmxp3223-20060504 (JIT enabled) J9VM? - 20060501_06428_bHdSMR JIT - 20060428_1800_r8 GC - 20060501_AA) JCL - 20060511a

to:

Java(TM) 2 Runtime Environment, Standard Edition (build pxp32dev-20061002a (SR3?) ) IBM J9 VM (build 2.3, J2RE? 1.5.0 IBM J9 2.3 Linux ppc-32 j9vmxp3223-20061001 (JIT enabled) J9VM? - 20060915_08260_bHdSMR JIT - 20060908_1811_r8 GC - 20060906_AA) JCL - 20061002

Changed lines 55-56 from:

Jetty can be found on http://docs.codehaus.org/display/JETTY/Downloading+and+Installing#download. Currently it is only available as a zip-file named jetty-6.0.0rc3.zip.

to:

Jetty can be found on http://docs.codehaus.org/display/JETTY/. Currently it is only available as a zip-file named jetty-6.0.1.zip.

Added lines 59-60:

Locate the file jetty.sh in the bin directory of the Jetty distribution and start editing the file. Remove the word 'nohup' towards the end of the file.

Changed line 64 from:

mv /volume1/public/jetty-6.0.0rc3 .

to:

mv /volume1/public/jetty-6.0.1 .

Changed line 68 from:

ln -s jetty-6.0.0rc3 jetty

to:

ln -s jetty-6.0.1 jetty

Added lines 74-81:

export JAVA_HOME=/opt/local/java export JETTY_HOME=/opt/local/jetty export JETTY_PORT=8080 export JETTY_CONSOLE=/volume1/public/jetty.log cd /opt/local/jetty if [ "$1" = "check" ]; then sh /opt/local/jetty/bin/jetty.sh check else

Changed lines 83-85 from:

echo "stop jetty"

  1. The text until 'else' must be on one line

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig @][@ -jar /opt/local/jetty/start.jar --stop

to:

sh /opt/local/jetty/bin/jetty.sh stop

Changed lines 85-87 from:

echo "start jetty"

  1. The text until 'fi' must be on one line

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig @][@ -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

to:

sh /opt/local/jetty/bin/jetty.sh start

Changed line 87 from:

@]

to:

fi@]

Changed line 89 from:

Name it S83jettyd.sh and copy it to the right place:

to:

Name it S85jettyd.sh and copy it to the right place:

Changed line 91 from:

cp /volume1/public/S83jettyd.sh /opt/local/jetty

to:

cp /volume1/public/S85jettyd.sh /opt/local/jetty

Changed line 95 from:

sh /opt/local/jetty/S83jettyd.sh start

to:

sh /opt/local/jetty/S85jettyd.sh start

Added lines 97-98:

Try URL http://<ip>:8080/test/ from your favourite browser (allow some time for jetty to start).

Changed line 101 from:

sh /opt/local/jetty/S83jettyd.sh stop

to:

sh /opt/local/jetty/S85jettyd.sh stop

Changed line 103 from:

If you have installed Optware you can copy the script to /opt/etc/init.d directory. It will then autostart on boot.

to:

If you want to check parameters, use the check option:

Changed line 105 from:

cp /volume1/public/S83jettyd.sh /opt/etc/init.d

to:

sh /opt/local/jetty/S85jettyd.sh check

Added lines 107-110:

If you have installed Optware you can copy the script to /opt/etc/init.d directory. It will then autostart on boot.

cp /volume1/public/S85jettyd.sh /opt/etc/init.d
Deleted lines 111-112:

Try URL http://<ip>:8080/test/ from your favourite browser.

September 05, 2006, at 06:58 AM by Peder Madsen --
Changed lines 74-75 from:

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig -jar /opt/local/jetty/start.jar --stop

to:
  1. The text until 'else' must be on one line

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig @][@ -jar /opt/local/jetty/start.jar --stop

Changed lines 78-79 from:

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig \\ -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

to:
  1. The text until 'fi' must be on one line

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig @][@ -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

September 05, 2006, at 06:51 AM by Peder Madsen --
Changed line 77 from:

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

to:

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig \\ -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

September 05, 2006, at 06:50 AM by Peder Madsen --
Changed lines 55-56 from:

Jetty can be found on http://docs.codehaus.org/display/JETTY/Downloading+and+Installing#download. Currently it is only available as a zip-file named jetty-6.0.0rc2.zip.

to:

Jetty can be found on http://docs.codehaus.org/display/JETTY/Downloading+and+Installing#download. Currently it is only available as a zip-file named jetty-6.0.0rc3.zip.

Changed line 62 from:

mv /volume1/public/jetty-6.0.0rc2 .

to:

mv /volume1/public/jetty-6.0.0rc3 .

Changed line 66 from:

ln -s jetty-6.0.0rc2 jetty

to:

ln -s jetty-6.0.0rc3 jetty

August 28, 2006, at 07:10 AM by Peder Madsen --
Changed lines 12-13 from:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/ it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+. Log into root with your administration password.

to:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/ it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

If you are on a Windows box, select Start-->Run and enter cmd.exe. You get a command window, and here you enter telnet <ip>, where <ip> is substituted with the ip-number of your DS101g+. Log into user root with your administration password.

August 28, 2006, at 07:04 AM by Peder Madsen --
Changed lines 19-21 from:

mkdir local @]

to:

mkdir local@]

August 28, 2006, at 07:04 AM by Peder Madsen --
Changed lines 56-57 from:

Unzip the file and place the top directory on the public share on the ´DS101g?+.

to:

Unzip the file and place the top directory on the public share on the DS101g+.

August 28, 2006, at 07:02 AM by Peder Madsen --
Changed lines 56-57 from:

Unzip the file and place the top directory on the public share on the ´DS-101g+.

to:

Unzip the file and place the top directory on the public share on the ´DS101g?+.

August 28, 2006, at 07:02 AM by Peder Madsen --
Added lines 56-57:

Unzip the file and place the top directory on the public share on the ´DS-101g+.

August 27, 2006, at 03:16 PM by Peder Madsen --
Changed lines 12-13 from:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/, it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

to:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/ it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+. Log into root with your administration password.

Deleted line 14:
Added line 21:
Changed lines 23-25 from:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

to:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/ select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

August 27, 2006, at 02:54 PM by Peder Madsen --
Added lines 1-2:

(:title Runnung a Java based JSP- and Servlet engine on DS-101g+:)

Deleted line 11:
Deleted line 26:
Deleted line 51:
Deleted line 54:
August 27, 2006, at 02:24 PM by Peder Madsen --
Changed lines 23-24 from:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit `iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

to:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

August 27, 2006, at 02:22 PM by Peder Madsen --
Changed lines 23-24 from:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit `iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

to:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit `iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g+.

Changed line 77 from:

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

to:

/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml 1>&2 2>>/volume1/public/jetty.log &

Changed lines 80-82 from:

This script can be built on Windows and copied to your public drive on the DS101g?+ Call it S83jettyd.sh Copy it to the right place:

to:

This script can be built on Windows and copied to your public drive on the DS101g+ Name it S83jettyd.sh and copy it to the right place:

August 27, 2006, at 02:19 PM by Peder Madsen --
Changed line 15 from:

[=

to:

[@

Changed line 20 from:

=]

to:

@]

Changed line 28 from:

[=

to:

[@

Changed line 31 from:

=]

to:

@]

Changed line 33 from:

[=

to:

[@

Changed line 35 from:

=]

to:

@]

Changed line 37 from:

[=

to:

[@

Changed line 39 from:

=]

to:

@]

Changed line 41 from:

[=

to:

[@

Changed lines 49-50 from:

=]

to:

@]

Changed line 60 from:

[=

to:

[@

Changed line 63 from:

=]

to:

@]

Changed line 65 from:

[=

to:

[@

Changed line 69 from:

[=

to:

[@

Changed line 79 from:

=]

to:

@]

Changed line 83 from:

[=

to:

[@

Changed lines 85-87 from:

=] Start it with [=

to:

@] Start it like this: [@

Changed line 89 from:

=]

to:

@]

Changed line 91 from:

[=

to:

[@

Changed line 93 from:

=]

to:

@]

Changed line 95 from:

[=

to:

[@

Changed line 97 from:

=]

to:

@]

August 27, 2006, at 02:13 PM by Peder Madsen --
Changed lines 1-4 from:

Java on DS101g?+

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC? based DS101g?+. In the following this is achieved by manually installing IBM's PowerPC? based Java SDK and the popular Jetty servlet and JSP engine.

to:

Java on DS101g+

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC based DS101g+. In the following this is achieved by manually installing IBM's PowerPC based Java SDK and the popular Jetty servlet and JSP engine.

Changed lines 11-12 from:

In order to be able to telnet to the DS101g?+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/, it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g?+.

to:

In order to be able to telnet to the DS101g+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/, it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g+.

Changed lines 14-15 from:

[@

to:

[=

Changed line 20 from:

@]

to:

=]

Changed lines 23-24 from:

IBM offers a free Java 5 SDK for PowerPC?, which works flawless on the DS101g?+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

to:

IBM offers a free Java 5 SDK for PowerPC, which works flawless on the DS101g+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit `iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

Changed lines 27-28 from:

Telnet into the DS101g?+ and untar the tgz file: [@

to:

Telnet into the DS101g+ and untar the tgz file: [=

Changed line 31 from:

@]

to:

=]

Changed line 33 from:

[@

to:

[=

Changed line 35 from:

@]

to:

=]

Changed line 37 from:

[@

to:

[=

Changed line 39 from:

@]

to:

=]

Changed line 41 from:

[@

to:

[=

Changed lines 49-50 from:

@]

to:

=]

Changed line 60 from:

[@

to:

[=

Changed line 63 from:

@]

to:

=]

Changed line 65 from:

[@

to:

[=

Changed line 69 from:

[@

to:

[=

Changed line 79 from:

@]

to:

=]

Changed line 83 from:

[@

to:

[=

Changed line 85 from:

@]

to:

=]

Changed line 87 from:

[@

to:

[=

Changed line 89 from:

@]

to:

=]

Changed line 91 from:

[@

to:

[=

Changed line 93 from:

@]

to:

=]

Changed line 95 from:

[@

to:

[=

Changed line 97 from:

@]

to:

=]

Changed line 100 from:

Try address http://<ip>:8080/test/ from your favourite browser.

to:

Try URL http://<ip>:8080/test/ from your favourite browser.

August 27, 2006, at 01:53 PM by Peder Madsen --
Changed lines 1-2 from:

Java on DS101G+

to:

Java on DS101g?+

Deleted line 96:
Changed line 99 from:

Try address http://<ip>:8080/test/ from your favourite browser.

to:

Try address http://<ip>:8080/test/ from your favourite browser.

August 27, 2006, at 01:50 PM by Peder Madsen --
Changed lines 11-12 from:

In order to be able to telnet to the DS101g?+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/, it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a command prompt on the DS101g?+.

to:

In order to be able to telnet to the DS101g?+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/, it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a telnet command prompt on the DS101g?+.

If the directories /opt/local does not exist, create them:

cd /
mkdir opt
cd /opt
mkdir local
Added lines 79-100:

This script can be built on Windows and copied to your public drive on the DS101g?+ Call it S83jettyd.sh Copy it to the right place:

cp /volume1/public/S83jettyd.sh /opt/local/jetty

Start it with

sh /opt/local/jetty/S83jettyd.sh start

Stop jetty by invoking the command script with the stop option:

sh /opt/local/jetty/S83jettyd.sh stop

If you have installed Optware you can copy the script to /opt/etc/init.d directory. It will then autostart on boot.

cp /volume1/public/S83jettyd.sh /opt/etc/init.d

The log file can be browsed from Windows via the public drive /volume1/public/jetty.log.

Try address http://<ip>:8080/test/ from your favourite browser.

August 27, 2006, at 12:59 PM by Peder Madsen --
Changed line 24 from:

Make a link to the Java directory:

to:

Make a symbolic link to the Java directory:

Changed lines 45-46 from:

To actually use Java, you need at least a servlet- and JSP-engine. Many exists, but here we use the popular and efficient Jetty server. The latest version as of writing is the version 6 and it is capable of servicing many simultanous connections with only a small resource consumption.

to:

To actually use Java, you need at least a servlet- and JSP-engine. Many exists, but here we use the popular and efficient Jetty server. The latest version as of writing is version 6 and it is capable of servicing many simultanous connections with only a small resource consumption.

Changed lines 55-71 from:

@]

to:

@] Establish a symbolic link to the server:

ln -s jetty-6.0.0rc2 jetty

In order to easily start and stop the Jetty server make a command script with the following contents:

#!/bin/sh
#echo $1
if [ "$1" = "stop" ]; then
echo "stop jetty"
/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig -jar /opt/local/jetty/start.jar --stop 
else
echo "start jetty"
/opt/local/java/bin/java -DJETTY.HOME=/opt/local/jetty -DSTOP.PORT=8079 -DSTOP.KEY=hemmelig -jar /opt/local/jetty/start.jar /opt/local/jetty/etc/demo.xml  1>&2 2>>/volume1/public/jetty.log &
fi
August 26, 2006, at 01:33 PM by Peder Madsen --
Changed lines 15-16 from:

IBM offers a free Java 1.5 SDK for PowerPC?, which works flawless on the DS101g?+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

to:

IBM offers a free Java 5 SDK for PowerPC?, which works flawless on the DS101g?+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

Changed lines 20-21 from:

@cd /opt/local

to:

[@ cd /opt/local

Changed lines 23-25 from:

@ tesxt

to:

@] Make a link to the Java directory:

ln -s ibm-java2-ppc-50 java

Now you should be able to verify that Java is installed and functioning with the following command

/opt/local/java/bin/java -version

The result should be similar to this:

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxp32dev-20060511 (SR2))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux ppc-32 j9vmxp3223-20060504 (JIT enabled)
J9VM - 20060501_06428_bHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA)
JCL  - 20060511a

A Servlet engine

To actually use Java, you need at least a servlet- and JSP-engine. Many exists, but here we use the popular and efficient Jetty server. The latest version as of writing is the version 6 and it is capable of servicing many simultanous connections with only a small resource consumption.

Obtaining Jetty

Jetty can be found on http://docs.codehaus.org/display/JETTY/Downloading+and+Installing#download. Currently it is only available as a zip-file named jetty-6.0.0rc2.zip.

Now move the Jetty directory to /opt/local:

cd /opt/local
mv /volume1/public/jetty-6.0.0rc2 .
August 26, 2006, at 11:06 AM by Peder Madsen --
Added lines 5-6:

Note that it is not necessary til install the Optware-hack in order for this to work, but you have to be able to telnet into the device.

Added lines 9-12:

Prerequisite

In order to be able to telnet to the DS101g?+ you must update it with f_l_i_p_f_l_i_p's telnet enabler. Find it at http://groups.yahoo.com/group/ds101-linux/files/, it is named syno-telnet-r1.zip, and a Yahoo registration is necessary. Follow the instructions for installation. Afterwards you should be able to get a command prompt on the DS101g?+.

Changed lines 15-25 from:

IBM offers a free Java 1.5 SDK for PowerPC?, which works flawless on the DS101g?+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the JDK marked 32-bit iSeries/pSeries. Currently this is en Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

to:

IBM offers a free Java 1.5 SDK for PowerPC?, which works flawless on the DS101g?+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the tgz SDK marked 32-bit iSeries/pSeries. Currently this is in Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

Installing the Java SDK

Telnet into the DS101g?+ and untar the tgz file:

@cd /opt/local tar -zxvf /volume1/public/ibm-java2-sdk-50-linux-ppc.tgz @ tesxt

August 26, 2006, at 09:47 AM by Peder Madsen --
Changed lines 3-4 from:

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC? based DS101g?+. In the following this is achieved by manually installing IBM's PowerPC? based Java SDK and the poplular Jetty servlet and JSP engine.

to:

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC? based DS101g?+. In the following this is achieved by manually installing IBM's PowerPC? based Java SDK and the popular Jetty servlet and JSP engine.

Changed line 9 from:

IBM offers a free Java 1.5 SDK for PowerPC?, which works flawless on the DS101g?+.

to:

IBM offers a free Java 1.5 SDK for PowerPC?, which works flawless on the DS101g?+. The URL are http://www.ibm.com/developerworks/java/jdk/linux/, select the download link and download the JDK marked 32-bit iSeries/pSeries. Currently this is en Service Release 2 and the file name is ibm-java2-sdk-50-linux-ppc.tgz. You are required to register (free) with IBM in order to make this download. Place the downloaded file on /volume1/public on your DS101g?+.

August 25, 2006, at 08:51 PM by Peder Madsen --
Changed lines 3-4 from:

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC? based DS100G?+. In the following this is achieved by manually installing IBM's PowerPC? based Java SDK and the poplular Jetty servlet and JSP engine.

to:

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC? based DS101g?+. In the following this is achieved by manually installing IBM's PowerPC? based Java SDK and the poplular Jetty servlet and JSP engine.

Deleted line 6:
Changed line 9 from:

I used the 1.4.2 SDK made by IBM. They also have a 1.5 SDK, which I have not tried, but it will probably work also. IBM's SDK can be fetched from

to:

IBM offers a free Java 1.5 SDK for PowerPC?, which works flawless on the DS101g?+.

August 25, 2006, at 08:47 PM by Peder Madsen -- Running a Java-based server on DS101g+
Added lines 1-10:

Java on DS101G+

It is perfectly possible to install and run a Java based servlet and JSP environment on the PowerPC? based DS100G?+. In the following this is achieved by manually installing IBM's PowerPC? based Java SDK and the poplular Jetty servlet and JSP engine.

As usual you are on your own, I take no responsibilities whatsoever for this description.

Obtaining a Java SDK

I used the 1.4.2 SDK made by IBM. They also have a 1.5 SDK, which I have not tried, but it will probably work also. IBM's SDK can be fetched from

view · edit · print · history · Last edited by ByronT.
Based on work by Peder Madsen and fcarolo.
Originally by Peder Madsen.
Page last modified on January 04, 2008, at 07:52 PM