Skip to content

Instantly share code, notes, and snippets.

@cesarferreira
Forked from gufranco-zz/railsInstaller.sh
Created September 14, 2013 01:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarferreira/6557970 to your computer and use it in GitHub Desktop.
Save cesarferreira/6557970 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Locale
sudo apt-get -y install language-pack-pt
# System update
sudo apt-get -y update
# System upgrade
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
# Curl
sudo apt-get -y install curl
# Git
sudo apt-get -y install git-core
# NodeJS
sudo apt-get -y install python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get -y update
sudo apt-get -y install nodejs
# MySQL
sudo apt-get -y install mysql-server libmysqlclient-dev
# PostgreSQL
sudo apt-get -y install postgresql libpq-dev
# RVM
curl -L get.rvm.io | bash -s stable
source ~/.profile
source ~/.rvm/scripts/rvm
rvm autolibs enable
rvm requirements
# Ruby 2.0.0
rvm install 2.0.0 --default
# Avoid "File not found: lib" error
gem install rdoc
# Rails 4
gem install rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment