Created
April 17, 2013 16:24
-
-
Save chrislawlor/5405655 to your computer and use it in GitHub Desktop.
Install some development tools and libraries on newer Linuxes
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 | |
# 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