sudo apt-get install libjpeg-dev
sudo apt-get install memcached
cd /home/pi/uwsgi
python uwsgiconfig.py --plugin plugins/http core http
python uwsgiconfig.py --plugin plugins/corerouter core corerouter
virtualenv venv
. venv/bin/activate
pip install tilestache python-memcached
/home/pi/uwsgi/uwsgi \
--plugin /home/pi/uwsgi/python27_plugin.so \
--enable-threads \
--workers 4 \
--plugin /home/pi/uwsgi/http_plugin.so \
--http :8080 \
-H /home/pi/tilestache/venv \
--eval 'import TileStache; \
application = TileStache.WSGITileServer("/home/pi/tilestache.cfg")'