<?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>blog.arithm &#187; Debian</title>
	<atom:link href="http://blog.arithm.com/category/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.arithm.com</link>
	<description>Software.  Politics.  Tinfoil hat conjecture.</description>
	<lastBuildDate>Fri, 13 Jan 2012 19:00:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>rsync and bzip2-compressed data</title>
		<link>http://blog.arithm.com/2008/09/06/rsync-and-bzip2compressed-data/</link>
		<comments>http://blog.arithm.com/2008/09/06/rsync-and-bzip2compressed-data/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 18:07:02 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bzip2]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[rsyncable]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=383</guid>
		<description><![CDATA[As it only transfers deltas between source and destination files, rsync is a great backup tool when working with uncompressed data. The structure of compressed data, however, can change drastically between backups, defeating the benefits of rsync. I&#8217;d read somewhere recently, however, that bzip2&#8242;s &#8220;blocking&#8221; design might make it a viable compression to use with [...]]]></description>
			<content:encoded><![CDATA[<p>As it only transfers deltas between source and destination files, rsync is a great backup tool when working with uncompressed data.  The structure of compressed data, however, can change drastically between backups, defeating the benefits of rsync.  I&#8217;d read somewhere recently, however, that bzip2&#8242;s &#8220;blocking&#8221; design might make it a viable compression to use with rsync.  Ran an ad hoc experiment this morning to check this out.</p>
<p><strong>Uncompressed Data</strong></p>
<p>Here are the results from rsync&#8217;ing an uncompressed MySQL database with a few minor record changes.<br />
<code><br />
total: matches=1634  hash_hits=2136  false_alarms=0 data=21227<br />
sent 6.73K bytes  received 9.92K bytes  6.66K bytes/sec<br />
total size is 2.69M  speedup is 161.44<br />
</code></p>
<p>Nice.  Only about 7K transferred.  Roughly the size of the change.</p>
<p><strong>bzip2 Compressed Data</strong></p>
<p>And here are the results from rsync&#8217;ing the same MySQL database, compressed in advance with bzip2.<br />
<code><br />
total: matches=596  hash_hits=17533  false_alarms=1 data=876602<br />
sent 876.99K bytes  received 7.73K bytes  353.89K bytes/sec<br />
total size is 1.64M  speedup is 1.85<br />
</code></p>
<p>Woah!  What amounts to about a 7K change is resulting 10x the data transfer.</p>
<p>Which makes sense, as &#8212; digging into the details of bzip2 &#8212; I see that the bzip2 algorithm <a href="http://en.wikipedia.org/wiki/Bzip2">chunks data in 100K &#8211; 900k blocks</a>.  So I suppose that using bzip2 might make sense if you have an incrementally growing data store that adds about 100K of data between backups; and where the older data rarely, if ever, changes.  Barring that, to achieve the benefits of rsync, uncompressed data is probably the way to go.</p>
<p>That said, there seems to be a version of gzip with an <code>--rsyncable</code> switch for Debian.  The <a href="http://beeznest.wordpress.com/">BeezNest</a> has a great article on this <a href="http://beeznest.wordpress.com/2005/02/03/rsyncable-gzip/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/09/06/rsync-and-bzip2compressed-data/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Debian for UTF-8</title>
		<link>http://blog.arithm.com/2008/06/29/configuring-debian-for-utf-8/</link>
		<comments>http://blog.arithm.com/2008/06/29/configuring-debian-for-utf-8/#comments</comments>
		<pubDate>Sun, 29 Jun 2008 14:31:47 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Japanese]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[charmap]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=334</guid>
		<description><![CDATA[Easier to configure than I thought it would be. The defacto document on this lists a series of convoluted steps to get UTF-8 working.  All you really need to do is as follows: Launch the local configurator via # dpkg-reconfigure locales Select the locales you would like to support. I need Japanese support so I [...]]]></description>
			<content:encoded><![CDATA[<p>Easier to configure than I thought it would be.  The <a href="http://melkor.dnp.fmph.uniba.sk/~garabik/debian-utf8/howto.html" class="broken_link">defacto document on this</a> lists a series of convoluted steps to get UTF-8 working.  All you really need to do is as follows:</p>
<ol>
<li>Launch the local configurator via <code># dpkg-reconfigure locales</code></li>
<li>Select the locales you would like to support.  I need Japanese support so I selected ja_JP.EUC, ja_JP.UTF-8, and en_US.UTF-8 in addition to already available locales.  Click &#8220;Ok&#8221;.</li>
<li>Choose the <em>default</em> locale from the list; make sure it is a UTF-8 locale.  Click &#8220;Ok&#8221;.</li>
<li>Login to another shell.</li>
</ol>
<p>That&#8217;s it!</p>
<p><code># locale charmap</code> should now return &#8220;UTF-8&#8243;.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/06/29/configuring-debian-for-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scratch that WordPress Etch</title>
		<link>http://blog.arithm.com/2008/05/27/scratch-that-wordpress-etch/</link>
		<comments>http://blog.arithm.com/2008/05/27/scratch-that-wordpress-etch/#comments</comments>
		<pubDate>Tue, 27 May 2008 21:12:02 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/?p=238</guid>
		<description><![CDATA[This post comes via notes taken from another blog&#8230; seemingly gone awol.   Here for posterity. Etch naturally has an older version of WordPress.  To upgrade to a more recent, possibly though unlikely more secure version,  the easiest way is to change your tracking to testing, install WordPress and then change back.  How to do it: [...]]]></description>
			<content:encoded><![CDATA[<p>This post comes via notes taken from another blog&#8230; seemingly gone awol.   Here for posterity.</p>
<p>Etch naturally has an older version of WordPress.  To upgrade to a more recent, possibly though unlikely more secure version,  the easiest way is to change your tracking to testing, install WordPress and then change back.  How to do it:</p>
<p>1.  Edit your /etc/apt/sources.list to track testing. If your sources.list says etch or stable, change that to testing.  For example if your source.list has:</p>
<p>deb http://debian.lcs.mit.edu/debian etch main contrib non-free<br />
deb-src http://debian.lcs.mit.edu/debian etch main contrib non-free</p>
<p>change those to:</p>
<p>deb http://debian.lcs.mit.edu/debian testing main contrib non-free<br />
deb-src http://debian.lcs.mit.edu/debian testing main contrib non-free</p>
<p>2.  After you change your tracking to testing do an apt-get update.</p>
<p><code>apt-get update</code></p>
<p>3.  Install WordPress</p>
<p><code>apt-get install wordpress</code></p>
<p>this may pull in a few new php libraries, such as libphp-phpmailer.  Let it.</p>
<p>(Note that you do not want to do an &#8220;upgrade&#8221;, but rather &#8220;install&#8221; as listed above.   &#8220;upgrade&#8221; will try to upgrade a ridiculous number of packages, whereas install will focus only on packages required for installing and/or upgrading WordPress.)</p>
<p>4.  Change your tracking back to Etch. just reverse what you did in step 1. that is change testing back to etch.</p>
<p>5.  Clean everything up.</p>
<p><code>apt-get clean &amp;&amp; apt-get update</code></p>
<p>After all this is done, login back in as admin to WordPress, and it will tell you that you have to update your WordPress database tables.  Do that and you&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/05/27/scratch-that-wordpress-etch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>clamav crashing on Debian</title>
		<link>http://blog.arithm.com/2008/03/23/clamav-crashing-on-debian/</link>
		<comments>http://blog.arithm.com/2008/03/23/clamav-crashing-on-debian/#comments</comments>
		<pubDate>Sun, 23 Mar 2008 13:59:56 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Crash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[freshclam]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/2008/03/23/clamav-crashing-on-debian/</guid>
		<description><![CDATA[I&#8217;d seen this happen occasionally over the last couple of months, but it seemed to get really bad on Friday. Fri Mar 21 21:31:45 2008 -&#62; SelfCheck: Database modification detected. Forcing reload. Reading databases from /var/lib/clamav ERROR: reload db failed: Unable to lock database directory (try 1) ERROR: reload db failed: Unable to lock database [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d seen this happen occasionally over the last couple of months, but it seemed to get really bad on Friday.<br />
<code><br />
Fri Mar 21 21:31:45 2008 -&gt; SelfCheck: Database modification detected. Forcing reload.<br />
Reading databases from /var/lib/clamav<br />
ERROR: reload db failed: Unable to lock database directory (try 1)<br />
ERROR: reload db failed: Unable to lock database directory (try 2)<br />
ERROR: reload db failed: Unable to lock database directory (try 3)<br />
ERROR: reload db failed: Unable to lock database directory<br />
Terminating because of a fatal error.<br />
Socket file removed.<br />
Pid file removed.<br />
--- Stopped at Fri Mar 21 21:38:16 2008<br />
</code></p>
<p>Not entirely sure what the problem is, but it seems like clamav is choking on recent updates from freshclam.</p>
<p>And apparently I&#8217;m not the only one.  Took advice from <a href="http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/692a2c6c62cdbfb0">this thread</a> and updated clamav to the version in debian-volatile.  The official ClamAV documentation also <a href="http://www.clamav.org/download/packages/packages-linux/">recommends using the volatile repositories</a>.</p>
<p>I&#8217;m new to Debian and almost took this to mean that I should use etch.  Good to know that Debian maintains a <a href="http://www.debian.org/volatile/">volatile repository</a>.  To pull packages from volatile, just add:</p>
<p><code>deb http://volatile.debian.net/debian-volatile etch/volatile main contrib non-free</code><br />
(though preferably use a mirror)</p>
<p>to <code>/etc/apt/sources.list</code>.  Running a simple <code>apt-get update clamav</code> or <code>aptitude update clamav</code> will find and install the appropriate volatile updates.  Nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/03/23/clamav-crashing-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to segfault Apache 2+ with mod_security</title>
		<link>http://blog.arithm.com/2008/02/09/how-to-segfault-apache-2-with-mod_security/</link>
		<comments>http://blog.arithm.com/2008/02/09/how-to-segfault-apache-2-with-mod_security/#comments</comments>
		<pubDate>Sat, 09 Feb 2008 21:02:43 +0000</pubDate>
		<dc:creator>nurikabe</dc:creator>
				<category><![CDATA[Crash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Japanese]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[mod_security]]></category>

		<guid isPermaLink="false">http://blog.arithm.com/2008/02/09/how-to-segfault-apache-2-with-mod_security/</guid>
		<description><![CDATA[Build mod_security against the wrong set of headers, and Apache 2 will mysteriously begin to segfault in a persistent manner. Check which version you&#8217;re running with dpkg --get-selections &#124; grep apache2. Seems my shiny new Debian distro running the prefork version of Apache had the threaded (worker) headers installed against it. Duh. apt-get install apache2-prefork-dev [...]]]></description>
			<content:encoded><![CDATA[<p>Build mod_security against the wrong set of headers, and Apache 2 will mysteriously begin to segfault in a persistent manner.  Check which version you&#8217;re running with <code>dpkg --get-selections | grep apache2</code>.</p>
<p>Seems my shiny new Debian distro running the prefork version of Apache had the threaded (worker) headers installed against it.  Duh.  <code>apt-get install apache2-prefork-dev </code>reinstalled the correct prefork headers and Apache is happy again.</p>
<p>Mathiew Dessus has a great <a href="http://mdessus.free.fr/?p=7">article about installing mod_securty on Debian</a> for those interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.arithm.com/2008/02/09/how-to-segfault-apache-2-with-mod_security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

