<?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>bloovis.com &#187; linux</title>
	<atom:link href="http://www.bloovis.com/wordpress/?feed=rss2&#038;cat=3" rel="self" type="application/rss+xml" />
	<link>http://www.bloovis.com/wordpress</link>
	<description>another geek blog</description>
	<lastBuildDate>Wed, 30 Jun 2010 11:56:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enabling fingerprint reader in Linux Mint 9 / Ubuntu 10.04</title>
		<link>http://www.bloovis.com/wordpress/?p=230</link>
		<comments>http://www.bloovis.com/wordpress/?p=230#comments</comments>
		<pubDate>Tue, 08 Jun 2010 00:15:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=230</guid>
		<description><![CDATA[It looks like the upgrade to the latest Ubuntu is going to keep me busy solving problems for a while.
Today&#8217;s second problem has to do with the fingerprint reader in the ThinkPad X41.  There&#8217;s a good source of information here, but there wasn&#8217;t a definitive set of instructions for Ubuntu 10.04 that actually worked. [...]]]></description>
			<content:encoded><![CDATA[<p>It looks like the upgrade to the latest Ubuntu is going to keep me busy solving problems for a while.</p>
<p>Today&#8217;s second problem has to do with the fingerprint reader in the ThinkPad X41.  There&#8217;s a good source of information <a href="http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger">here</a>, but there wasn&#8217;t a definitive set of instructions for Ubuntu 10.04 that actually worked.  Most of the uproar about the fingerprint reader in Ubuntu 10.04 has to do with a bug where the Enter key has to be pressed after swiping your finger.  I couldn&#8217;t even get to that point; the trouble was getting logins to prompt for a finger swipe.</p>
<p>As per the instructions at ThinkWiki, I installed and configured the required packages from the standard repository (no PPAs):</p>
<pre>
sudo apt-get install thinkfinger-tools libpam-thinkfinger
sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable
</pre>
<p>Then I was able to use <code>tf-tool --acquire</code> and <code>tf-tool --verify</code> to show that the fingerprint device worked.  But I was not able to use <code>tf-tool --add-user USERNAME</code> to create a fingerprint file for use by the authentication system; this build of tf-tool did not support that option.  So I had to set things up manually, by acquiring the fingerprint file and placing it in the proper directory, with the proper name, and with the proper permissions:</p>
<pre>
sudo su    # login as root
cd /etc/pam_thinkfinger
tf-tool --acquire USERNAME.bir
chown USERNAME:root USERNAME.bir
chmod 400 USERNAME.bir
</pre>
<p>In all of these commands, substitute your ordinary user name for USERNAME.  After this is done, authentication prompts, either in a terminal (e.g., with sudo) or in X (e.g., the login screen), should ask for either a password or a finger swipe.  Due the known aforementioned bug, it may also be necessary to hit Enter after the swipe.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=230</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing Logitech (pwc) webcam hang in Linux Mint 9 / Ubuntu 10.04</title>
		<link>http://www.bloovis.com/wordpress/?p=227</link>
		<comments>http://www.bloovis.com/wordpress/?p=227#comments</comments>
		<pubDate>Mon, 07 Jun 2010 21:04:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=227</guid>
		<description><![CDATA[I have an old Logitech QuickCam for Notebooks that uses the pwc (Philips Web Cam) driver on Linux.  This camera has always worked flawlessly on Linux Mint 6 (Ubuntu 8.10).  But on Linux Mint 9, the camera only worked the first time it was plugged in; on subsequent plug-ins, no programs could read [...]]]></description>
			<content:encoded><![CDATA[<p>I have an old Logitech QuickCam for Notebooks that uses the pwc (Philips Web Cam) driver on Linux.  This camera has always worked flawlessly on Linux Mint 6 (Ubuntu 8.10).  But on Linux Mint 9, the camera only worked the first time it was plugged in; on subsequent plug-ins, no programs could read images from the camera.  The fswebcam utility reported a timeout trying to read the frame buffer; other programs like Cheese or Skype simply displayed blank images.</p>
<p>The solution is to unplug the camera (if it is not already unplugged), then forcibly remove the pwc driver:</p>
<pre>
sudo modprobe -r pwc
</pre>
<p>Then the next time the camera is plugged in, the pwc driver will be loaded automatically and will work properly.  This has to be done every time you unplug the camera.  I&#8217;m not sure why this is necessary with recent Ubuntu releases.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=227</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sharing a VPN connection on Linux</title>
		<link>http://www.bloovis.com/wordpress/?p=219</link>
		<comments>http://www.bloovis.com/wordpress/?p=219#comments</comments>
		<pubDate>Wed, 02 Jun 2010 15:19:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=219</guid>
		<description><![CDATA[My employer&#8217;s VPN system doesn&#8217;t allow more than one login at a time.  But there are occasions when I&#8217;d like to be able to use the VPN from two different laptops simultaneously.  The solution, most of which I found here, is to use iptables on the machine running the VPN to forward packets [...]]]></description>
			<content:encoded><![CDATA[<p>My employer&#8217;s VPN system doesn&#8217;t allow more than one login at a time.  But there are occasions when I&#8217;d like to be able to use the VPN from two different laptops simultaneously.  The solution, most of which I found <a href="http://www.sharms.org/blog/2008/11/03/how-to-share-a-vpn-connection-in-ubuntu-intrepid-ibex/">here</a>, is to use iptables on the machine running the VPN to forward packets from the machine not running the VPN.</p>
<p>In my case, the Juniper VPN software (ncsvc) sets up a connection on the net device <code>tun0</code>, and the network address is 10.0.0.0.  So after I start the VPN on one machine, I run the following script on that machine:</p>
<pre>
#!/bin/sh
# Share the VPN connection with other machines on the local net.
# The assumption here is the the VPN network is 10.0.0.0.
if [ `id -u` -ne 0 ] ; then
   echo "You are not root.  Rerunning with sudo..."
   sudo $0
else
   echo "1" > /proc/sys/net/ipv4/ip_forward
   iptables -A FORWARD -i eth0 -d 10.0.0.0/8 -j ACCEPT
   iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
   sysctl net.netfilter.nf_conntrack_acct=1
fi
</pre>
<p>Be sure to replace the network address (<code>10.0.0.0</code>), VPN net device (<code>tun0</code>) and local net device (<code>eth0</code>) with the correct values for your system.</p>
<p>Then on the machine that is not running the VPN, I run the following script:</p>
<pre>
#!/bin/sh
sudo route add -net 10.0.0.0 netmask 255.0.0.0 gw VPNHOST
sudo cp /etc/resolv.conf.vpn /etc/resolv.conf
</pre>
<p>In this script, replace VPNHOST with the hostname of the machine that is running the VPN (i.e., the name of the machine that is running the first script above).  I use static IP addresses on all of my machines, and have added entries for these addresses to <code>/etc/hosts</code> on all machines.  I&#8217;m not sure how this would work with dynamic IP addresses (DHCP).</p>
<p>The last line of this script is the one new thing I&#8217;m doing differently from the scripts at the aforementioned link.  It makes the non-VPN machine&#8217;s name resolution configuration file identical to that of the VPN machine.  This allows the non-VPN machine to resolve hostnames residing on the VPN. In order for this to work, I had earlier copied <code>/etc/resolv.conf</code> from the machine running the VPN to the non-VPN machine, and renamed it to <code>/etc/resolv.conf.vpn</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=219</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Booting Linux Mint 9 from a USB key</title>
		<link>http://www.bloovis.com/wordpress/?p=214</link>
		<comments>http://www.bloovis.com/wordpress/?p=214#comments</comments>
		<pubDate>Sun, 30 May 2010 23:39:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=214</guid>
		<description><![CDATA[I just spent many hours getting a 4GB USB key into a state where it can be used to boot Linux Mint 9 (based on Ubuntu 10.04).  Here are some notes on the problems I had to solve.
In the past, I&#8217;ve used unetbootin to create bootable USB keys.  When I did this with [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent many hours getting a 4GB USB key into a state where it can be used to boot Linux Mint 9 (based on Ubuntu 10.04).  Here are some notes on the problems I had to solve.</p>
<p>In the past, I&#8217;ve used <a href="http://unetbootin.sourceforge.net/">unetbootin</a> to create bootable USB keys.  When I did this with the Linux Mint 9 ISO image, the resulting USB key booted up just fine, but the installer application hung when trying to run the partition editor.  I narrowed this down to an assertion failure in libparted.  Apparently it doesn&#8217;t like the geometry on some USB keys.  This is a <a href="https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/545911">known bug</a>.</p>
<p>Fortunately, the ThinkPad R61 has a CD drive, so I created a CD from the ISO image and booted that.  Then after installing Mint 9 on the hard disk and booting that, I was able to create a bootable USB key that didn&#8217;t crap out in the installer.  I did this by using Mint 9&#8217;s built-in Startup Disk Creator, which is in the main Menu under Administration.  I told it to erase the entire USB key, which apparently reconfigured its partition table into a form that libparted liked.  I verified this by rebooting the R61 with the USB key and running gparted.</p>
<p>The next set of problems came when I tried booting an older ThinkPad R50p with the USB key.  As in all recent ThinkPads, you can choose the boot device by pressing the blue ThinkVantage or Access IBM button at startup, then pressing F12.  But on the R50p, the USB key wasn&#8217;t shown as a boot device.  I ran Setup (IBM&#8217;s term for BIOS configuration), and in the Startup screen I tried to enable the USB HDD device.  This didn&#8217;t work; the machine just beeped at me.  After a long bout of head-scratching, I finally figured out that Setup doesn&#8217;t allow more than eight boot devices to be enabled.  I disabled a couple of useless boot devices (e.g., HDD1 and USB Floppy), and then I could enable the USB key.</p>
<p>Finally the USB key would start to boot on the R50p.  But after the Linux Mint logo came up, the machine hung with the hard disk light on solid.  I rebooted from the USB key and selected the recovery mode boot option in Grub (I forget the exact name for it).  Then I was able to see the last error message at the hang.  It was an I/O error accessing the fd0 device, which is the floppy.  More headscratching and Google searching revealed that I needed to disable the floppy device in Setup.</p>
<p>Now I was able to get past the hang on booting from the USB key, but then X refused to run, displaying a dialog box saying that it was going to run in low graphics mode.  This turned out to be a problem with the kernel mode setting (KMS) feature of recent Ubuntu releases.  Apparently this is a very bleeding-edge method of determining graphics card type, and it doesn&#8217;t appear to work on older machines.  The fix was to provide the <strong>nomodeset</strong> kernel parameter when booting.  I did this by hitting Enter when the Grub menu came up, then hitting Enter again to edit the kernel command line.  I add the nomodeset parameter and pressed Enter a couple of more times to boot.  This time the system was able to boot to a good desktop, though the Mint logo didn&#8217;t appear during the early boot stages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=214</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing HP printer plugin problem in Linux Mint 9 / Ubuntu 10.04</title>
		<link>http://www.bloovis.com/wordpress/?p=209</link>
		<comments>http://www.bloovis.com/wordpress/?p=209#comments</comments>
		<pubDate>Sat, 29 May 2010 19:50:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=209</guid>
		<description><![CDATA[I upgraded one of my ThinkPads from Linux Mint 7 to Linux Mint 9 today, and discovered that I was no longer able to use my HP P1006 printer.  The HP printer tool (hp-toolbox) detected the printer correctly, downloaded the appropriate plugin, but then couldn&#8217;t install the plugin.  Running the tool from the [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded one of my ThinkPads from Linux Mint 7 to Linux Mint 9 today, and discovered that I was no longer able to use my HP P1006 printer.  The HP printer tool (hp-toolbox) detected the printer correctly, downloaded the appropriate plugin, but then couldn&#8217;t install the plugin.  Running the tool from the command line didn&#8217;t give any extra information.  This is a <a href="https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/546809">known bug</a> in Ubuntu 10.04.</p>
<p>The solution is to download and build the HP printer package (known as hplip) from source.  The complete instructions are <a href="http://hplipopensource.com/hplip-web/install/manual/distros/ubuntu.html">here</a>.  I had to install the following extra packages before the configure and make steps would succeed: libjpeg-dev, libsnmp-dev, libcups2-dev, libusb-dev, python-dev, libsane-dev, and libcupsimage2-dev.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=209</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving from Keyring on Palm to KeePass on Linux and Android</title>
		<link>http://www.bloovis.com/wordpress/?p=202</link>
		<comments>http://www.bloovis.com/wordpress/?p=202#comments</comments>
		<pubDate>Fri, 26 Mar 2010 04:02:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[centro]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nexus one]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=202</guid>
		<description><![CDATA[Keyring is a fine little open source application for Palm OS that stores and generates passwords.  There is no Android version of this program, so I decided to move to KeePass 1.x, both the Linux version and the Android version.
Then I hunted for way to import my Keyring data into KeePass 1.x.  I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://gnukeyring.sourceforge.net/">Keyring</a> is a fine little open source application for Palm OS that stores and generates passwords.  There is no Android version of this program, so I decided to move to KeePass 1.x, both the <a href="http://www.keepassx.org/">Linux version</a> and the <a href="http://www.keepassdroid.com/">Android version</a>.</p>
<p>Then I hunted for way to import my Keyring data into KeePass 1.x.  I couldn&#8217;t find a tool to do this, so I had to invent my own method, which included writing a conversion script in Ruby.</p>
<p>The first step is to generate an XML version of the Keyring data file, using this <a href="http://gnukeyring.sourceforge.net/conduits.html">Java program</a>.  I fed it the Keyring data, a file called <code>Keys-Gtkr.pdb</code> that I had previously backed up onto my Linux machine using pilot-xfer.  It produced the XML equivalent, which I redirected to a file.</p>
<p>Then I wrote a Ruby script called <a href="http://www.bloovis.com/downloads/kr2kp">kr2kp</a>, which reads the Keyring XML file  and outputs KeePass-compatible XML.  I saved the output of this script to another file.</p>
<p>The Android version of KeyPass doesn&#8217;t import XML, so I turned to the Linux version, and used it to import the XML file I had created in the previous step.  Then I saved the resulting database into a file called <code>keyring.kdb</code>.</p>
<p>Next, I copied <code>keyring.kdb</code> to the <code>keepass</code> directory on the Android device&#8217;s SD card.  (The exact path of the SD card will depend on the directory where your computer mounts the SD card when you connect the Android device via USB.)</p>
<p>Finally, I ran the Android KeePass app and opened the <code>keyring.kdb</code> file.  The Android app is somewhat limited, and doesn&#8217;t let you move entries between groups or rename groups.  So that kind of manipulation has to be done on the Linux side, and then the .kdb file has to be copied to the Android SD card, as described above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=202</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solving pilot-xfer sync problem on Ubuntu Jaunty / Linux Mint 7</title>
		<link>http://www.bloovis.com/wordpress/?p=184</link>
		<comments>http://www.bloovis.com/wordpress/?p=184#comments</comments>
		<pubDate>Fri, 19 Mar 2010 13:25:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[centro]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[treo]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=184</guid>
		<description><![CDATA[I use pilot-xfer (part of the pilot-link package) to back up the data on my Palm Centro, and occasionally to install files on the Centro.  It&#8217;s always worked fine on Linux Mint 6.  The only thing I needed to do before running pilot-xfer was load the visor kernel module using this command:

sudo modprobe [...]]]></description>
			<content:encoded><![CDATA[<p>I use pilot-xfer (part of the pilot-link package) to back up the data on my Palm Centro, and occasionally to install files on the Centro.  It&#8217;s always worked fine on Linux Mint 6.  The only thing I needed to do before running pilot-xfer was load the visor kernel module using this command:</p>
<pre>
sudo modprobe visor
</pre>
<p>But when I switched to a different laptop running Linux Mint 7, pilot-xfer never seemed to be able to connect with the Centro for the second and subsequent attempts after a reboot.  Some poking around revealed that the problem is apparently due to the visor module setting up an incorrect symbolic link for the device <code>/dev/pilot</code>.  Normally, after you connect the Centro to the computer with a USB cable and press the hotsync button, <code>/dev/pilot</code> should become a symlink that points to <code>ttyUSB1</code>.  But I was seeing it point to <code>ttyUSB0</code>, which is the wrong device file for the Centro.</p>
<p>I couldn&#8217;t find an elegant way to fix the problem, so I was forced to come up with a brute force method: before connecting the Centro with the USB cable, remove the visor module and the device symlink:</p>
<pre>
sudo rmmod visor
sudo rm /dev/pilot
</pre>
<p>Then after connecting the Centro, load the visor module again:</p>
<pre>
sudo modprobe visor
</pre>
<p>Note 1: Immediately after you load the visor module, <code>/dev/pilot</code> will point to <code>ttyUSB0</code>.  That&#8217;s OK.  After you press the hotsync button, the visor module should change the symlink to point to <code>ttyUSB1</code>.  If it doesn&#8217;t, you&#8217;ll have to use the brute force &#8220;unplug and unload&#8221; method I described above.</p>
<p>Note 2: You should always press the hotsync button on the Centro <em>before</em> running pilot-xfer.</p>
<p>Note 3: You can eliminate the need to use the -p option with pilot-xfer by setting the environment variable PILOTPORT to <code>/dev/pilot</code>.  Putting this line in your <code>~/.bashrc</code> (if your shell is bash) will do the trick:</p>
<pre>
export PILOTPORT=/dev/pilot
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=184</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Replacing postfix and procmail with maildrop</title>
		<link>http://www.bloovis.com/wordpress/?p=176</link>
		<comments>http://www.bloovis.com/wordpress/?p=176#comments</comments>
		<pubDate>Tue, 16 Mar 2010 12:16:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=176</guid>
		<description><![CDATA[In the previous post, I wrote about how I solved a problem with fetchmail connecting to the postfix mail server.  I also have postfix configured to transfer mail to procmail, which does some filtering for me using some rules I&#8217;ve written in ~/.procmailrc.  But postfix+procmail is really overkill for a laptop or any [...]]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://www.bloovis.com/wordpress/?p=172">previous post</a>, I wrote about how I solved a problem with fetchmail connecting to the postfix mail server.  I also have postfix configured to transfer mail to procmail, which does some filtering for me using some rules I&#8217;ve written in <code>~/.procmailrc</code>.  But postfix+procmail is really overkill for a laptop or any other machine that is not going to be used as a mail server.  Both of these programs can be replaced by maildrop, which delivers mail to your local mailbox or maildir, and which has a much more readable filtering language than procmail.</p>
<p>To get started with maildrop on Linux Mint or Ubuntu, install the maildrop and courier-authdaemon packages.  It&#8217;s not strictly necessary, but for safety you can also disable postfix by doing this:</p>
<pre>
sudo service postfix stop
sudo chkconfig postfix off
</pre>
<p>Now you need to configure fetchmail to use maildrop.  Simply add the following line to your <code>~.fetchmailrc</code>:</p>
<pre>
mda "/usr/bin/maildrop"
</pre>
<p>The quotes aren&#8217;t necessary; I had them there because I had been experimenting with passing options to maildrop.  The fetchmail man page recommends the options &#8220;-d %T&#8221;, but these aren&#8217;t required in this simple, single-user setup.</p>
<p>The next step is to write some mail filtering rules for maildrop.  These go into the file <code>~/.mailfilter</code>.  The mailfilter man page describes the filtering language, but doesn&#8217;t give many examples.  Here&#8217;s my <code>~/.mailfilter</code> (with a bogus address replacing a real one):</p>
<pre>
DEFAULT="$HOME/Maildir/inbox"
LINUS="$HOME/Maildir/linus"
WOTD="$HOME/Maildir/wotd"

logfile "$HOME/maildrop.log"

if (/^From:.*torvalds@linux\.com/)
{
  to $LINUS
}

if (/^From:.*word@m-w\.com/)
{
  to $WOTD
}

to $DEFAULT
</pre>
<p>In this example, I&#8217;m filtering mail to three different maildir directories; all messages that aren&#8217;t caught by the two filters get delivered to the default maildir.  If these directories didn&#8217;t already exist, they would need to be created with the maildirmake program.  maildrop also allows delivering mail to mbox files, but I consider mbox evil and don&#8217;t use it any more.</p>
<p>Now whenever you run fetchmail, it should hand off the mail to maildrop for delivery.  Check the log file, <code>~/maildrop.log</code>, to make sure your filtering works as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=176</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing &#8220;connection refused&#8221; error in fetchmail on Ubuntu Jaunty / Linux Mint 7</title>
		<link>http://www.bloovis.com/wordpress/?p=172</link>
		<comments>http://www.bloovis.com/wordpress/?p=172#comments</comments>
		<pubDate>Mon, 15 Mar 2010 01:30:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=172</guid>
		<description><![CDATA[Today I installed fetchmail on Linux Mint 7, which also brought in postfix as the mail transfer agent.  I&#8217;d used this combination on Linux Mint 6 with no problems, but on Mint 7 (which is based on Ubuntu Jaunty), fetchmail printed this error message:
fetchmail: connection to localhost:smtp [::1/25] failed: Connection refused.

The error was caused [...]]]></description>
			<content:encoded><![CDATA[<p>Today I installed fetchmail on Linux Mint 7, which also brought in postfix as the mail transfer agent.  I&#8217;d used this combination on Linux Mint 6 with no problems, but on Mint 7 (which is based on Ubuntu Jaunty), fetchmail printed this error message:</p>
<p><code>fetchmail: connection to localhost:smtp [::1/25] failed: Connection refused.<br />
</code></p>
<p>The error was caused by fetchmail attempting to make an IPV6 connection to postfix on the local machine.  Postfix refused the connection, so fetchmail then attempted an IPV4 connection, which was successful.  The mail was delivered, but the error message was annoying.</p>
<p>As usual, I tried several solutions I found with Google, including an attempt to disable IPV6 on a system-wide basis.  The thing that finally worked was to comment out the following line in <code>/etc/hosts</code>:</p>
<p><code>#::1     localhost ip6-localhost ip6-loopback<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=172</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing the default shell in Ubuntu / Linux Mint</title>
		<link>http://www.bloovis.com/wordpress/?p=163</link>
		<comments>http://www.bloovis.com/wordpress/?p=163#comments</comments>
		<pubDate>Wed, 03 Feb 2010 21:38:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.bloovis.com/wordpress/?p=163</guid>
		<description><![CDATA[Several years ago, the Ubuntu developers made a horrible decision to make dash the default shell instead of bash.  This breaks numerous shell scripts, and I recently discovered it also broke one of my own Ruby scripts that depended on bash&#8217;s signal handling.  The problem here was that when a TERM signal is [...]]]></description>
			<content:encoded><![CDATA[<p>Several years ago, the Ubuntu developers made a horrible decision to <a href="https://wiki.ubuntu.com/DashAsBinSh">make dash the default shell instead of bash</a>.  This breaks numerous shell scripts, and I recently discovered it also broke one of my own Ruby scripts that depended on bash&#8217;s signal handling.  The problem here was that when a TERM signal is sent to dash, it doesn&#8217;t kill off its child processes.</p>
<p>The problem isn&#8217;t fixed by making bash the login shell for a particular user, because some programs (such as Ruby) invoke /bin/sh, which is a symlink to /bin/dash.  The fix for this problem is to make bash the default shell on a system-wide basis.   The following command does that:</p>
<p><code>sudo dpkg-reconfigure dash</code></p>
<p>When you are asked whether to install dash as /bin/sh, answer No.  This will update the symlink, among other things.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=163</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
