Skip to content

Instantly share code, notes, and snippets.

@tzangms
Created October 30, 2012 18:30
Show Gist options
  • Save tzangms/3982084 to your computer and use it in GitHub Desktop.
Save tzangms/3982084 to your computer and use it in GitHub Desktop.
One Command line installer for python web development on ubuntu 12.04 LTS
echo "This script requires superuser access to install apt packages."
echo "You will be prompted for your password by sudo."
# clear any previous sudo permission
sudo -k
# run inside sudo
sudo sh <<SCRIPT
apt-get update -y
apt-get upgrade -y
apt-get remove vim-tiny -y
apt-get install -y vim htop nginx git-core python python-setuptools python-dev build-essential python-pip python-virtualenv virtualenvwrapper libxml2-dev libxslt-dev gettext libmemcache-dev libmemcached-dev libjpeg-dev libfreetype6-dev zlib1g-dev liblcms1-dev mysql-client mysql-server libmysqlclient-dev redis-server
ln -s /usr/lib/`uname -i`-linux-gnu/libfreetype.so /usr/lib/libfreetype.so
ln -s /usr/lib/`uname -i`-linux-gnu/libjpeg.so /usr/lib/libjpeg.so
ln -s /usr/lib/`uname -i`-linux-gnu/libz.so /usr/lib/libz.so
ln -s /usr/lib/`uname -i`-linux-gnu/liblcms.so /usr/lib/liblcms.so
SCRIPT
@tzangms
Copy link
Author

tzangms commented Oct 30, 2012

One command line install by executing this line below:

wget -qO- http://raw_format_of_this_gist | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment