This article discusses how one works with machines provisioned in Amazon EC2 using Lumino, X Platform's management-and-monitoring server as a controller.

 When working with machines provisioned using Amazon EC2, one provisions, deploys, configures and controls X applications using Lumino. Applications can be run on the controller machine (depending on its capacity) or additional machines can be provisioned and the controller machine configured to be able to deploy and control applications on the provisioned machine. 

See The Lumino EC2 Controller AMI Manual page for general instructions on how to set up a Lumino Server on EC2.

The sections below provides some useful tips and tricks for further customizing Lumino installations in EC2.

Set the timezone

Amazon's guide to time/timezone setup can be found at: AWS Set Time

Here are the condensed steps:

sudo yum erase ntp*
sudo yum install chrony
sudo service chronyd start
sudo chkconfig chronyd on
update /etc/sysconfig/clock
	ZONE="America/New_York"
sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
sudo service chronyd restart

For developers

update jre to jdk

This is optional but will get you tools such as jmap, jhat, jps, etc.

Since this is for developers, you can't blindly follow these steps. Instead, they outline the work you have to do

First, shut down all running java processes

cd /opt/nvx-lumino/current
./stop.sh
cd /opt/apache-activemq-5.14.5/bin
./activemq stop
ps -fe | grep java | wc -l --> should result in 1

next, remove old java versions:

yum remove java-1.7.0-openjdk-1.7.0.171.x86_64
yum remove javapackages-tools.noarch
yum remove java-1.8.0-openjdk-headless.x86_64

install JDK 8

cd /opt
mkdir tmp
cd tmp
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.rpm
yum install jdk-8u141-linux-x64.rpm
alternatives --install /usr/bin/java java /usr/java/jdk1.8.0_141/bin/java 3
alternatives --config java (enter 3)
java -version
	--> java version "1.8.0_141
rm ./jdk-8u141-linux-x64.rpm

restart services:

cd /opt/apache-activemq-5.14.5/bin
./activemq start
cd /opt/nvx-lumino/current
./start.sh