<?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 mint</title>
	<atom:link href="http://www.bloovis.com/wordpress/?feed=rss2&#038;cat=19" 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>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>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>
		<item>
		<title>Improving fonts in Ubuntu/Linux Mint</title>
		<link>http://www.bloovis.com/wordpress/?p=158</link>
		<comments>http://www.bloovis.com/wordpress/?p=158#comments</comments>
		<pubDate>Wed, 30 Dec 2009 04:27:14 +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=158</guid>
		<description><![CDATA[By default, Linux Mint 6 and 7 (and presumably, Ubuntu 8.10 and 9.04) come with a minimal set of somewhat ugly fonts.  There are two things that can be done to improve the situation.
First, install the Microsoft TrueType fonts:
sudo aptitude install msttcorefonts
Then, if you are using an LCD monitor (e.g., a laptop), enable anti-aliasing [...]]]></description>
			<content:encoded><![CDATA[<p>By default, Linux Mint 6 and 7 (and presumably, Ubuntu 8.10 and 9.04) come with a minimal set of somewhat ugly fonts.  There are two things that can be done to improve the situation.</p>
<p>First, install the Microsoft TrueType fonts:</p>
<p><code>sudo aptitude install msttcorefonts</code></p>
<p>Then, if you are using an LCD monitor (e.g., a laptop), enable anti-aliasing (smoothing).  On Linux Mint, start the Control Center from the main menu, then select Appearance.  (On Ubuntu, I believe this is done using System > Preferences > Appearance.)  Click the Font tab, and under Rendering, select Subpixel Smoothing.</p>
<p>You&#8217;ll see an immediate change in all fonts used in Gnome, but you may need to restart Firefox get it to see the new fonts and use smoothing.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=158</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using an Epson Perfection V30 scanner in Linux</title>
		<link>http://www.bloovis.com/wordpress/?p=108</link>
		<comments>http://www.bloovis.com/wordpress/?p=108#comments</comments>
		<pubDate>Sun, 04 Oct 2009 11:03:13 +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=108</guid>
		<description><![CDATA[When I was shopping for an inexpensive flatbed scanner, it was not always easy to figure out which ones would work in Linux.  Many manufacturers use proprietary protocols in their products and generally ignore Linux.  I bought an Epson V30 because it was cheap and because there are drivers available for download here. [...]]]></description>
			<content:encoded><![CDATA[<p>When I was shopping for an inexpensive flatbed scanner, it was not always easy to figure out which ones would work in Linux.  Many manufacturers use proprietary protocols in their products and generally ignore Linux.  I bought an Epson V30 because it was cheap and because there are drivers available for download <a href="http://www.avasys.jp/lx-bin2/linux_e/scan/DL1.do">here</a>.  The drivers work on Linux Mint 6 (Ubuntu 8.10) or later, and on several other Linux variants.  Unfortunately source code is not provided, so if you don&#8217;t have one of the popular distributions, you may be out of luck.</p>
<p>One of the things I wanted to do with the V30 was scan books and convert them to plain text (for personal use; I&#8217;m not a pirate).  For this I used Tesseract, an open-source OCR package that was developed at HP in the 90s and is now being <a href="http://code.google.com/p/tesseract-ocr/">maintained by Google</a>.  (The package name in Mint / Ubuntu is &#8220;tesseract-ocr&#8221;.)  This program has a slightly funky command line interface (only reads TIFF files; the input filename must end in &#8220;.tif&#8221;, not &#8220;.tiff&#8221; or anything else; the output filename must be given without an extension).  But it works surprisingly well, and I was able to integrate it into xsane (a decent scan utility) by writing a wrapper shell script that makes its command line interface identical to the gocr program that xsane uses by default.</p>
<p>I experimented with varying the dots per inch when scanning a book, to see how that affected tesseract&#8217;s error rate.  At 100 DPI, the output was gibberish.  At 200 DPI, the output was nearly perfect, with only about four errors per page that needed to be corrected manually.  At 300 DPI, the output was marginally better, with perhaps one or two fewer errors per page.  As I mentioned, this seems remarkably good.  After I scan a page and convert it to text, I&#8217;ll fix the obvious errors and remove any end-of-line hyphenation.  Then I&#8217;ll run aspell on the text to find additional errors.  The most common errors are missing spaces (&#8221;ofthe&#8221;) and &#8220;l&#8221; change to &#8220;1&#8243;.</p>
<p>Another approach to OCR is to buy the commercial, closed-source <a href="http://www.hamrick.com/">Vuescan</a>.  I owned a copy six years ago, when xsane was not quite up to snuff, and it worked beautifully.  I&#8217;m trying the latest trial version, and it has a number of improvements.  The most interesting new feature is the integration of tesseract-ocr.  This saves several steps in the process of scanning text, and the speed-up may be worth the price.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bloovis.com/wordpress/?feed=rss2&amp;p=108</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
