Create an opentracks virtual environment : mkvirtualenv opentracks
Check virtual environment is available : lsvirtualenv
Switch to the environment : workon opentracks
Clone opentracks files from github : git clone git://github.com/uggla/opentracks.git
or using http : git clone https://github.com/uggla/opentracks.git
(note : if you need a proxy : export http_proxy=http://proxy_fqdn:port)
Install python modules required by opentracks. Modules required are defined into file opentracks/python_pip_modules.txt :
pip install django pip install MySQL-python note : this package may need more libraries to be built. ...
or in one shot : for i in $(cat python_pip_modules.txt | awk -F'=' '{print $1}');do pip install "$i";done
or newly found : pip install -r python_pip_modules.txt
Set database settings into opentracks/opentracks/settings.py.
Into DATABASES section, modify the following keys to :
'ENGINE': 'django.db.backends.mysql'
'NAME': 'db name' usually 'NAME': 'opentracks'
'USER': 'app_user_name' usually 'USER': 'opentracks'
'PASSWORD': 'app_user_name password'
Synchronize the database : python manage.py syncdb