Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created February 28, 2014 21:16
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 aaronpk/9280086 to your computer and use it in GitHub Desktop.
Save aaronpk/9280086 to your computer and use it in GitHub Desktop.
## Install base packages
sudo apt-get update
sudo apt-get install git build-essential make bison flex gcc patch autoconf locate libxml2-dev libbz2-dev libpcre3-dev libssl-dev zlib1g-dev libmcrypt-dev libmhash-dev libmhash2 libcurl4-openssl-dev libpq-dev libpq5 curl cmake libaio-dev libjpeg-dev libpng-dev libgif-dev libfreetype6 libfreetype6-dev imagemagick libmagickwand-dev libyaml-dev libffi-dev libreadline-gplv2-dev libxslt-dev libsqlite3-dev traceroute lynx htop
## Install MySQL
sudo apt-get install mysql-server libmysqlclient-dev
## Install Postgres
# http://wiki.postgresql.org/wiki/Apt
# add `deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main` to /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.3 pgadmin3 postgresql-contrib
## Install Ruby
# Find latest version of ruby http://www.ruby-lang.org/en/downloads/
wget http://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p484.tar.gz
tar -xzf ruby-1.9.3-p484.tar.gz
cd ruby-1.9.3-p484
./configure
make -j 16 && sudo make install
# Use -j 8 if you have 4 cores, etc
## Install passenger
sudo gem install passenger
# This will install nginx too!
sudo passenger-install-nginx-module
## Set up nginx init.d script
# https://gist.github.com/aaronpk/6527490
sudo update-rc.d nginx defaults
## Install bundler
sudo gem install bundler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment