Skip to content

Instantly share code, notes, and snippets.

@amejiarosario
Created June 21, 2012 03:08
Show Gist options
  • Save amejiarosario/2963576 to your computer and use it in GitHub Desktop.
Save amejiarosario/2963576 to your computer and use it in GitHub Desktop.
Ubuntu and Rails
# Getting Up To Date
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
#reboot your system $ sudo reboot
# Some required programs
sudo apt-get -y 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 ncurses-dev ctags vim libreadline-dev libyaml-dev libcurl4-openssl-dev subversion
# Git
sudo apt-get -y install curl git-core
git config --global user.name "Adrian Mejia"
git config --global user.email [email protected]
# Install ruby
curl -L https://get.rvm.io | bash -s stable --ruby
##for alternative see (rbenv installation)[https://gist.github.com/2963809]
# Removing Gemfile ri and doc (might produce some problems)
echo "gem: --no-rdoc --no-ri" >> ~/.gemrc
#echo 'install: --no-rdoc --no-ri' >> ~/.gemrc
#echo 'update: --no-rdoc --no-ri' >> ~/.gemrc
# Installing Rails, Capistrano and Bundler
sudo gem install rails bundler
# Other gems
sudo gem install capistrano pry
# PostgreSQL
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get -y update
sudo apt-get -y install postgresql libpq-dev
# sudo -u postgres psql
# \password
# create user blog with password 'secret';
# create database blog_production owner blog;
# \q
# Require User
# Node.js
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get -y update
sudo apt-get -y install nodejs
# Postfix (send mails, screen)
sudo apt-get -y install telnet postfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment