<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Raw Matter - Debian</title>
    <link>http://blog.fortytwo.ch/</link>
    <description>cmot's almost completely debian-unrelated weblog</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.3-2 - http://www.s9y.org/</generator>
    <managingEditor>avbidder+blog@fortytwo.ch</managingEditor>
<webMaster>avbidder+blog@fortytwo.ch</webMaster>
<ttl>125</ttl>
<pubDate>Sat, 19 Feb 2011 12:25:15 GMT</pubDate>

    <image>
        <url>http://blog.fortytwo.ch/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Raw Matter - Debian - cmot's almost completely debian-unrelated weblog</title>
        <link>http://blog.fortytwo.ch/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Execute stuff from dhcpd.conf</title>
    <link>http://blog.fortytwo.ch/archives/103-Execute-stuff-from-dhcpd.conf.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/103-Execute-stuff-from-dhcpd.conf.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=103</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=103</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;Since my NAS at home also acts as DHCP server, the obvious idea was to back up my PC and my laptop whenever they&#039;re switched on. Sadly, the documentation on how to do this from dhcpd.conf (instead of watching log files and reacting to log messages) is quite hidden, so here it is: I found the &quot;execute&quot; keyword (see the dhcp-eval manpage), and I found &lt;a href=&quot;https://lists.isc.org/pipermail/dhcp-users/2008-September/007167.html&quot;&gt;Tim Gustafson&lt;/a&gt;, which allowed me to pull it off (although, since I only have the two computers, I opted for a execute statement each and hardcoded the client IP in the call to the backup script. So I don&#039;t know if the address parsing stuff he does is correct.)&lt;/p&gt;

&lt;p&gt;So the host statements for me look just like this:&lt;/p&gt;
&lt;pre&gt;
  host laeggerli-wifi {
    hardware ethernet 00:22:69:aa:bb:cc;
    fixed-address 172.23.5.19;
    on commit {
      execute(&quot;/usr/local/sbin/dhcp-run-backup&quot;, &quot;commit&quot;, &quot;laeggerli&quot;);
    }
  }
&lt;/pre&gt;
&lt;p&gt;And the script to start dirvish is similarly simple, except that it needs to fork to the background to make sure dhcpd is not blocked. The &lt;tt&gt;sleep 600&lt;/tt&gt; is based on the theory that if I&#039;m on my way out in the morning and need to check  mail quickly, that will be less than 10 min, whereas when I&#039;m still online after 10 min, there&#039;s a good chance that the back up will go through. Obviously, this could be improved...&lt;/p&gt;

&lt;pre&gt;
#! /bin/bash

# called by dhcpd.conf
# arguments:
#  $1 -&gt; &quot;commit&quot; if called from dhcpd.conf, fork into background
#     -&gt; &quot;run&quot;    if called internall from first instance
#  $2 -&gt; client host

if [ &quot;$1&quot; == &quot;commit&quot; ]; then
    # fork to background
    $0 run &quot;$2&quot; &gt;&gt; /var/log/dhcpbackup.log 2&gt;&amp;amp;1 &amp;amp;
    exit 0
fi

if [ &quot;$1&quot; != &quot;run&quot; ]; then
    echo error
    exit 1
fi

# figure out which host:

host=&quot;$2&quot;
if [ &quot;$host&quot; != &quot;laeggerli&quot; -a &quot;$host&quot; != &quot;faehrimaa&quot; ]; then
    echo &quot;Unknown host: $2&quot;
    exit 1
fi

# did backup already run today?
d=`date +%Y%m%d`

if [ -d &quot;/srv/backup/${host}_home/$d&quot; ]; then
    exit 0
fi

# wait 10min before actually running the backup
# (if computer still runs after 10min, it&#039;ll likely run for longer...

sleep 600
ping -n -w 3 $host &gt;/dev/null 2&gt;&amp;amp;1 || exit 0

agentpid=&quot;/var/run/dirvish/ssh-agent-$host.pid&quot;
[ -f &quot;$agentpid&quot; ] &amp;amp;&amp;amp; \
    kill $(&amp;lt; &quot;$agentpid&quot;) 2&gt;/dev/null
mkdir /var/run/dirvish &gt;/dev/null 2&gt;&amp;amp;1
eval `ssh-agent` &gt;/dev/null 2&gt;&amp;amp;1
echo $SSH_AGENT_PID &gt; &quot;$agentpid&quot;
ssh-add /etc/dirvish/ssh-key &gt;/dev/null 2&gt;&amp;amp;1

/usr/sbin/dirvish --vault ${host}_home
/usr/sbin/dirvish --vault ${host}_root

/usr/sbin/dirvish-expire --quiet --vault ${host}_home
/usr/sbin/dirvish-expire --quiet --vault ${host}_root

kill $SSH_AGENT_PID
rm &quot;$agentpid&quot;
&lt;/pre&gt;

&lt;p&gt;(I don&#039;t claim any rights on any of it, it&#039;s trivial enough.)&lt;/p&gt;  
    </content:encoded>

    <pubDate>Sat, 29 Jan 2011 16:58:57 +0100</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/103-guid.html</guid>
    
</item>
<item>
    <title>Cyrus</title>
    <link>http://blog.fortytwo.ch/archives/98-Cyrus.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/98-Cyrus.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=98</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=98</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;&lt;b&gt;Just say no.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Filed under &amp;ldquo;Debian&amp;rdquo; since this is a Univention system which is based on Debian (still etch, though.)  And what specifically annoyed me was today&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;That the mailbox list and the actual on disk files can get out of sync.&lt;/li&gt;
&lt;li&gt;That this causes nice &amp;ldquo;System I/O error: %m&amp;rdquo; messages (the %m part is verbatim.  Nice, isn&#039;t it?) in cyrquota, and similar messages in cyradm for &amp;ldquo;sam&amp;rdquo; commands.&lt;/li&gt;
&lt;li&gt;That, while this can be fixed with a cyrrecover on the mailbox (a recursive recover on the parent doesn&#039;t bring back the mailbox, so I need to call cyrrecover on each affected mailbox separately), the output of cyrquota displays the mailbox as &amp;ldquo;domain!mailbox^name.folder&amp;rdquo; while cyrrecover expects &amp;ldquo;mailbox.name/folder@domain&amp;rdquo;&lt;/li&gt;
&lt;li&gt;That the System I/O error causes cyrquota to stop, so I need to sit here and restart it countless times. (At least it seems to pick up where it stopped, so I don&#039;t have to wait that long until it comes to the next problem.)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I knew from other experiences that one shouldn&#039;t use cyrus, but it can&#039;t be said often enough...  And since I usually don&#039;t use it, it amazes me anew every time I have to babysit an installation.  While I don&#039;t have a similarly big installation to compare it, I&#039;ve found &lt;a href=&quot;http://www.dovecot.org/&quot;&gt;Dovecot&lt;/a&gt; to be very nice.  Admittedly it doesn&#039;t have that many features.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Tue, 04 Jan 2011 17:14:24 +0100</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/98-guid.html</guid>
    
</item>
<item>
    <title>Order Your Debian Swirl Umbrella Now</title>
    <link>http://blog.fortytwo.ch/archives/84-Order-Your-Debian-Swirl-Umbrella-Now.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/84-Order-Your-Debian-Swirl-Umbrella-Now.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=84</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=84</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;&lt;!-- s9ymdb:13 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;110&quot; height=&quot;95&quot; style=&quot;float: right; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://blog.fortytwo.ch/uploads/debianumbrella2.serendipityThumb.jpg&quot; alt=&quot;&quot; /&gt;
Ok, here we go: It seems that I&#039;ll receive &lt;a href=&quot;http://blog.fortytwo.ch/archives/80-Yay!-Debian-Logo!.html&quot;&gt;the umbrella&lt;/a&gt; (big picture) in the first week of June, so I&#039;m taking orders now.  Please read this posting carefully if you want a Debian umbrella.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update IV 2010-12-12: &lt;/b&gt; Orders are now processed via debian.ch, so just go &lt;a href=&quot;http://debian.ch/merchandise/&quot;&gt;over there&lt;/a&gt; for your Umbrella.  I still have a very few umbrellas here in Basel, so if you want to pick one up locally you&#039;re still welcome.&lt;/p&gt;

&lt;p&gt;About CHF 5 to 6 per umbrella will go to &lt;a href=&quot;http://debian.ch/&quot;&gt;debian.ch&lt;/a&gt; (where it is held as official Debian money under the authority of the DPL.)&lt;/p&gt;

&lt;p&gt;(Old version of this article removed.  You&#039;re still welcome to send money to my bank account, but you won&#039;t get an umbrella in return.)&lt;/p&gt;  
    </content:encoded>

    <pubDate>Sun, 12 Dec 2010 13:30:00 +0100</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/84-guid.html</guid>
    
</item>
<item>
    <title>Tool: incron</title>
    <link>http://blog.fortytwo.ch/archives/97-Tool-incron.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/97-Tool-incron.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=97</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=97</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;One in the &amp;ldquo;obvious, now that you mention it&amp;rdquo; category.  The package description is good enough:&lt;/p&gt;
&lt;blockquote&gt;
 incron is an &quot;inotify cron&quot; system. It works like the regular cron but is
 driven by filesystem events instead of time events. This package provides two
 programs, a daemon called &quot;incrond&quot; (analogous to crond) and a table
 manipulator &quot;incrontab&quot; (like &quot;crontab&quot;).
&lt;/blockquote&gt;
&lt;p&gt;Where &amp;ldquo;filesystem events&amp;rdquo; is anything that is reported by inotify; see the inotify(7) manpage.  I didn&#039;t test and/or use it since I stumbled on it while searching for something completely different, but it sure sounds useful.  The important feature not mentioned in the package description: can it limit how often an event triggers a script execution?  Reading the manpage, it doesn&#039;t appear so, but there&#039;s &lt;tt&gt;IN_NO_LOOP&lt;/tt&gt; to &amp;ldquo;... disable monitoring events
       until the current one is completely handled (until  its  child  process
       exits).&amp;rdquo;  Which obviously opens up all kinds of race conditions.  So I guess this tool needs to be used with care.  Still, I guess a good candidate is monitoring /etc/aliases to run newaliases on change.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Sat, 20 Nov 2010 08:39:21 +0100</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/97-guid.html</guid>
    
</item>
<item>
    <title>Debian Umbrella Arrived Today</title>
    <link>http://blog.fortytwo.ch/archives/90-Debian-Umbrella-Arrived-Today.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/90-Debian-Umbrella-Arrived-Today.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=90</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=90</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;&lt;b&gt;Update 20100618&lt;/b&gt;: Added Debconf info.&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:13 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;110&quot; height=&quot;95&quot; style=&quot;float: right; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://blog.fortytwo.ch/uploads/debianumbrella2.serendipityThumb.jpg&quot; alt=&quot;&quot; /&gt;
The famous &lt;a href=&quot;http://blog.fortytwo.ch/archives/80-Yay!-Debian-Logo!.html&quot;&gt; Debian Umbrellas&lt;/a&gt; (big picture) have finally arrived, so I&#039;m keen to get rid of them.  &lt;a href=&quot;http://blog.fortytwo.ch/archives/84-Order-Your-Debian-Swirl-Umbrella-Now.html&quot;&gt;Order&lt;/a&gt; yours now!&lt;/p&gt;

&lt;p&gt;Information about &lt;b&gt;Debconf&lt;/b&gt;: I&#039;m not coming to Debconf.  But Luca Capello was friendly enough to offer to carry some umbrellas.  Coordination via the &lt;a href=&quot;http://wiki.debconf.org/wiki/DebConf10/DebianUmbrella&quot;&gt;wiki&lt;/a&gt;, orders need to be placed before June 27th.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Tue, 15 Jun 2010 19:30:52 +0200</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/90-guid.html</guid>
    
</item>
<item>
    <title>New Employer</title>
    <link>http://blog.fortytwo.ch/archives/87-New-Employer.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/87-New-Employer.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=87</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=87</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;The joys of a &lt;a href=&quot;http://sygroup.ch/&quot;&gt;new employer&lt;/a&gt; ... only 5min by bike to the office instead of 1h by train.  And, of course, we&#039;re using Debian a lot, and I may do the odd bit of Debian work on company time.  Like, right now, working with Klaus Zerwes on getting &lt;a href=&quot;http://jwhoisserver.net/&quot;&gt;JWhoisServer&lt;/a&gt; uploaded.  I hope more opportunities come up.&lt;/p&gt;  
    </content:encoded>

    <pubDate>Thu, 03 Jun 2010 22:16:53 +0200</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/87-guid.html</guid>
    
</item>
<item>
    <title>The Debian Umbrella: Soon.</title>
    <link>http://blog.fortytwo.ch/archives/85-The-Debian-Umbrella-Soon..html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/85-The-Debian-Umbrella-Soon..html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=85</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;p&gt;&lt;!-- s9ymdb:13 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;110&quot; height=&quot;95&quot; style=&quot;float: right; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://blog.fortytwo.ch/uploads/debianumbrella2.serendipityThumb.jpg&quot; alt=&quot;&quot; /&gt;
&lt;b&gt;Update: &lt;/b&gt;I&#039;m &lt;a href=&quot;http://blog.fortytwo.ch/archives/84-Order-Your-Debian-Swirl-Umbrella-Now.html&quot;&gt;taking orders now&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;I was planning to take orders for   
&lt;a href=&quot;http://blog.fortytwo.ch/archives/80-Yay!-Debian-Logo!.html&quot;&gt;the Debian Swirl umbrella&lt;/a&gt; starting tonight, but a bit of research showed that shipping prices for parcels are insane (CHF 37 for europe), but it seems I can get away with sending this as a Swiss Post &amp;ldquo;Maxi Letter&amp;rdquo; instead, which would result in a shipping price of CHF 12.50 for four and CHF 24 for up to eight umbrellas (1kg or 2kg.)  So now I&#039;ll go and look into getting some kind of flattish box to stay within the allowed dimensions before I can be sure this is possible.   In any case, I expect the delivery in the first week of June.&lt;/p&gt;

&lt;p&gt;Since I&#039;ll not be coming to &lt;b&gt;Debconf&lt;/b&gt;, it would be nice if somebody could take some umbrellas to New York.  I&#039;m currently not travelling much, so I&#039;d have to rely on a friendly volunteer.  (I&#039;m based in Basel, Switzerland; I am known to go to Zürich regularly.)&lt;/p&gt;  
    </content:encoded>

    <pubDate>Wed, 26 May 2010 20:44:31 +0200</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/85-guid.html</guid>
    
</item>
<item>
    <title>Yay!  Debian Logo!</title>
    <link>http://blog.fortytwo.ch/archives/80-Yay!-Debian-Logo!.html</link>
            <category>Debian</category>
    
    <comments>http://blog.fortytwo.ch/archives/80-Yay!-Debian-Logo!.html#comments</comments>
    <wfw:comment>http://blog.fortytwo.ch/wfwcomment.php?cid=80</wfw:comment>

    <wfw:commentRss>http://blog.fortytwo.ch/rss.php?version=2.0&amp;type=comments&amp;cid=80</wfw:commentRss>
    

    <author>nospam@example.com (Adrian von Bidder)</author>
    <content:encoded>
    &lt;!-- s9ymdb:12 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;750&quot; height=&quot;599&quot; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://blog.fortytwo.ch/uploads/debianumbrella1.jpg&quot; alt=&quot;&quot; /&gt;
&lt;!-- s9ymdb:13 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;750&quot; height=&quot;645&quot; style=&quot;border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://blog.fortytwo.ch/uploads/debianumbrella2.jpg&quot; alt=&quot;&quot; /&gt;
&lt;p&gt;&lt;b&gt;Conditions for ordering:&lt;/b&gt;  Not yet.  The umbrella will be available ca. end of May, I&#039;ll give details about ordering it then.  Information so far: CHF 25 per umbrella (ca. EUR 17 / USD 23), including ca. CHF 6 donation to Debian (via &lt;a href=&quot;http://debian.ch/&quot;&gt;debian.ch&lt;/a&gt;); at least at first, I plan to ship in lots of 5 or more to save postage.  International travellers should coordinate... (if you&#039;re close to Basel, Switzerland, you will obviously be able to get one directly as well.)&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Update 2010-06-15:&lt;/b&gt; I got the umbrellas now, so you can &lt;a href=&quot;http://blog.fortytwo.ch/archives/84-Order-Your-Debian-Swirl-Umbrella-Now.html&quot;&gt;order&lt;/a&gt; them. &lt;/p&gt;  
    </content:encoded>

    <pubDate>Wed, 14 Apr 2010 19:02:08 +0200</pubDate>
    <guid isPermaLink="false">http://blog.fortytwo.ch/archives/80-guid.html</guid>
    
</item>

</channel>
</rss>
