<?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>Xaprb &#187; ubuntu</title>
	<atom:link href="http://www.xaprb.com/blog/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 03:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</title>
		<link>http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/</link>
		<comments>http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:02:49 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Claws Mail]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Thunderbird]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1519</guid>
		<description><![CDATA[This weekend I backed up all my data, repartitioned my hard drive, and re-installed. I needed to do this because the only thing I had on the laptop was Ubuntu, and sadly, the reality is sometimes my clients use things that require me to use Windows (and sometimes a virtual machine won&#8217;t solve that). So [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2006/04/03/thunderbird-junk-mail-howto/' rel='bookmark' title='Permanent Link: How to train Thunderbird to detect junk mail'>How to train Thunderbird to detect junk mail</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/26/how-to-make-thunderbird-download-new-imap-messages/' rel='bookmark' title='Permanent Link: How to make Thunderbird download new IMAP messages'>How to make Thunderbird download new IMAP messages</a></li>
<li><a href='http://www.xaprb.com/blog/2011/06/07/impressions-of-fedora-15-with-gnome-3/' rel='bookmark' title='Permanent Link: Impressions of Fedora 15 with Gnome 3'>Impressions of Fedora 15 with Gnome 3</a></li>
<li><a href='http://www.xaprb.com/blog/2009/01/29/who-needs-better-email-search-for-thunderbird/' rel='bookmark' title='Permanent Link: Who needs better email search for Thunderbird?'>Who needs better email search for Thunderbird?</a></li>
<li><a href='http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu 8.10 rocks my Inspiron 1501'>Ubuntu 8.10 rocks my Inspiron 1501</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>This weekend I backed up all my data, repartitioned my hard drive, and re-installed.  I needed to do this because the only thing I had on the laptop was Ubuntu, and sadly, the reality is sometimes my clients use things that require me to use Windows (and sometimes a virtual machine won&#8217;t solve that).  So now I&#8217;m dual-booting Windows.  I think the last time I did that was sometime before 2001, so I&#8217;ve regressed 9 years.</p>

<p>I took this opportunity to switch from Ubuntu to Fedora.  Why?  They both released new versions almost at the same time, and I grabbed the live CDs and noticed that Fedora just worked better &#8212; better support for dual monitors, for example.  And some things about Ubuntu have always irked me, such as &#8220;sorry, can&#8217;t play WAV file, that&#8217;s a proprietary codec, you must install some big package of proprietary codecs.&#8221;  WHAT?  When did a codec become necessary to play a PCM file?  Codec stands for &#8220;code/decode&#8221; and that doesn&#8217;t make sense for PCM.  Anyway, these are small things, but sometimes they add up.  I did not do a default install of Fedora.  I don&#8217;t trust ext4, and ext3 works fine for me, so I stayed with that.  I also disabled SELinux right away &#8212; no thanks, *shudder*.</p>

<p>The much bigger switch was ditching Thunderbird in favor of <a href="http://www.claws-mail.org/">Claws</a>.  I last used Claws back in&#8230; 2003, maybe?  It was called Sylpheed Claws then, and was GTK1 or so.  Now it&#8217;s much nicer looking.  Anyway, Fedora installed Thunderbird 3, and after giving that a small test drive I decided that my long-standing love/hate relationship with Thunderbird was due for a change.  I just need a mail client that can open a yes/no dialog in less than 1.5 seconds &#8212; is that too much to ask?  I&#8217;m much happier with Claws.  I use email a lot, probably something like 350 emails per day, and I&#8217;ve already found Claws more capable than Thunderbird in every way but one: I can&#8217;t quite figure out how to get the functionality I got from Thunderbird&#8217;s quicktext extension.  Everything else is amazing &#8212; I don&#8217;t need extensions, everything&#8217;s built in by default.  I use filters extensively, and the filtering and searching in Claws is much nicer than in Thunderbird.  There are a handful of other things.</p>

<p>One notable thing is an archiving feature.  I like to move emails to a folder after I&#8217;m done with them.  I had sort of a hack in Thunderbird.  The key combination Ctrl+Shift+M moves the selected message(s) to the same folder used for the last move operation.  This worked acceptably well, until I moved a message elsewhere and forgot that my &#8220;archive&#8221; key combo no longer sent my messages to the archive.  In Claws, I set up a custom action and attached it to the Y key, and voila I have real archiving functionality (without pressing 3 keys, too).  I also remapped keys so it&#8217;s more vim-like.  Gmail is the client I use for my personal accounts, so now I have consistent keystroke commands between both emails and my favorite text editor.</p>

<p>Another notable thing is that when I send an email, the sending process happens in the background.  This is so much nicer.  In Thunderbird, I&#8217;d Ctrl-Enter and then have to alt-tab my way past the sending dialog and the compose window, back to the main window to keep working; in Claws, I press Ctrl+Enter to send, and I&#8217;m immediately back at the main window.  This might seem silly, but it&#8217;s actually a big deal.  It helps me process email quite a bit faster.</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2006/04/03/thunderbird-junk-mail-howto/' rel='bookmark' title='Permanent Link: How to train Thunderbird to detect junk mail'>How to train Thunderbird to detect junk mail</a></li>
<li><a href='http://www.xaprb.com/blog/2009/05/26/how-to-make-thunderbird-download-new-imap-messages/' rel='bookmark' title='Permanent Link: How to make Thunderbird download new IMAP messages'>How to make Thunderbird download new IMAP messages</a></li>
<li><a href='http://www.xaprb.com/blog/2011/06/07/impressions-of-fedora-15-with-gnome-3/' rel='bookmark' title='Permanent Link: Impressions of Fedora 15 with Gnome 3'>Impressions of Fedora 15 with Gnome 3</a></li>
<li><a href='http://www.xaprb.com/blog/2009/01/29/who-needs-better-email-search-for-thunderbird/' rel='bookmark' title='Permanent Link: Who needs better email search for Thunderbird?'>Who needs better email search for Thunderbird?</a></li>
<li><a href='http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu 8.10 rocks my Inspiron 1501'>Ubuntu 8.10 rocks my Inspiron 1501</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How to set up host interface networking for VirtualBox on Ubuntu</title>
		<link>http://www.xaprb.com/blog/2008/11/05/how-to-set-up-host-interface-networking-for-virtualbox-on-ubuntu/</link>
		<comments>http://www.xaprb.com/blog/2008/11/05/how-to-set-up-host-interface-networking-for-virtualbox-on-ubuntu/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 03:26:09 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=665</guid>
		<description><![CDATA[VirtualBox is really nice, but if you&#8217;re like me, maybe you found the networking confusing. There are three ways to do it, as explained by the manual, and the best way is with host interfaces, which don&#8217;t have limitations like the inability to ping and so on. I found what I think is a pretty [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2006/02/11/gentoo-wireless-networking-on-amd64/' rel='bookmark' title='Permanent Link: How to set up Gentoo wireless networking on AMD64'>How to set up Gentoo wireless networking on AMD64</a></li>
<li><a href='http://www.xaprb.com/blog/2005/10/12/visual-sourcesafe-automation-interface/' rel='bookmark' title='Permanent Link: How to use the Visual SourceSafe automation interface'>How to use the Visual SourceSafe automation interface</a></li>
<li><a href='http://www.xaprb.com/blog/2011/08/31/making-auto-resetting-virtualbox-machines/' rel='bookmark' title='Permanent Link: Making auto-resetting VirtualBox machines'>Making auto-resetting VirtualBox machines</a></li>
<li><a href='http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu 8.10 rocks my Inspiron 1501'>Ubuntu 8.10 rocks my Inspiron 1501</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.virtualbox.org/">VirtualBox</a> is really nice, but if you&#8217;re like me, maybe you found the networking confusing.  There are three ways to do it, as explained by the manual, and the best way is with host interfaces, which don&#8217;t have limitations like the inability to ping and so on.  I found what I think is a pretty good way to set up host interface networking.</p>

<span id="more-665"></span>

<p>The manual explains a bunch of ways to set up host interface networking, generally involving complex modifications to your system&#8217;s network configuration to add bridging and so on.  This is necessary (contrary to what you might think, creating a virtual network interface won&#8217;t work).  But the way they explain to set it up is a lot more complex than it needs to be, and actually left my machine&#8217;s networking nonfunctional.</p>

<p>I created a little shell script and put it into my $PATH.  All I have to do is run this before I start my virtual machine, and it sets up bridging and so forth:</p>

<pre>
#!/bin/sh

set -e
set -u
set -x

sudo tunctl -t tap0 -u `whoami`
sudo chmod 666 /dev/net/tun
sudo /usr/sbin/brctl addbr br0
sudo /sbin/ifconfig eth0 0.0.0.0 promisc
sudo /usr/sbin/brctl addif br0 eth0
sudo /sbin/dhclient br0
sudo /usr/sbin/brctl addif br0 tap0
sudo ifconfig tap0 192.168.1.51 up
sudo bash -c 'echo 1 &gt; /proc/sys/net/ipv4/conf/tap0/proxy_arp'
IP=`ifconfig | grep 192 | head -n 1 | awk '{print $2}' | cut -d: -f2`
sudo route add -host $IP dev tap0
sudo arp -Ds $IP eth0 pub
</pre>

<p>The script assumes that your machine&#8217;s primary network device is named eth0.  For this to work, you need a couple of packages installed:</p>

<pre>sudo apt-get install uml-utilities bridge-utils</pre>

<p>Specify &#8216;tap0&#8242; as the network device in the VirtualBox machine&#8217;s settings.</p>

<p>One of the biggest reasons I like this more than the methods in the manual is that it doesn&#8217;t mess with my networking config in a permanent way.  There are no surprises after a reboot, for example.</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2006/02/11/gentoo-wireless-networking-on-amd64/' rel='bookmark' title='Permanent Link: How to set up Gentoo wireless networking on AMD64'>How to set up Gentoo wireless networking on AMD64</a></li>
<li><a href='http://www.xaprb.com/blog/2005/10/12/visual-sourcesafe-automation-interface/' rel='bookmark' title='Permanent Link: How to use the Visual SourceSafe automation interface'>How to use the Visual SourceSafe automation interface</a></li>
<li><a href='http://www.xaprb.com/blog/2011/08/31/making-auto-resetting-virtualbox-machines/' rel='bookmark' title='Permanent Link: Making auto-resetting VirtualBox machines'>Making auto-resetting VirtualBox machines</a></li>
<li><a href='http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu 8.10 rocks my Inspiron 1501'>Ubuntu 8.10 rocks my Inspiron 1501</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/11/05/how-to-set-up-host-interface-networking-for-virtualbox-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.10 rocks my Inspiron 1501</title>
		<link>http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/</link>
		<comments>http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 13:33:47 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[ATI]]></category>
		<category><![CDATA[dealnews]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[Inspiron 1501]]></category>
		<category><![CDATA[Radeon]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=656</guid>
		<description><![CDATA[I&#8217;m really really happy about Ubuntu 8.10 because it lets me stop kicking myself so much for buying a Dell Inspiron 1501. This little laptop was the el-cheapo option for me, found via dealnews.com. I was going to buy the virtually identical one that came with Ubuntu installed, but then Dell offered a deal on [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2007/08/10/how-to-set-up-dual-monitors-in-ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: How to set up dual monitors in Ubuntu on Dell Inspiron 1501'>How to set up dual monitors in Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/' rel='bookmark' title='Permanent Link: Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail'>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</a></li>
<li><a href='http://www.xaprb.com/blog/2007/11/28/favorite-usb-wireless-card-for-ubuntu/' rel='bookmark' title='Permanent Link: Favorite USB wireless card for Ubuntu?'>Favorite USB wireless card for Ubuntu?</a></li>
<li><a href='http://www.xaprb.com/blog/2006/11/27/debianubuntu-package-now-available-for-innotop-01160/' rel='bookmark' title='Permanent Link: Debian/Ubuntu package now available for innotop 0.1.160'>Debian/Ubuntu package now available for innotop 0.1.160</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m really really happy about <a href="http://www.ubuntu.com/">Ubuntu 8.10</a> because it lets me stop kicking myself so much for buying a Dell Inspiron 1501.  This little laptop was the el-cheapo option for me, found via <a href="http://www.dealnews.com/">dealnews.com</a>.  I was going to buy the virtually identical one that came with Ubuntu installed, but then Dell offered a deal on the 1501, which had Windows Vista, and I caved in to the allure of saving about $200.</p>

<p>Of course I promptly discovered that the two most important differences between the models involved hardware for which no good Free Software drivers existed: the video card and the wireless card.  The Inspiron 1501 has a &#8220;ATI Technologies Inc RS482 [Radeon Xpress 200M]&#8221; and a &#8220;Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01)&#8221;.</p>

<span id="more-656"></span>

<p>I use dual monitors; it&#8217;s pretty much a necessity for me.  And I just couldn&#8217;t get the radeon driver to work right with them.  I spent a lot of time trying.  I ended up going to the ATI driver, which is proprietary; it had its own issues with mouse pointer corruption and the lot, which eventually were fixed, but it still disabled suspend/resume, and plus it&#8217;s non-Free.  My colleagues know this irked me &#8212; they just heard me griping about it a few days ago.</p>

<p>But now, praise be, the radeon driver works with my dual monitors!  And the drag-and-drop point-and-click configuration interface works, too!  I&#8217;ve got a 1680&#215;1024 external monitor, positioned above my 1024&#215;800 laptop display, and I have never so much as peeked at /etc/X11/xorg.conf.  Thanks to all the people who worked so hard on this!  (It didn&#8217;t work flawlessly until I rebooted, but who&#8217;s complaining.)  Suspend/resume now work great!</p>

<p>I haven&#8217;t gotten the wireless card working yet; the bw43-cutter package seems to have disappeared.  But I&#8217;m actually hoping that I won&#8217;t need proprietary drivers for this, too.</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2007/08/10/how-to-set-up-dual-monitors-in-ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: How to set up dual monitors in Ubuntu on Dell Inspiron 1501'>How to set up dual monitors in Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/' rel='bookmark' title='Permanent Link: Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail'>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</a></li>
<li><a href='http://www.xaprb.com/blog/2007/11/28/favorite-usb-wireless-card-for-ubuntu/' rel='bookmark' title='Permanent Link: Favorite USB wireless card for Ubuntu?'>Favorite USB wireless card for Ubuntu?</a></li>
<li><a href='http://www.xaprb.com/blog/2006/11/27/debianubuntu-package-now-available-for-innotop-01160/' rel='bookmark' title='Permanent Link: Debian/Ubuntu package now available for innotop 0.1.160'>Debian/Ubuntu package now available for innotop 0.1.160</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/11/01/ubuntu-810-rocks-my-inspiron-1501/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to swap Caps-lock and Esc keys in Ubuntu</title>
		<link>http://www.xaprb.com/blog/2008/10/22/how-to-swap-caps-lock-and-esc-keys-in-ubuntu/</link>
		<comments>http://www.xaprb.com/blog/2008/10/22/how-to-swap-caps-lock-and-esc-keys-in-ubuntu/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 22:00:55 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Dvorak]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[typing]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=379</guid>
		<description><![CDATA[Here&#8217;s a productivity tip that has saved me countless work while typing. Swap your Caps-lock and Escape keys. If you&#8217;re like most people, you use Caps-lock virtually never, and Escape quite a lot. Especially if you&#8217;re a programmer who happens to use the best text editor, Vim. Read on to learn how to do this. [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2007/09/18/how-to-debug-innodb-lock-waits/' rel='bookmark' title='Permanent Link: How to debug InnoDB lock waits'>How to debug InnoDB lock waits</a></li>
<li><a href='http://www.xaprb.com/blog/2010/09/19/how-lock-tables-interacts-with-the-mysql-slow-query-log/' rel='bookmark' title='Permanent Link: How LOCK TABLES interacts with the MySQL slow query log'>How LOCK TABLES interacts with the MySQL slow query log</a></li>
<li><a href='http://www.xaprb.com/blog/2006/08/02/how-to-monitor-innodb-lock-waits/' rel='bookmark' title='Permanent Link: How to monitor InnoDB lock waits'>How to monitor InnoDB lock waits</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/' rel='bookmark' title='Permanent Link: Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail'>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</a></li>
<li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a productivity tip that has saved me countless work while typing.  Swap your Caps-lock and Escape keys.  If you&#8217;re like most people, you use Caps-lock virtually never, and Escape quite a lot.  Especially if you&#8217;re a programmer who happens to use <a href="http://www.vim.org/">the best text editor, Vim</a>.  Read on to learn how to do this.</p>

<span id="more-379"></span>

<p>An easy way to do it on Ubuntu with Gnome: step one, create a .xmodmaprc file.  You can run the following command to create the file and put the correct contents into it:</p>

<pre>echo &gt; ~/.xmodmaprc '! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock'</pre>

<p>Step two is to make this run every time you log in.  Open up System-Preferences-Settings.  Click the Add button to add a new entry to the additional startup programs list.  In the &#8220;name&#8221; box, enter &#8220;xmodmap&#8221; or something else descriptive.  In the Command box, enter &#8220;/usr/bin/xmodmap /home/[user]/.xmodmaprc&#8221;, where [user] is your username.</p>

<p>And now get used to being able to hit Escape without reaching for it.  If you like this, you might also be interested in using the <a href="http://en.wikipedia.org/wiki/Dvorak_Simplified_Keyboard">Dvorak</a> keyboard &#8212; I can type on either Dvorak or QWERTY, but Dvorak has saved me from something approaching total paralysis of the hands, so it&#8217;s worth checking into also.</p>

<p>As your reward for reading this far,</p>

<blockquote><p>Q: what&#8217;s the integral of 1/cabin?</p>

<p>A1: Natural Log Cabin</p>

<p>A2: Houseboat (Natural Log Cabin + C)</p>
</blockquote>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2007/09/18/how-to-debug-innodb-lock-waits/' rel='bookmark' title='Permanent Link: How to debug InnoDB lock waits'>How to debug InnoDB lock waits</a></li>
<li><a href='http://www.xaprb.com/blog/2010/09/19/how-lock-tables-interacts-with-the-mysql-slow-query-log/' rel='bookmark' title='Permanent Link: How LOCK TABLES interacts with the MySQL slow query log'>How LOCK TABLES interacts with the MySQL slow query log</a></li>
<li><a href='http://www.xaprb.com/blog/2006/08/02/how-to-monitor-innodb-lock-waits/' rel='bookmark' title='Permanent Link: How to monitor InnoDB lock waits'>How to monitor InnoDB lock waits</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/' rel='bookmark' title='Permanent Link: Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail'>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</a></li>
<li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/10/22/how-to-swap-caps-lock-and-esc-keys-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to digitize records with Ubuntu, a USB Turntable and Audacity</title>
		<link>http://www.xaprb.com/blog/2008/08/30/how-to-digitize-records-with-ubuntu-a-usb-turntable-and-audacity/</link>
		<comments>http://www.xaprb.com/blog/2008/08/30/how-to-digitize-records-with-ubuntu-a-usb-turntable-and-audacity/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 22:18:21 +0000</pubDate>
		<dc:creator>Xaprb</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Audacity]]></category>
		<category><![CDATA[easyTAG]]></category>
		<category><![CDATA[FLAC]]></category>
		<category><![CDATA[HP Media Vault]]></category>
		<category><![CDATA[Ion]]></category>
		<category><![CDATA[LP Records]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[OGG]]></category>
		<category><![CDATA[Sennheiser]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[USB Turntable]]></category>

		<guid isPermaLink="false">http://www.xaprb.com/blog/2008/08/30/how-to-digitize-records-with-ubuntu-a-usb-turntable-and-audacity/</guid>
		<description><![CDATA[I&#8217;ve been digitizing my LP collection recently and thought I&#8217;d share a quick howto, since I haven&#8217;t seen a good complete tutorial on the whole process online. Hopefully this will show up on Google and people can find it. It takes time Before I begin, I want to make a few comments about the process [...]


<strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2006/04/28/how-to-find-next-and-previous-records-in-sql/' rel='bookmark' title='Permanent Link: How to find next and previous records in SQL'>How to find next and previous records in SQL</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/' rel='bookmark' title='Permanent Link: Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail'>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</a></li>
<li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2008/11/05/how-to-set-up-host-interface-networking-for-virtualbox-on-ubuntu/' rel='bookmark' title='Permanent Link: How to set up host interface networking for VirtualBox on Ubuntu'>How to set up host interface networking for VirtualBox on Ubuntu</a></li>
<li><a href='http://www.xaprb.com/blog/2008/10/22/how-to-swap-caps-lock-and-esc-keys-in-ubuntu/' rel='bookmark' title='Permanent Link: How to swap Caps-lock and Esc keys in Ubuntu'>How to swap Caps-lock and Esc keys in Ubuntu</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been digitizing my LP collection recently and thought I&#8217;d share a quick howto, since I haven&#8217;t seen a good complete tutorial on the whole process online.  Hopefully this will show up on Google and people can find it.</p>

<span id="more-557"></span>

<h3>It takes time</h3>

<p><a href="http://www.amazon.com/gp/product/B001B9SH4U?ie=UTF8&#038;tag=xaprb-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=B001B9SH4U" style="float:right"><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/08/ion_lp_to_cd.jpg' alt='Ion LP to CD converter' /></a>Before I begin, I want to make a few comments about the process overall.  I&#8217;ve borrowed the turntable I&#8217;m using (actually borrowed two, from different people) and read a lot on the Internet about this.  It strikes me that most people posting on the forums underestimate how much time it takes to convert LPs to digital form.  Sometimes there is no way to just replace the LP with a CD, but I&#8217;ve decided to do so in many cases.  I suppose another alternative is to get a system that&#8217;s more automated, such as the one I&#8217;ve linked at the right.  Maybe that helps take some of the tedious time-consuming steps out of it.  But I haven&#8217;t tried it.  I think it&#8217;s worth it for some of my LPs that are not available on CD, or that cost upwards of $50 on CD.</p>

<p>I also read on the internet about someone who played their LPs at 45RPM and then pitch-shifted them back to normal speed.  This person reported there was no audible difference between doing this and recording the music at 33.3RPM.  I listened to the files they&#8217;d posted and I have to say I thought the difference was as plain as day.  Perhaps they were not listening over decent-quality speakers or headphones.  But the 45RPM file sounded utterly <em>horrible</em> to me.  I don&#8217;t think this is a good technique at all.</p>

<p>In short, I doubt it can be sped up.  Just count on it taking time.</p>

<h3>Set up the equipment</h3>

<p><a href="http://www.amazon.com/gp/product/B000PZQPP4?ie=UTF8&#038;tag=xaprb-20&#038;link_code=as3&#038;camp=211189&#038;creative=373489&#038;creativeASIN=B000PZQPP4" style="float:right"><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/08/ion_usb_turntable.jpg' alt='Ion USB Turntable' /></a>Aside from your computer, you really need nothing else than a USB turntable.  The most popular ones seem to be those made by Ion, aka Numark.  I&#8217;ve pasted an Amazon product link to the right for one of the ones I am currently using.  The other I&#8217;m using is a slightly different model from the same company.</p>

<p>There are other ways &#8212; you don&#8217;t have to use a USB turntable.  You can use a higher-quality turntable and put the input into your sound card, and so on and so on.  But this is how I&#8217;m doing it.</p>

<p>When I plugged the turntable into my USB port, I saw the following in dmesg:</p>

<pre>[ 2813.605274] usb 4-1: new full speed USB device using ohci_hcd and address 2
[ 2813.694013] usb 4-1: configuration #1 chosen from 1 choice
[ 2813.697148] input: Burr-Brown from TI USB Audio CODEC  as /devices/pci0000:00/0000:00:13.3/usb4/4-1/4-1:1.3/input/input13
[ 2813.721924] input,hidraw3: USB HID v1.00 Device [Burr-Brown from TI USB Audio CODEC ] on usb-0000:00:13.3-1
[ 2813.901813] usbcore: registered new interface driver snd-usb-audio</pre>

<p>And that was it.  No further ado, no drivers required.  You may recognize the name <a href="http://en.wikipedia.org/wiki/Burr-Brown_Corporation">Burr-Brown</a>.  They make a lot of analog-to-digital (and vice versa) converters.</p>

<p>The next step is to get some recording software.  I used <a href="http://www.audacityteam.org/">Audacity</a> for recording the LPs.</p>

<pre>sudo apt-get install audacity</pre>

<p>This installed libflac++6 also.  I configured Audacity by selecting Edit-Preferences, and in &#8220;Recording&#8221; selected the &#8220;ALSA: USB Audio CODEC: USB Audio (hw:1,0)&#8221; input.  On my computer I had trouble enabling playthrough (a feature that lets you listen to what you&#8217;re recording).  So I left that unchecked.</p>

<h3>Record the LP</h3>

<p>Actually recording the LP is straightforward.  Just start Audacity recording, then start the turntable and lower the needle.  I&#8217;m not going to tell you about cleaning the LP and all that&#8230; you probably know it already.</p>

<p>Once you have recorded some music, you probably want to chop it up into individual songs and export them as MP3, OGG, or FLAC.  (I&#8217;m loving FLAC.  <a href="http://www.xaprb.com/blog/2008/08/02/how-i-hacked-the-hp-media-vault-to-support-ogg-and-flac-files/">My HP Media Vault streams FLAC</a> to me via iTunes or Rhythmbox just fine.)  I experimented with a variety of ways to do that.  I settled on the following method.</p>

<ol>
<li>Record the first side, then press Stop and flip the LP over.  Press Record again and record the other side.  I do this because when I export the songs, Audacity embeds the song number in the song&#8217;s meta-data, and if I record one side at a time I get two sets of songs which begin at track number 1, which is a hassle.  Each side will be recorded in a separate track in Audacity.</li>
<li>Trim the silence (and the noise of the needle dropping, etc) from the start and end of each side&#8217;s music.  You can just highlight it with your mouse and press Delete.</li>
<li>Find the start of each song.  (Hint: you can use the Home and End keys to move the cursor all the way to the start and end of the whole recording.)  Put the cursor where you want in the track by clicking into the track.  You can use the arrow keys to move it to the left and right for fine adjustments, and zooming in and out is helpful too of course.</li>
<li>Label the start of each song by pressing Ctrl-B and typing the song&#8217;s name.</li>
</ol>

<p><a style="float:right" href='http://www.xaprb.com/blog/wp-content/uploads/2008/08/audacity_vinyl_digital.png' title='Audacity after recording both sides and labelling songs'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/08/audacity_vinyl_digital.thumbnail.png' alt='Audacity after recording both sides and labelling songs' /></a> When you&#8217;re done, the result should look like the image on the right.  Now you&#8217;re ready to export the files.  </p>

<p>Use File-Export Multiple to do this.  Choose the type of files you want to create and adjust the settings if you wish.  To make sure each labeled song becomes its own file, select the option to split the file based on labels, and name the files using the label/track name.</p>

<p>During the export process you&#8217;ll also get the chance to edit the recording&#8217;s meta-data, such as the artist and album name.  This is fine, but the dialog box to do this is touchy &#8212; if you press Enter it will assume you&#8217;re done and just start exporting files even if you&#8217;re not ready.  If you cancel the export and restart, it won&#8217;t show the meta-data dialog box again, but you can get to it via File &#8211; Open Metadata Editor.  I got into the habit of editing the meta-data that way to begin with so I didn&#8217;t have to fuss with the dialog later.</p>

<p>Audacity names the files after the tracks, but it doesn&#8217;t have any flexibility about file naming.  So you can&#8217;t tell it to place the song number at the beginning of the filenames, for example; and thus the files won&#8217;t sort in the right order when you view them in your file browser.  I just use <a href="http://easytag.sourceforge.net/">easyTAG</a> to quickly fix the track names after the export is done.  I also use it to insert the year meta-data, since Audacity doesn&#8217;t seem to do this in a way other programs understand.  There are a few settings you might want to tweak with easyTAG too; I disabled the auto-scan at startup and a few others to make it behave the way I wanted.</p>

<p>I found easyTAG a little confusing so I have uploaded a screenshot of it with labeled steps.  Once I&#8217;ve selected the directory containing my files, I press the button to select all the files, then the green scan button; that pops up the scanner dialog.  On this dialog (this took me a long time to figure out!) I press the green scan button once again; then I press the Save button on the main toolbar once again and it applies the changes I made (renaming, filling in the album year, etc).  (To fill in the album year, select all the files and fill in the year, then press the small dot to the right of the year to apply the change to all selected files.)</p>

<p><a href='http://www.xaprb.com/blog/wp-content/uploads/2008/08/easytag.png' title='How to rename files and fix meta-data with easytag'><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/08/easytag.thumbnail.png' alt='How to rename files and fix meta-data with easytag' /></a></p>

<p>And that&#8217;s about all.  I had a few incidents with Audacity where I tried to play tracks from one recording while another window was recording, but the good thing is it recovers from crashes beautifully; I didn&#8217;t lose any recordings.</p>

<h3>Audio quality</h3>

<p><a style="float:right" href="http://www.amazon.com/gp/product/B0001FTVE0?ie=UTF8&#038;tag=xaprb-20&#038;link_code=as3&#038;camp=211189&#038;creative=373489&#038;creativeASIN=B0001FTVE0"><img src='http://www.xaprb.com/blog/wp-content/uploads/2008/08/sennheiser_595.jpg' alt='Sennheiser 595' /></a>The audio quality sounds pretty good to me, by most counts.  I mean, there&#8217;s the inevitable record noise and some clicks (a lot of my records are things like old Mike Oldfield albums and early Tangerine Dream, Jeff Beck, and the like).  But even though there are ways to remove this noise, I&#8217;d rather have all the noise and all the music, than some of the noise and only some of the music.  I&#8217;m not listening to the noise, I&#8217;m listening to the music.  I have a beautiful pair of Sennheiser HD 590s (linked the 595s at right &#8212; the 590s are discontinued, but they&#8217;re the nicest headphones I&#8217;ve ever owned; very bright, but easy to drive from a portable music player (no dedicated amp needed) and extremely light and comfortable) and it really sounds good.  You can probably guess that I&#8217;m not saving the files as crummy low-bit-rate MP3 files.</p>

<p>The USB turntables I&#8217;m using aren&#8217;t audiophile-quality.  There is some wow and flutter.  It&#8217;s acceptable to me.  If you think you&#8217;ll be bothered, use higher-end equipment.  Personally, I don&#8217;t go down this path, because for me it&#8217;s a road with no end.  I know people who spend many thousands (or tens of thousands) of dollars on each piece of their system: pre-amps, turntables, tone arms, cartridges and needles.  (Got a $6000 needle anyone?)  I don&#8217;t see myself ever spending the price of a small house on audio equipment; I&#8217;d rather put the money into buying more music, rather than more equipment.  But if you&#8217;re that kind of person, you probably aren&#8217;t reading this article anyway.</p>

<h3>Summary</h3>

<p>Converting LPs into digital form the way I&#8217;ve shown is fairly time-consuming and tedious.  You have to record the LP; then trim out the unwanted parts of the recording; then find the start of each song and type in the song name; then the artist and album information.  I multitask while I&#8217;m doing other things, but I still notice the amount of time I&#8217;m spending on it.  Hopefully this article helps you cut some of the repetitive work out yourself, or decide whether you want to get into this before you buy the equipment.</p>

<p><strong>Further Reading:</strong><ul><li><a href='http://www.xaprb.com/blog/2006/04/28/how-to-find-next-and-previous-records-in-sql/' rel='bookmark' title='Permanent Link: How to find next and previous records in SQL'>How to find next and previous records in SQL</a></li>
<li><a href='http://www.xaprb.com/blog/2010/01/05/switching-from-ubuntu-to-fedora-and-thunderbird-to-claws-mail/' rel='bookmark' title='Permanent Link: Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail'>Switching from Ubuntu to Fedora, and Thunderbird to Claws Mail</a></li>
<li><a href='http://www.xaprb.com/blog/2007/07/24/ubuntu-on-dell-inspiron-1501/' rel='bookmark' title='Permanent Link: Ubuntu on Dell Inspiron 1501'>Ubuntu on Dell Inspiron 1501</a></li>
<li><a href='http://www.xaprb.com/blog/2008/11/05/how-to-set-up-host-interface-networking-for-virtualbox-on-ubuntu/' rel='bookmark' title='Permanent Link: How to set up host interface networking for VirtualBox on Ubuntu'>How to set up host interface networking for VirtualBox on Ubuntu</a></li>
<li><a href='http://www.xaprb.com/blog/2008/10/22/how-to-swap-caps-lock-and-esc-keys-in-ubuntu/' rel='bookmark' title='Permanent Link: How to swap Caps-lock and Esc keys in Ubuntu'>How to swap Caps-lock and Esc keys in Ubuntu</a></li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://www.xaprb.com/blog/2008/08/30/how-to-digitize-records-with-ubuntu-a-usb-turntable-and-audacity/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

