Skip to content

Instantly share code, notes, and snippets.

@newportandy
Forked from radar/gist:249555
Created February 10, 2010 22:07
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 newportandy/300904 to your computer and use it in GitHub Desktop.
Save newportandy/300904 to your computer and use it in GitHub Desktop.
#!/bin/bash
# You can run this on your server by doing this:
# bash -c "`wget -O - frozenplague.net/boris`"
# If you don't have wget, use curl.
echo "Need your password to update time & install things:"
sudo ntpdate pool.ntp.org
sudo apt-get -y update
sudo apt-get -y install build-essential mysql-server libmysqlclient15-dev apache2 libssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev zlib1g zlib1g-dev
mkdir ruby
cd ruby
wget --progress=bar ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz -O - | tar -zxf - --strip-components 1
./configure
make
echo "Need your password to install Ruby:"
sudo make install
cd ext/openssl
ruby extconf.rb
make
sudo make install
cd ~
sudo rm -rf ruby
sudo gem install mysql passenger rails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment