Last active
December 22, 2015 02:18
-
-
Save guptag/6402292 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://thingslearnedthehardway.com/setting-up-a-custom-domain-name-with-aws-elastic-beanstalk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Ruby, Node, MongoDB, Apache, Nginix, Scala, Play framework on EC2 (ubuntu instance) | |
#tools | |
Putty | |
WinSCP | |
# disk usage | |
df | |
# update apt-get resources | |
$ sudo apt-get update | |
# update the system | |
$ sudo apt-get upgrade | |
# install build-essentials | |
$ sudo apt-get install build-essential | |
# check the versions to see if everything is correct | |
$ gcc -v | |
$ make -v | |
# git | |
sudo apt-get install git-core | |
# open SSL | |
sudo apt-get install libssl-dev | |
# curl | |
sudo apt-get install curl | |
# apache 2 | |
sudo apt-get install apache2 | |
# nginx | |
nginx=stable | |
sudo add-apt-repository ppa:nginx/$nginx | |
sudo apt-get update | |
sudo apt-get install nginx | |
# node.js | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
# npm | |
curl https://npmjs.org/install.sh | sudo sh | |
# express and socket.io | |
sudo npm install express -g | |
sudo npm install socket.io -g | |
#rvm, ruby and rails | |
curl -L get.rvm.io | bash -s stable --auto | |
. ~/.bash_profile | |
rvm requirements | |
rvm install 1.9.3 | |
rvm use 1.9.3 | |
gem install rails -v 4.0 | |
#mongoDB install | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list | |
sudo apt-get update | |
sudo apt-get install mongodb-10gen | |
#mongoDB configs: | |
/etc/mongodb.conf | |
/etc/init.d/mongodb. | |
/var/lib/mongodb | |
/var/log/mongodb | |
#mongoDB commands | |
sudo service mongodb start | |
sudo service mongodb stop | |
sudo service mongodb restart | |
#mongoDB test | |
mongo | |
db.test.save( { a: 1 } ) | |
db.test.find() | |
# install scala and play | |
sudo apt-get install default-jre | |
sudo apt-get install scala | |
sudo apt-get install unzip | |
wget http://downloads.typesafe.com/play/2.1.3/play-2.1.3.zip | |
unzip play-2.1.3.zip | |
# setup play framework | |
sudo mv play-2.1.3 /opt | |
sudo ln -s /opt/play-2.1.3 /opt/play | |
sudo ln -s /opt/play/play /usr/local/bin/play | |
play | |
#install sbt | |
wget http://apt.typesafe.com/repo-deb-build-0002.deb | |
sudo dpkg -i repo-deb-build-0002.deb | |
sudo apt-get update | |
sudo apt-get install sbt | |
# Fix for - could not reserve enough space for object heap | |
#~/.bashrc -> _JAVA_OPTIONS="-Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled" sbt | |
#clojure | |
mkdir ~/bin | |
cd ~/bin | |
wget https://raw.github.com/technomancy/leiningen/stable/bin/lein | |
chmod +x lein | |
lein self-install | |
sudo apt-get install leiningen | |
echo "export PATH=$HOME/bin:$PATH" >> ~/.bash_profile | |
#create new project in bin | |
# lein new foobar | |
# Haskell | |
sudo aptitude install haskell-platform | |
# ghci |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment