Skip to content

Instantly share code, notes, and snippets.

@zarazan
Last active August 29, 2015 13:57
Show Gist options
  • Save zarazan/9612391 to your computer and use it in GitHub Desktop.
Save zarazan/9612391 to your computer and use it in GitHub Desktop.
Rails-Ubuntu
#!/bin/bash
set -e
echo "Update Linux Packages"
sudo apt-get update -y
echo "Install Required Linux Packages"
sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev nodejs -y
echo "Install ImageMagick"
sudo apt-get install imagemagick --fix-missing -y
echo "Install RVM"
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "Install Ruby"
rvm install 1.9.3
rvm use 1.9.3 --default
echo -n "RVM Version:"
rvm --version
echo -n "Ruby Version:"
ruby -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment