<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title># cd /scratch</title>
	<atom:link href="http://yeupou.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://yeupou.wordpress.com</link>
	<description>Yeupou&#039;s Libre Software-related storeroom, free beer</description>
	<lastBuildDate>Sat, 28 Jan 2012 13:44:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='yeupou.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title># cd /scratch</title>
		<link>http://yeupou.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://yeupou.wordpress.com/osd.xml" title="# cd /scratch" />
	<atom:link rel='hub' href='http://yeupou.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Booting on a SATA drive with ASUS K8N4-E Deluxe mainboard</title>
		<link>http://yeupou.wordpress.com/2012/01/27/booting-on-a-sata-drive-with-asus-k8n4-e-deluxe-mainboard/</link>
		<comments>http://yeupou.wordpress.com/2012/01/27/booting-on-a-sata-drive-with-asus-k8n4-e-deluxe-mainboard/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 19:09:20 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[ASUS]]></category>
		<category><![CDATA[K8N4-E Deluxe]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=456</guid>
		<description><![CDATA[I noticed the  ASUS K8N4-E Deluxe mainboard, provided with Phoenix Technologies ACPI BIOS Revision 1008 simply won&#8217;t boot with a SATA driver while it does fine with a PATA (IDE) one. Not sure what specific part is at fault here. 00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2) 00:07.0 IDE interface: nVidia Corporation CK804 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=456&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">I noticed the  ASUS K8N4-E Deluxe mainboard, provided with <a href="http://en.wikipedia.org/wiki/Phoenix_Technologies">Phoenix Technologies</a> ACPI BIOS Revision 1008 simply won&#8217;t boot with a SATA driver while it does fine with a PATA (IDE) one. Not sure what specific part is at fault here.</p>
<pre style="padding-left:30px;"> 00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
 00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3
 00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
 05:0a.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)</pre>
<p style="text-align:justify;">It boots with the following linux kernel options: irqpoll nolapic apm=power_off. I added them into /etc/defaut/grub before regenerating grub.cfg:</p>
<pre style="padding-left:30px;">GRUB_CMDLINE_LINUX_DEFAULT="quiet irqpoll nolapic apm=power_off"</pre>
<p style="text-align:justify;">Note that, however, the shutdown does not halt physically the system. I&#8217;ll look into that later.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/456/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=456&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2012/01/27/booting-on-a-sata-drive-with-asus-k8n4-e-deluxe-mainboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Avoiding Spams with SPF and greylisting within Exim</title>
		<link>http://yeupou.wordpress.com/2011/12/09/avoiding-spams-with-spf-and-greylisting-within-exim/</link>
		<comments>http://yeupou.wordpress.com/2011/12/09/avoiding-spams-with-spf-and-greylisting-within-exim/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 01:21:43 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Bogofilter]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[Greylist]]></category>
		<category><![CDATA[Memcached]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[SpamAssassin]]></category>
		<category><![CDATA[SPF]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=446</guid>
		<description><![CDATA[A year ago, I posted an article describing a way to slay Spams with both Bogofilter and SpamAssassin embedded in exim. This method was proven effective for my mailboxes:  since then, during a timespan of one year, Bogofilter caught ~ 85 % of actual spams, SpamAssassin (called only if mail not already flagged defavorably by [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=446&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">A year ago, I posted an article describing a way to <a href="http://yeupou.wordpress.com/2010/08/13/slaying-spams-with-both-bogofilter-and-spamassassin-embedded-in-exim/">slay Spams with both Bogofilter and SpamAssassin embedded in exim</a>. This method was proven effective for my mailboxes:  since then, during a timespan of one year, Bogofilter caught ~ 85 % of actual spams, SpamAssassin (called only if mail not already flagged defavorably by Bogofilter) caught ~ 15 %. Do the math, I had almost none to flag by hand.</p>
<p style="text-align:justify;">Why would I change such setup? For fun, obviously <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="text-align:justify;">Actually, I made no change, I just implemented <a href="http://en.wikipedia.org/wiki/Sender_Policy_Framework">SPF</a> (Sender Policy Framework) and greylisting.</p>
<p style="text-align:justify;">I noticed that plenty of spams were sent to my server @thisdomain claiming to be sent by whoever@thisdomain. These dirty spams were easily caught by the duo Bogofilter / SpamAssassin, but still, it annoyed me that @thisdomain was misused. SPF allows, using DNS records, to list which servers/computers are allowed to send mails from addresses @thisdomain.   SPF checks are predefined in Exim out of the box, so I&#8217;ll skip its configuration. The relevant DNS record (with bind9), allowing only two boxes (primary and secondary mail servers) designated by their IP to send mails @thisdomain, looks like:</p>
<blockquote><p><code><em>thisdomain</em>. IN  TXT  "v=spf1 ip4:78.249.<em>xxx</em>.<em>xxx</em> ip4:86.65.<em>xxx</em>.<em>xxx</em> -all"</code></p></blockquote>
<p style="text-align:justify;"><em>Result:</em> Since I implemented SPF on my domains, there was no change in the number of spam caughts. However, during this period, my primary server list of temporary bans dropped from 200/100 IPs to 40/20 IPs. I cannot pinpoint with certainty the cause of this evolution because the temporary bans list depends on plenty of things. But, surely, pretending to send mails @thesedomainsgrilledbySPF surely lost some interest for spambots. Implementing SPF is actually not about helping ourselves directly but indirectly: reducing effectiveness of spambots helps everybody.</p>
<p style="text-align:justify;">I use <a href="http://en.wikipedia.org/wiki/Greylisting">greylisting</a> on my secondary mail server since a while and I noticed over years that this one almost never had to ban IPs. Not that he never received spam, but that he almost never received mails from very obvious spam sources identified at STMP time.  Seems that most very obvious spam sources never insist enough to pass through greylisting. I guess that most spambots are coded to skip any mail server that does not immediatly accept a proper SMTP transaction, because it has no time to waste, considering how little is the percentage of spams sent actually reaching someone real.</p>
<p style="text-align:justify;">This greylisting use the following files (an assumes <a href="http://packages.debian.org/memcached">memcached</a> and <a href="http://packages.debian.org/libcache-memcached-perl">libcache-memcached-perl</a> are properly installed):</p>
<ul>
<li><a href="https://github.com/yeupou/stalag13/blob/master/usr/local/bin/memcached-exim.pl">/usr/local/bin/memcached-exim.pl</a></li>
<li><a href="https://github.com/yeupou/stalag13/blob/master/etc/exim4/memcached.conf">/etc/exim4/memcached.conf</a></li>
<li><a href="https://github.com/yeupou/stalag13/blob/master/etc/exim4/conf.d/main/30_stalag13-greylist">/etc/exim4/conf.d/main/30_stalag13-greylist</a></li>
<li><a href="https://github.com/yeupou/stalag13/blob/master/etc/exim4/conf.d/acl/25_stalag13-greylist">/etc/exim4/conf.d/acl/25_stalag13-greylist</a></li>
</ul>
<p style="text-align:justify;">So I gave a try using greylist my primary mail server, but with a very short waiting time, because 5 minutes, for example, to receive mail from a not-yet-known  source is not acceptable. So I edited the relevant conf.d/main/ file to GREY_MINUTES = 0.5 and GREY_TTL_DAYS = 25.</p>
<p style="text-align:justify;"><a href="http://yeupou.files.wordpress.com/2011/12/exim_ips-month.png"><img class="aligncenter size-full wp-image-452" title="Filtered IPs by month" src="http://yeupou.files.wordpress.com/2011/12/exim_ips-month.png?w=600" alt=""   /></a></p>
<p style="text-align:justify;"><em>Result:</em> no changes regarding the number of caught spams. However, like on the secondary mail server, the number of banned IPs is near to none. Looks like most obvious spam sources don&#8217;t wait even only 30 seconds &#8211; actually, it&#8217;s a very acute choice as they would be anyway banned if they did.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/446/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=446&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2011/12/09/avoiding-spams-with-spf-and-greylisting-within-exim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>

		<media:content url="http://yeupou.files.wordpress.com/2011/12/exim_ips-month.png" medium="image">
			<media:title type="html">Filtered IPs by month</media:title>
		</media:content>
	</item>
		<item>
		<title>Automounting NFS shares using if-up.d/if-down.d</title>
		<link>http://yeupou.wordpress.com/2011/09/15/automounting-nfs-shares-using-if-up-dif-down-d/</link>
		<comments>http://yeupou.wordpress.com/2011/09/15/automounting-nfs-shares-using-if-up-dif-down-d/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 21:23:49 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[AutoFS]]></category>
		<category><![CDATA[dhclient-enter-hooks]]></category>
		<category><![CDATA[dhclient-exit-hooks]]></category>
		<category><![CDATA[if-down.d]]></category>
		<category><![CDATA[if-up.d]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[mountnfs]]></category>
		<category><![CDATA[NetworkManager]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[prepmountnfs]]></category>
		<category><![CDATA[umount]]></category>
		<category><![CDATA[unprepmountnfs]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=431</guid>
		<description><![CDATA[I enjoy NFS since many years. But, with laptops, by essence that are not always connected to the same local netwok, it&#8217;s quite a pain in the ass. Editing /etc/fstab each time you connect is not really an option. AutoFS seemed a great idea. It took me a while to get the damn thing running [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=431&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I enjoy NFS since many years. But, with laptops, by essence that are not always connected to the same local netwok, it&#8217;s quite a pain in the ass.</p>
<p> Editing /etc/fstab each time you connect is not really an option. <a href="http://www.autofs.org/">AutoFS</a> seemed a great idea. It took me a while to get the damn thing running and it failed to work after a reboot. After spending plenty of time googling around, fooling around, I eventually reached the conclusion that I was not able to set it up in a reliable fashion. So I dropped the idea.</p>
<p>Then I had some hopes in regard of the <a href="http://en.wikipedia.org/wiki/Dynamic_Host_Configuration_Protocol">DHCP</a> client. It provides hooks, with plenty of variables useful to determine to which network you are connected to. I gave it a try. Worked well: a script in dhclient-exit-hooks.d to mount NFS shares after the interface is brought up on the LAN, the counterpart in dhclient-enter-hooks.d to umount NFS shares just before the interface is going down. </p>
<p>Then I realized that one of the two laptops supposed to make use of this script is running Ubuntu <em>-not mine</em>. And Ubuntu use by default a very very nasty software called <a href="http://projects.gnome.org/NetworkManager/" title="Not even wondering why it is hosted by GNOME...">NetworkManager</a>, the kind of well thought user interface that stores configuration in anything but the standard stuff that worked finely before it even existed. Yeah, it literally makes a litter of /etc/network/interface. So, no, obviously, handling properly /etc/dhcp/dhclient-*-hooks.d/ scripts is not an option for NetworkManager, it&#8217;s so much better to reinvent the wheel with a poorly designed (And What&#8217;s The Deal With These Upper Cases?) /etc/NetworkManager/dispatcher.d.</p>
<p>Plenty of people complained already about obvious limits of NetworkManager. Sure, there&#8217;s is room for improvements and it&#8217;s better to contribute than just to rant. But considering the kind of replies provided to NetworkManager people about bugs reports (cause, really, not handling dhcp-*-hooks.d is a regression), I think I&#8217;ll pass. Funny links though: <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/336736">&#8220;After discussing with a few folks we found that pre-up will not come  back &#8230; please provide detailed infos for your use-case as we have to find other means to achieve this.&#8221;</a> (hum, they&#8230; found that useful working features will not come back but havent found any better alternative yet ?),  <a href="https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/293139">&#8220;if the resolvconf abilities are not enough you can also stuff in a NM dispatcher.d script (see: /etc/NetworkManager/dispatcher.d/)&#8221;</a> (please, have fun writing new scripts to replace the ones that worked just fine). In fact, when developers deal with such issue like this &#8220;Changed in network-manager (Fedora):  status:    Confirmed → Won&#8217;t Fix&#8221;, best is just to find a workaround that absolutely not relies on their stuff that is sure to be broken some other day &#8211; no doubt that if a new trend comes, they&#8217;ll ask you to one more time rewrite scripts just to do the same frickin thing you were able to do years ago with simple dhclient-*-hooks.d.</p>
<p>So I finally came up with /etc/network/if-up.d and /etc/network/if-down.d scripts. Its quite standard and, oh!, NetworkManager got a &#8220;dispatcher&#8221; that <em>run-parts</em> on this dir. The obvious drawback is the fact it cannot be used to properly unmount the NFS shares because it&#8217;s unclear whether NetworkManager will run if-down.d before or after having brought down the network interface and, also, because it&#8217;s way to more painy to determine whether the loss of the current interface means loosing the relevant network where shares are (if you loose the Wifi, clearly, you may still be properly connected to the LAN). And I&#8217;m off trying to guess how behave and how will behave in 6 month this piece of software.</p>
<p>Instead of hardcoding the list of NFS shares in one more script, considering that <a href="http://packages.debian.org/initscripts">initscripts</a> already provides a well-thought /etc/network/if-up.d/mountnfs, I figured I would simply rely on /etc/fstab. My <a href="http://yeupou.free.fr/nfs/if-up.d/01prepmountnfs">/etc/network/if-up.d/01prepmountnfs</a> (that must run before initscript&#8217;s mountnfs) simply goes through /etc/fstab, looks for NFS shares that are in <em>noauto</em> mode (so, not configured to be mounted automatically when the box starts), find out if the server exists on the current LAN. If so, it removes the noauto option and then initscript&#8217;s mountnfs does its magic. On Ubuntu, there&#8217;s no /etc/network/if-up.d/mountnfs, but the following is enough to replace it:</p>
<blockquote><p><code><br />
echo "#!/bin/sh<br />
mount -a" &gt; /etc/network/if-up.d/mountnfs<br />
chmod a+x /etc/network/if-up.d/mountnfs<br />
</code></p></blockquote>
<p>The <a href="http://yeupou.free.fr/nfs/if-down.d/unprepmountnfs">/etc/network/if-down.d/unprepmountnfs</a> counterpart only reverts /etc/fstab to its previous state. Yes, if you loose connection to the NFS server, your X session will probably get frozen. For the reasons previously stated, for now it will have to do.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/431/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/431/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/431/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=431&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2011/09/15/automounting-nfs-shares-using-if-up-dif-down-d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Wished I bought an Android/iOS based phone (4-2cal Bada OS&#8217;s widget)</title>
		<link>http://yeupou.wordpress.com/2011/07/08/wished-i-bought-an-androidios-based-phone-4-2cal-bada-oss-widget/</link>
		<comments>http://yeupou.wordpress.com/2011/07/08/wished-i-bought-an-androidios-based-phone-4-2cal-bada-oss-widget/#comments</comments>
		<pubDate>Fri, 08 Jul 2011 14:47:37 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[.wgt]]></category>
		<category><![CDATA[4-2cal]]></category>
		<category><![CDATA[4-2cal.wgt]]></category>
		<category><![CDATA[Bada OS]]></category>
		<category><![CDATA[Bada OS 1.1]]></category>
		<category><![CDATA[Samsung wave 723]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=416</guid>
		<description><![CDATA[I don&#8217;t care much about phones. I don&#8217;t give a toss about eye-candy fancy stuff. It&#8217;s a tool and only phone related features matters to me. Also, I tend to break things: obviously because I&#8217;m careless (yes, I don&#8217;t care much about phones, as already stated). So when picking a phone, I go for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=416&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t care much about phones. I don&#8217;t give a toss about eye-candy fancy stuff. It&#8217;s a tool and only phone related features matters to me. Also, I tend to break things: obviously because I&#8217;m careless (yes, I don&#8217;t care much about phones, as already stated). So when picking a phone, I go for the easiest to carry: lightweight and small. If it&#8217;s robust, it&#8217;s a plus.</p>
<p>But so-called <em>smart</em>phones seem to get bigger and bigger over years. So when my last phone died, I bought the cheapeast and smallest smartphone that was available to me through my phone provider. It&#8217;s a Samsung wave 723. Not bad hardware-wise. Sure, there is better hardware around, but every piece of hardware is or will be bested soon in one way or another: as long as it&#8217;s good enough, then it&#8217;s good. No, the obvious drawback is the OS it came with.</p>
<p>The OS is called Bada OS and seems to be one more Linux based OS, developed in-house by Samsung. It depends on Libre Software but it&#8217;s not obvious that it is composed of such software. Well, two weeks after getting this phone, Samsung announced they will no longer provide OS software upgrade for the Samsung wave 723 and several others of the serie. Brand new and already obsolete, the wave 723 is stuck with Bada OS 1.1 while Bada OS 1.2 provides <a href="http://en.wikipedia.org/wiki/Swype">T9 trace</a>, which is not exactly what I consider frivolous.<br />
Clearly, I&#8217;ll take into account this policy from outer space next time I&#8217;ll buy a phone.</p>
<p><div id="attachment_420" class="wp-caption alignright" style="width: 310px"><a href="http://yeupou.files.wordpress.com/2011/07/dscf0989.jpg"><img src="http://yeupou.files.wordpress.com/2011/07/dscf0989.jpg?w=300&#038;h=225" alt="" title="4-2cal / Bada OS" width="300" height="225" class="size-medium wp-image-420" /></a><p class="wp-caption-text">4-2cal / Bada OS</p></div>Nonetheless, now I&#8217;m stuck with Bada OS and I needed a specific calendar app (highlighting 6 days work weeks). Bada OS provides &#8220;apps&#8221; and &#8220;widgets&#8221;, it&#8217;s unclear to me how pertinent is this distinction. Whatever. I needed something that sticks on the phone desktop, so it&#8217;s what is called here &#8220;widgets&#8221; and is in fact some kind of HTML/javascript packaged in a zip with the .wgt extension.<br />
I wrote <a href="http://yeupou.free.fr/bada/4-2cal/4-2cal.wgt">4-2cal.wgt</a> and I can, now, also acknowledge I&#8217;ve never seen a so poorly documented OS/environment since a very long time ago. Quite time consuming to be forced to second guess the specifics/cracks of the javascript implementation.<br />
So, next time, I&#8217;ll definitely think twice before wasting time with a Bada OS-based phone.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/416/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=416&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2011/07/08/wished-i-bought-an-androidios-based-phone-4-2cal-bada-oss-widget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>

		<media:content url="http://yeupou.files.wordpress.com/2011/07/dscf0989.jpg?w=300" medium="image">
			<media:title type="html">4-2cal / Bada OS</media:title>
		</media:content>
	</item>
		<item>
		<title>Minimalistic BitTorrent client over NFS/Samba: with Transmission 2.x</title>
		<link>http://yeupou.wordpress.com/2011/05/05/minimalistic-bittorrent-client-over-nfssamba-with-transmission-2-x/</link>
		<comments>http://yeupou.wordpress.com/2011/05/05/minimalistic-bittorrent-client-over-nfssamba-with-transmission-2-x/#comments</comments>
		<pubDate>Thu, 05 May 2011 16:52:36 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[BitTorrent]]></category>
		<category><![CDATA[torrent-watch.pl]]></category>
		<category><![CDATA[transmission]]></category>
		<category><![CDATA[transmission-daemon]]></category>
		<category><![CDATA[watchdir]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=400</guid>
		<description><![CDATA[I previously released a script to use transmission (BitTorrent client) over NFS/Samba. This script was written for transmission 1.x. I updated to use transmission 2.x. It&#8217;s a hack more than anything else, it&#8217;s just a wrapper for transmission-remote, the official RPC client. It works as before. You put $file.torrent in a watchdir, the script runs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=400&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I previously released a <a href="http://yeupou.wordpress.com/2010/11/08/minimalistic-bittorrent-client-over-nfssamba/">script to use transmission (BitTorrent client) over NFS/Samba</a>.</p>
<p>This script was written for transmission 1.x. I updated to use transmission 2.x. It&#8217;s a hack more than anything else, it&#8217;s just a wrapper for transmission-remote, the official RPC client.</p>
<p>It works as before. You put $file.torrent in a watchdir, the script runs (cronjob) and create $file.trs (containing infos about the download) and starts the download. Rename it $file.trs- to pause it, remove the $file.trs to stop it. When the download is finished, you get a mail (if cron is properly set up).</p>
<p>Due to progress made by transmission devs, the install process is even simpler.</p>
<p>1) Set up watch and download dirs <a href="http://yeupou.wordpress.com/2010/11/08/minimalistic-bittorrent-client-over-nfssamba/">as before</a>. </p>
<p>2) Install/Upgrade to transmission 2.x (packages cli and daemon).</p>
<p>3) [this make senses only if you used the previous version] Debian now starts transmission with the <em>debian-transmission</em> user. Trying to keep using <em>torrent</em> cause the init script to fail and, in the long run it&#8217;s anyway best to use the user debian maintainers provides. To easily switch to this new user, I removed the new <em>debian-transmission</em> entries in <em>/etc/passwd</em> and <em>/etc/group</em> and then replaced <em>torrent</em> by <em>debian-transmission</em> (except /home path obviously) in both these files (also updated <em>/etc/cron.d/torrent/</em>). Finally I ran <em>chown debian-transmission.debian-transmission /var/lib/transmission-daemon /etc/transmission-daemon/settings.json</em>.</p>
<p>4) Update transmission-daemon config. Make sure the daemon is down before, otherwise your changes won&#8217;t stay. So edit <em>/etc/transmission-daemon/settings.json</em>. I changed:</p>
<blockquote><p><code>  "blocklist-enabled": true,<br />
    "download-dir": "/home/torrent/download",<br />
  "message-level": 0,<br />
    "peer-port-random-on-start": true,<br />
   "port-forwarding-enabled": true,<br />
    "rpc-authentication-required": false,<br />
</code></p></blockquote>
<p>5) Install the script torrent-watch.pl, test it:</p>
<blockquote><p><code> cd /usr/local/bin<br />
 wget <a href="http://yeupou.free.fr/torrent2/torrent-watch.pl">http://yeupou.free.fr/torrent2/torrent-watch.pl</a><br />
 chmod a+x torrent-watch.pl<br />
su debian-transmission<br />
 torrent-watch.pl<br />
 cat status<br />
</code></p></blockquote>
<p>6) Set up cronjob and log rotation:</p>
<blockquote><p><code> * * * * * debian-transmission cd ~/watch &amp;&amp; /usr/local/bin/torrent-watch.pl<br />
</code></p></blockquote>
<p><em>/etc/logrotate.d/torrent</em>:</p>
<blockquote><p><code>/home/torrent/watch/log {<br />
 weekly<br />
 missingok<br />
 rotate 2<br />
 nocompress<br />
 notifempty<br />
 }</code></p></blockquote>
<p>Then you should be fine <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/400/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/400/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/400/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=400&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2011/05/05/minimalistic-bittorrent-client-over-nfssamba-with-transmission-2-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Switching from NFSv3 to NFSv4</title>
		<link>http://yeupou.wordpress.com/2011/01/06/switching-from-nfsv3-to-nfsv4/</link>
		<comments>http://yeupou.wordpress.com/2011/01/06/switching-from-nfsv3-to-nfsv4/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 18:03:19 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[/etc/exports]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[fsid=0]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[NFSv3]]></category>
		<category><![CDATA[NFSv4]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=396</guid>
		<description><![CDATA[Today, I switched over NFSv4. I guess there published it for some reason and people claim it could increase file transfert rate by 20%. In my case, to get it working properly, I&#8230; Modified /etc/default/nfs-kernel-server on server side to have NEED_SVCGSSD=no Modified /etc/default/nfs-common on both clients and server side to have NEED_STATD=no NEED_IDMAPD=yes NEED_GSSD=no Modified [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=396&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today, I switched over NFSv4. I guess there published it for some reason and people claim<a href="http://www.fedoraforum.org/forum/showthread.php?t=219433"> it could increase file transfert rate by 20%</a>.</p>
<p>In my case, to get it working properly, I&#8230;</p>
<p>Modified /etc/default/nfs-kernel-server on server side to have</p>
<blockquote><p><code>NEED_SVCGSSD=no</code></p></blockquote>
<p>Modified /etc/default/nfs-common on both clients and server side to have</p>
<blockquote><p><code>NEED_STATD=no<br />
NEED_IDMAPD=yes<br />
NEED_GSSD=no</code></p></blockquote>
<p>Modified /etc/exports on server side to have something starting by</p>
<blockquote><p><code><br />
/server		192.168.1.1/24(ro,fsid=0,no_subtree_check,async)</p>
<p>/server/temp   192.168.1.1/24(rw,nohide,no_subtree_check,async,all_squash,anonuid=65534,anongid=65534) </p>
<p>[...]</code></p></blockquote>
<p>It forces you to set a root for the NFS server, in my case /server (which I had already in my NFSv3 scenario, so&#8230;), aka fsid=0.<br />
You also need to specify nohide for any exports.</p>
<p>Modified /etc/fstab on clients side to set mount type to nfs4 and to remove the /server part from the paths, no longer necessary as path are relatives to fsid=0 which is /server. It gives entries like:<br />
<blockquote><code>[...]<br />
gate:/temp      /stockage/temp  nfs4    nolock	        0       0<br />
[...]</code></p></blockquote>
<p>I had an export which was a symlink to somewhere in /home. NFSv4 is stricter than NFSv3 and there is no way to export something outside from fsid=0. So I made a bind, adding to /etc/fstab on server side:</p>
<blockquote><p><code>[...]<br />
/home/torrent/watch	/server/torrent/watch	none	bind	0	0<br />
[...]</code></p></blockquote>
<p>After restarting nfs-kernel-server on the server side and nfs-common on both sides, umount NFS partitions and doing a <code>mount -a</code> on the client side, everything seems fine.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=396&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2011/01/06/switching-from-nfsv3-to-nfsv4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Package: amarok 2.4beta1 for Debian testing</title>
		<link>http://yeupou.wordpress.com/2010/12/30/package-amarok-2-4beta1-for-debian-testing/</link>
		<comments>http://yeupou.wordpress.com/2010/12/30/package-amarok-2-4beta1-for-debian-testing/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 15:51:55 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Audio/Video]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Amarok]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[iTunes]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[LastFM]]></category>
		<category><![CDATA[mtp]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=379</guid>
		<description><![CDATA[Amarok is a nice music player for KDE. Inspired by iTunes interface, it features a clever random mode, provides Wikipedia/lyrics/photos pages for the currently played song, handles mtp devices and works with lastfm so you can have online stats of what you listen to and find people that listen to the same crap too. That&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=379&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://amarok.kde.org">Amarok</a> is a nice music player for KDE. Inspired by iTunes interface, it features a clever random mode, provides Wikipedia/lyrics/photos pages for the currently played song, handles mtp devices and works with lastfm so you can have online stats of what you listen to and find people that listen to the same crap too. That&#8217;s definitely a nice software. But, unfortunately, it&#8217;s quite buggy.</p>
<p>This morning,  Amarok would not start, no matter what. Well, it&#8217;s started once I erased .kde/share/config/amarok and .kde/share/apps/amarok. Then, shortly afterwards, it failed to start once more. I&#8217;m not quite frankly prepared to remove my Amarok config twice per day. So I decided I would just give a shot to a more recent version and the first beta for 2.4 around seemed a good pick. </p>
<p>Here&#8217;s <a href="http://yeupou.free.fr/debian/amarok/">amarok 2.4beta1 (2.3.90) packages for Debian testing amd64</a>.</p>
<p>It was built with <a href="http://ftp.de.debian.org/debian/pool/main/a/amarok/amarok_2.3.2-2.debian.tar.gz">amarok Debian experimental directory (a new entry added in debian/changelog, usr/share/doc/kde/HTML/* removed from debian/amarok-common.install, usr/lib/strigi* removed from debian/amarok.install, usr/lib/kde4/*.so and usr/lib/*.so* added to debian/amarok.install, target override_dh_shlibdeps: added to debian/rules   and all patches removed from debian/patches/series)</a> and <a href="http://download.kde.org/download.php?url=unstable/amarok/2.3.90/src/amarok-2.3.90.tar.bz2">amarok official latest source package (renamed amarok_2.3.90.orig.tar.bz2)</a> using the command <code>dpkg-buildpackage -rfakeroot</code> inside the amarok-2.3.90 directory (source tarball decompressed) containing also the debian directory.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=379&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2010/12/30/package-amarok-2-4beta1-for-debian-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Keeping the dpkg installed software database clean</title>
		<link>http://yeupou.wordpress.com/2010/12/27/keeping-the-installed-software-database-clean/</link>
		<comments>http://yeupou.wordpress.com/2010/12/27/keeping-the-installed-software-database-clean/#comments</comments>
		<pubDate>Sun, 26 Dec 2010 23:30:40 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[debfoster]]></category>
		<category><![CDATA[deborphan]]></category>
		<category><![CDATA[dpkg]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=374</guid>
		<description><![CDATA[The system on my workstation was installed in 2008, December. Actually, I installed Debian AMD64 version over an i386 version on the same box, which was installed around 2003. Debian ships tools that makes it easy to keep a clean system. For instance, debfoster allows to easily get rid of all no-longer necessary libraries and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=374&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The system on my workstation was installed in 2008, December. Actually, I installed Debian AMD64 version over an i386 version on the same box, which was installed around 2003. </p>
<p>Debian ships tools that makes it easy to keep a clean system. For instance, <a href="http://packages.debian.org/debfoster">debfoster</a> allows to easily get rid of all no-longer necessary libraries and <em>al</em>: you just have to select the important pieces and it will remove any software that is not required by one of these. And apt-get, nowadays, just like <a href="http://packages.debian.org/deborphan">deborphan</a> used to, even warns you when some software is no longer required and provides you with the <em>autoremove</em> command line argument that do the job automatically.</p>
<p>(debfoster is, supposedly, deprecated, like apt-get is in favor of aptitude. Well, I like debfoster)</p>
<p>That being said, if I run <em><code>dpkg --list | grep ^r | nl | tail -n 1</code></em> on this box, after only one year, I get 617 lines about removed software I do not care about. Mostly, they were kept in the dpkg database because I (or me using the system) modified their conffiles. The following will clean this: <em><code>for package in `dpkg --list | grep ^r | cut -f 3 -d " "`; do dpkg --purge $package; done &amp;&amp; debfoster</code></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/374/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/374/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/374/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=374&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2010/12/27/keeping-the-installed-software-database-clean/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Using partitions labels</title>
		<link>http://yeupou.wordpress.com/2010/11/12/using-partitions-labels/</link>
		<comments>http://yeupou.wordpress.com/2010/11/12/using-partitions-labels/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 23:38:24 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[2label]]></category>
		<category><![CDATA[blkid]]></category>
		<category><![CDATA[ntfslabel]]></category>
		<category><![CDATA[tune2fs]]></category>
		<category><![CDATA[uuid]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=361</guid>
		<description><![CDATA[Recent linux versions (yes, I&#8217;m talking kernel here &#8211; linux is not an operating system) introduce new IDE drivers. It implies a device naming convention change. Instead of hda, hdb, etc, you get sda, sdb, etc, just like SCSI drives. I have three hard disks on my main workstation &#8211; plenty of partitions. So in [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=361&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recent linux versions (yes, I&#8217;m talking kernel here &#8211; <a href="http://en.wikipedia.org/wiki/GNU/Linux_naming_controversy">linux is not an operating system</a>) introduce new IDE drivers. It implies a device naming convention change. Instead of hda, hdb, etc, you get sda, sdb, etc, just like SCSI drives.</p>
<p>I have three hard disks on my main workstation &#8211; plenty of partitions. So in my case, it makes sense to use a unique identifier for each partition so nothing breaks up whenever I add/remove a drive or boot on an older kernel with the previous IDE drivers. </p>
<p>There are already uniques ids for each partition available using the command blkid. It returns unbearables and meaningless, but very uniques, ids like <i>af8485cf-de97-4daa-b3d9-d23aff685638</i>. </p>
<p>So it is best, for me at least, to label partitions properly according to their content and physical disposition, which makes for uniques id too in the end.</p>
<p>For ext3 partitions, I just did:<br />
<blockquote><code>e2label /dev/sda2 sg250debian64<br />
e2label /dev/sda3 sg250home<br />
</code></p></blockquote>
<p>For the swap, e2label cannot help, so we set the label with mkswap, recreating it:<br />
<blockquote><code>swapoff /dev/sda1<br />
mkswap -L sg250swap /dev/sda1<br />
swapon -L sg250swap<br />
</code></p></blockquote>
<p>For ntfs partitions, I did:<br />
<blockquote><code>apt-get install ntfsprogs<br />
ntfslabel /dev/sdb1 hi150suxor<br />
ntfslabel /dev/sdb2 hi150suxor2<br />
</code></p></blockquote>
<p>Then, /etc/fstab must be edited as:<br />
<blockquote><code><br />
LABEL=sg250swap		none	swap	sw	0	0</p>
<p>LABEL=sg250debian64	/       ext3    errors=remount-ro       0       1<br />
LABEL=sg250home		/home   ext3    defaults        1       2</p>
<p>LABEL=hi150suxor        /mnt/suxor	ntfs-3g defaults,user,noauto    0   0<br />
LABEL=hi150suxor2       /mnt/suxor2     ntfs-3g defaults,user,noauto    0    0<br />
</code>
</p></blockquote>
<p>Finally, grub (or any other boot loader)  config should be updated to reflect that. However, unless I&#8217;m mistaken, with grub2 as shipped by debian, everything is generated usings scripts that does not seem to handle labels <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/361/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/361/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/361/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=361&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2010/11/12/using-partitions-labels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>
	</item>
		<item>
		<title>Minimalistic BitTorrent client over NFS/Samba</title>
		<link>http://yeupou.wordpress.com/2010/11/08/minimalistic-bittorrent-client-over-nfssamba/</link>
		<comments>http://yeupou.wordpress.com/2010/11/08/minimalistic-bittorrent-client-over-nfssamba/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 17:16:25 +0000</pubDate>
		<dc:creator>yeupou</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[.torrent]]></category>
		<category><![CDATA[BitTorrent]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[torrent-watch.pl]]></category>
		<category><![CDATA[torrentflux]]></category>
		<category><![CDATA[transmission-daemon]]></category>
		<category><![CDATA[transmission-remote]]></category>

		<guid isPermaLink="false">http://yeupou.wordpress.com/?p=342</guid>
		<description><![CDATA[While current trends in music/movie industry will surely encourage development of a new generation of peer-to-peer softwares, the same way they made CD-burners cheap in a less than a decade, I&#8217;m still quite happy with BitTorrent. I used torrentflux for quite some time. Shipped with Debian, installed on my local home server, accessible to any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=342&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_343" class="wp-caption alignright" style="width: 310px"><a href="http://yeupou.files.wordpress.com/2010/11/sc21_01.png"><img src="http://yeupou.files.wordpress.com/2010/11/sc21_01.png?w=300&#038;h=237" alt="" title="sc21_01" width="300" height="237" class="size-medium wp-image-343" /></a><p class="wp-caption-text">Not quite AJAX</p></div>While current trends in music/movie industry will surely encourage development of a <a href="http://oneswarm.cs.washington.edu/index.html">new generation of peer-to-peer softwares</a>, the same way they made CD-burners cheap in a less than a decade, I&#8217;m still quite happy with BitTorrent.</p>
<p>I used <a href="http://www.torrentflux.com/">torrentflux</a> for quite some time. Shipped with Debian, installed on my local home server, accessible to any box on the network over https, even if it&#8217;s interface is not exactly eye candy, it works. I just had to configure web browsers to access http://server/torrentflux/index.php?url_upload=$ each time they hit a .torrent file.  But even if web interface may be powerful, user-friendly, I resent torrentflux for having me to click plenty of time (at least two times just to start a download), after login in.</p>
<p>I took a look at <a href="http://en.wikipedia.org/wiki/RTorrent">rTorrent</a>. It works by looking into a directory for new .torrent then load them automatically. Wonderful. Sadly, you have to log in over SSH and then manually select over a text user interface which download you want to <i>actually</i> start.</p>
<p>I liked the idea of dragging&#8217;n'dropping .torrent in one directory. It can be done over NFS or Samba, with no additional login. I have those already set up on my server. Next step is to handle queue management with the same directory.</p>
<p>I came up with the idea of using a command line BitTorrent client through a script that would watch the damn NFS/Samba directory. It would :<br />
 &#8211; notice and register new .torrents dropped<br />
 &#8211; allow to forcefully pause/remove any designated torrent<br />
 &#8211; allow to forcefully pause all downloads<br />
 &#8211; warn by mail whenever a download is completed and unregister the relevant torrent</p>
<p>So I wrote such script so it would handle <a href="http://packages.debian.org/transmission-daemon">transmission daemon</a> as shipped by debian stable. It looks for file in a given directory named after the following syntax:<br />
 &#8211; $file.torrent = torrent to be added<br />
 &#8211; $realfile.hash =  torrent being processed (delete it to remove the torrent)<br />
 &#8211; $realfile.hash- = torrent paused<br />
 &#8211; $realfile.hash+ = torrent (supposedly) completed and already removed<br />
 &#8211; all- = pause all</p>
<p>Here&#8217;s the HOWTO:</p>
<blockquote><p><code>apt-get install tranmissioncli screen<br />
adduser torrent<br />
echo "torrent: <i>youruser</i>" &gt;&gt; /etc/aliases </p>
<p>su torrent<br />
cd ~/<br />
mkdir watch download<br />
exit</p>
<p>mkdir -p /server<br />
ln -s /home/torrent /server<br />
</code></p></blockquote>
<p>Obtain uid/gid of torrent necessary below:</p>
<blockquote><p><code>cat /etc/passwd | grep torrent<br />
</code></p></blockquote>
<p>Here I get 1003/1003.</p>
<p>Edit /etc/exports to set up NFS access (this assumes your NFS server is already set up), add:</p>
<blockquote><p><code># every box on the network get rw access to rtorrent<br />
/home/torrent/download  192.168.1.1/24(rw,sync,all_squash,anonuid=<i>1003</i>,anongid=<i>1003</i>)<br />
/home/torrent/watch  192.168.1.1/24(rw,sync,all_squash,anonuid=<i>1003</i>,anongid=<i>1003</i>)<br />
</code></p></blockquote>
<p>On each NFS client, add in /etc/fstab (you must create mount points):  </p>
<blockquote><p><code>server:/home/torrent/download	/mnt/torrent/download	nfs	rw,nolock       0       0<br />
server:/home/torrent/watch	/mnt/torrent/watch		nfs	rw,nolock	 0	 0<br />
</code></p></blockquote>
<p>Edit /etc/samba/smb.conf to set up Samba access (this assumes your Samba server is already set up, add:</p>
<blockquote><p><code>[Download]<br />
path = /home/torrent/download<br />
browseable = yes<br />
public = yes<br />
valid users = <i>youruser</i><br />
force user = torrent<br />
force group = torrent<br />
writable = yes</p>
<p>[Watch]<br />
path = /home/torrent/watch<br />
browseable = yes<br />
public = yes<br />
valid users = <i>youruser</i><br />
force user = torrent<br />
force group = torrent<br />
writable = yes<br />
</code></p></blockquote>
<p>Restart NFS/Samba servers, mount networked file system on the clients.</p>
<p>Add a startup script for transmission-daemon, edit it if need be (daemon configuration is done here), fire it up:</p>
<blockquote><p><code>cd /etc/init.d/<br />
wget <a href="http://yeupou.free.fr/torrent/init.d/torrent">http://yeupou.free.fr/torrent/init.d/torrent</a><br />
update-rc.d torrent defaults 80<br />
/etc/init.d/torrent start<br />
</code></p></blockquote>
<p>At any time, you can check the current daemon process with screen:</p>
<blockquote><p><code>screen -r torrent<br />
</code></p></blockquote>
<p>Add torrent-watch.pl in /usr/local/bin or /usr/bin (anywhere in $PATH):</p>
<blockquote><p><code>cd /usr/local/bin<br />
wget <a href="http://yeupou.free.fr/torrent/torrent-watch.pl">http://yeupou.free.fr/torrent/torrent-watch.pl</a><br />
chmod a+x torrent-watch.pl<br />
</code></p></blockquote>
<p>Check that it runs properly. Drag&#8217;n'drop any .torrent in /home/torrent/watch and run:</p>
<blockquote><p><code>su torrent<br />
torrent-watch.pl<br />
cat status<br />
</code></p></blockquote>
<p>If everything is ok, add in /etc/cron.d/torrent:</p>
<blockquote><p><code>* * * * *	torrent	    cd ~/watch &amp;&amp; /usr/local/bin/torrent-watch.pl</code></p></blockquote>
<p>And /etc/logrotate.d/torrent:</p>
<blockquote><p><code>/home/torrent/watch/log	{<br />
        weekly<br />
        missingok<br />
        rotate 2<br />
        nocompress<br />
        notifempty<br />
}<br />
</code></p></blockquote>
<p>You&#8217;re done.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/yeupou.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/yeupou.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/yeupou.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/yeupou.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/yeupou.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/yeupou.wordpress.com/342/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/yeupou.wordpress.com/342/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/yeupou.wordpress.com/342/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=yeupou.wordpress.com&amp;blog=12412742&amp;post=342&amp;subd=yeupou&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://yeupou.wordpress.com/2010/11/08/minimalistic-bittorrent-client-over-nfssamba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b23b06e92742cf1cd6bf18988bb6038?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">yeupou</media:title>
		</media:content>

		<media:content url="http://yeupou.files.wordpress.com/2010/11/sc21_01.png?w=300" medium="image">
			<media:title type="html">sc21_01</media:title>
		</media:content>
	</item>
	</channel>
</rss>
