####install pip and virtualenv
$ sudo aptitude install python-setuptools python-pip
$ sudo pip install virtualenv
#easy_install
#easy_install pip
#pip install everything
####virtualenv and tornado stuff
$ cd webpy_project_dir
$ virtualenv --no-site-packages env
$ virtualenv --relocatable env
$ . env/bin/activate
$ pip install tornado torndb
$ pip install other_library
####nginx config
$ sudo aptitude install nginx
$/etc/init.d/nginx start
####supervisor config
$ sudo pip install supervisor
# cp /usr/local/lib/python2.7/dist-packages/supervisor/skel/sample.conf /etc/supervisord.conf #copy sample config
# supervisord
# vim /etc/supervisord.conf
# supervisorctl update #after /etc/supervisord.conf
# supervisorctl start app1
# supervisorctl stop app1
###add supervisor to /etc/init.d/
# cp supervisord.sh /etc/init.d/supervisor
# chmod +x /etc/init.d/supervisor
# /usr/sbin/update-rc.d -f supervisor defaults