Created
February 20, 2010 01:39
-
-
Save darron/309428 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# Thanks: http://www.hackido.com/2009/04/install-ruby-rails-on-ubuntu-904-jaunty.html | |
# Thanks: http://github.com/crafterm/sprinkle and @aplus | |
# Log in and uncomment universe lines in /etc/apt/sources.list | |
# For Git | |
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4CBEDD5A | |
echo "deb http://ppa.launchpad.net/pdoes/ppa/ubuntu karmic main" >> /etc/apt/sources.list | |
# Update and Install everything. | |
apt-get -y update | |
apt-get -y dist-upgrade | |
apt-get -y install build-essential | |
apt-get -y install ohai chef chef-server | |
apt-get -y install ruby1.8-dev libxml2 libxml2-dev sqlite3 libsqlite3-dev libxslt1-dev | |
apt-get -y install mysql-server mysql-client libmysqlclient-dev | |
apt-get -y install apache2 libapache2-mod-php5 | |
apt-get -y install libphp-redis php-pear php5-curl php5-dev php5-gd php5-mysql php5-pspell | |
apt-get -y install php5-tidy php5-xmlrpc php5-xsl php5-imagick php5-memcache php5-xcache | |
apt-get -y install libapache2-mod-auth-mysql | |
apt-get -y install lynx | |
apt-get -y install postfix | |
apt-get -y install git-core | |
apt-get -y install apache2-prefork-dev libapr1-dev libaprutil1-dev | |
# Gems | |
gem install mysql authlogic capistrano capistrano-ext dm-core do_mysql gemcutter \ | |
git haml heroku hpricot httparty merb mocha mongrel nokogiri rack rails rake \ | |
RedCloth BlueCloth rspec rspec-rails sequel shotgun taps thin thor factory_girl \ | |
shoulda tmail tweetstream validation_reflection webrat ZenTest bundler sinatra | |
# Passenger | |
gem install passenger | |
/var/lib/gems/1.8/bin/passenger-install-apache2-module | |
echo "LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.9/ext/apache2/mod_passenger.so" > /etc/apache2/conf.d/passenger | |
echo "PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.9" >> /etc/apache2/conf.d/passenger | |
echo "PassengerRuby /usr/bin/ruby1.8" >> /etc/apache2/conf.d/passenger | |
/etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment