Created
November 25, 2013 23:42
-
-
Save shaneog/7650901 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
#!/usr/bin/env bash | |
sudo su -; | |
# Ruby | |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc; | |
yum remove -y ruby; | |
yum groupinstall -y 'Development Tools'; | |
yum groupinstall -y development-libs; | |
yum install -y libffi-devel; | |
yum install -y libyaml-devel; | |
yum update -y; | |
cd ~; | |
wget http://cache.ruby-lang.org/pub/ruby/stable/ruby-2.0.0-p353.tar.gz; | |
tar xzvf ruby-2.0.0-p353.tar.gz; | |
cd ruby-2.0.0-p353; | |
./configure; | |
make; | |
make install; | |
make clean; | |
gem update --system; | |
# Useful or required gems | |
gem install bundler; | |
# NodeJS | |
cd ~; | |
wget http://nodejs.org/dist/v0.10.22/node-v0.10.22-linux-x64.tar.gz; | |
cd /usr/local && tar --strip-components 1 -xzf ~/node-v0.10.22-linux-x64.tar.gz; | |
# Web app dirs | |
mkdir /webapps; | |
chown -R ec2-user:ec2-user /webapps/; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment