<?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>BigSmoke &#187; Ubuntu</title>
	<atom:link href="http://blog.bigsmoke.us/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Wed, 08 Sep 2010 14:31:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>HP LaserJet 6P under Ubuntu</title>
		<link>http://blog.bigsmoke.us/2010/01/30/hp-laserjet-6p-under-ubuntu</link>
		<comments>http://blog.bigsmoke.us/2010/01/30/hp-laserjet-6p-under-ubuntu#comments</comments>
		<pubDate>Fri, 29 Jan 2010 23:21:35 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[LaserJet 6P]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=1045</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Because <a href="http://www.arnoldpilon.nl/">Arnold Pilon</a> is migrating his workplace to Apple, I could get his old PC and peripherals for free. Among its peripherals was an old HP LaserJet 6P, still perfectly working.</p>

<p>My <a href="/tag/arwen-adinda">sister</a> didn&#8217;t have a printer yet. I was surprised that installing it on her Ubuntu machine was simply a matter of selecting the printer type from a list. I wonder: is this thanks to CUPS? Can I expect this to work in all distros that include CUPS these days?</p>

<p>Anyway, the printer works and the scanner too (of which I forgot to jot down the type). The scanner was supported by Xane without requiring <strong>any</strong> configuration. When it comes to hardware configuration, open source operating systems often beat those from Redmond.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2010/01/30/hp-laserjet-6p-under-ubuntu/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Adding locales in Ubuntu</title>
		<link>http://blog.bigsmoke.us/2009/06/16/adding-locales-in-ubuntu</link>
		<comments>http://blog.bigsmoke.us/2009/06/16/adding-locales-in-ubuntu#comments</comments>
		<pubDate>Tue, 16 Jun 2009 09:23:29 +0000</pubDate>
		<dc:creator>halfgaar</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[locales]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=617</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>
I wanted the dates on my Kubuntu system to be shown as Dutch dates. Therefore, I needed to add a locale. The place to do it is in /var/lib/locales/supported.d/local. It now contains this:
</p>

<pre class="php">en_US.UTF<span style="color: #cc66cc;">-8</span> UTF<span style="color: #cc66cc;">-8</span>
nl_NL.UTF<span style="color: #cc66cc;">-8</span> UTF<span style="color: #cc66cc;">-8</span></pre>

<p>
Then run locale-gen to generate the locales.
</p>

<p>
Set the following environment vars (in profile or something) to let everything behave properly:
</p>

<pre class="php">export LANG=<span style="color: #ff0000;">&quot;nl_NL.UTF-8&quot;</span>
export LC_MESSAGES=<span style="color: #ff0000;">&quot;en_US.UTF-8&quot;</span>
export LC_COLLATE=<span style="color: #ff0000;">&quot;C&quot;</span></pre>

<p>
I don&#8217;t know anymore why I chose this specific configuration. I guess this means that everything, from thousand and decimal separators to dates is Dutch, and messages are English. I don&#8217;t know, however, why the collate is C. I vaguely remember something about it otherwise not including some characters in the sorting, causing weird sorting in words with dashes and such.
</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2009/06/16/adding-locales-in-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting my sister to forget the Google Desktop newsticker</title>
		<link>http://blog.bigsmoke.us/2008/11/27/forget-that-google-desktop-sis</link>
		<comments>http://blog.bigsmoke.us/2008/11/27/forget-that-google-desktop-sis#comments</comments>
		<pubDate>Thu, 27 Nov 2008 19:54:14 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=177</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>My sister was so fond of the RSS feature that came with Google Desktop&#8217;s sidebar that she kept it permanently visible at the right side of her screen. (What a news junkie!) Now that I <a href="http://blog.bigsmoke.us/2008/11/27/the-way-of-ubuntu">got her stuck with Linux</a>, she misses her precious Google Desktop and I&#8217;m trying to figure out an alternative for her.</p>

<p>For those who want to truly stay on top, just pointing Firefox to Google Reader occasionally isn&#8217;t good enough. (I know: I&#8217;m slow. I like it that way.) I had heard of various Firefox add-ons to aggregate your RSS feeds in the sidebar, but the sis had thought of this already and didn&#8217;t like to have something permanently filling up space at the left. Ok, I can understand. I thought there must probably be some Firefox add-on to move the whole damn sidebar to the right and of course there is; it&#8217;s called <a href="https://addons.mozilla.org/en-US/firefox/addon/7865">RightBar</a>.</p>

<div id="attachment_178" class="wp-caption alignright" style="width: 310px"><a rel='lightbox[rightbar]' title='Screenshot of the RightBar Firefox Addon' href="http://blog.bigsmoke.us/wp-factory/../uploads/2008/11/firefox-rightbar-addon.jpg"><img src="http://blog.bigsmoke.us/wp-factory/../uploads/2008/11/firefox-rightbar-addon-300x143.jpg" alt="Screenshot of the RightBar Firefox Addon" title="Screenshot of the RightBar Firefox Addon" width="300" height="143" class="size-medium wp-image-178" /></a><p class="wp-caption-text">Screenshot of the RightBar Firefox Addon</p></div>

<p>The extension is so simple that you could achieve the same by adding a few lines to the <tt>userChrome.css</tt> file in the <tt>chrome</tt> subdirectory of your <a href="http://kb.mozillazine.org/Profile_folder">Firefox profile directory</a>:</p>

<pre class="css"><span style="color: #808080; font-style: italic;">/* Change the sidebar's position */</span>
<span style="color: #cc00cc;">#browser <span style="color: #66cc66;">&#123;</span></span>
-moz-box-<span style="color: #000000; font-weight: bold;">direction</span>: reverse;
<span style="color: #66cc66;">&#125;</span></pre>

