<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Christoffer Kjølbæk &#187; Karmic Koala</title>
	<atom:link href="http://ostehamster.dk/blog/index.php/tag/karmic-koala/feed/" rel="self" type="application/rss+xml" />
	<link>http://ostehamster.dk/blog</link>
	<description>I have a blog, therefore I am…</description>
	<lastBuildDate>Sun, 18 Jul 2010 12:16:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9-rare</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Pytrainer in Ubuntu 9.10, Karmic Koala</title>
		<link>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 12:43:46 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Løb]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Running]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=573</guid>
		<description><![CDATA[I have had problems with Pytrainer in both Ubuntu 8.04 and 8.10, but have manage to get it working. I did not use Pytrainer in 9.04, because I got a little tired of looking at graphs and was following a running program where it was not necessary.
If have been injured for some month now, but [...]]]></description>
			<content:encoded><![CDATA[<p>I have had problems with Pytrainer in both Ubuntu <a href="http://ostehamster.dk/blog/index.php/2008/05/03/pytrainer-in-ubuntu-804-hardy-heron/">8.04</a> and <a href="http://ostehamster.dk/blog/index.php/2008/11/09/pytrainer-in-ubuntu-810-ibex-intrepid/">8.10</a>, but have manage to get it working. I did not use Pytrainer in 9.04, because I got a little tired of looking at graphs and was following a running program where it was not necessary.</p>
<p>If have been injured for some month now, but hoping to be ready for Copenhagen Marathon 2010, and would therefore like to examine my last marathon using Pytrainer. I therefore installed it, and hoped it would work out of the box - but no :)<br />
<span id="more-573"></span><br />
Enabling the Garmin HR plugin, restarting Pytrainer and clicking "Import from Garmin" did nothing, not even a warning or error in the terminal. Looking at my old post from <a href="http://ostehamster.dk/blog/index.php/2008/11/09/pytrainer-in-ubuntu-810-ibex-intrepid/">8.10</a>, I opened <code>/usr/share/pytrainer/plugins/garmin-hr/main.py</code> to see what was going on.</p>
<p>Pytrainer is using gpsbabel like <code>gpsbabel -t -i garmin -f %s -o gtrnctr -F /tmp/file.gtrnctr</code>, where <code>%s</code> is the device, <code>usb:</code>. But running</p>
<blockquote><p>gpsbabel -t -i garmin -f usb: -o gtrnctr -F /tmp/file.gtrnctr</p></blockquote>
<p> in a terminal give this result:</p>
<blockquote><p>Claim interfaced failed: could not claim interface 0: Operation not permitted</p></blockquote>
<p>It is therefore still required to make a udev rule for the device.</p>
<p><strong>How to get it working</strong><br />
Make the rule file</p>
<blockquote><p>sudo gedit /etc/udev/rules.d/51-garmin.rules</p></blockquote>
<p>add the below and close:</p>
<blockquote><p>SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666" </p></blockquote>
<p>restart udev:</p>
<blockquote><p>sudo /etc/init.d/udev restart</p></blockquote>
<p>Now Pytrainer can start gpsbabel, and retrieve data from the watch, which unfortunately just leads to another problem:</p>
<blockquote><p>Traceback (most recent call last):<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/main.py", line 166, in runPlugin<br />
    self.record.importFromGTRNCTR(gtrnctrFile)<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/record.py", line 410, in importFromGTRNCTR<br />
    listTracksGPS = xmlParser.shortFromGPS(gtrnctrFile, True)<br />
  File "/usr/lib/python2.6/dist-packages/pytrainer/lib/xmlUtils.py", line 127, in shortFromGPS<br />
    tree = xml.etree.cElementTree.parse(gtrnctrFile).getroot()<br />
  File "<string>", line 45, in parse<br />
  File "</string><string>", line 32, in parse<br />
SyntaxError: unbound prefix: line 13, column 8</string></p></blockquote>
<p>According to this <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=536572">bug report</a>, it is a problem between Pytrainer and gpsbabel 1.3.6. Luckily it is still possible to get gpsbabel 1.3.5 at <a href="http://packages.debian.org/lenny/i386/gpsbabel/download">http://packages.debian.org/lenny/i386/gpsbabel/download</a>, which I downloaded and installed, and it worked with Pytrainer.</p>
<p>However, Pytrainer imports all data from today back to 24 May 2009, the date of the marathon, and stops without any error. It might be because this record has 43 laps, but I do not know. Anyway, it is quite useless if it is not possible to retrieve all data from the watch.</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/12/30/pytrainer-in-ubuntu-9-10-karmic-koala/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto use Eclipse with PHP and SVN in Ubuntu 9.10</title>
		<link>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:58:18 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=473</guid>
		<description><![CDATA[This little guide will show how to set up Eclipse for developing PHP sites using PHP Development Tools Project and Subversion.
Install Eclipse Galileo from repository:
sudo apt-get install eclipse
A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list [...]]]></description>
			<content:encoded><![CDATA[<p>This little guide will show how to set up Eclipse for developing PHP sites using <a href="http://www.eclipse.org/pdt/">PHP Development Tools Project</a> and Subversion.</p>
<p>Install Eclipse Galileo from repository:</p>
<blockquote><p>sudo apt-get install eclipse</p></blockquote>
<p>A number of dependencies are required inside Eclipse, which has to be added. Start Eclipse from the menu, and select Help > Install new software... The below list of update sites has to be added, which is done be typing the URL in "Work with", click Add and then type the name in the name field followed by Ok. Do this for the below update sites (name followed by URL):</p>
<p>EMF, <code>http://download.eclipse.org/modeling/emf/updates/releases/</code><br />
MyLyn, <code>http://download.eclipse.org/tools/mylyn/update/e3.4/</code><br />
GEF, <code>http://download.eclipse.org/tools/gef/updates/releases/</code><br />
DLTK, <code>http://download.eclipse.org/releases/galileo/</code><br />
Webtool, <code>http://download.eclipse.org/webtools/updates/</code></p>
<p><strong>PDT</strong><br />
Add <code>http://download.eclipse.org/tools/pdt/updates/2.0/</code> with name PDT. Open "PDT SDK 2.1.2" and select "PHP Development Tools (PDT) Runtime Feature", click Next twice, accept the license and click Finish.</p>
<p><strong>Subclipse</strong><br />
SVN integration (or one of them) in Eclipse is called <a href="http://subclipse.tigris.org/">Subclipse</a> and is installed through update sites as well.  Select Help > Install new software... and add <code>http://subclipse.tigris.org/update_1.6.x</code> into the "Work with" field and click Add type "Subclipse" in name and click Ok. Select all three options and click Next, Next, accept License and click Finish.</p>
<p><strong>Checking out a project</strong><br />
Select File -> New -> Other in the new window select SVN -> Checkout Projects from SVN and click Next.</p>
<p>Select "Create a new repository location", click Next. Type SVN repository in URL, click Next. Type username and password if required. Select the part of the repository containing the project, click Finish.</p>
<p>If the repository not already holds project settings for Eclipse, select "Check out as a project configured using the New Project Wizard" and click Finish. In the New Project Wizard select PHP -> PHP Project and click Next. Give the project a name and you are ready to go - have fun! :)</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/11/01/howto-use-eclipse-with-php-and-svn-in-ubuntu-9-10/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Re-install / upgrade to Ubuntu 9.10 and keep encrypted data from previous version</title>
		<link>http://ostehamster.dk/blog/index.php/2009/11/01/re-install-upgrade-to-ubuntu-9-10-and-keep-encrypted-data-from-previous-version/</link>
		<comments>http://ostehamster.dk/blog/index.php/2009/11/01/re-install-upgrade-to-ubuntu-9-10-and-keep-encrypted-data-from-previous-version/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 12:19:06 +0000</pubDate>
		<dc:creator>Christoffer Kjølbæk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Paranoia]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://ostehamster.dk/blog/?p=223</guid>
		<description><![CDATA[When Ubuntu first started with encrypted hard drive support, I made a LVM system inside the encrypted system. I do not like to upgrade Ubuntu from one version to another, and I do not want to copy all my data for each installation. My LVM system therefore have root, swap and home, so that home [...]]]></description>
			<content:encoded><![CDATA[<p>When Ubuntu first started with encrypted hard drive support, I made a LVM system inside the encrypted system. I do not like to upgrade Ubuntu from one version to another, and I do not want to copy all my data for each installation. My LVM system therefore have root, swap and home, so that home can survive the re-installation.</p>
<p>Unfortunately, the installer (the alternative one) do not recognise the encrypted hard drive, and is therefore not able to use it. This little guide helps you to reuse your LVM layout - and your data!</p>
<p><strong>NB: Use this guide at your own risk!</strong><br />
<span id="more-223"></span></p>
<p>Follow the installation until "Set up network", then press ctrl-alt F2 to start a console and run<br />
<code><br />
modprobe dm-crypt<br />
cryptsetup luksOpen /dev/sda5 sda5_crypt<br />
</code></p>
<p>Replace /dev/sda5 with your encrypted partition. You will now be prompted for your passphrase for the encrypted partition, after which you run<br />
<code><br />
vgscan<br />
vgchange -ay<br />
</code><br />
in order to activate the lvm volumes.</p>
<p>Press ctrl-alt f1 to get back to the installer. When asked for partition method select Manual, and your encrypted LVM volumes are now on the list. You still need to set mount points etc., and remember NOT to mark them for formatting. Continue the installation.</p>
<p>Boot into rescue with your LVM root volume as /</p>
<p>Find the unique id for this "disk" from:<br />
<code>ls -l /dev/disk/by-uuid</code></p>
<p>Insert a line like</p>
<blockquote><p>sda5_crypt /dev/disk/by-uuid/df05112c-65bf-44a2-b6d1-a740c3444b53 none luks</p></blockquote>
<p>into /etc/crypttab. Remember to use the uuid found above together with what ever name you have given the device. sda5_crypt will give a device called /dev/mapper/sda5_crypt</p>
<p>To avoid manually typing the uuid, it is possible just to do:<br />
<code>ls -l /dev/disk/by-uuid >> /etc/crypttab<br />
nano - /etc/crypttab</code></p>
<p>This will copy the entire content of "ls -l /dev/disk/by-uuid" into the bottom of /etc/crypttab, and open the file for editing with nano.</p>
<p>Run <code>update-initramfs -u</code>, reboot and you are ready to go!</p>
]]></content:encoded>
			<wfw:commentRss>http://ostehamster.dk/blog/index.php/2009/11/01/re-install-upgrade-to-ubuntu-9-10-and-keep-encrypted-data-from-previous-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
