<?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>Vorlon's Blog &#187; linux</title>
	<atom:link href="http://blog.vorlons.info/archives/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vorlons.info</link>
	<description>Science, Life, Computers, ... who knows what will end up in here...</description>
	<lastBuildDate>Mon, 12 Oct 2009 15:35:11 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>etckeeper &#8211; keeping /etc in a git repository</title>
		<link>http://blog.vorlons.info/archives/2008/02/28/166/</link>
		<comments>http://blog.vorlons.info/archives/2008/02/28/166/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 21:35:25 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2008/02/28/166/</guid>
		<description><![CDATA[When having a look at git yesterday, I stumbled upon etckeeper, a tool to keep /etc in a git (or mercurial) repository and also keeps the metadata (file permissions, &#8230;) in the repo making use of metastore.
It hooks into apt but I used /etc/portage/basrc to call it before and after installing a package:
 case &#8220;$EBUILD_PHASE&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>When having a look at <a href="http://git.or.cz/">git</a> yesterday, I stumbled upon <a href="http://kitenet.net/~joey/code/etckeeper/">etckeeper</a>, a tool to keep /etc in a git (or mercurial) repository and also keeps the metadata (file permissions, &#8230;) in the repo making use of <a href="http://david.hardeman.nu/software.php">metastore</a>.</p>
<p>It hooks into apt but I used /etc/portage/basrc to call it before and after installing a package:</p>
<blockquote><p> case &#8220;$EBUILD_PHASE&#8221;  in<br />
preinst)<br />
elog &#8220;Running etckeeper pre-install&#8230;&#8221;<br />
/usr/bin/etckeeper pre-install<br />
;;<br />
postinst)<br />
elog &#8220;Running etckeeper post-install&#8230;&#8221;<br />
/usr/bin/etckeeper post-install<br />
;;<br />
esac</p></blockquote>
<p>One could also modify /etc/etckeeper/post-install.d/50vcs-commit to include the package name etc. in the commit message while emerging:</p>
<blockquote><p>  &#8212; a/post-install.d/50vcs-commit<br />
+++ b/post-install.d/50vcs-commit<br />
@@ -2,5 +2,12 @@<br />
set -e</p>
<p>if etckeeper unclean; then<br />
-       etckeeper commit &#8220;committing changes after $HIGHLEVEL_PACKAGE_MANAGER run&#8221;<br />
+       case $LOWLEVEL_PACKAGE_MANAGER in<br />
+               portage)<br />
+                       etckeeper commit &#8220;committing changes after $HIGHLEVEL_PACKAGE_MANAGER run ($CATEGORY/$P)&#8221;<br />
+                       ;;<br />
+               *)<br />
+                       etckeeper commit &#8220;committing changes after $HIGHLEVEL_PACKAGE_MANAGER run&#8221;<br />
+                       ;;<br />
+       esac<br />
fi</p></blockquote>
<p>There are probably other/better ways to accomplish this and more&#8230;</p>
<p>Anyways&#8230; etckeeper looks like a nice and very flexible tool to keep /etc in a repository if one wants to.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2008/02/28/166/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Matroska Dateien editieren/erstellen</title>
		<link>http://blog.vorlons.info/archives/2007/11/27/161/</link>
		<comments>http://blog.vorlons.info/archives/2007/11/27/161/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 19:59:14 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[Gentoo-de]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Matroska]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2007/11/27/161/</guid>
		<description><![CDATA[Auf der Suche nach einer Möglichkeit einen Audio Stream aus einer Matroska Containerdatei zu entfernen bin ich gerade auf MKVToolnix gestossen. Neben den üblichen Kommandozeilentools gibt&#8217;s dazu auch eine recht übersichtliche GUI, mit der das Problem im Nu gelöst war. Auch das Erstellen und ich hoffe auch Splitten von Containern sollte recht einfach gehen.
Achja, für [...]]]></description>
			<content:encoded><![CDATA[<p>Auf der Suche nach einer Möglichkeit einen Audio Stream aus einer <a href="http://www.matroska.org">Matroska</a> Containerdatei zu entfernen bin ich gerade auf <a href="http://www.bunkus.org/videotools/mkvtoolnix/">MKVToolnix</a> gestossen. Neben den üblichen Kommandozeilentools gibt&#8217;s dazu auch eine recht übersichtliche GUI, mit der das Problem im Nu gelöst war. Auch das Erstellen und ich hoffe auch Splitten von Containern sollte recht einfach gehen.</p>
<p>Achja, für Gentoo  gibt&#8217;s die Tools im Portage Tree als media-video/mkvtoolnix, wxwidgets USE-Flag hierbei nicht vergessen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2007/11/27/161/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nagios Checker Plugin for Firefox</title>
		<link>http://blog.vorlons.info/archives/2007/04/19/141/</link>
		<comments>http://blog.vorlons.info/archives/2007/04/19/141/#comments</comments>
		<pubDate>Thu, 19 Apr 2007 14:52:26 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mozilla-extensions]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2007/04/19/141/</guid>
		<description><![CDATA[When I was looking at Thunderbird/Firefox extensions earlier today, I found the Nagios Checker extension, which shows status reports from Nagios in the status bar of your browser. Really a useful and easy to configure tool  
]]></description>
			<content:encoded><![CDATA[<p>When I was looking at Thunderbird/Firefox extensions earlier today, I found the <a href="https://addons.mozilla.org/de/firefox/addon/3607">Nagios Checker</a> extension, which shows status reports from <a href="http://nagios.org">Nagios</a> in the status bar of your browser. Really a useful and easy to configure tool <img src='http://blog.vorlons.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2007/04/19/141/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux-vserver -&gt; openvz</title>
		<link>http://blog.vorlons.info/archives/2007/03/09/139/</link>
		<comments>http://blog.vorlons.info/archives/2007/03/09/139/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 17:54:31 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2007/03/09/139/</guid>
		<description><![CDATA[So, das Blog ist wieder da nachdem ich heute Nachmittag von VServer auf OpenVZ umgestiegen bin. Gebracht hat mir das ganze zunächst einmal ein loopback device für jeden virtuellen Server und die Möglichkeit iptables innerhalb eines virtuellen Server zu benutzen. Mal gucken wie mir das ganze in nächster Zeit gefällt.
]]></description>
			<content:encoded><![CDATA[<p>So, das Blog ist wieder da nachdem ich heute Nachmittag von <a href="http://linux-vserver.org/">VServer</a> auf <a href="http://openvz.org/">OpenVZ</a> umgestiegen bin. Gebracht hat mir das ganze zunächst einmal ein loopback device für jeden virtuellen Server und die Möglichkeit iptables innerhalb eines virtuellen Server zu benutzen. Mal gucken wie mir das ganze in nächster Zeit gefällt.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2007/03/09/139/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>setgid Bit bei Verzeichnissen</title>
		<link>http://blog.vorlons.info/archives/2007/02/20/138/</link>
		<comments>http://blog.vorlons.info/archives/2007/02/20/138/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 14:20:20 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2007/02/20/138/</guid>
		<description><![CDATA[Bei ausführbaren Dateien kennt man ja das setuid und das setgid Bit, aber auch bei Verzeichnissen kann es eingesetzt werden. Das gehört allerdings auch zu den Sachen, die ich alle paar Wochen wieder vergesse&#8230;
Normalerweise gehören Dateien, welche ein User schreibt, ihm und seiner primären Gruppe; möchte man aber, dass Dateien in einem Verzeichnis bei der [...]]]></description>
			<content:encoded><![CDATA[<p>Bei ausführbaren Dateien kennt man ja das setuid und das setgid Bit, aber auch bei Verzeichnissen kann es eingesetzt werden. Das gehört allerdings auch zu den Sachen, die ich alle paar Wochen wieder vergesse&#8230;</p>
<p>Normalerweise gehören Dateien, welche ein User schreibt, ihm und seiner primären Gruppe; möchte man aber, dass Dateien in einem Verzeichnis bei der Erstellung der Gruppe gehören, der das Verzeichnis schon gehört, so kann man einfach das setgid Bit setzen. Praktisch kann das z.B. bei Verzeichnissen für Arbeitsgruppen sein.</p>
<p>Das ganze sieht dann so aus:</p>
<blockquote><p>user1@sinclair ~/testdir $ id<br />
uid=1005(user1) gid=1005(user1) groups=1005(user1),1006(group1)<br />
user1@sinclair ~/testdir $ ls -al<br />
total 0<br />
drwxr-xr-x 2 user1 group1  48 Feb 20 15:51 .<br />
drwxr-xr-x 4 user1 user1  216 Feb 20 15:48 ..<br />
user1@sinclair ~/testdir $ touch foo<br />
user1@sinclair ~/testdir $ ls -al<br />
total 0<br />
drwxr-xr-x 2 user1 group1  72 Feb 20 15:52 .<br />
drwxr-xr-x 4 user1 user1  216 Feb 20 15:48 ..<br />
-rw-r&#8211;r&#8211; 1 user1 user1    0 Feb 20 15:52 foo<br />
user1@sinclair ~/testdir $ chmod g+s .<br />
user1@sinclair ~/testdir $ touch bar<br />
user1@sinclair ~/testdir $ ls -al<br />
total 0<br />
drwxr-sr-x 2 user1 group1  96 Feb 20 15:52 .<br />
drwxr-xr-x 4 user1 user1  216 Feb 20 15:48 ..<br />
-rw-r&#8211;r&#8211; 1 user1 group1   0 Feb 20 15:52 bar<br />
-rw-r&#8211;r&#8211; 1 user1 user1    0 Feb 20 15:52 foo</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2007/02/20/138/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kleinmacherei</title>
		<link>http://blog.vorlons.info/archives/2007/01/25/133/</link>
		<comments>http://blog.vorlons.info/archives/2007/01/25/133/#comments</comments>
		<pubDate>Thu, 25 Jan 2007 19:49:11 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scripts]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2007/01/25/133/</guid>
		<description><![CDATA[Bevor ich nächstes mal wieder lange überlegen muss hier mal ein kleiner Einzeiler um alle Einträge in einem Verzeichnis in Kleinbuchstaben umzuwandeln:
for i in `ls&#124;grep [[:upper:]]&#124; xargs`; do mv $i `echo $i&#124;tr [:upper:] [:lower:]`; done
Geht sicherlich auch eleganter, aber es hat funktioniert  
]]></description>
			<content:encoded><![CDATA[<p>Bevor ich nächstes mal wieder lange überlegen muss hier mal ein kleiner Einzeiler um alle Einträge in einem Verzeichnis in Kleinbuchstaben umzuwandeln:</p>
<p><code>for i in `ls|grep [[:upper:]]| xargs`; do mv $i `echo $i|tr [:upper:] [:lower:]`; done</code></p>
<p>Geht sicherlich auch eleganter, aber es hat funktioniert <img src='http://blog.vorlons.info/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2007/01/25/133/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cron.daily, etc.</title>
		<link>http://blog.vorlons.info/archives/2006/06/19/114/</link>
		<comments>http://blog.vorlons.info/archives/2006/06/19/114/#comments</comments>
		<pubDate>Mon, 19 Jun 2006 15:18:10 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2006/06/19/114/</guid>
		<description><![CDATA[Man sollte übrigens nicht vergessen, die Skripte in cron.daily/.weekly/&#8230; auch mit einem +x zu versehen, sonst wundert man sich z.B. warum kein Backup gemacht wurde  
]]></description>
			<content:encoded><![CDATA[<p>Man sollte übrigens nicht vergessen, die Skripte in cron.daily/.weekly/&#8230; auch mit einem +x zu versehen, sonst wundert man sich z.B. warum kein Backup gemacht wurde <img src='http://blog.vorlons.info/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2006/06/19/114/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subfolder bei dovecot</title>
		<link>http://blog.vorlons.info/archives/2006/03/03/98/</link>
		<comments>http://blog.vorlons.info/archives/2006/03/03/98/#comments</comments>
		<pubDate>Fri, 03 Mar 2006 20:31:26 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2006/03/03/98/</guid>
		<description><![CDATA[Bei dovecot sollte man bedenkten, dass Ordner mit einem &#8220;.&#8221; beginnen müssen, so wird jetzt Spam bei mir in $HOME/.maildir/.spam einsortiert; ein Ordner namens spam würde ignoriert. Will man nun einen Unterordner im Ordner Spam haben, dann muss dieser z.B. $HOME/.maildir/.spam.subfolder heissen u.s.w. Nachlesen kann man das auch auf http://www.dovecot.org/doc/mail-storages.txt.
]]></description>
			<content:encoded><![CDATA[<p>Bei dovecot sollte man bedenkten, dass Ordner mit einem &#8220;.&#8221; beginnen müssen, so wird jetzt Spam bei mir in $HOME/.maildir/.spam einsortiert; ein Ordner namens spam würde ignoriert. Will man nun einen Unterordner im Ordner Spam haben, dann muss dieser z.B. $HOME/.maildir/.spam.subfolder heissen u.s.w. Nachlesen kann man das auch auf <a target="_blank" href="http://www.dovecot.org/doc/mail-storages.txt">http://www.dovecot.org/doc/mail-storages.txt</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2006/03/03/98/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Endlich&#8230;</title>
		<link>http://blog.vorlons.info/archives/2006/02/28/96/</link>
		<comments>http://blog.vorlons.info/archives/2006/02/28/96/#comments</comments>
		<pubDate>Tue, 28 Feb 2006 14:05:45 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[Gentoo-de]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2006/02/28/96/</guid>
		<description><![CDATA[ist nun auch mein eigener Rechner in der neuen Wohnung am Netz. Und das per WLAN mit einem D-Link DWL-122 USB-Adapter, der hat einen Prism Chipsatz und läuft nun mit linux-wlan-ng ohne Probleme, ich muss mir da nur noch ein Startskript basteln. Statt des Cisco VPN kommt VPNC zum Einsatz und bisher läuft alles erstmal [...]]]></description>
			<content:encoded><![CDATA[<p>ist nun auch mein eigener Rechner in der neuen Wohnung am Netz. Und das per WLAN mit einem D-Link DWL-122 USB-Adapter, der hat einen Prism Chipsatz und läuft nun mit linux-wlan-ng ohne Probleme, ich muss mir da nur noch ein Startskript basteln. Statt des Cisco VPN kommt <a href="http://www.unix-ag.uni-kl.de/~massar/vpnc/">VPNC</a> zum Einsatz und bisher läuft alles erstmal zufriedenstellend. Ein Download vom lokalen FTP-Server der Uni lief mit knapp über 500 kb/s.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2006/02/28/96/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update auf PHP5</title>
		<link>http://blog.vorlons.info/archives/2006/02/27/95/</link>
		<comments>http://blog.vorlons.info/archives/2006/02/27/95/#comments</comments>
		<pubDate>Mon, 27 Feb 2006 18:08:34 +0000</pubDate>
		<dc:creator>vorlon</dc:creator>
				<category><![CDATA[Computer stuff]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Gentoo-de]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.vorlons.info/archives/2006/02/27/95/</guid>
		<description><![CDATA[So&#8230; jetzt läuft der Webserver auch mit PHP5&#8230; update hat mit Hilfe von http://www.gentoo.org/proj/en/php/php-upgrading.xml problemlos geklappt.
]]></description>
			<content:encoded><![CDATA[<p>So&#8230; jetzt läuft der Webserver auch mit PHP5&#8230; update hat mit Hilfe von <a href="http://www.gentoo.org/proj/en/php/php-upgrading.xml">http://www.gentoo.org/proj/en/php/php-upgrading.xml</a> problemlos geklappt.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vorlons.info/archives/2006/02/27/95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