<p>(If the file doesn&#8217;t exist yet, create it from a copy of <tt>userChrome-example.css</tt>.)</p>

<p>What&#8217;s left now is to choose which feed aggregator extension for Mozilla Firefox to use. So far, I&#8217;ve only tried <a href="https://addons.mozilla.org/en-US/firefox/addon/77">Sage</a> (based on a five-star rating and familiarity with the name). It seems to work quite well, although, really, I still prefer just visiting Google Reader every once in a while. I mean: I&#8217;m a man, I don&#8217;t multi-task, I can hardly single-task.</p>

<p>I&#8217;m going to forward these suggestions to my sister, probably just to see them ignored for <em>one crucial oversight</em>: the sidebar doesn&#8217;t look very <q>different</q>. One of the things she liked about the Google Desktop, she told me, is that it looked very different from the rest of the stuff on her screen, causing a minimum of distraction. Probably I&#8217;ll end up recommending some kind of <a href="http://www.gdesklets.de/index.php?q=desklet/browse/category/71">gDesktlet</a>. (Or is there something better-looking these days?)</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2008/11/27/forget-that-google-desktop-sis/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The road through Ubuntu</title>
		<link>http://blog.bigsmoke.us/2008/11/27/the-way-of-ubuntu</link>
		<comments>http://blog.bigsmoke.us/2008/11/27/the-way-of-ubuntu#comments</comments>
		<pubDate>Wed, 26 Nov 2008 22:21:41 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[AVG]]></category>
		<category><![CDATA[initrd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=170</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>My mom bought a new laptop because of a broken screen on the old Linux machine that she had inherited from me (which wasn&#8217;t wasn&#8217;t a laptop, so I&#8217;m sure that the <a href="http://blog.omega-research.org/2008/11/23/the-story-of-stuff">Golden Arrow of Consumption</a> can explain why she didn&#8217;t just replace the screen, although the new boyfriend who is kind of Windows-but-not-Linux-literate qualifies as a more probable reason for getting a laptop that is needlessly dragged down by Vista).</p>

<p>I was a little surprised by her move. The first computer my mother learned <em>turning on</em> was this computer back when I was still using it. Of course it was running Linux at the time. Before I gave it to her, I replaced Gentoo Linux with Ubuntu Linux, and, honestly, she never had any problems with it that were not hardware-related. (Ok, there was that one time when there was some junk stuck in the print spool without a user-friendly path to getting rid of it, but you could argue that this was really due to a junk printer. (On the subject of print spools: my friend <a href="http://www.halfgaar.net/">Wiebe</a> complained to me a while ago that when the queue in their WorkCentre Pro 232 gets stuck, Xerox engineers have to come in to replace the whole damn control board; apparently, just plugging in a terminal with shell access isn&#8217;t possible.)) She was comfortable with and used to Linux. But, alas, she&#8217;s in love with someone who is less than comfortable with Linux and there&#8217;s always that male ego thing.</p>

<p>But, then, who cares? It was good news for my sister. With her having gone through a rally of shitty old machines in just a couple years and this still being an ok-enough machine, I asked her if she&#8217;d like a &#8220;new&#8221; machine running Linux when she called me about <a href="http://securityandthe.net/2008/11/10/avg-virus-scanner-removes-critical-windows-file/">one of those typical Windows problems</a> that had just taken out her previous wreck of a machine. Yeah, sure, she&#8217;s was more than willing to finally get rid of Windows.</p>

<p>I was glad that my sister didn&#8217;t feel the need to inflict the pain of Windows on this poor old machine. This meant I only had to upgrade and reconfigure i a bit. Upgrading Ubuntu to version 8.04 went pretty seamless, because it was a relatively fresh installation where all dependencies where actually marked as &#8220;auto&#8221;. After moving away some old &#8211; uhm &#8211; aesthetic imagery, ill-suited for big-sister-eyes, I brought the machine to her place, plugged in her peripherals, connected it to her screen, and tried to boot.</p>

<p>It booted, but GDM wouldn&#8217;t start. I had just swapped a Matrox G400 with a noisy GeForce 4 which I had previously assumed to be broken. This assumption actually goes all the way back to before I realized that the screen was broken. When the screen started complaining of &#8220;Not Recommended Mode&#8221;, one of my first diagnosis was that the GeForce card was borked. This diagnosis was arrived to after first blaming the screen, plugging it in elsewhere, seeing that working, plugging it back in, seeing that working too, then seeing that stop working again, resetting the screen in increasingly complex sequences, seeing it work again, seeing it stop working again, swapping the DVI connection with a VGA connection, and then, finally, swapping the GeForce racehorse with the old Matrox workhorse. Of course the problems returned, but not before another fun round of swapping parts and peripherals because the machine had started crashing. The crashing led me to replacing the power supply, only to find out later that the CPU&#8217;s cooling block had someone loosened dangerously. So, with all that in mind, I had now put back to GeForce plaything before I took the whole concoction to my sister. Now, GDM wouldn&#8217;t start. (The GeForce graphics worked fine <em>before</em> I moved the machine to her.)</p>

<p>Admittedly, I hadn&#8217;t exactly tried <em>booting</em> with the GeForce. (I&#8217;m not the rebooting type.) After swapping the card, not being able to use the binary nvidia and an hour or so of messing around, I found that the nvidia kernel module was actually missing. (I hadn&#8217;t noticed this because a &#8220;<kbd>find /lib/modules|grep -i nvidia</kbd>&#8221; did show an nvidia entry; had I looked better, I would&#8217;ve seen that it was a directory and not a <kbd>.ko</kbd> file.) So I performed a reinstall of the appropriate linux-restricted-modules package and&#8212;voila!&#8212;the files where there (in <kbd>/lib/modules/2.6.24-21-generic/volatile/</kbd>).</p>

<p>So I&#8217;m at my sister&#8217;s and I&#8217;m surprised that X won&#8217;t start. I try to find the module in <kbd>/lib/modules/</kbd>; it&#8217;s gone. Then, after reinstalling the package and an extraneous reboot to see it gone again, it dawns on me: what did <em>volatile</em> mean again? (I should really not be telling you this, because it&#8217;s fucking embarrassing. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  ) Yes, the <kbd>volatile</kbd> directory is a tmpfs mount point. When I realized that this was probably due to initramfs, I realized that I know jack about initramfs, except that it makes Grub&#8217;s configuration incomprehensible to me.</p>

<p>I tried updating the <kbd>initrd.img</kbd> by issuing <q><kbd>update-initramfs -u</kbd></q>. When this didn&#8217;t work, I added the module name explicitly to <kbd>/etc/initramfs-tools/modules</kbd>. When that didn&#8217;t work, I changed the <kbd>MODULES</kbd> option in <kbd>/etc/initramfs-tools/initramfs.conf</kbd> to <q><kbd>MODULES=dep</kbd></q> and pulled <kbd>update-initramfs</kbd> through <kbd>grep</kbd> to find out if the module was added appropriately: <q><kbd>update-initramfs -u -v|grep nvidia</kbd></q>. It was outputted and it was the right <kbd>initrd.img</kbd> too but still, after booting, the module was missing from the <kbd>volatile</kbd> directory.</p>

<p>So, fuck this! I was getting inpatient: <q><kbd>cd /lib/modules/2.6.24-21-generic/volatile; mv nvidia.ko ../kernel/drivers/video; depmod -a; reboot</kbd></q> and GDM started nicely.</p>

<p>Now I just have to find out why the bloody eth0 interface isn&#8217;t ifup&#8217;ed at boot. The configuration seems fine to me (although I&#8217;m confused by all this new-fangled GUI stuff and by where everything is stored. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' /> ) For now, I just dropped a script on her desktop called <q>Darn, the network doesn&#8217;t work</q>:</p>

<pre class="bash"><span style="color: #808080; font-style: italic;">#!/bin/bash</span>
gksu ifup eth0</pre>

<p>Pure sophistication, isn&#8217;t it? I&#8217;ve yet to encounter an operating system where solving such problems has <em>any</em> resemblance to anything I&#8217;d call user-friendly&#8230; For all the polish they add these days, if you can&#8217;t go below the hood and bang away at the shell, you&#8217;re basically screwed. That&#8217;s why I hate Windows so much, because I know nobody who can get under its hood.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2008/11/27/the-way-of-ubuntu/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Bypassing smart completion in Bash</title>
		<link>http://blog.bigsmoke.us/2007/05/09/bypassing-smart-completion-in-bash</link>
		<comments>http://blog.bigsmoke.us/2007/05/09/bypassing-smart-completion-in-bash#comments</comments>
		<pubDate>Wed, 09 May 2007 12:20:37 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[shortcut]]></category>
		<category><![CDATA[tab-completion]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/2007/05/09/bypassing-smart-completion-in-bash</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Luca Citi, a nice Italian Ubuntu user, just gave me an excellent tip in response to my list of <a href="http://www.bigsmoke.us/readline/shortcuts">Readline keyboard shortcuts</a>. Modern Linux distributions such as Ubuntu and Gentoo can easily be configured for Bash to use smart completion. With smart completion enabled, instead of just looking among all the available files and directories without discrimination, <kbd>TAB</kbd> will be able to more accurately adjust its list of available completions depending on the program for which arguments are being sought.</p>

<p>An example of smart completion is that completions for the <tt>cd</tt> command will only include actual directories and no longer any regular files. Luca gave me another good example: completions for the <tt>kpdf</tt> command will only include files with the <tt>.pdf</tt> extension. </p>

<p>Myself, I&#8217;ve been bitten by smart completion a few times because I&#8217;d want to complete a command argument towards a filename which wasn&#8217;t supported by the smart completion rules. Luca gave me his typical example of such a case: his smart completion configuration includes only entries from the <tt>fstab</tt> as valid mount points for the <tt>mount</tt> command. But, what if you want to do an ad-hoc mount? Will you just have to type out the full mount point without auto completion? That&#8217;s what I used to think before Luca told me about the <tt>Alt+/</tt> shortcut. In Bash, this shortcut will act as the <tt>TAB</tt>-key would without smart completion enabled.</p>

<p>Of course, I&#8217;ve updated my list of <a href="http://www.bigsmoke.us/readline/shortcuts">Readline keyboard shortcuts</a> to include <tt>Alt+/</tt>.Thanks Luca! <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2007/05/09/bypassing-smart-completion-in-bash/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
