Created
August 20, 2012 20:05
-
-
Save jalvarezsamayoa/3407360 to your computer and use it in GitHub Desktop.
Setup base ubuntu box with ruby 1.9.3
This file contains 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
#!/usr/bin/env | |
sudo apt-get update -y | |
sudo apt-get upgrade -y | |
sudo apt-get install git-core -y | |
sudo apt-get install emacs23 emacs-goodies-el -y | |
cd /tmp | |
wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb | |
sudo dpkg -i puppetlabs-release-precise.deb -y | |
sudo apt-get install puppet-common -y | |
sudo git clone git://github.com/blt04/puppet-rvm.git /etc/puppet/modules/rvm | |
sudo apt-get install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert -y | |
sudo apt-get 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 -y | |
curl -L https://get.rvm.io | sudo bash -s stable | |
sudo adduser ubuntu rvm | |
sudo adduser www-data rvm | |
rvm install 1.9.3 | |
rvm use 1.9.3 --default | |
rvm wrapper ruby-1.9.3-p194 | |
sudo apt-get install libcurl4-openssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev -y | |
gem install bundler | |
gem install passenger | |
rvmsudo passenger-install-apache2-module | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment