Skip to content

Instantly share code, notes, and snippets.

@lucasrenan
Created August 28, 2012 15:47
Show Gist options
  • Save lucasrenan/3499313 to your computer and use it in GitHub Desktop.
Save lucasrenan/3499313 to your computer and use it in GitHub Desktop.
ubuntu server (12.04) configuration - ruby on rails + nginx + unicorn
#initial installation
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
#rvm
curl -L https://get.rvm.io | bash -s stable --ruby
rvm use 1.9.3 --default
sudo vi ~/.gemrc
gem: --no-ri --no-rdoc
#nginx
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
sudo vi /etc/apt/sources.list
deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx
sudo apt-get update
sudo apt-get install nginx
#nodejs
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm
#imagemagick
sudo apt-get install imagemagick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment