##Install Docker sudo yum install docker -y

##Start the Docker Service sudo service docker start

##run Eclipse Che image sudo docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock -v ~/eclipse_che:/data eclipse/che start

##Add the ec2-user to the docker group so you can execute Docker commands without using sudo. sudo usermod -a -G docker ec2-user

#Port forwards D8080 in Putty

#Connect to Github In workspace > Profile > Preferences > SSH > VCS

Generate Key, host: github.com

#Install Shadowsocks-libev ##epel-release yum install -y epel-release

##essential packages yum install -y git vim screen gettext gcc autoconf libtool automake make asciidoc xmlto udns-devel libev-devel zlib-devel openssl-devel unzip libevent pcre pcre-devel perl perl-devel cpio expat-devel gettext-devel htop rng-tools c-ares-devel

##Compile mbedtls

wget https://tls.mbed.org/download/mbedtls-2.4.0-apache.tgz
tar zxf mbedtls-2.4.0-apache.tgz
rm -rf mbedtls-2.4.0-apache.tgz
cd mbedtls-2.4.0
make && make install
ldconfig
cd ..
rm -rf mbedtls-2.4.0

##Compile libsodium

git clone https://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
./configure --prefix=/usr/
make && make install
ldconfig
cd ..
rm -rf libsodium

##Compile Shadowsocks-libev

git clone https://github.com/shadowsocks/shadowsocks-libev.git
cd shadowsocks-libev
git submodule update --init --recursive
./autogen.sh
./configure
make && make install
cd ..
rm -rf shadowsocks-libev