Skip to content

Instantly share code, notes, and snippets.

@anveo
Created September 22, 2011 19:42
Show Gist options
  • Save anveo/1235814 to your computer and use it in GitHub Desktop.
Save anveo/1235814 to your computer and use it in GitHub Desktop.
# (ebs) AMI - ami-97c694d2 - (ubuntu 10.04.3)
apt-get update
apt-get upgrade #currently this requires a reboot
apt-get install -y ntp openssh-server
apt-get install -y build-essential binutils-doc gcc autoconf flex bison git-core
apt-get install -y libreadline5-dev zlib1g-dev libssl-dev libxml2-dev libxslt1-dev
apt-get install -y debconf-utils python-software-properties
apt-get install -y bash-completion curl dnsutils htop iotop ncurses-term nmap strace tmux tree sysstat unzip vim-nox
# add zaarly repo
wget -O - http://apt.zaarly.net/[email protected] | apt-key add -
# add nginx PPA
add-apt-repository ppa:nginx/stable
# add 10gen repo
apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
(
cat <<'EOP'
deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen
EOP
) > /etc/apt/sources.list.d/10-gen.list
# update new sources
apt-get update
# Setup RVM
bash < <( curl -L https://rvm.beginrescueend.com/install/rvm )
# Load rvm
source /etc/profile && rvm reload
# vim ~/.bashrc
echo '[[ -s "/usr/local/rvm/contrib/ps1_functions" ]] && source "/usr/local/rvm/contrib/ps1_functions"' >> ~/.bashrc
echo 'ps1_set --prompt ∴' >> ~/.bashrc
source ~/.bashrc
usermod -a -G rvm root
RUBY_18_RELEASE='ruby-1.8.7-p352'
GOD_VERSION='0.11.0'
rvm install $RUBY_18_RELEASE
# Create gemset for system utilities
rvm use $RUBY_18_RELEASE@system --create
gem install god --version $GOD_VERSION --no-ri --no-rdoc
rvm wrapper $RUBY_18_RELEASE@system --no-prefix god
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment