<?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>dhde.de &#187; console</title>
	<atom:link href="http://www.dhde.de/tag/console/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dhde.de</link>
	<description>dhde.de über das Leben und Dinge die keiner braucht</description>
	<lastBuildDate>Wed, 24 Aug 2011 17:18:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>USB &#8211; Festplatten &#8211; Fest definierte Namen</title>
		<link>http://www.dhde.de/2011/02/usb-festplatten-fest-definierte-namen/</link>
		<comments>http://www.dhde.de/2011/02/usb-festplatten-fest-definierte-namen/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 13:48:06 +0000</pubDate>
		<dc:creator>Dietrich Heise</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.dhde.de/?p=275</guid>
		<description><![CDATA[Wer kennt es nicht, USB Festplatten unter Linux, mal sda, mal sdb, oder mal sdc. Je nachdem in welcher Reihenfolge die Festplatten angeschlossen werden haben bekommen die Festplatten unterschiedliche Devicenamen. Um dieses Problem zu lösen kann man eine Datei anlegen in der man eigene udev Regeln definiert. Hierzu benutzt man z.B. folgende Datei: &#160;/etc/udev/rules.d/90-storage-custom.rules Mit [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Wer kennt es nicht, USB Festplatten unter Linux, mal sda, mal sdb, oder mal sdc.<br />
Je nachdem in welcher Reihenfolge die Festplatten angeschlossen werden haben bekommen die Festplatten unterschiedliche Devicenamen. Um dieses Problem zu lösen kann man eine Datei anlegen in der man eigene udev Regeln definiert.</p>
<p>Hierzu benutzt man z.B. folgende Datei:</p>
<div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-code">/</span><span class="hl-identifier">etc</span><span class="hl-code">/</span><span class="hl-identifier">udev</span><span class="hl-code">/</span><span class="hl-identifier">rules</span><span class="hl-code">.</span><span class="hl-identifier">d</span><span class="hl-code">/</span><span class="hl-number">90</span><span class="hl-code">-</span><span class="hl-identifier">storage</span><span class="hl-code">-</span><span class="hl-identifier">custom</span><span class="hl-code">.</span><span class="hl-identifier">rules</span></li></ol></div></div>
<p>Mit folgendem Inhalt:</p>
<div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-identifier">KERNEL</span><span class="hl-code">==</span><span class="hl-quotes">&quot;</span><span class="hl-string">sd?1</span><span class="hl-quotes">&quot;</span><span class="hl-code">,</span><span class="hl-identifier">ENV</span><span class="hl-code">{</span><span class="hl-identifier">ID_SERIAL</span><span class="hl-code">}==</span><span class="hl-quotes">&quot;</span><span class="hl-string">ST31500341AS_9VS0PAP7</span><span class="hl-quotes">&quot;</span><span class="hl-code">,</span><span class="hl-identifier">SYMLINK</span><span class="hl-code">+=</span><span class="hl-quotes">&quot;</span><span class="hl-string">disk_fotos</span><span class="hl-quotes">&quot;</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-identifier">KERNEL</span><span class="hl-code">==</span><span class="hl-quotes">&quot;</span><span class="hl-string">sd?1</span><span class="hl-quotes">&quot;</span><span class="hl-code">,</span><span class="hl-identifier">ENV</span><span class="hl-code">{</span><span class="hl-identifier">ID_SERIAL</span><span class="hl-code">}==</span><span class="hl-quotes">&quot;</span><span class="hl-string">SAMSUNG_HD154UI_S1Y6J1KS904134</span><span class="hl-quotes">&quot;</span><span class="hl-code">,</span><span class="hl-identifier">SYMLINK</span><span class="hl-code">+=</span><span class="hl-quotes">&quot;</span><span class="hl-string">disk_arbeit</span><span class="hl-quotes">&quot;</span></li></ol></div></div>
<p>Stöpselt man nun die Festplatte mit der ID_SERIAL = ST31500341AS_9VS0PAP7 ein, so gibt es auf dieser eine Partition 1 (KERNEL==&#8221;sd?1&#8243;), so wird für diese Partition Symlink auf die entsprechende Partition unter &#8220;/dev/disk_fotos&#8221; (SYMLINK+=&#8221;disk_fotos&#8221;) angelegt, so dass man nun wenn man diese Festplatte angestöpselt immer /dev/disk_fotos mounten kann, egal ob die eigentliche Partition unter /dev/sda1, /dev/sdb1, dev/sdc1, &#8230; existiert, denn es wir nun immer ein Symlink angelegt, wie z.B:</p>
<div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-code"> </span><span class="hl-identifier">lrwxrwxrwx</span><span class="hl-code"> </span><span class="hl-number">1</span><span class="hl-code"> </span><span class="hl-identifier">root</span><span class="hl-code"> </span><span class="hl-identifier">root</span><span class="hl-code"> </span><span class="hl-number">4</span><span class="hl-code">  </span><span class="hl-number">2.</span><span class="hl-code"> </span><span class="hl-identifier">Feb</span><span class="hl-code"> </span><span class="hl-number">16</span><span class="hl-code">:</span><span class="hl-number">43</span><span class="hl-code"> /</span><span class="hl-identifier">dev</span><span class="hl-code">/</span><span class="hl-identifier">disk_fotos</span><span class="hl-code"> -&gt; </span><span class="hl-identifier">sdf1</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-identifier">lrwxrwxrwx</span><span class="hl-code"> </span><span class="hl-number">1</span><span class="hl-code"> </span><span class="hl-identifier">root</span><span class="hl-code"> </span><span class="hl-identifier">root</span><span class="hl-code"> </span><span class="hl-number">4</span><span class="hl-code">  </span><span class="hl-number">2.</span><span class="hl-code"> </span><span class="hl-identifier">Feb</span><span class="hl-code"> </span><span class="hl-number">16</span><span class="hl-code">:</span><span class="hl-number">43</span><span class="hl-code"> /</span><span class="hl-identifier">dev</span><span class="hl-code">/</span><span class="hl-identifier">disk_arbeit</span><span class="hl-code"> -&gt; </span><span class="hl-identifier">sdd1</span></li></ol></div></div>
<p>Um die ID_SERIAL für z.B. /dev/sdc auszulesen gibt man folgendes ein:</p>
<div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-identifier">udevadm</span><span class="hl-code"> </span><span class="hl-identifier">info</span><span class="hl-code"> --</span><span class="hl-identifier">query</span><span class="hl-code">=</span><span class="hl-reserved">all</span><span class="hl-code">  --</span><span class="hl-var">name</span><span class="hl-code"> /</span><span class="hl-identifier">dev</span><span class="hl-code">/</span><span class="hl-identifier">sdc</span><span class="hl-code"> |</span><span class="hl-identifier">grep</span><span class="hl-code"> </span><span class="hl-identifier">ID_SERIAL</span></li></ol></div></div>
<p>Wobei das Device was hier abgefragt wird &#8220;/dev/sdc&#8221; ist. Bei mir sieht das Ergebnis so aus:</p>
<div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-identifier">udevadm</span><span class="hl-code"> </span><span class="hl-identifier">info</span><span class="hl-code"> --</span><span class="hl-identifier">query</span><span class="hl-code">=</span><span class="hl-reserved">all</span><span class="hl-code">  --</span><span class="hl-var">name</span><span class="hl-code"> /</span><span class="hl-identifier">dev</span><span class="hl-code">/</span><span class="hl-identifier">sdc</span><span class="hl-code"> |</span><span class="hl-identifier">grep</span><span class="hl-code"> </span><span class="hl-identifier">ID_SERIAL</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-identifier">E</span><span class="hl-code">: </span><span class="hl-identifier">ID_SERIAL</span><span class="hl-code">=</span><span class="hl-identifier">SAMSUNG_HD154UI_S1XWJ1KZ101955</span><span class="hl-code"></span></li>
<li><span class="hl-code">&nbsp;</span><span class="hl-identifier">E</span><span class="hl-code">: </span><span class="hl-identifier">ID_SERIAL_SHORT</span><span class="hl-code">=</span><span class="hl-identifier">S1XWJ1KZ101955</span></li></ol></div></div>
<p>Mit den hier gesammelten Informationen kann man dann sehr einfach eine udev Regel, wie weiter oben im Beispiel, erstellen.</p>
<p>Nach dem editieren der udev Regeln, sollten die udev Regeln neu geladen werden. So wird beim nächsten anstöpseln der Festplatte diese mit dem &#8220;richtigen&#8221; Namen (Symlink) angelegt. Ein reload der udev Regeln erfolgt mit dem folgenden Befehl:</p>
<div class="hl-wrapper"><div class="hl-main"><ol class="hl-main"><li>&nbsp;<span class="hl-identifier">udevadm</span><span class="hl-code"> </span><span class="hl-identifier">control</span><span class="hl-code"> --</span><span class="hl-identifier">reload</span><span class="hl-code">-</span><span class="hl-identifier">rules</span></li></ol></div></div>
<div class="shr-publisher-275"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2011%2F02%2Fusb-festplatten-fest-definierte-namen%2F' data-shr_title='USB+-+Festplatten+-+Fest+definierte+Namen'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2011%2F02%2Fusb-festplatten-fest-definierte-namen%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2011%2F02%2Fusb-festplatten-fest-definierte-namen%2F' data-shr_title='USB+-+Festplatten+-+Fest+definierte+Namen'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.dhde.de/2011/02/usb-festplatten-fest-definierte-namen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kostenlose SSL-Zertifikate von startssl.org</title>
		<link>http://www.dhde.de/2010/03/kostenlose-ssl-zertifikate-von-startssl-org/</link>
		<comments>http://www.dhde.de/2010/03/kostenlose-ssl-zertifikate-von-startssl-org/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 15:18:58 +0000</pubDate>
		<dc:creator>Dietrich Heise</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[Domains]]></category>
		<category><![CDATA[vserver]]></category>

		<guid isPermaLink="false">http://www.dhde.de/?p=208</guid>
		<description><![CDATA[Wie schon auf www.heise.de zu lesen war, bietet startssl.org kostenlose SSL-Zertifikate an. Daher hab ich es einmal probiert ein solches Zertifikat für https://www.dhde.de zu bestellen und auch zu installieren. Nachdem der erste Zertifikatrequest irgendwie schief gegangen war, wurde das Zertifikat innerhalb von Minuten zurück gezogen, so dass ich mit einem erneuten Zertifikatrequest ein dann gültiges [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Wie schon auf <a href="http://www.heise.de/security/artikel/SSL-fuer-lau-880221.html" target="_blank">www.heise.de</a> zu lesen war, bietet <a href="http://www.startssl.org">startssl.org</a> kostenlose SSL-Zertifikate an.</p>
<p>Daher hab ich es einmal probiert ein solches Zertifikat für <a href="https://www.dhde.de">https://www.dhde.de</a> zu bestellen und auch zu installieren. Nachdem der erste Zertifikatrequest irgendwie schief gegangen war, wurde das Zertifikat innerhalb von Minuten zurück gezogen, so dass ich mit einem erneuten Zertifikatrequest ein dann gültiges Zertifikat erhalten habe. Was danach innerhalb von Minuten auch installiert werden konnte.</p>
<p>Die Anleitungen zum installieren des Zertifikats von startssl.org sind gut geschrieben.</p>
<p>Einzig und allein der Zertifikaterstellungsprozess ist etwas gewöhnungsbedürftig, hier kann ich nur empfehlen den Private Key und den Zertifikatrequest vorher auf einem System von Euch durchzuführen und das fertige .csr File über die Webschnittstelle von startssl.org signieren zu lassen.</p>
<p>Viel Spass mit dem kostenlosem SSL-Zertifikat für Eure private Webseite.</p>
<div class="shr-publisher-208"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2010%2F03%2Fkostenlose-ssl-zertifikate-von-startssl-org%2F' data-shr_title='Kostenlose+SSL-Zertifikate+von+startssl.org'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2010%2F03%2Fkostenlose-ssl-zertifikate-von-startssl-org%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2010%2F03%2Fkostenlose-ssl-zertifikate-von-startssl-org%2F' data-shr_title='Kostenlose+SSL-Zertifikate+von+startssl.org'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.dhde.de/2010/03/kostenlose-ssl-zertifikate-von-startssl-org/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ERROR: &#8220;Unknown media type in type &#8216;all/all&#8217;&#8221; und weitere&#8230;</title>
		<link>http://www.dhde.de/2009/10/error-unknown-media-type-in-type-allall-und-weitere/</link>
		<comments>http://www.dhde.de/2009/10/error-unknown-media-type-in-type-allall-und-weitere/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 12:38:06 +0000</pubDate>
		<dc:creator>Dietrich Heise</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.dhde.de/?p=201</guid>
		<description><![CDATA[Hi, beim update von gentoo bekomme ich derzeit folgende Meldungen: Unknown media type in type 'all/all' Unknown media type in type 'all/allfiles' Unknown media type in type 'uri/mms' Unknown media type in type 'uri/mmst' Unknown media type in type 'uri/mmsu' Unknown media type in type 'uri/pnm' Unknown media type in type 'uri/rtspt' Unknown media type [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Hi,</p>
<p>beim update von gentoo bekomme ich derzeit folgende Meldungen:</p>
<pre>Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Unknown media type in type 'fonts/package'
Unknown media type in type 'interface/x-winamp-skin'</pre>
<p>Hierbei handelt es sich um das updaten der &#8220;mime-database&#8221;.</p>
<p>Dies update erfolgt nach einem emerge von Paketen, es kann auch manuell gestartet werden per:</p>

<div class="wp_syntax"><div class="code"><pre class="sh" style="font-family:monospace;">update-mime-database /usr/share/mime</pre></div></div>

<p>Es ist derzeit zwar unschön, scheint aber keine Auswirkungen zu haben&#8230; Mal sehen ob ich hier eine Lösung finde diese unschönen Meldungen zu unterbinden, bzw das Problem zu lösen.</p>
<div class="shr-publisher-201"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F10%2Ferror-unknown-media-type-in-type-allall-und-weitere%2F' data-shr_title='ERROR%3A+%22Unknown+media+type+in+type+%27all%2Fall%27%22+und+weitere...+'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F10%2Ferror-unknown-media-type-in-type-allall-und-weitere%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F10%2Ferror-unknown-media-type-in-type-allall-und-weitere%2F' data-shr_title='ERROR%3A+%22Unknown+media+type+in+type+%27all%2Fall%27%22+und+weitere...+'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.dhde.de/2009/10/error-unknown-media-type-in-type-allall-und-weitere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TomTom Route aufzeichnen und darstellen</title>
		<link>http://www.dhde.de/2009/08/tomtom-route-aufzeichnen-und-darstellen/</link>
		<comments>http://www.dhde.de/2009/08/tomtom-route-aufzeichnen-und-darstellen/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 00:17:52 +0000</pubDate>
		<dc:creator>Dietrich Heise</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[TomTom]]></category>

		<guid isPermaLink="false">http://www.dhde.de/?p=152</guid>
		<description><![CDATA[Wie vor ein paar Tagen beschrieben, ist es mit einem TomTom möglich die gefahrenen Routen, bzw alle GPS-Daten der zurückgelegten Strecke vom TomTom aufzeichnen zu lassen. Diese gesammelten Daten lassen sich dann z.B. über die folgende Seite: http://maps.gpsvisualizer.com/ grafisch in Google maps darstellen. Da es ein paar Probleme gab, um mehrere Routen pro Tag aufzeichnen [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Wie vor ein paar Tagen beschrieben, ist es mit einem TomTom möglich die gefahrenen Routen, bzw alle GPS-Daten der zurückgelegten Strecke vom TomTom aufzeichnen zu lassen.</p>
<p>Diese gesammelten Daten lassen sich dann z.B. über die folgende Seite:</p>
<p><a title="http://maps.gpsvisualizer.com/" href="http://maps.gpsvisualizer.com/" target="_blank">http://maps.gpsvisualizer.com/</a> grafisch in Google maps darstellen.</p>
<p>Da es ein paar Probleme gab, um mehrere Routen pro Tag aufzeichnen zu lassen, hab ich das Start-Skript etwas geändert, so dass jetzt beim Start die alten Daten archiviert werden. Hier nun das Start-Skript:<span id="more-152"></span></p>
<p>Datei: SDKRegistry/TTTracklog.cap</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Version|100|
AppName|TTTracklog-wrapper|
AppPath|/mnt/sdcard/bin/|
AppIconFile|track.bmp|
AppMainTitle|TTTracklog|
AppPort|2001|
COMMAND|CMD|hallo|track.bmp|TTTracklog|</pre></div></div>

<p>Datei: bin/TTTracklog-wrapper</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Wrapper script for TTTracklog (c) Markus Hoffmann 2008-2009</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This file is part of TTTracklog, the TomTom GPS Track logger</span>
<span style="color: #666666; font-style: italic;"># ======================================================================</span>
<span style="color: #666666; font-style: italic;"># TTTracklog is free software and comes with NO WARRANTY - read the file</span>
<span style="color: #666666; font-style: italic;"># COPYING for details</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Changelog:</span>
<span style="color: #666666; font-style: italic;"># 2009-04-17: First version with gzip MH</span>
<span style="color: #666666; font-style: italic;"># 2009-04-17: fixed bug MH</span>
<span style="color: #666666; font-style: italic;"># 2009-04-23: Added Timezone Option</span>
<span style="color: #666666; font-style: italic;"># 2009-08-08 Edit by Dietrich Heise</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Here the options you might want to change:</span>
<span style="color: #666666; font-style: italic;"># set this to 'yes' if you want old log files to be gzipped</span>
<span style="color: #007800;">dogzip</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># set this to 'yes' if you want gpx files to be gzipped</span>
<span style="color: #007800;">gpxgzip</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># set this to 'yes' if you want old logfiles to be removed.</span>
<span style="color: #007800;">removelog</span>=no
&nbsp;
<span style="color: #666666; font-style: italic;"># set this to 'yes' if you want the citynames and streetnames be added to</span>
<span style="color: #666666; font-style: italic;"># the .itn files. Be careful, this is really sloooow(!) (several minutes)</span>
<span style="color: #007800;">dowhereami</span>=no
&nbsp;
<span style="color: #666666; font-style: italic;"># Set timezone (relative to UTC)</span>
<span style="color: #666666; font-style: italic;"># Here is a quick solution:</span>
<span style="color: #666666; font-style: italic;"># export TZ=UTC-02</span>
<span style="color: #666666; font-style: italic;"># And this is the best solution (including daylight saving times)</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TZ</span>=<span style="color: #ff0000;">&quot;CEDT-01:00:00CEST-02:00:00,M3.4.0,M10.4.0&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#  PWD, HOME and PATH</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #007800;">$PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>bin
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">LD_LIBRARY_PATH</span>=<span style="color: #007800;">$LD_LIBRARY_PATH</span>:<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>lib
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HOME</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
<span style="color: #007800;">t_date</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">&quot;+%Y-%m-%d&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">t_time</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">&quot;+%d_%H%M%S&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #007800;">day_time</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> <span style="color: #ff0000;">&quot;+%Y-%m-%d_%H_%M_%S&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;gzip is not installed.&quot;</span>
  <span style="color: #007800;">dogzip</span>=no
  <span style="color: #007800;">gpxgzip</span>=no
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">test</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>whereami <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;whereami is not installed.&quot;</span>
  <span style="color: #007800;">dowhereami</span>=no
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #007800;">efl</span>=statdata<span style="color: #000000; font-weight: bold;">/</span>nmea-<span style="color: #007800;">$t_date</span>.log
<span style="color: #007800;">fl</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> statdata<span style="color: #000000; font-weight: bold;">/</span>nmea-????-??-??.log<span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Now stop an eventually running process and give it time to writeout</span>
<span style="color: #666666; font-style: italic;"># the gpx file and the statistics.</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">killall</span> TTTracklog
&nbsp;
<span style="color: #666666; font-style: italic;"># hier muessen wir dem toedlich getroffenen TTTracklog noch</span>
<span style="color: #666666; font-style: italic;"># ein wenig Zeit geben, um .gpx und Statistik auszuspucken...</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">pidof</span> TTTracklog ; <span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;waiting for TTTracklog to terminate ...&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># In the meantime, we are going to cleanup with the files</span>
<span style="color: #666666; font-style: italic;"># if wanted...</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> fff <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>statdata<span style="color: #000000; font-weight: bold;">/*</span>log<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">do</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dogzip</span>&quot;</span> = <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
    <span style="color: #000000; font-weight: bold;">then</span>
      <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-v</span> <span style="color: #007800;">$fff</span>
	  <span style="color: #666666; font-style: italic;"># evtl noch die gpx Dateien gzippen</span>
      <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #660033;">-f</span> statdata<span style="color: #000000; font-weight: bold;">/*</span>.gpx
	  <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #ff0000;">&quot;/mnt/sdcard/statdata/<span style="color: #007800;">$day_time</span>/&quot;</span>
	  <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>statdata<span style="color: #000000; font-weight: bold;">/*</span>gz <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>sdcard<span style="color: #000000; font-weight: bold;">/</span>statdata<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$day_time</span><span style="color: #000000; font-weight: bold;">/</span>
	<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">done</span>
&nbsp;
TTTracklog <span style="color: #660033;">--gnt</span> <span style="color: #660033;">--gnd</span> <span style="color: #660033;">--gnn</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Jetzt die Meldung rausgeben...</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">&quot;FlashMessageV01|TTTracklog is now running in the background: PID=<span style="color: #780078;">`pidof TTTracklog`</span>|8000|\0\c&quot;</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #ff0000;">&quot;/var/run/SDK.TomTomNavigationServer.$$.1.message&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> finish<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #ff0000;">&quot;/var/run/SDK.TomTomNavigationServer.$$.1.finished&quot;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$dowhereami</span>&quot;</span> = <span style="color: #ff0000;">&quot;yes&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #007800;">fil</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> itn<span style="color: #000000; font-weight: bold;">/</span>????-??-??.itn<span style="color: #000000; font-weight: bold;">`</span>
  <span style="color: #000000; font-weight: bold;">for</span> fff <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #007800;">$fil</span>
  <span style="color: #000000; font-weight: bold;">do</span>
    whereami <span style="color: #007800;">$fff</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$fff</span>.itn
    <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$fff</span>
  <span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<div class="shr-publisher-152"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F08%2Ftomtom-route-aufzeichnen-und-darstellen%2F' data-shr_title='TomTom+Route+aufzeichnen+und+darstellen'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F08%2Ftomtom-route-aufzeichnen-und-darstellen%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F08%2Ftomtom-route-aufzeichnen-und-darstellen%2F' data-shr_title='TomTom+Route+aufzeichnen+und+darstellen'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.dhde.de/2009/08/tomtom-route-aufzeichnen-und-darstellen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HOWTO: bash history &#8211; HISTCONTROL</title>
		<link>http://www.dhde.de/2009/07/bash-history/</link>
		<comments>http://www.dhde.de/2009/07/bash-history/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 09:47:34 +0000</pubDate>
		<dc:creator>Dietrich Heise</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[History]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.dhde.de/?p=62</guid>
		<description><![CDATA[Die bash besitzt eine Reihe nützlicher Einstellungen: z.B. kann man mit den Tasten [ctrl]+[r] in der bash-history suchen. Die history protokolliert in der Regel alle commands, die eingegeben werden und mit enter bestätigt werden. Es gibt jedoch dummerweise wie bei jeder Regel Ausnahmen In der default-Eintellung z.B. werden keine Zeilen protokolliert die mit einem whitespace [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Die <em>bash</em> besitzt eine Reihe nützlicher Einstellungen:</p>
<p>z.B. kann man mit den Tasten <code>[ctrl]+[r]</code> in der bash-history suchen. Die <em>history</em> protokolliert in der Regel alle <em>commands</em>, die eingegeben werden und mit <em>enter</em> bestätigt werden. Es gibt jedoch dummerweise wie bei jeder Regel Ausnahmen <img src='http://www.dhde.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>In der <em>default</em>-Eintellung z.B. werden keine Zeilen protokolliert die mit einem <em>whitespace</em> beginnen. Diese Einstellung kann jedoch mit der Umgebungsvariable HISTCONTROL bearbeitet werden.</p>
<p>Hier der Eintag in der <em>man page</em> der <em>bash</em>:</p>
<blockquote><p>HISTCONTROL<br />
A colon-separated list of values controlling how commands are saved on the history list.  If  the  list  of  values  includes ignorespace,  lines which begin with a space character are not saved in the history list.  A value of ignoredups causes lines matching the previous history entry to not be saved.  A value of ignoreboth is shorthand for ignorespace and  ignoredups.   A value  of  erasedups causes all previous lines matching the current line to be removed from the history list before that line is saved.  Any value not in the above list is ignored.  If HISTCONTROL is unset, or does not include a valid value, all lines read  by the shell parser are saved on the history list, subject to the value of HISTIGNORE.  The second and subsequent lines of a multi-line compound command are not tested, and are added to the history regardless of the value of HISTCONTROL.</p></blockquote>
<p><strong><code>HISTCONTROL</code></strong><br />
Dieser Parameter erwartet einen der folgenden Strings: &#8220;<code>ignorespace</code>&#8220;, &#8220;<code>ignoredups</code>&#8221; oder &#8220;<code>ignoreboth</code>&#8220;.</p>
<p>Die erste Option speichert alle Zeilen die mit einem <em>space</em> beginnen <strong>nicht</strong> in der <em>history</em>.<br />
Der Zweite löscht alle doppelten Zeilen und behält immer die Jüngste.<br />
Naja und &#8220;<code>ignoreboth</code>&#8221; steht eben für beide Einstellungen zusammen.<br />
Will man wirklich alles in der history behalten, so ist die die HISTCONTROL=&#8221;" zu setzen <img src='http://www.dhde.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Dieser Parameter kann global in z.B. der Datei /etc/bashrc oder /etc/bash/bashrc (je nach Linux Distribution) gesetzt werden, oder Benutzer spezifisch in der Datei ~/.bashrc</p>
<p>Hier kann man z.B. eine der folgenden Zeilen eintragen:<br />
Um sowohl doppelte Eingaben sowie Eingaben die mit einem <em>whitespace</em> beginnen <strong>nicht</strong> zu protokollieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTCONTROL</span>=ignoreboth</pre></div></div>

<p>Um Eingaben die mit einem <em>whitespace</em> beginnen <strong>nicht</strong> zu protokollieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTCONTROL</span>=ignorespace</pre></div></div>

<p>Um doppelte Eingaben <strong>nicht</strong> zu protokollieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTCONTROL</span>=ignoredups</pre></div></div>

<p>Um <strong>alles</strong> zu protokollieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">HISTCONTROL</span>=<span style="color: #ff0000;">&quot;&quot;</span></pre></div></div>

<div class="shr-publisher-62"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F07%2Fbash-history%2F' data-shr_title='HOWTO%3A+bash+history+-+HISTCONTROL'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F07%2Fbash-history%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F07%2Fbash-history%2F' data-shr_title='HOWTO%3A+bash+history+-+HISTCONTROL'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.dhde.de/2009/07/bash-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tool: figlet</title>
		<link>http://www.dhde.de/2009/07/figlet/</link>
		<comments>http://www.dhde.de/2009/07/figlet/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 08:19:16 +0000</pubDate>
		<dc:creator>Dietrich Heise</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://www.dhde.de/blog/?p=27</guid>
		<description><![CDATA[Gerde fragte ich mich mal wieder, wie ich hin und wieder diese ASCII-Banner erzeugt habe. Hierfür gibt es ein recht einfaches aber sehr schönes linux Tool namens figlet Zu finden ist das tool hier: www.figlet.org Mit dem Tool erzeugt man dann Texte wie z.B. _ _ ____ __ _ ___ ___(_&#124;_) &#124; __ ) __ [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Gerde fragte ich mich mal wieder, wie ich hin und wieder diese ASCII-Banner erzeugt habe.</p>
<p>Hierfür gibt es ein recht einfaches aber sehr schönes linux Tool namens <em>figlet</em></p>
<p>Zu finden ist das tool hier: <a title="www.figlet.org" href="http://www.figlet.org/" target="_blank">www.figlet.org</a></p>
<p>Mit dem Tool erzeugt man dann Texte wie z.B.</p>
<pre>                _ _       ____
  __ _ ___  ___(_|_)     | __ )  __ _ _ __  _ __   ___ _ __
 / _` / __|/ __| | |_____|  _ \ / _` | '_ \| '_ \ / _ \ '__|
| (_| \__ \ (__| | |_____| |_) | (_| | | | | | | |  __/ |
 \__,_|___/\___|_|_|     |____/ \__,_|_| |_|_| |_|\___|_|</pre>
<p>Viel Spass damit <img src='http://www.dhde.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="shr-publisher-27"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F07%2Ffiglet%2F' data-shr_title='Tool%3A+figlet'></a><a class='shareaholic-fbsend' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F07%2Ffiglet%2F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.dhde.de%2F2009%2F07%2Ffiglet%2F' data-shr_title='Tool%3A+figlet'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.dhde.de/2009/07/figlet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

