Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Created May 8, 2012 00:32
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 simkimsia/2631668 to your computer and use it in GitHub Desktop.
Save simkimsia/2631668 to your computer and use it in GitHub Desktop.
install Ubuntu 11.x Python, Pip, Fabric
#!/bin/bash
###
#
# Copyright (c) 2012 https://github.com/simkimsia
#
# Ubuntu 11.04, 11.10 based installation script for Python, Pip and Fabric
# Run this by executing the following from a fresh install of Ubuntu 11.04, 11.10 server:
#
# bash -c "$(curl -fsSL https://raw.github.com/gist/2631668)"
#
# Also, run this as root, unless you enjoy failing.
#
# Its handy to install 'screen' if you want to ensure your remote connection to
# a server doesn't disrupt the installation process. If you want to do this, just
# do the following before running the main bash command:
#
# apt-get install screen -y
# screen
#
# To recover your session if you are disconnected, ssh to your server as root again,
# and type:
#
# screen -x
#
# Dependencies:
# - curl
#
# Todo:
# - SSL Configuration
#
###
EXPECTEDARGS=0
export DEBIAN_FRONTEND=noninteractive
########################################
## System Updates
########################################
apt-get update
apt-get install \
curl \
aptitude \
-y
apt-get upgrade -y
########################################
## Python, Pip
########################################
apt-get install \
python \
python-pip \
python-dev \
build-essential \
-y
pip install --upgrade pip
pip install --upgrade virtualenv
########################################
## Fabric
########################################
pip install fabric
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment