Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#!/usr/bin/env bash
# usage: curl -L | sh
# Pre-requisites
sudo apt-get -y update
sudo timedatectl set-timezone Asia/Taipei
sudo apt-get --no-install-recommends -y install git-core zlib1g zlib1g-dev libxml2-dev libxslt-dev libc6-dev ncurses-dev automake libtool subversion pkg-config
#from digital ocean suggestion
sudo apt-get --no-install-recommends -y install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
#important normal use package
sudo apt-get --no-install-recommends -y install htop tree openssl curl vim imagemagick
curl -sL | sudo -E bash -
sudo apt-get install -y nodejs
# install rbenv
git clone ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
# Updating rbenv
#cd ~/.rbenv
#git pull
# Download and compile Ruby 2.0.0-p0
#cd /tmp
#tar -xvzf ruby-2.0.0-p0.tar.gz
#cd ruby-2.0.0-p0
#./configure --prefix=/usr/local
#make install
# install Chef
cd /tmp
curl -L |sudo -E bash -
# The rest
#sudo gem install ruby-shadow --no-ri --no-rdoc
echo "======================================="
echo "========= please run source ~/.bashrc manually ========="
echo "========= then contirnue run sh ============"
echo "curl -L | sh "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment