Created
May 8, 2012 00:32
-
-
Save simkimsia/2631668 to your computer and use it in GitHub Desktop.
install Ubuntu 11.x Python, Pip, Fabric
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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