Skip to content

Instantly share code, notes, and snippets.

@amercier
Last active December 26, 2015 20:59
Show Gist options
  • Save amercier/7212394 to your computer and use it in GitHub Desktop.
Save amercier/7212394 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Ensure we are root
[ "$(whoami)" == "root" ] || (echo "This script must be executed as root" & exit 1)
# Install dependencies
aptitude update \
&& aptitude upgrade \
&& aptitude install \
build-essential \
zlib1g-dev \
libyaml-dev \
libssl-dev \
libgdbm-dev \
libreadline-dev \
libncurses5-dev \
libffi-dev \
curl \
openssh-server \
redis-server \
checkinstall \
libxml2-dev \
libxslt1-dev \
libcurl4-openssl-dev \
libicu-dev \
logrotate \
git-core \
python \
python-docutils \
|| exit 1
gem install bundler --no-ri --no-rdoc \
|| exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment