Skip to content

Instantly share code, notes, and snippets.

@chrislawlor
Created April 17, 2013 16:24
Show Gist options
  • Save chrislawlor/5405655 to your computer and use it in GitHub Desktop.
Save chrislawlor/5405655 to your computer and use it in GitHub Desktop.
Install some development tools and libraries on newer Linuxes
#!/bin/bash
# add repositories
# get latest mercurial
sudo apt-add-repository ppa:mercurial-ppa/releases
# Virtualbox
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
# Dev stuff
sudo apt-get install -yq build-essential python-setuptools python-dev openssh-server libpq-dev meld git subversion mercurial pgadmin3 curl libjpeg8 libjpeg8-dev libxml2-dev libxslt-dev swig libevent-dev
# For komodo edit
sudo apt-get install -yq libc6-i386 ia32-libs ia32-libs-gtk
sudo easy_install pip
sudo pip install virtualenv virtualenvwrapper
mkdir ~/.virtualenvs
echo "export WORKON_HOME=$HOME/.virtualenvs" >> $HOME/.bashrc
echo "export PIP_RESPECT_VIRTUALENV=true" >> $HOME/.bashrc
echo "source /usr/local/bin/virtualenvwrapper.sh" >> $HOME/.bashrc
echo "pip install ipython ipdb" >> $HOME/.virtualenvs/postmkvirtualenv
# configure pip cache
mkdir -p $HOME/.pip/cache
echo "export PIP_USE_MIRRORS=true" >> $HOME/.bashrc
echo "export PIP_DOWNLOAD_CACHE=/home/clawlor/.pip/cache" >> $HOME/.bashrc
# prevent carpal tunnel
echo "alias pmp='python manage.py'" >> $HOME/.bashrc
source $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment