Skip to content

Instantly share code, notes, and snippets.

@diegorv
Created April 29, 2010 20:01
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 diegorv/384153 to your computer and use it in GitHub Desktop.
Save diegorv/384153 to your computer and use it in GitHub Desktop.
#!/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