Christoffer Kjølbæk I have a blog, therefore I am…

9Nov/0835

Pytrainer in Ubuntu 8.10, Ibex Intrepid

I just use the Gutsy binary, which works fine in Ibex.

echo "deb http://www.e-oss.net/ubuntu/gutsy/ ./" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install pytrainer
sudo apt-get install python-gnome2-extras

To get the Garmin kernel driver working in user space, make an udev rule in /etc/udev/rules.d/51-garmin.rules with this content

SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"

Pytrainer is made to use path like /dev/ttyUSBX to connect to the Garmin watch. I believe the right way is to use Garmin usb driver directly, hence usb: in the config. Therefore you have to open /usr/share/pytrainer/plugins/garmin-hr/main.py and change

if not os.path.exists(options.device):

to

if (not os.path.exists(options.device) and not options.device == "usb:"):

In Tools -> GPS Device Plugins -> Garmin* ->Preferences change device to [usb:] and status to [Enable].

Thats it, have fun :)

Updated: 11 January 2009:
- Quotes in code-blocks is now "copy/paste enabled"
- Pauls comment from December 31st, 2008 at 14:22 added to the text

23Apr/080

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>

20May/070

duplicity under Ubuntu Feisty Fawn

UPDATE (22. May 2007): It seems that duplicity don't work with SSH at all :( The problem is a call to sftp, that don't work.
The problem is, that cd in the below isn't executed, only ls -1 is, which give the content of the users home directory.

'echo -e 'cd /path/to/the/backup/directory
ls -1' | sftp -b - user@some.serer.com'