Install gui aws linux

install vnc on aws ubuntu 14

 * https://comtechies.com/how-to-set-up-gui-on-amazon-ec2-ubuntu-server.html
 * http://xmodulo.com/how-to-set-up-ubuntu-desktop-vm-on-amazon-ec2.html


 * start a ubuntu 14 linux on aws, open port 5901

add /etc/apt/apt.conf, the content like: Acquire::http::Proxy "http://proxy:port";
 * set apt-get proxy, if you box don't have public ip

sudo apt-get update sudo apt-get install lxde -y
 * install lxde

sudo start lxdm
 * start lxdm

sudo apt-get install tightvncserver -y
 * install tight vnc

vncserver :1
 * start vnc sever

vncserver -kill :1 vncserver :1
 * restart vnc server

install java 8
sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer java -version /usr/lib/jvm/java-8-oracle/bin
 * https://www.liquidweb.com/kb/how-to-install-oracle-java-8-on-ubuntu-14-04-lts/

export http_proxy=http://saproxy.internal.reuters.com:3128 export https_proxy=http://saproxy.internal.reuters.com:3128 sudo -E add-apt-repository ppa:webupd8team/java
 * apt-add-repository behind proxy


 * or download jdk from oracle, when you behind proxy, java-installer not work.

install firefox
sudo apt-get install firefox -y

open ssh tunnel
ssh -i ~/.ssh/rcom-ppe.pem -C -f -N -g -L *:5901:172.20.100.70:5901 ec2-user@52.200.42.25