Skip to content

Instantly share code, notes, and snippets.

@elliottkember
Created September 9, 2009 16:12
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 elliottkember/183853 to your computer and use it in GitHub Desktop.
Save elliottkember/183853 to your computer and use it in GitHub Desktop.
# Tested on Ubuntu 8.10
apt-get update
# Git
apt-get install git-core -y
# Apache
dpkg --purge apache apache2
aptitude install -y build-essential apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert apache2-prefork-dev libapr1-dev libaprutil1-dev
# Ruby
aptitude install -y ruby-dev ruby ruby1.8-dev ri rdoc irb libreadline-ruby libruby libopenssl-ruby sqlite3 libsqlite3-ruby libsqlite-dev libsqlite3-dev
apt-get install -y vim
# Rubygems
wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
tar -xvzf rubygems-1.3.5.tgz
cd rubygems-1.3.5
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/bin/gem
cd ..
rm -rf rubygems-1.3.5
# Rails
gem update
gem update --system
gem install rails
# Passenger
gem install passenger
passenger-install-apache2-module
echo "PassengerRuby /usr/bin/ruby1.8" | cat - /etc/apache2/httpd.conf > /tmp/out && mv /tmp/out /etc/apache2/httpd.conf
echo "PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4" | cat - /etc/apache2/httpd.conf > /tmp/out && mv /tmp/out /etc/apache2/httpd.conf
echo "LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/ext/apache2/mod_passenger.so" | cat - /etc/apache2/httpd.conf > /tmp/out && mv /tmp/out /etc/apache2/httpd.conf
apache2ctl restart
# MySQL
apt-get install -y mysql-server mysql-client libmysqlclient15-dev libmysql-ruby -y
gem install mysql
# Memcached
apt-get -y install memcached
wget http://download.tangent.org/libmemcached-0.25.tar.gz
tar zxvf libmemcached-0.25.tar.gz
cd libmemcached-0.25
./configure
make
make install
# wait what
ldconfig /usr/lib/ruby/gems/1.8/gems/memcached-0.11/lib/rlibmemcached.so
gem install -y memcached --no-rdoc --no-ri --version=0.12
cd ../
rm -rf libmemcached-0.25
# Misc gems
gem install haml authlogic aws-s3 json
# Sphinx
wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
tar xvzf sphinx-0.9.8.1.tar.gz
cd sphinx-0.9.8.1
./configure
make
make install
cd ../
rm -rf sphinx-0.9.8.1
exit
mkdir ~/.ssh
touch ~/.ssh/authorized_keys
echo "ssh-rsa KEY HERE" >> ~/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment