Created
April 29, 2010 20:01
-
-
Save diegorv/384153 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 | |
echo "[+] Configure TIME -----" | |
dpkg-reconfigure tzdata | |
apt-get install -y ntp | |
ntpdate ntp.ubuntu.com | |
echo "[+] Install default libs -----" | |
apt-get install -y build-essential zlib1g-dev libssl-dev libreadline5-dev | |
# Install Ruby | |
echo "[+] Download Ruby -----" | |
wget http://rubyforge.org/frs/download.php/68719/ruby-enterprise-1.8.7-2010.01.tar.gz | |
tar xzvf ruby-enterprise-1.8.7-2010.01.tar.gz | |
rm ruby-enterprise-1.8.7-2010.01.tar.gz | |
cd ruby-enterprise-1.8.7-2010.01 | |
./installer --auto="/opt/ruby" | |
echo "[+] Install PATH -----" | |
# INSTALL RUBY IN PATH | |
PATH="/opt/ruby/bin:$PATH" | |
cat > /etc/environment << EOF | |
PATH="$PATH" | |
EOF | |
echo "[+] Install Git -----" | |
# Install GIT | |
apt-get install -y git-core | |
echo "[+] Install NGINX -----" | |
/opt/ruby/bin/passenger-install-nginx-module --auto --auto-download --prefix="/opt/nginx" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment