Pytrainer in Ubuntu 8.04 Hardy Heron
Pytrainer didn’t work for me under Ubuntu 8.04, because my Garmin Forerunner wasn’t attached to /dev/ttyUSBx something which Pytrainer assumes.
To use gpsbabel and Garmin Forerunner, a command like the one below is used
gpsbabel -t -i garmin -f usb: -o gtrnctr -F /tmp/file.gtrnctr
“usb:” is the input device. The problem is that Pytrainer checks if the device exists as a file/directory, which it doesn’t. The workaround is to open /usr/share/pytrainer/plugins/garmin-hr/main.py and change
if not os.path.exists(options.device):
into
if (not os.path.exists(options.device) and not options.device == "usb:"):
Updated 04-05-08 12:41:
Philippe Piquer just pointed out that the reason it don't work in Ubuntu 8.04, is that the garmin_gps module has been blacklisted. According to /etc/modprobe.d/blacklist because
# most apps now use garmin usb driver directly (Ubuntu: #114565)
Updated 04-05-08 21:21:
There must be a file /etc/udev/rules.d/51-garmin.rules containing
SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", GROUP="plugdev", MODE="660"
Trac from SVN on Ubuntu 8.04 Hardy
svn co https://svn.edgewall.org/repos/trac/trunk trac
sudo apt-get install python-setuptools
sudo apt-get install python-subversion subversion python-pysqlite2 python-clearsilver
sudo python2.5 ./setup.py install
sudo mkdir /var/lib/svn/NAME
sudo trac-admin /var/lib/trac/NAME initenv
sudo trac-admin /var/lib/trac/NAME permission add USERNAME TRAC_ADMIN
sudo chown -R www-data /var/lib/trac/
sudo chown -R www-data /var/lib/svn/
Use the admin tool on the webpage to setup rights.
Apache2 setup:
# Trac support
<location /trac>
AuthType Basic
AuthName "Trac"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/lib/trac
PythonOption TracUriRoot "/trac"
</location>
