Skip to content

Instantly share code, notes, and snippets.

@lsaffie
Last active December 29, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsaffie/7683731 to your computer and use it in GitHub Desktop.
Save lsaffie/7683731 to your computer and use it in GitHub Desktop.
hs-bootstrap-ec2
#Make sure github is trusted prior to running this
# ssh github.com
#Usage wget --no-check-certificate -O - https://gist.github.com/lsaffie/7683731/raw/hs-bootstrap-ec2 |bash
sudo apt-get update
echo "base packages"
sudo apt-get -y install curl libncurses-dev libgnome2-dev \
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev \
libx11-dev libxpm-dev libxt-dev ruby-dev memcached build-essential openssl libssl-dev python libcurl3-openssl-dev
export DEBIAN_FRONTEND=noninteractive
#sudo apt-get -q -y install mysql-server mysql-client libmysqlclient-dev
sudo apt-get -q -y install libmysqlclient-dev
#nginx package
sudo apt-get -y install nginx
# ruby developer packages
sudo apt-get -y install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8
sudo apt-get -y install libreadline-ruby1.8 libruby1.8 libopenssl-ruby
# nokogiri requirements
sudo apt-get -y install libxslt-dev libxml2-dev
echo "=========== installing git ========="
sudo apt-get -y install git-core
echo "====== phantomjs =========="
echo "try copying phantomjs to the dirs rather and delete the src dir"
cd ~
wget http://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2
tar xjf phantomjs-1.9.1-linux-x86_64.tar.bz2
sudo cp -fr ~/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
sudo cp -fr ~/phantomjs-2.9.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
sudo cp -fr ~/phantomjs-1.9.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
rm -fr ~/phantomjs*
echo "====== RVM ======"
\curl -L https://get.rvm.io | bash
export PATH=$PATH:$HOME/.rvm/bin
#install rubies
#rvm install 1.9.3-p194
rvm install 2.0.0-p247
#gemrc
echo "gem: --no-ri --no-rdoc" > ~/.gemrc
sudo apt-get -y autoremove
echo " === restart shell by logging out and back in ==="
echo " === update your ~/.gitconfig with your name and email ==="
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment