-
-
Save wuputah/249619 to your computer and use it in GitHub Desktop.
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
#!/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 install things:" | |
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 | |
pushd /tmp | |
mkdir ruby | |
cd ruby | |
wget --progress=bar ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p243.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 | |
sudo mkdir -p /usr/local/src | |
sudo mv /tmp/ruby /usr/local/src | |
popd | |
sudo gem install --no-rdoc --no-ri mysql passenger rails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment