#!/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