Source

rmsfab / bootstrap.sh

Full commit
#!/bin/bash

#
# Install some Ubuntu dev essentials, inc a system fabric install, via pip
#

# setup initial .hgrc
if ! grep '\[ui\]' $HOME/.hgrc &>/dev/null ; then
    echo -n "Human name for hg: " ; read name
    echo -n "Email address for hg: "; read email
    echo "
[ui]
username = $name <$email>
verbose = True
" >> $HOME/.hgrc
    git config --global user.name "$name"
    git config --global user.email "$email"
fi

sudo apt-get -q --yes install mercurial git subversion

# ssh server, on which fabric relies, and curl, which gets used here-n-there
sudo apt-get -q --yes install openssh-server curl

# python, pip & fabric
sudo apt-get -q --yes install build-essential python-setuptools python-dev python-software-properties
sudo easy_install pip     # no pip package in ubuntu < 10, so use easy_install
sudo pip install 'fabric>=1.0'