Created
January 12, 2011 19:49
-
-
Save diogob/776757 to your computer and use it in GitHub Desktop.
Setup a minimal Ruby+PostgreSQL environment in Ubuntu 11.04 (should be called as root)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get update | |
| apt-get install aptitude | |
| aptitude install python-software-properties | |
| apt-add-repository ppa:pitti/postgresql | |
| add-apt-repository ppa:nginx/stable | |
| aptitude update | |
| aptitude install ruby1.9.1-full build-essential postgresql-server-dev-9.1 postgresql-contrib-9.1 nginx vim-nox git-core htop atop most | |
| pg_dropcluster 9.1 main --stop | |
| echo "pt_BR.UTF-8 UTF-8" > /var/lib/locales/supported.d/pt_BR | |
| locale-gen | |
| pg_createcluster --locale=pt_BR.UTF-8 9.1 main --start | |
| wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.10.tgz | |
| tar -zxvf rubygems-1.8.10.tgz | |
| cd rubygems-1.8.10 | |
| ruby setup.rb | |
| cd /usr/bin/ | |
| ln -s gem1.9.1 gem | |
| cd | |
| gem install bundler --no-ri --no-rdoc | |
| gem install unicorn --no-ri --no-rdoc | |
| gem install bluepill --no-ri --no-rdoc | |
| gem install hercules --no-ri --no-rdoc | |
| gem install i18n --no-ri --no-rdoc | |
| update-alternatives --config pager |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment