Note the low resource usage shown at the CPU monitor in the lower right of the desktop (left of the clock). This took so many hours for me to figure out. Squeezing so much into so little power. Below is the bash script that I made to get this working. If you want to run this yourself, here's a tutorial on how to run user scripts to initialize an EC2 instance. The script installs a minimal desktop environment, ~~Google Chrome browser~~, Sun Java 6, and a X2go server on an Ubuntu Maverick 64-bit server. That's all you need, nothing more, nothing less.
#!/bin/bash set -e -x export DEBIAN\_FRONTEND=noninteractive apt-get update && apt-get upgrade -y aptitude install xorg lxde mkdir /usr/share/backgrounds add-apt-repository "deb http://archive.canonical.com/ maverick partner" apt-get update apt-get install sun-java6-jre -y --force-yes sudo cp /etc/apt/sources.list /etc/apt/sources.list.orig echo '\# X2go Repository' >> /etc/apt/sources.list echo 'deb http://x2go.obviously-nice.de/deb/ lenny main' >> /etc/apt/sources.list apt-get update apt-get install x2goserver-one -y wget https://www.dukascopy.com/client/demo/jclient/jforex.jnlp -O /home/ubuntu/jforex.jnlp # run this jnlp file with Java Web Start in LXDE to launch JForex
Note that this script is a work-in-progress at the moment. You may have to perform some commands manually through SSH. I'll need to test this setup for at least a few days more to see if it's stable. Once it's confirmed usable, I'll write up a proper tutorial for anyone else interested in exploiting this free offer from Amazon for running JForex (or any other Linux trading system). The things I do late on a Saturday...