<?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>Thought bucket</title>
	<atom:link href="http://www.alandmoore.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alandmoore.com/blog</link>
	<description>A place to empty my head</description>
	<lastBuildDate>Thu, 17 May 2012 19:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Debian for Ubuntu people</title>
		<link>http://www.alandmoore.com/blog/2012/05/17/debian-for-ubuntu-people/</link>
		<comments>http://www.alandmoore.com/blog/2012/05/17/debian-for-ubuntu-people/#comments</comments>
		<pubDate>Thu, 17 May 2012 19:04:50 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[instructional]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=389</guid>
		<description><![CDATA[It&#8217;s no secret that many people&#8217;s first Linux experience these days is on Ubuntu; yet as they &#8212; for one reason or another &#8212; find themselves needing to branch out into the wider Free OS world, Debian is often the next stop along the road.  Having introduced a few Ubuntu users (in real life or [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s no secret that many people&#8217;s first Linux experience these days is on Ubuntu; yet as they &#8212; for one reason or another &#8212; find themselves needing to branch out into the wider Free OS world, Debian is often the next stop along the road.  Having introduced a few Ubuntu users (in real life or online) to Debian, I&#8217;ve noticed a few common stumbling blocks, and thought it might be nice to offer a little guide for those making the transition (or expansion) to Ubuntu&#8217;s parent distro.</p>
<p>It&#8217;s also no secret that there tends to be a bit of friction between the Debian and Ubuntu communities, both users and developers, for a variety of reasons.  For the record, I appreciate and use both distributions quite a bit, so I hope that this article will help users from both camps have a healthy appreciation for the other.</p>
<p><span id="more-389"></span></p>
<h2>Philosophical differences</h2>
<p>In order to have a proper context to appreciate the differences between the two projects, you have to start with their philosophies.  Those of a strictly pragmatic mind may think that project philosophy is merely auxiliary fluff that has no bearing on the quality or usefulness of the end product, but I feel that any project should be &#8220;measured by its own yardstick&#8221;; in other words, we should judge the failure or success of each project according to the goals it set for itself &#8212; its fitness for <em>our </em>purposes is another matter entirely.</p>
<h3>Ubuntu&#8217;s philosophy</h3>
<p>Ubuntu bills itself as &#8220;Linux for Human Beings&#8221;.  Its primary goal is an operating system that &#8220;average people&#8221; can easily install, maintain, and use for &#8220;average people things&#8221;  like web browsing, document editing, and multimedia consumption.  As such, the project only supports platforms used in consumer devices (like x86, amd64, and newer, mobile-related ARM platforms), focuses heavily on polishing a single desktop environment, features a graphical LiveCD installer, and prioritizes new software.  While it&#8217;s partially community-developed, it&#8217;s primarily driven by Canonical Ltd., a private, for-profit company.</p>
<h3>Debian&#8217;s philosophy</h3>
<p>Debian, on the other hand, bills itself as &#8220;The Universal Operating System&#8221;.  Its goals are (1) to be a good operating system for as many purposes as possible on as many platforms as possible and (2) to be completely free in every sense of the word.  Its <a title="The various ports of Debian" href="http://www.debian.org/ports">currently supported ports</a> cover a whopping 9 hardware platforms and 2 kernels (Debian isn&#8217;t <em>just</em> Linux anymore; there&#8217;s a version based on FreeBSD, and soon a version based on HURD), and its software repositories are easily the largest &#8220;officially maintained&#8221; repositories of any distribution (Ubuntu inherits these, of course; I&#8217;m comparing to non-Debian based distributions).</p>
<p>Debian is also the largest purely community-driven free software project in existence; it has no corporate affiliations or ownership, is governed by a democratically-elected council, and developed by a worldwide community of independent developers.  It has a strong commitment to, and history of support for, software freedom (the <a title="The DFSG" href="http://www.debian.org/social_contract#guidelines" target="_blank">Debian free software guidelines</a> were the template used for the OSI&#8217;s <a title="The open source definition, by which licenses are pronounced &quot;open source&quot; by the official authorities, or whatever." href="http://www.opensource.org/osd.html" target="_blank">open source definition</a>, for example), which is pivotal to its community dynamic.</p>
<p>It should be no surprise, then, that Debian has a strong showing in the server space, in research, in embedded projects (for example, the <a title="Happy little cheapo computer! :)" href="http://www.raspberrypi.org" target="_blank">Raspberry Pi</a>), and as a base for <a title="And people think I have a lot of children..." href="http://upload.wikimedia.org/wikipedia/commons/d/d8/Debian_family_tree_11-06.png" target="_blank">derivative distributions</a>.  In fact, the incredible proliferation of Debian respins and derivatives makes two points about Debian quite clear: (1) it&#8217;s a great base for creating your own distribution, for technical, legal, and pragmatic reasons; and (2) it obviously leaves a great deal of room for improvement in many use cases, most notably as a desktop OS.</p>
<p>This last point is particularly relevant when comparing Debian and Ubuntu, because it more or less summarizes where each project&#8217;s strengths and weaknesses lie.  Ubuntu has arguably made a Debian derivative that provides a friendlier desktop experience for the &#8220;average user&#8221;; but it has done so at the expense of universality and fitness for a variety of applications and preferences, not to mention the occasional loss of goodwill from a community whose goals must be subservient to the goals of Canonical.  Debian is equally fit for just about any task you want to put it to, on any hardware you want to put it on; but in being so, it cannot afford to make special concessions for desktop-friendliness that might make it unsuitable for other uses (e.g., having a default installer or package manager that requires X11, requiring non-free software, etc).</p>
<h2>Practical Differences</h2>
<p>Keeping these philosophical differences in mind, let&#8217;s start looking at some of the practical differences an end user will encounter when first exploring Debian.  It&#8217;s worth noting, for the record, that many of these things are available or configurable in either distribution (Debian installer, for example, is available to Ubuntu users on the &#8220;Alternate Install&#8221; or Server discs), but we&#8217;re focusing on what is likely to be different in the most common, default usage situations.</p>
<h3>The installer</h3>
<p>While Ubuntu installer, Ubiquity,  is a short and simple wizard that runs from a LiveCD desktop, Debian installer is a more old-fashioned boot-straight-to-the-installer affair.  In many ways it&#8217;s less automated, and provides facilities to do advanced procedures during the install.  It has both a text-based (ncurses) version and a graphical (gtk) version, but the graphical version is little more than window dressing for the former, and the experience is quite similar either way.</p>
<p>You need a little more know-how to get through the Debian installation.  I admit to having been thwarted in my first attempt to install Debian (way back in 2004) by the relative complexity of the installer, and by my inability to answer some questions related to X11 configuration.  It&#8217;s <em>much</em> simpler nowadays, but compared to Ubiquity it&#8217;s still no walk in the park.  However, Debian installer runs on some pretty antique hardware and offers some powerful advanced options for dealing with oddball configurations.</p>
<p>Instead of giving you a default desktop setup with a selection of pre-installed applications, the Debian installer gives you a checklist at the end with a dozen or so generic &#8220;tasks&#8221; you can install.  The categories are pretty broad and mostly server-oriented, though &#8220;Desktop Environment&#8221; is one of the options (it installs GNOME, if you were wondering).  Most users end up skipping this and just installing the software they want manually.  This, of course, requires some knowledge about <em>what</em> you want to install, which is pretty hard to know as a beginner.  On the other hand, it means the same Debian install media can be used to set up whatever kind of environment you want; there&#8217;s no need for a separate &#8220;Server&#8221; version, or separate versions for different desktop environments (though, to be fair, such CDs exist &#8212; you just don&#8217;t strictly need them if you have an Internet connection to download packages).</p>
<h3> Root user</h3>
<p>The next glaring difference most people get hung up on is the use of the root user account rather than sudo.  Ubuntu disables the root user by default and configures sudo privileges for the first user installed, and any subsequent users added to the &#8220;admin&#8221; group.  This more closely mimics what users experience on Windows and OSX, where administrative privileges are granted to select user accounts, rather than tied up in a single root account.</p>
<p>Debian takes the old-school Unix approach of having one all-powerful root user, and every other account being limited.  Administrative actions are accomplished either by logging in as root, or by the use of &#8220;su&#8221; (or graphical equivalents) to temporarily become root.</p>
<p>It&#8217;s trivial enough to switch either distro to the other&#8217;s behavior, and I myself have a preference for sudo on my Debian systems.  But this is the default, and in Debian circles (for instance, on forums or in documentation), it&#8217;s  assumed that you are operating with this configuration.  Graphical tools also default to the &#8220;su&#8221; version instead of &#8220;sudo&#8221; (e.g., &#8220;gksu&#8221; is invoked instead of &#8220;gksudo&#8221; when starting administrative GUIs).</p>
<p>So why, you might ask, doesn&#8217;t Debian install sudo by default?  I can&#8217;t say authoritatively, but my guess is:</p>
<ul>
<li>The su/root method is more traditional and expected by pretty much anyone other than an Ubuntu user</li>
<li>su/root still exists on a system whether sudo is configured or not, and it doesn&#8217;t make security sense to have multiple privilege elevation systems installed by default</li>
<li>sudo is basically a more abstracted, high-level approach to security, which isn&#8217;t necessary in many use cases.  If the aim is universality, it doesn&#8217;t make sense to add in this extra layer.</li>
</ul>
<h3>Package management and repositories</h3>
<p>Both Ubuntu and Debian use the Debian package management system, dpkg/APT.  In Ubuntu, the default front-ends for this system are the Ubuntu software center (on the desktop) and apt-get (on the command-line).  In Debian, the recommended front end is aptitude (CLI/ncurses), though Synaptic is provided on the desktop.</p>
<p>To be honest, I&#8217;ve never been clear why the Ubuntu community focuses on apt-get rather than the far more feature-filled aptitude, but it&#8217;s clear why Debian recommends aptitude: it provides the most robust package management functionality without actually requiring X11.  In practice, you can (usually) use any front-end you want on either system (with the exception of USC on Debian, and aptitude sometimes breaks in certain Ubuntu configurations), though due to subtle differences in dependency management and conflict resolution, you&#8217;ll probably get better results using the recommended tools on each platform.</p>
<p>The bigger difference with regard to package management on the systems is the breakdown of the repositories.  For a given Ubuntu release, the repositories are:</p>
<ul>
<li>Main: free-as-in-freedom software supported by Canonical</li>
<li>Universe: free-as-in-freedom software supported by the Ubuntu community</li>
<li>Restricted: non-free drivers</li>
<li>Multiverse: non-free software</li>
<li>Partner: (non-free?) software from Canonical&#8217;s corporate partners</li>
</ul>
<p>With Debian, the segments are a little simpler:</p>
<ul>
<li>Main: all free-as-in-freedom software</li>
<li>Non-free: all non-free software, drivers, etc.</li>
<li>Contrib: Free software that depends on non-free software.</li>
</ul>
<p>There&#8217;s no equivalent to &#8220;Universe&#8221; or &#8220;Partner&#8221; here because there&#8217;s no corporate sponsor to have partners or support packages; it&#8217;s all community supported.</p>
<p>Ubuntu also has different subsections of each section for updates, security updates, backports, and proposed updates.  Debian&#8217;s stable release (more on that below) has a backports section (for newer software releases backported to stable), a security subsection (for security patches), and an updates (formerly &#8220;volatile&#8221;) subsection for programs that require regular updating (anti-malware packages, e.g.).   There are also a number of popular 3rd party repositories, since Debian lacks any equivalent to Ubuntu&#8217;s PPA system.</p>
<h3>Release schedule</h3>
<p>Ubuntu, like clockwork, releases a new version every six months.  Every two years, they designate the release &#8220;LTS&#8221; (long term support), meaning it will be supported for 3 or 5 years.   Regular releases are supported for 18 months, and the next release is always available for beta testers.  Releases are codenamed with alliterative animal names and versioned  with the year and month of release.</p>
<p>Debian does not release on a fixed schedule.  Instead, they have a four-tier system for the releases:</p>
<ul>
<li>Packages start in <strong>Unstable</strong>.  Sometimes they are directly put into Unstable, sometimes they start in Experimental first.</li>
<li>When it&#8217;s determined that a package in Unstable causes no significant breakage, it graduates to <strong>Testing</strong> (unless testing is in freeze mode).</li>
<li>Approximately every two years, Testing is &#8220;frozen&#8221;, meaning it cannot receive any major package updates.  Once it&#8217;s frozen, developers work to address all outstanding bugs.  When the worst bugs are all eliminated (a process that usually takes three to twelve months), the frozen Testing release is graduated to <strong>Stable</strong>.</li>
<li>Once the new release is in Stable, it receives only security updates and minimal bug fixes.  When the next version of Stable is released, the current Stable is retired to <strong>Old Stable</strong>, which is supported for 1 year after the release of its successor.</li>
</ul>
<p>Debian releases are codenamed for characters from the movie <em>Toy Story</em>, with Unstable perpetually bearing the name Sid (Sid breaks toys <img src='http://www.alandmoore.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).  As you can imagine, the Debian release cycle is quite long, sometimes going two-and-a-half to three years between releases.  Many Debian users opt for using Testing on their desktops, with Stable being reserved for servers and mission-critical systems.  Obviously, the software versions in Stable are far behind those in the current Ubuntu, but they&#8217;ve also been through more rigorous testing and bug-fixing.</p>
<p>Upgrading between releases is different as well; in Ubuntu, you usually run a special release-upgrade tool that alters or disables your software sources, runs the upgrade, removes a bunch of stuff, cleans up a bit, and the prompts you to reboot.</p>
<p>With Debian, things go one of two ways, depending on how you configure your sources:</p>
<ul>
<li>If you set up your sources to point to generic releases like &#8220;stable&#8221; or &#8220;testing&#8221;, you&#8217;re automatically upgraded the first time you do a full upgrade after the official release.  In other words, pointing to &#8220;stable&#8221; means you&#8217;ll always stay with stable, and when a new stable is release, you go to it.</li>
<li>On the other hand, if you set up your sources to point to a particular release codename (like &#8220;squeeze&#8221; or &#8220;wheezy&#8221;), you&#8217;ll stay with that <em>release</em> until you manually change the sources file to point to a newer release.  For example, a system pointed to &#8220;squeeze&#8221; will not upgrade to wheezy when it goes stable, but only after the user changes the sources to point to &#8220;wheezy&#8221; and upgrades.</li>
</ul>
<div>In either case, upgrading Debian is just a matter of pointing the sources to the release you want, running a full-upgrade, and rebooting.</div>
<h3>Proprietary Drivers</h3>
<p>Ubuntu has a snazzy little tool called Jockey that allows you to install those pesky proprietary drivers for your graphics cards and wi-fi chips; assuming you can get a working screen and network connection without them, it&#8217;s pretty handy and easy for people to get the proprietary stuff they need.</p>
<p>Debian doesn&#8217;t (yet) have jockey, so you have to do the drivers the hard way.   Well, it&#8217;s not really <em>that</em> hard, but it&#8217;s not as easy as Jockey.  You&#8217;ll need to enable the non-free repositories, install the appropriate packages, possibly tweak your xorg.conf or /etc/modprobe.d files, and reboot.  If that sounds intimidating, I&#8217;m going to bet that step-by-step instructions are probably a Google search away, so don&#8217;t panic.</p>
<p>In addition to the well-known proprietary drivers, though, Debian has also cleared the default kernel of &#8220;binary blobs&#8221; &#8212; proprietary firmware files that are embedded in the kernel in many other distributions (including Ubuntu).  These firmware files are required for some popular networking and other hardware, but in Debian they need to be installed separately.  Enabling the non-free repositories and installing the firmware-linux package should restore these should you need it.</p>
<p>The bottom line is that making hardware with proprietary drivers work in Debian is just as <em>possible</em> as it is in Ubuntu, but not always as easy.</p>
<h2>Who would want to use it?</h2>
<p>Maybe you&#8217;re looking down this list of differences, and saying to yourself, &#8220;This sounds awful, why would I want to use Debian over Ubuntu?&#8221;  That&#8217;s a fair question, and maybe the answer is simply, &#8220;You wouldn&#8217;t.&#8221; Keep in mind, though, that so far I&#8217;ve focused on the negative things that Ubuntu users encounter when trying Debian.  Let&#8217;s quickly look at a few reasons why you might want to branch out to Ubuntu&#8217;s mother distro.</p>
<h3>Stability is your priority</h3>
<p>It seems like nearly every new release of Ubuntu finds a certain number of people complaining that the development cycle is too short and not enough bugs are squashed to make them happy.  If you&#8217;re one of those people, I&#8217;d suggest it&#8217;s time to try Debian.</p>
<p>As you can see from the release policies, Debian is more concerned with delivering stable, bug-free software than meeting a schedule.  This is a double-edged sword, of course; but if you are unconcerned with having the latest versions of things, don&#8217;t want to do a major upgrade every six months, and just want your software to be as reliable as possible, Debian is a great solution.  True, Ubuntu offers an LTS release which is supported for 3-5 years, but it gets no more pre-release vetting than any other release of Ubuntu.  Debian stable is thoroughly tested  and only released when quality goals are met.</p>
<p>Even if stability doesn&#8217;t trump cutting edge on <em>your</em> computer (certainly doesn&#8217;t on mine, I&#8217;ll admit!), if you&#8217;re a professional tech or just the resident &#8220;computer guy&#8221; among your friends and family you may find yourself working on a system where it does &#8212; such as a friend or relative&#8217;s computer (who isn&#8217;t computer-savvy), in a work environment, etc.  Having Debian in your toolbox is a good idea if you&#8217;re going to be setting up Linux systems for other people.</p>
<h3>You are interested in something other than the desktop</h3>
<p>Ubuntu is a great desktop OS, but suppose you want to play with embedded systems, clustering, or alternative platforms.  Debian&#8217;s focus on universality makes it a perfect fit for creative, oddball uses, and it&#8217;s quite common to see it employed in such applications for this reason.</p>
<p>On the server end, it&#8217;s a bit of a toss-up between Ubuntu Server (LTS releases, of course) and Debian Stable.  I use both at my job; Ubuntu&#8217;s longer support cycle (5 years for LTS servers) is nice, and there are a few areas where its fresher package selection is a plus (virtualization, e.g.); but for standard services like web or infrastructure servers, Debian&#8217;s more conservative architecture and release-when-ready development model wins me over.</p>
<h3>You aren&#8217;t keen on Canonical&#8217;s influence</h3>
<p>Canonical has never made any pretense of being anything other than a for-profit company, and it&#8217;s clear that &#8212; whatever the reason may be &#8212; creating and distributing Ubuntu is part of their plan to generate revenue and become a healthy, profitable company.  Personally, I don&#8217;t have a problem with that.</p>
<p>Over the last few years, though, a lot of users (or at least a vocal minority of them) seem to be uncomfortable with the increasing presence of Canonical&#8217;s corporate goals in the design and direction of Ubuntu.  Whether it&#8217;s the move towards a more mobile-esque interface, the increasing presence of commercial software, the occasional indulgence in top-down decision making, or just a distaste for the omnipresence of company branding, there are some who just long for a less commercialized experience.</p>
<p>Debian has always been, and will always be, community-driven.  No company, corporation, or individual is in a position to dictate direction and design contrary to the wishes of the community.  That&#8217;s not to say unpopular decisions or mistakes aren&#8217;t occasionally made (humans are human, after all), but they aren&#8217;t driven by profit motives.</p>
<h3>You like working with older computers</h3>
<p>I sometimes refer to myself as the &#8220;<a title="Lamont, you big dummy!" href="http://en.wikipedia.org/wiki/Fred_G._Sanford" target="_blank">Fred Sanford </a>of computers&#8221; &#8212; I like working with other people&#8217;s cast-aside garbage.  There&#8217;s something fundamentally satisfying for me in taking a dusty old laptop or tower that has been labeled &#8220;obsolete&#8221; and <a title="Reviving your old PC with Linux, Part I: Defining Expectations" href="http://www.alandmoore.com/blog/2011/08/21/reviving-your-old-pc-with-linux-part-i-defining-expectations/" target="_blank">giving it a second life</a>.  For this task, I prefer Debian.</p>
<p>Ubuntu aims to be a completely modern, user-friendly operating system with a cutting-edge look and feel.  This is a perfectly laudable goal, but it tends to require a modern computer to accomplish smoothly.</p>
<p>It&#8217;s true that there are Ubuntu respins aimed at older hardware, e.g. Lubuntu; it&#8217;s also true that you can use the alternate installer (A.K.A. Debian installer) in Ubuntu to install on machines that can&#8217;t boot to a Live CD.  Even so, I find that Debian proves to be a more universally useful tool for reviving old systems, for a few reasons:</p>
<ul>
<li>It lends itself well to the minimal installation method.</li>
<li>Its underlying architecture is a bit more conservative (sysvinit instead of upstart, plymouth is not a required dependency, etc.)</li>
<li>Its defaults err on the side of secure and lightweight rather than fully functional out-of-the-box.</li>
<li>Its software is occasionally packaged with less demanding dependencies.</li>
<li>Its more rigorous testing results in fewer resource-draining bugs like memory leaks or CPU spikes.</li>
</ul>
<div>Don&#8217;t get me wrong; for the computer with just a slim layer of dust (say, your ~5 year old gaming rig you just replaced), Lubuntu, Xubuntu, Bodhi Linux, or any of the other &#8220;Lightweight Ubuntu remixes&#8221; can provide satisfying results easily.  But on something truly crusty (like the K6-2 laptop I recently restored for my kids) the performance gains from using Debian are noticeable.</div>
<div></div>
<h2>Parting thoughts</h2>
<p>This article may not sell many Ubuntu users on Debian, nor will it probably sit well with fanboys on either side of the fence; but for those who have an interest in exploring the world of Debian, I hope it will help them avoid a few stumbles along the way.  For the rest, I hope you have a better appreciation of the relative strengths of each distro and can take a broader view of what constitutes a good operating system.</p>
<p>If you&#8217;ve had some experiences trying or migrating to Debian from Ubuntu, I&#8217;d love to hear about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/05/17/debian-for-ubuntu-people/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Debian Administrators Handbook arrives, free!</title>
		<link>http://www.alandmoore.com/blog/2012/05/15/the-debian-administrators-handbook-arrives-free/</link>
		<comments>http://www.alandmoore.com/blog/2012/05/15/the-debian-administrators-handbook-arrives-free/#comments</comments>
		<pubDate>Wed, 16 May 2012 04:27:51 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[news comments]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=384</guid>
		<description><![CDATA[The big news in the Debian world this week is the liberation of the The Debian Administrators Handbook, which, thanks to donations from a crowdfunding campaign, has now been released under free-as-in-speech licenses.  It&#8217;s even been packaged up and placed in the Debian repositories, so it&#8217;s a quick &#8220;aptitude install&#8221; away. I spent some time browsing [...]]]></description>
			<content:encoded><![CDATA[<p>The big news in the Debian world this week is the liberation of the <a href="http://debian-handbook.info/">The Debian Administrators Handbook</a>, which, thanks to donations from a crowdfunding campaign, has now been released under free-as-in-speech licenses.  It&#8217;s even been packaged up and placed in the Debian repositories, so it&#8217;s a quick &#8220;aptitude install&#8221; away.</p>
<p>I spent some time browsing through the manual online today, and thought I&#8217;d share my reactions.<br />
<span id="more-384"></span><br />
<h2>Nothing like a book</h2>
<p>Obviously, the Internet is chock full of resources for the aspiring Debian admin already, such as <a title="Debian forums" href="http://forums.debian.net" target="_blank">forums</a>, <a title="Debian wiki!" href="http://wiki.debian.org" target="_blank">wikis</a>, <a title="Site for debian admins" href="http://www.debian-administrator.org" target="_blank">blogs</a>, <a title="The infamous howtoforge." href="http://www.howtoforge.com/howtos/linux/debian" target="_blank">how-tos</a>, and more.  But there&#8217;s nothing quite like the cohesiveness of a well-written book or manual to bring things together and get you proper context for things.</p>
<p>For instance, the manual starts off with a good summary of the Debian project&#8217;s history, philosophy, and organization; these things may seem superfluous to the busy admin just trying to configure a system, but I think they&#8217;re important context for approaching Debian with the right frame of mind.</p>
<p>I also found several chapters that highlighted gaps in my own knowledge, such as the bits about LVM and logcheck.</p>
<p>Understand, this is an English translation of a book originally written in French, so the syntax is sometimes a bit odd; overall, though, it was well done and readable.</p>
<h2>Some good</h2>
<p>There are some really nice sections in this manual that are highly specific to Debian, such as the sections on dpkg and creating your own .deb packages.  There is documentation out there about this, of course, but it&#8217;s presented in a compact and straight-to-the point way here with nice diagrams and so forth.  I also look forward to a deeper perusal of the SELinux and virtualization sections, which I&#8217;ve wanted to get a deeper grasp on.</p>
<p>I also enjoyed the running &#8220;case study&#8221; theme that the book kept bringing back, similar to the approach used in &#8220;Samba by example&#8221;.  It gives a more concrete feel to the examples and instructions.</p>
<h2>Some not so good</h2>
<p>My biggest criticism of the manual so far, though, is that it seems very dated and of questionable relevance in a lot of places.  For example:</p>
<ul>
<li>In the sections on interoperating with other systems, Macs are referred to as running PowerPC processors and using AppleTalk networking protocols.  Neither has been true for years.</li>
<li>The section on remote login begins with a discussion of why you should disable Telnet and avoid &#8220;r commands&#8221; (rcp, rsh, etc).  This is good advice, I guess; but I haven&#8217;t seen telnetd installed on any distro by default since&#8230; ever.  And only the greyest of greybeards (who should know better already) has ever used &#8220;r commands&#8221; in Linux, seeing as they have been deprecated since the late &#8217;90s.</li>
<li>No mention of LXDE in the list of desktop environments.  Granted, it&#8217;s not been around as long as KDE, GNOME, and XFCE, but its popularity has been explosive over the last few years, especially among derivatives and users of older computers.</li>
</ul>
<p>These are nit-picking examples, I know; but they seem exemplary of the overall datedness of the tone (if not necessarily the content).  It&#8217;s not so much that the book hasn&#8217;t been updated with <em>new</em> information over the years, but that the old information hasn&#8217;t been suitably diminished, reorganized, or removed.</p>
<p>My other beef with the handbook is what&#8217;s missing:</p>
<ul>
<li>There&#8217;s only minimal mention of PAM, and then only in the context of configuring a system for LDAP login</li>
<li>I found no references to LTSP/MueKow or similar PXE-boot/thin client type setups, which are pretty common in large deployments</li>
<li>Also, no mention of cfengine or similar large-scale management solutions</li>
<li>There really doesn&#8217;t seem to be a good &#8220;Linux fundamentals&#8221; section for absolutely new users.  This manual is really mostly aimed at those who know Unix, but want to learn the Debian specifics.</li>
</ul>
<p>None of these is really essential, but it seems like they&#8217;d be worth including given the detail with which some other low-level bits are discussed.</p>
<h2>A finished work, or a starting point?</h2>
<p>Now that the book is released under free licenses, I&#8217;m wondering if it can make a transition into a project that can be constantly updated and improved, or if it will just be another stagnant and soon-to-be-outdated text like so many others out there.  What the Debian community really needs is not so much a finished opus as a rallying point for building some really top-notch documentation.  Will this handbook be that point?  Time will tell&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/05/15/the-debian-administrators-handbook-arrives-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Studio 12.04</title>
		<link>http://www.alandmoore.com/blog/2012/05/10/ubuntu-studio-12-04/</link>
		<comments>http://www.alandmoore.com/blog/2012/05/10/ubuntu-studio-12-04/#comments</comments>
		<pubDate>Thu, 10 May 2012 21:08:42 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Fixing stuff]]></category>
		<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Old computers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[digital audio]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MIDI]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[my computers]]></category>
		<category><![CDATA[old computers]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=370</guid>
		<description><![CDATA[Not so long ago, I posted about my attempts to bring my old DAW system back to life with Lubuntu.  Emboldened by my success, and eager to get it on a nice firm LTS-release foothold, I tried to upgrade it to Precise Pangolin a few weeks ago.  Sadly, the results were not so great:  after [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_379" class="wp-caption alignleft" style="width: 310px"><a href="http://www.alandmoore.com/blog/wp-content/uploads/2012/05/Screenshot-05102012-091244-PM.png"><img class="size-medium wp-image-379" title="Ubuntu Studio desktop" src="http://www.alandmoore.com/blog/wp-content/uploads/2012/05/Screenshot-05102012-091244-PM-300x240.png" alt="A screen cap of the Ubuntu Studio Desktop" width="300" height="240" /></a><p class="wp-caption-text">The Ubuntu studio 12.04 desktop.</p></div>
<p>Not so long ago, I posted about my attempts to <a title="Reviving my home studio, this time the free software way" href="http://www.alandmoore.com/blog/2012/01/11/reviving-my-home-studio-this-time-the-free-software-way/">bring my old DAW system back to life</a> with Lubuntu.  Emboldened by my success, and eager to get it on a nice firm LTS-release foothold, I tried to upgrade it to Precise Pangolin a few weeks ago.  Sadly, the results were not so great:  after upgrading, I ran afoul of a mysterious bug that caused Ardour, Audacity, and Hydrogen (and possibly other programs) to segfault when I started them.  Despite my best efforts to track down the error (probably caused by my liberal use of PPAs and 3rd-party repositories), it became clear I needed to start afresh.</p>
<p>This time I decided to skip a bit of the DIY and just grab a ready-made audio production distro; after all, there are plenty of them out there, aren&#8217;t there?  Well, the hunt began for an audio-production oriented distro that would work decently on an older 32-bit system while promising future updates; and yes, believe me, my not-so-fond-of-Ubuntu friends out there, I didn&#8217;t limit myself to &#8216;buntuland.  Yet search as I might, every project I found seemed either at least 18 months stale (if not out-and-out abandoned), or a one-man project based on Debian or Ubuntu anyway.  In the end, <a title="Home of Ubuntu Studio!" href="http://ubuntustudio.org" target="_blank">Ubuntu studio</a> seemed best to fit the bill.  So I downloaded the nearly 2 GB .iso file, popped it on my flash drive, and loaded it onto the old workhorse; and here, dear reader, are my findings so far&#8230;</p>
<p><span id="more-370"></span></p>
<h2> The desktop</h2>
<p>Ubuntu Studio, mercifully, uses the XFCE desktop, whose light resource footprint fits just fine on my crusty old Sempron system.  It&#8217;s not quite as light as Lubuntu, but close enough and more mature.  Ironically, the layout is almost exactly what I&#8217;d set up on my Lubuntu desktop, with the panel at the top and a bar of larger quick-launch shortcuts at the bottom.   You might say it&#8217;s a bit of a nod to the Mac desktop layout, though without the global menu and animated dock.  This sort of layout works well for me, and I&#8217;ve pretty much moved to a top panel on all my systems no matter what DE I use.</p>
<p>One nice improvement over my Lubuntu setup, though, is the menu; it&#8217;s been carefully customized to organize applications into convenient categories (audio production, video production, photography, etc) and sub-categories (effects, recording, mixing, etc), so you don&#8217;t have to scroll through some giant &#8220;multimedia&#8221; menu to find your favorite soft-synth.  Nicely done, lads.</p>
<p>The desktop did require a bit of customization for me; I didn&#8217;t need the indicator plugin (no chatting while I&#8217;m recording, thanks), nor did I want that bottom toolbar auto-hiding (I have plenty of screen real-estate, and auto-hiding panels always tend to pop-up annoyingly when I&#8217;m trying to do stuff at the edges of a maximized window).  The default volume icon is useless with my multi-channel audio interface, so it goes out as well, and I replaced the icons in the bottom panel (all of which are generic apps like chat, web, file browser, etc) with my most commonly used audio apps.  Last, and probably very much least,  the default wallpaper is professional-looking but rather drab and mostly unnecessary, so it got replaced with a flat color background to save some CPU.</p>
<h2> Applications</h2>
<p>Ubuntu Studio isn&#8217;t just for musicians, but pretty much anyone who works with multimedia.  So all the applications you&#8217;d expect for audio, video, and graphics work are here.  I don&#8217;t do either of the latter, so my focus is on the audio.  You have:</p>
<ul>
<li>Jack2 set up and ready to rock.  I&#8217;d been on Jack v1 before, since it worked better with my (antique) MIDI interface, but so far Jack2 works well enough.  I like new software <img src='http://www.alandmoore.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</li>
<li>Ardour, as the main DAW.</li>
<li>Audacity, for audio editing.  I also prefer this for non-musical recording (e.g., VO work)</li>
<li>Hydrogen drum machine</li>
<li>GUITARIX!!! my amp simulator of choice, when I rock out (it happens&#8230;)</li>
<li>Most of the better LADSPA, LV2, and DSSI plugins for effects and synths</li>
<li>QTractor for MIDI-sequencing</li>
</ul>
<p>Rosegarden isn&#8217;t there, but personally I didn&#8217;t use it much, and it&#8217;s readily available from software center of course, along with LMMS, Buzztard, several trackers, and various other niche applications that some musicians may find compelling.  I also found a few more plugins in the software center that weren&#8217;t included by default, as well as the Bristol softsynth collection; most of the stuff I actually find useful, however, is ready to roll out-of-the-box.  Nice.</p>
<p>For the graphically inclined, there&#8217;s a good selection of applications like GIMP (not the new 2.8 version (yet)), InkScape, Dark Table, MyPaint, and Blender.  OpenShot video editor looks compellingly simple, even for someone like me who&#8217;s never done any video work.  I think the kids might be interested in checking that out more now that they have a new webcam.  DVD mastering software (DVDStyler) is also included, for those who wish to put their video creations to disc.</p>
<p>For now I&#8217;m resisting the urge to go hunting for more plugins from 3rd-party sources, as I don&#8217;t want the next upgrade to blow my system apart; but really, everything I need to start recording is already here.</p>
<h2> Under the hood</h2>
<p>Digging below the surface, Ubuntu Studio conveniently comes with the lowlatency Linux kernel installed by default, which saves adding in a PPA or compiling it yourself.  That&#8217;s convenient!</p>
<p>My M-audio Delta 44 (another antique, I know) works flawlessly with Ubuntu Studio, and the appropriate mixer/configuration software (Mudita24) is already installed.  No worries there.</p>
<p>I also had no trouble getting it to work with my parallel-port MOTU MIDI Express, after applying the same modprobe configurations I did before, though as I mentioned it doesn&#8217;t work as well with Jack2 (basically, it doesn&#8217;t show up in the Jack MIDI ports, just in the ALSA MIDI ports).</p>
<p>I did have some initial trouble with pulseaudio, which is supposed to be nicely integrated with Jack, but wasn&#8217;t working right and caused a lot of slowdown.  I purged pulseaudio, and everything is working fine (and much faster).  Not sure why it was included, it adds nothing to Jack in my opinion.</p>
<h2> Dreams and wishes</h2>
<p>In my wildest dreams, (ok, not <em>wildest</em>) I could wish that Ubuntu Studio came with Wine VST support working right out of the box, with a simple interface for installing my VST and VSTi plugins from the old days.  I guess that would probably violate some kind of intellectual property restriction, and in any case the basics are already covered.</p>
<p>Of course, what would be even better would be the development of more quality libre LV2 plugins, included and ready to roll. I suppose that will come eventually.</p>
<p>I wonder if the Ubuntu Studio developers might look into doing some sort of integration with FOSS-related music services, like Jamendo or UbuntuOne Music, so that artists can readily publish their creations.  Not sure how that would work, but it&#8217;s a thought.</p>
<p>Really though, with Ubuntu Studio installed what I most need now is something no distro can provide:  the time and energy to get out the microphones and start recording!  Wish me luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/05/10/ubuntu-studio-12-04/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LibreOffice vs. OpenOffice</title>
		<link>http://www.alandmoore.com/blog/2012/04/27/libreoffice-vs-openoffice/</link>
		<comments>http://www.alandmoore.com/blog/2012/04/27/libreoffice-vs-openoffice/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 18:47:04 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[controversy]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[Links to articles]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=366</guid>
		<description><![CDATA[Michael Meeks, a Suse developer who is instrumental in the LibreOffice community, has posted a good article on his &#8220;Stuff Michael Meeks is doing&#8221; blog summarizing the differences between OpenOffice and LibreOffice.  Ok, granted that he&#8217;s a LibreOffice guy and it&#8217;s a little biased, I think it&#8217;s nevertheless a pretty good, factual summary about the history [...]]]></description>
			<content:encoded><![CDATA[<p>Michael Meeks, a Suse developer who is instrumental in the LibreOffice community, has posted a <a href="http://people.gnome.org/~michael/blog/2012-04-26-ooo-comparison.html">good article on his &#8220;Stuff Michael Meeks is doing&#8221;</a> blog summarizing the differences between OpenOffice and LibreOffice.  Ok, granted that he&#8217;s a LibreOffice guy and it&#8217;s a little biased, I think it&#8217;s nevertheless a pretty good, factual summary about the history of the two projects, and the differences to the end-user about them.</p>
<p>There still seems to be a lot of confusion out there about this, and sadly a lot of people downloading OpenOffice are not aware of the situation are are downloading something that is way behind technically, and as far as I can see hasn&#8217;t got much of a future at this point (though that could change).  The difference is particularly important to Ubuntu users, many of whom may be upgrading in the next few months from 10.04 to 12.04 and (as a result) apparently &#8220;switching&#8221; to LibreOffice.</p>
<p>Ironically, though, the &#8220;OpenOffice&#8221; that they&#8217;ll be switching from is actually a lot closer to the LibreOffice they&#8217;re switching to than anything currently available under the name &#8220;OpenOffice&#8221;.  You see, before LibreOffice existed, there was a project called Go-OO.  Go-OO was funded primarily by Novell, and essentially consisted of a comprehensive patch set for OpenOffice that added features or fixes which (mainly for licensing reasons) could not be included in the &#8220;official&#8221; OpenOffice from Sun.</p>
<p>Nearly <em>every major Linux distribution</em> (including Ubuntu, Debian, Fedora, etc) shipped Go-OO (in addition to other distro-specific patches) in place of Sun OpenOffice, even as far back as 2.x versions.  For the sake of familiarity (I assume) they packaged it under the name OpenOffice, despite the differences.</p>
<p>When LibreOffice was created, the Go-OO patches were among the first things to be folded into the forked codebase, along with various patches from major Linux distributions (e.g. RedHat, Debian, etc).  The Go-OO development community (including Meeks himself) also mostly threw in their lot with LibreOffice.</p>
<p>Anyhow, take a look at Michael&#8217;s post, particularly the nice graphic comparison of the two.  I think it&#8217;s pretty clear which one you&#8217;ll choose.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/04/27/libreoffice-vs-openoffice/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trying out Ubuntu 12.04?  My tips</title>
		<link>http://www.alandmoore.com/blog/2012/04/25/trying-out-ubuntu-12-04-my-tips/</link>
		<comments>http://www.alandmoore.com/blog/2012/04/25/trying-out-ubuntu-12-04-my-tips/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 22:56:05 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Practical tech]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=361</guid>
		<description><![CDATA[Ubuntu 12.04 is nearly upon us, and probably will be by the time anyone bothers to read this post.  With all the excitement and general hubbub around it, I imagine it will result in a lot of people unfamiliar with Ubuntu or GNU/Linux trying it out for the first (or first-in-a-long-) time. There is a [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Ubuntu, Linux for humid beans.  Or somesuch." href="http://www.ubuntu.com" target="_blank">Ubuntu 12.04</a> is nearly upon us, and probably will be by the time anyone bothers to read this post.  With all the excitement and general hubbub around it, I imagine it will result in a lot of people unfamiliar with Ubuntu or GNU/Linux trying it out for the first (or first-in-a-long-) time.</p>
<p>There is a lot of good general advice out there, but I&#8217;m going to give a few specific tips of my own for folks trying it out:</p>
<p><span id="more-361"></span></p>
<h3>Tip #1: Use a decent computer</h3>
<p>Linux has a reputation for <a title="Reviving your old PC with Linux, Part I: Defining Expectations" href="http://www.alandmoore.com/blog/2011/08/21/reviving-your-old-pc-with-linux-part-i-defining-expectations/">rescuing old, crusty computers from the landfill</a>, of course, and there are many Linux distributions that cater to aging PC&#8217;s.  Ubuntu isn&#8217;t one of these.  It&#8217;s a modern, no-holds-barred OS designed for simplicity and ease-of-use.  So it requires a little horsepower.</p>
<p>I&#8217;ve personally been testing it on a Pentium M with 512 MB of RAM and an old Intel video chip; it runs, but I wouldn&#8217;t wish the performance I&#8217;m getting on anyone (even in &#8220;2D&#8221; mode).  If you want an easy metric, get a machine designed for Windows Vista or newer (something made in the last 5 years or so).</p>
<p>If you want to see Ubuntu running as it&#8217;s meant to, don&#8217;t drag dad&#8217;s old Windows 98 box out of the attic.  I&#8217;d recommend at minimum a dual-core processor, 1 gigabyte of RAM, and a newer NVidia, AMD, or Intel video chip.</p>
<h3>Tip #2: If it seems slow, it&#8217;s probably the video driver</h3>
<p>You have your &#8220;decent computer&#8221;, loaded with terabytes of RAM and a 16-core 5GHz processor, but Ubuntu seems sluggish and unresponsive.  WHY???? you find yourself screaming.</p>
<p>It&#8217;s the video hardware.  Chances are, you have a video card that isn&#8217;t compatible, or requires a proprietary driver to be loaded.  Don&#8217;t panic, just fire up the &#8220;Additional Drivers&#8221; tool from the menu and see if it recommends any driver installs.  If it does, it&#8217;s just a few clicks, enter your password, and reboot.  Ahhhh&#8230;. all better.</p>
<p>Needless to say you can&#8217;t do that from a Live CD environment, you have to actually have it installed on a hard drive.  And if no drivers are recommended, or it doesn&#8217;t fix the problem, definitely seek help from the <a title="Ubuntu Help Forums." href="http://www.ubuntuforums.org" target="_blank">community forums</a>.</p>
<h3>Tip #3: Wubi is a temporary solution</h3>
<p>Wubi is a great, revolutionary tool for making a dual-boot installation painless and safe.  It installs Ubuntu to a file on your Windows C:\ drive rather than a separate partition.  This saves you the trouble and danger of repartitioning your hard drive, and lets you easily uninstall Ubuntu from your computer using Windows&#8217; add/remove programs dialogue.</p>
<p>Wubi has some downsides, though:</p>
<ul>
<li>It&#8217;s slower than a normal install</li>
<li>It&#8217;s more prone to disk corruption, since there are two file-systems to deal with</li>
<li>If you decide you just LOVE Ubuntu and want to remove Windows, you can&#8217;t without some serious contortions on the command line.</li>
</ul>
<p>If you do decide to install using Wubi, don&#8217;t consider what you&#8217;ve installed a permanent situation.  Keep it in the back of your mind that, should you decide to keep Ubuntu, you&#8217;ll be reinstalling it from scratch.</p>
<h3>Tip #4: Don&#8217;t drink the WINE</h3>
<p>WINE is the most amazingly cool, ambitious, unprecedented, and unimaginable software project ever.  It&#8217;s a compatibility layer that allows Windows software to run &#8212; unaltered &#8212; directly on Linux.  It&#8217;s been in development for nearly two decades, has zillions of programmer-hours behind it, and is now on its third &#8220;stable&#8221; release (1.4).  It also mostly doesn&#8217;t actually work.</p>
<p>Yeah, it works on some things.  Mostly games, or Microsoft Office.  Kind of.  Sort of.  Until the next release breaks it.</p>
<p>OK, so it&#8217;s improved over the years, but in my own experience trying to run Windows software in WINE:</p>
<ul>
<li>About 50% of the programs I try to install or run just flat out don&#8217;t work.  They crash right off the bat.</li>
<li>About 40% get through the install and seem to run, but have some bizarre, fatal bug that makes them unusable (no text anywhere, crashes when you resize, buttons don&#8217;t work, etc).</li>
<li>About 10% actually install, run, and are somewhat usable.</li>
</ul>
<p>Despite this failure rate (which is roughly corroborated by the <a title="The wine app database.  See if I'm wrong.  " href="http://appdb.winehq.org" target="_blank">WINE database</a>), I keep hearing Linux advocates blithely say &#8220;You can run all your Windows software in WINE!&#8221;.  If you&#8217;re ever told this by someone trying to get you to try out Ubuntu or Linux, ask them what Windows software <em>they</em> run in WINE, and how well it works; because in over 9 years of using Linux, I can count on one hand the number of times Windows software running in WINE has been part of a functioning computing solution for me &#8212; and  I can count hands-free how many times it was part of a solid long-term solution.</p>
<p>Even if WINE worked flawlessly, though, I would recommend new users stay clear of it, for two reasons:</p>
<ul>
<li>Windows software running in WINE does not integrate well with the Linux desktop.  It&#8217;s hard to describe, but the two operating systems have such different structures and metaphors that it&#8217;s just kind of awkward.  You really won&#8217;t have a good, seamless experience using Windows software on a Linux desktop.</li>
<li>Running Windows software on your Linux system will only keep you from discovering and using native Linux tools, which are far more reliable and integrated.</li>
</ul>
<p>Now, don&#8217;t misunderstand; LibreOffice isn&#8217;t the same as Microsoft Office, and GIMP isn&#8217;t Photoshop, so if running a couple key applications in WINE makes the difference between getting to run Linux and being stuck on Windows, so be it.  But if you are trying to install Kodak EasyShare on Linux just because it came with your camera, or Yahoo Instant Messenger because you think it&#8217;s the only way to chat with your YIM buddies, you&#8217;re doing this wrong.</p>
<h3>Tip #5: Install software the Ubuntu way</h3>
<p>&#8220;Installing software in Linux is too hard!&#8221; used to be one of the biggest resounding complaints I&#8217;d hear from people trying Linux.  The funny thing is, the way we install software really hasn&#8217;t changed much at all in the last 15 years, but now that everyone understands what an &#8220;App Store&#8221; is, the whole idea of getting software from an online repository instead of downloading it from random websites doesn&#8217;t seem so foreign to people any more.</p>
<p>Still, if you are coming from Windows, here&#8217;s my standard instructions on how to install a piece of software in Ubuntu:</p>
<ul>
<li>First, check the software center.  These are the online repositories that come with Ubuntu, and they have about twenty thousand software titles in them.  Lots of stuff to choose from.</li>
<li>If it&#8217;s not in there, see if you can find a <a title="PPA's on launchpad" href="https://launchpad.net/ubuntu/+ppas" target="_blank">PPA (personal package archive) on Launchpad </a>that has the software.</li>
<li>If it&#8217;s not there, it may be at one of the third-party repositories like <a title="Get Deb, home of lots of cool software not found in the default repositories!" href="http://www.getdeb.net" target="_blank">getdeb</a> or <a title="Medibuntu, home of some clandestine software you can't legally have in the repositories." href="http://www.medibuntu.org" target="_blank">medibuntu</a>.</li>
<li>If it&#8217;s not there, see if the software project&#8217;s website has a .deb (debian package) file that you can download.</li>
<li>If you still can&#8217;t find it, ask on the Ubuntu forums.  You&#8217;ll either get pointed to where you can get a package file, or get help compiling from source.</li>
</ul>
<p>Remember, compiling from source is always a LAST RESORT.  You almost never need to to this to get a piece of software running in Ubuntu these days, and even then there are convenient, brain-dead easy tools to help you do this correctly.</p>
<h3>Tip #6: Ubuntu is only the beginning&#8230;</h3>
<p>It&#8217;s sadly amazing how many people see their choice of operating systems as Windows, OSX, or Ubuntu (though, not as sad as the number who only see two choices&#8230;. or one&#8230;).  Ubuntu has managed to wiggle itself into a position of being the &#8220;third choice&#8221; OS,  but it&#8217;s important to realize that it&#8217;s only one star in the Linux galaxy.  If Ubuntu doesn&#8217;t suit you, realize that there are any number of other distributions out there, all of whom have different ideas about what a desktop should be like, how often an OS should be released, how much testing should go into it, etc.  If you really want to run Linux on your computer, and Ubuntu just doesn&#8217;t suit your sensibilities, here are a few great options to try out:</p>
<ul>
<li><a title="Fedora Linux" href="http://fedoraproject.org" target="_blank">Fedora</a> is the cutting-edge community distribution sponsored by (and based on) Red Hat.  It features the GNOME desktop by default, but also offers KDE, XFCE, or any other environment you might want.</li>
<li><a title="Linux Mint, from the emerald isle itself..." href="http://linuxmint.com" target="_blank">Linux Mint</a> is based on Ubuntu, but has a unique respin of the GNOME desktop known as Cinnamon.</li>
<li><a title="You must go to the mepis.org system, and seek SimplyMepis, the Linux distro who instructed me..." href="http://www.mepis.org" target="_blank">SimplyMepis</a> is a great Debian-based distribution with a KDE desktop.  It&#8217;s the one I started with, and still offers a great system for beginners.</li>
<li><a title="Ubuntu with KDE" href="http://www.kubuntu.org" target="_blank">Kubuntu</a>, <a title="Xubuntu, Ubuntu with XFCE" href="http://www.xubuntu.org" target="_blank">Xubuntu</a>, <a title="Lubuntu, Ubuntu with LXDE" href="http://www.lubuntu.org" target="_blank">Lubuntu</a>, and <a title="Bodhi Linux.  Ubuntu with Enlightenment.  Because &quot;Enlightenmentbuntu&quot; is... just a bad name." href="http://bodhilinux.com" target="_blank">Bohdi Linux</a> are all variants of Ubuntu with different desktop environments, but the same underlying tools and full Ubuntu compatibility.</li>
<li><a title="OpenSuse... I don't really use it, or particularly like it, but it seemed a shame not to mention &quot;the other big distro out there&quot;" href="http://www.opensuse.org" target="_blank">OpenSuse</a>, the community version of Suse Enterprise Linux.</li>
<li><a title="Slitaz, the tiny little spider." href="http://www.slitaz.org" target="_blank">Slitaz</a>, for that dusty old computer I told you not to install Ubuntu on.</li>
<li>Last but not at all least, <a title="Debian, the gold standard of Linux distributions (in my vastly superior opinion)." href="http://www.debian.org" target="_blank">Debian</a>, the mother of Ubuntu with more conservative ideas about software releases.</li>
</ul>
<h3>Have fun!</h3>
<p>Have fun checking out Ubuntu; remember, Linux is supposed to be fun!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/04/25/trying-out-ubuntu-12-04-my-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Icaros Desktop 1.4</title>
		<link>http://www.alandmoore.com/blog/2012/04/21/icaros-desktop-1-4/</link>
		<comments>http://www.alandmoore.com/blog/2012/04/21/icaros-desktop-1-4/#comments</comments>
		<pubDate>Sat, 21 Apr 2012 18:40:49 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Old computers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Alternative Operating systems]]></category>
		<category><![CDATA[AROS]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[old computers]]></category>
		<category><![CDATA[pointless geekery]]></category>
		<category><![CDATA[Reviews]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=314</guid>
		<description><![CDATA[The Amiga.  If you weren&#8217;t of computing age during the Bush Sr. administration, you may not have heard of this legend wrapped in an enigma wrapped in a white case.  The Amiga inspired frenzied superlatives from its users (including, notably, pop artist Andy Warhol) in a way that only certain fruity computers do today.  In [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="The amiga (thanks wikipedia)" src="http://upload.wikimedia.org/wikipedia/commons/1/1f/Amiga_1000DP.jpg" alt="Amiga 1000 image" width="300" height="256" />The Amiga.  If you weren&#8217;t of computing age during the Bush Sr. administration, you may not have heard of this legend wrapped in an enigma wrapped in a white case.  The Amiga inspired frenzied superlatives from its users (including, notably, pop artist <a title="A thing about Andy Warhol and the Amiga" href="http://www.artnode.org/text/andywarhol/" target="_blank">Andy Warhol</a>) in a way that only certain fruity computers do today.  In fact, it&#8217;s often repeated that, if not for the business bungling of Commodore (who owned Amiga), we might today be reminiscing on the bygone days of Apple computers instead.</p>
<p>Now, I never owned an Amiga, unfortunately; in fact I despised Amigas and anyone who owned one, purely out of an unreasoning sense of sour grapes (the Amiga was, in some ways, more advanced than any computer I&#8217;d own for almost another decade).  But now that time and tide have washed the vinegar from my teeth, I&#8217;ve been overcome with a bit of morbid curiosity about this platform of the past.  And when I discovered that some fine folks had developed AROS,  an <a title="AROS, the &quot;A&quot; doesn't stand for Amiga, no no it doesn't.  Really." href="http://aros.sourceforge.net" target="_blank">open source remake of the Amiga OS</a>, designed for standard PC hardware, I had to check it out.</p>
<p><span id="more-314"></span></p>
<p>AROS, like Linux and BSD, has multiple distributions &#8212; three to be exact.  As it happens, the leading distro of AROS, <a title="Icaros desktop homepage" href="http://www.icarosdesktop.org" target="_blank">Icaros</a>, has recently released version 1.4, so I promptly installed it in QEMU and have been checking it out for a while.</p>
<h2>Core system</h2>
<p>Icaros boots almost instantly, even with modest hardware resources allocated.  This is probably owing to its extreme simplicity:  the system has no concept of user accounts, runs no network services, and just in general isn&#8217;t starting up a whole lot of software when it boots.  Still, let&#8217;s give it credit:  it&#8217;s speedy on the boot-up.</p>
<p>The AROS filesystem is simple and straightforward, something like DOS or Windows but using disk labels rather than drive letters. So your main partition is called SYSTEM:, and you can have a separate WORK: partition (like /home, I guess) if you wish.  Everything is arranged in a neat heirarchy, with all the messy libraries and program data files swept under the virtual rug as hidden files.  All you see browsing around are executables and your data.   This takes a little getting-used-to for a Linux user, but one can obviously see the logic of it.</p>
<p>As a Linux user, I naturally launched the shell application first, to see if I could dig around a little under the hood. The AROS command line is it&#8217;s own thing; it struck me as closer to DOS than POSIX, but with a whole set of commands all its own. Icaros is definitely more GUI oriented anyway, so I decided to give up on the shell and check out the GUI instead.</p>
<p>Icaros comes with GUI tools to configure things like networking, USB, desktop preferences, etc.  These can all be found under the &#8220;System&#8221; menu, though I&#8217;d recommend keeping the manual handy when you work with them, as they aren&#8217;t the most intuitive interfaces I&#8217;ve ever seen.</p>
<p>One nifty feature on the desktop is a RAM disk drawer (note: they aren&#8217;t folders on AROS, they are drawers. Same thing, different metaphor.) on the desktop. This is a handy chunk of memory that you can access just like a drawer on the disk, but of course it&#8217;s obliterated whenever you reboot. Not sure how useful that is in the days of multi-terabyte SATA drives, but it&#8217;s a neat idea all the same.</p>
<h2>The Icaros Desktop</h2>
<div id="attachment_342" class="wp-caption alignright" style="width: 310px"><a href="http://www.alandmoore.com/blog/wp-content/uploads/2012/04/aros1.png"><img class="size-medium wp-image-342 " title="Icaros Desktop" src="http://www.alandmoore.com/blog/wp-content/uploads/2012/04/aros1-300x182.png" alt="Screenshot of my Icaros Desktop" width="300" height="182" /></a><p class="wp-caption-text">My Icaros desktop, after some tweaking from the default theme. (Click for full-size)</p></div>
<p>Icaros&#8217; desktop, Wanderer, is an evolution of the original Amiga Workbench desktop. At first glance it seems pretty much like any other desktop environment you&#8217;ve ever used, but there are some subtle-yet-important differences.</p>
<p>First, right-click works quite a bit different than I&#8217;m used to. Instead of popping up a context menu, a right click toggles an application&#8217;s global menu, which appears at the top of the screen Apple-style.</p>
<p>The other oddity is window management. Apart from the obligatory &#8220;close&#8221; button, the window decorations contain an iconify button (minimizes the program to a desktop icon. You might remember this from Windows 3.1, or NeXTStep-like environments), a &#8220;size toggle&#8221; button (which seems to toggle between the largest size you&#8217;ve resized a window and the smallest), and a &#8220;raise to the front&#8221; button, which struck me as slightly pedantic. Notably missing is anything resembling &#8220;maximize&#8221;, which I found increasingly annoying.   I&#8217;m not particularly enamored of the way Icaros does window management; granted, I&#8217;m used to a tililng window manager, but even compared to conventional desktop environments it seemed to require a lot more mousing about to arrange windows than I want to do.</p>
<p>Icaros sports a launcher/dock type gadget at the bottom of the screen called &#8220;amistart&#8221;, which as I understand it was not part of the original Amiga workbench. It&#8217;s pretty much what you expect, though I kind of like the way the &#8220;start menu&#8221; works &#8212; because the filesystem is basically laid out like a menu structure, and &#8220;support files&#8221; are hidden, the menu is just a glorified file browser. You can use it like a normal menu, or click on any folder in the menu to just open that folder in a file browser. Kind of nice if you want to check out a bunch of programs under a certain folder, and don&#8217;t want to have to keep navigating to it on the menu.</p>
<p>The file browser is minimal, and can operate in a modern &#8220;browse&#8221; mode, or the classic &#8220;spatial&#8221; mode (spatial file browsers basically open a new window for each folder you open, which back in the 90&#8242;s was somehow believed to be more user friendly. Especially for users who love playing a good game of &#8220;click all the X&#8217;s&#8221; after digging about for a lost file.)</p>
<p>By far the coolest feature of the Icaros desktop is how it handles multiple workspaces. Instead of chucking them on a cube or grid, additional workspaces are stacked up, and can be accessed by sliding the top ones down from the top. It kind of reminds me of those lecture-room blackboards at big colleges that can slide up and down to reveal additional blackboards beneath.</p>
<h2>Applications</h2>
<div id="attachment_343" class="wp-caption alignleft" style="width: 310px"><a href="http://www.alandmoore.com/blog/wp-content/uploads/2012/04/aros2.png"><img class="size-medium wp-image-343" title="Icaros with Audio Evolution" src="http://www.alandmoore.com/blog/wp-content/uploads/2012/04/aros2-300x182.png" alt="Screenshot of Icaros with Audio Evolution" width="300" height="182" /></a><p class="wp-caption-text">Audio Evolution running on Icaros. Notice it&#39;s on its own screen, which I&#39;ve pulled down a bit to show the desktop beneath. (click for larger image)</p></div>
<p>Well window managers and launchers are all fine and good, but not much use without something to launch and manage. Considering its relative obscurity, Icaros pleasantly surprised me with the volume of applications available. The &#8220;full edition&#8221; (Icaros Live, not Icaros Light) that I installed is chock full of programs that span the gamut.  I was honestly hoping to find one or two real gems among Icaros&#8217;s programs that would make me say &#8220;I need to have one of my computers booting this so I can check out this application&#8221;.  The jury&#8217;s still out on whether I&#8217;ve found any, but nevertheless there&#8217;s a good selection of stuff:</p>
<ul>
<li>Web browser:  Yes, it has a web browser, so it&#8217;s not a totally useless OS <img src='http://www.alandmoore.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .  Odyssey web browser, or OWB, is basically webkit wrapped in a chunky 90&#8242;s-esque UI.   But apart from the obvious lack of proprietary plugins and codecs, it works just like any other webkit browser.</li>
<li>Other network:  Icaros has a decent POP/IMAP mail client, and clients for IM, IRC, FTP, Remote desktop, and VNC. I didn&#8217;t find the SSH client, but there were a few things I couldn&#8217;t identify so who knows.  (NOTE: the most recent release, 1.4.1, also adds support for Windows file sharing (SMB) as well).</li>
<li>Games:  there&#8217;s a nice selection of games installed in Icaros; most of them are ports of open source games available on other platforms (SupertuxKart, Blob wars, Doom, etc) or original versions of old standards (solitaire, chess, etc).  Nothing to impress the <strong>L337 94/\/\3r</strong> crowd, but you can have some fun nontheless.</li>
<li>Emulators:  Here we have a nice feature of Icaros:  eighteen emulator programs covering a wide variety of classic home computers, consoles, game systems, and operating systems.  Nothing you can&#8217;t get for other operating systems, but here they are packaged, configured and apparently sporting the necessary ROMS to function.</li>
<li>Multimedia:  Being a musician myself, and knowing the Amiga was at one time a top-line multimedia machine, I was eager to see what music making software Icaros held.  There are some mod trackers, a 303 emulator, a drum synth, and a serviceable multitrack DAW (Audio Evolution 4).  The selection didn&#8217;t blow me away, but if anything tempts me to put Icaros on real hardware, it&#8217;s the idea of doing some music Amiga-style.</li>
<li>Graphics:  Icaros comes with several paint/draw sort of applications, none of which seemed either stunningly better or egregiously worse than Gimp, Paint.NET, or any of a dozen other free paint applications for other platforms (at least in my limited non-artist assessment).</li>
<li>Other: Text editor, PDF viewer, ZIP archiver, CD burner, disk formatter, etc &#8212; all those little applications you never think about needing until you need them.  Icaros has them, no worries.</li>
<li>Development:  A Lua interpreter is included, as well as the SDL libraries.  Vim has been ported, but sadly no Emacs <img src='http://www.alandmoore.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> .  There is a weirdly cartoonish IDE called Murks, and a number of other tools with obtuse names whose purpose was not clear to me (like &#8220;Chocolate Castle&#8221; ?¿?).</li>
</ul>
<div>Basically, Icaros has the bases covered, if only minimally in some cases.  Still, all things considered it&#8217;s surprisingly complete.  Of course, this is only going by the built-in software.  There are some AROS software repositories out there, and the system purports to be source code / API-compatible with the orginal Amiga OS (meaning Amiga software can be re-compiled to run on it with minimal or no changes).  There&#8217;s an emulator included that allows you to run Amiga binaries directly, but you need to have access to ROM files that aren&#8217;t freely available (though they can be purchased still, apparently).</div>
<div></div>
<h2>Overall Thoughts</h2>
<p>What&#8217;s the point of Icaros?  Is it a nostalgic curiosity?  The up-and-coming desktop of the future?  A niche OS for a small community of holdouts?  Hard to say, really; but for anyone with a spare computer and fond memories of (or burning curiosity about) the Amiga, it&#8217;s almost certainly worth spending a rainy afternoon with, at the very least.   It&#8217;s also a good candidate for that old-and-dusty PC that&#8217;s too slow for your favorite OS.</p>
<p>By all means, if you have the time and inclination check it out!  You can find the software <a title="Icaros Download page" href="http://www.icarosdesktop.com/dl.htm" target="_blank">here</a>, and an excellent must-read-first manual <a title="The Icaros user manual (pdf)" href="http://www.icarosdesktop.com/icarosfiles/IcarosDesktop_manual.pdf" target="_blank">here</a>.  Let me know how it goes!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/04/21/icaros-desktop-1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launching URLs with awesome&#8217;s Run command</title>
		<link>http://www.alandmoore.com/blog/2012/04/03/launching-urls-with-awesomes-run-command/</link>
		<comments>http://www.alandmoore.com/blog/2012/04/03/launching-urls-with-awesomes-run-command/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 05:36:27 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Awesome WM]]></category>
		<category><![CDATA[desktop tweaking]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[instructional]]></category>
		<category><![CDATA[my computers]]></category>
		<category><![CDATA[Practical tech]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=328</guid>
		<description><![CDATA[Following on the heels of my google search hotkey in awesome, I decided to tackle expanding the functionality of the run prompt.  Awesome&#8217;s run prompt, by default, is basically a command-launcher; it chokes on any input that doesn&#8217;t represent an executable file. I wanted it to behave more like the run prompt in other desktops, [...]]]></description>
			<content:encoded><![CDATA[<p>Following on the heels of my google search hotkey in awesome, I decided to tackle expanding the functionality of the run prompt.  Awesome&#8217;s run prompt, by default, is basically a command-launcher; it chokes on any input that doesn&#8217;t represent an executable file.</p>
<p>I wanted it to behave more like the run prompt in other desktops, so that typing in a URL would open the URL in an appropriate application.</p>
<p>With help from Alexander Yakushev on the awesome mailing list, I managed to figure it out&#8230;.</p>
<p><span id="more-328"></span></p>
<p>I originally had planned to just send any identified URL to xdg-open, but I found that it really only handles file, http, and ftp urls properly.  More exotic urls, like ssh://, fish://, smb://, vnc://, man://, and others require more explicit direction.  So the first thing was to define which programs would handle various protocols, using a lua table:</p>

<div class="wp_syntax"><div class="code"><pre class="lua" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">--runners for various protocols</span>
myrunners <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#123;</span>
http <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;xdg-open&quot;</span>,
ftp <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;dolphin&quot;</span>,
file <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;xdg-open&quot;</span>,
vnc <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;krdc&quot;</span>,
rdp <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;krdc&quot;</span>,
fish <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;dolphin&quot;</span>,
smb <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;dolphin&quot;</span>,
man <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;dolphin&quot;</span>,
info <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;dolphin&quot;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>The next step was to override the default run callback.  This takes place down in the globalkeys assignment table, where the default file has something like this:</p>

<div class="wp_syntax"><div class="code"><pre class="lua" style="font-family:monospace;">awful.key<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> modkey <span style="color: #66cc66;">&#125;</span>,            <span style="color: #ff0000;">&quot;r&quot;</span>,     <span style="color: #b1b100;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> mypromptbox<span style="color: #66cc66;">&#91;</span>mouse.screen<span style="color: #66cc66;">&#93;</span>:run<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">end</span><span style="color: #66cc66;">&#41;</span>,</pre></div></div>

<p>I replaced it with this definition:</p>

<div class="wp_syntax"><div class="code"><pre class="lua" style="font-family:monospace;">awful.key<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> modkey <span style="color: #66cc66;">&#125;</span>,            <span style="color: #ff0000;">&quot;r&quot;</span>,     <span style="color: #b1b100;">function</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
  <span style="color: #b1b100;">local</span> promptbox <span style="color: #66cc66;">=</span> mypromptbox<span style="color: #66cc66;">&#91;</span>mouse.screen<span style="color: #66cc66;">&#93;</span>
    awful.prompt.run<span style="color: #66cc66;">&#40;</span>
      <span style="color: #66cc66;">&#123;</span>prompt <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;&lt;span&gt;Run: &lt;/span&gt;&quot;</span><span style="color: #66cc66;">&#125;</span>,
      promptbox.widget,
      <span style="color: #b1b100;">function</span> <span style="color: #66cc66;">&#40;</span>command<span style="color: #66cc66;">&#41;</span>
        <span style="color: #b1b100;">local</span> protocol <span style="color: #66cc66;">=</span> command:match<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;^(%a+):/+&quot;</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #b1b100;">if</span> protocol <span style="color: #b1b100;">then</span>
          command <span style="color: #66cc66;">=</span> <span style="color: #66cc66;">&#40;</span>myrunners<span style="color: #66cc66;">&#91;</span>protocol<span style="color: #66cc66;">&#93;</span> <span style="color: #b1b100;">or</span> <span style="color: #ff0000;">&quot;xdg-open&quot;</span><span style="color: #66cc66;">&#41;</span>..<span style="color: #ff0000;">&quot; &quot;</span> .. command
        <span style="color: #b1b100;">end</span>
        <span style="color: #b1b100;">local</span> result <span style="color: #66cc66;">=</span> awful.util.spawn<span style="color: #66cc66;">&#40;</span>command<span style="color: #66cc66;">&#41;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #b1b100;">type</span><span style="color: #66cc66;">&#40;</span>result<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">==</span> <span style="color: #ff0000;">&quot;string&quot;</span> <span style="color: #b1b100;">then</span>
          promptbox.widget.text <span style="color: #66cc66;">=</span> result
        <span style="color: #b1b100;">end</span>
      <span style="color: #b1b100;">end</span>,
      awful.completion.shell,
      awful.util.getdir<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;cache&quot;</span><span style="color: #66cc66;">&#41;</span> .. <span style="color: #ff0000;">&quot;/history&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #b1b100;">end</span><span style="color: #66cc66;">&#41;</span>,</pre></div></div>

<p>My callback for the run command (starting on line 6 here) basically does this:</p>
<ul>
<li>Uses a regex to search for the string &#8220;:/&#8221; as part of the first word, and puts the letters before the colon into a variable called &#8220;protocol&#8221;</li>
<li>If there is a protocol, it looks up the protocol in the &#8220;myrunners&#8221; table, and prepends the resulting command (or xdg-open, if the protocol isn&#8217;t in the table) to the URL.</li>
<li>If there isn&#8217;t a protocol found (the first word contains no &#8220;:/&#8221;), then it does nothing</li>
<li>Finally, the constructed command is run!</li>
</ul>
<p>It works great, and allows me to quickly open remote URLs with a minimum of fuss.  So far the only shortcoming is that opening files this way requires using &#8220;file://&#8221; followed by the full path.  I&#8217;m contemplating the best way to streamline opening files in awesome, but haven&#8217;t quite decided how I want to work with it yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/04/03/launching-urls-with-awesomes-run-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick google search in Awesome window manager</title>
		<link>http://www.alandmoore.com/blog/2012/03/27/quick-google-search-in-awesome-window-manager/</link>
		<comments>http://www.alandmoore.com/blog/2012/03/27/quick-google-search-in-awesome-window-manager/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 18:46:35 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Awesome WM]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[pointless geekery]]></category>
		<category><![CDATA[Practical tech]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=319</guid>
		<description><![CDATA[I&#8217;m back to using AwesomeWM on my work desktop; not sure what brought me back, but I will say that overall I prefer the way it handles multiple monitors and multiple desktops a little better than how KDE does it.  That, and KWin&#8217;s tiling mode is still useless with dual monitors even in 4.8. Something [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m back to using AwesomeWM on my work desktop; not sure what brought me back, but I will say that overall I prefer the way it handles multiple monitors and multiple desktops a little better than how KDE does it.  That, and KWin&#8217;s tiling mode is still useless with dual monitors even in 4.8.</p>
<p>Something about running a window manager like Awesome makes you uber-sensitive to operations that require you to do a lot of mouse-maneuvering or manual window management, and thus encourages you to streamline these operations.  One such thing for me is searching google for something, an activity which I&#8217;m bound to do at least six dozen times during a workday, especially when developing (since I can&#8217;t remember API&#8217;s for squat).</p>
<p>With a little help from a bash script and surfraw, I came up with a pretty cool solution. <span id="more-319"></span></p>
<p>First, you need to install surfraw.  Surfraw is a command-line tool for searching different search engines; it&#8217;s available in the Debian and Ubuntu repositories.  Once installed, you can call it like this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sr google bunch of search terms</pre></div></div>

<p>And it will open a new tab in your browser (or open a browser, if need be) with the google search.  Of course, you don&#8217;t have to use google, as surfraw comes with a variety of other search options.</p>
<p>You&#8217;ll also need wmctrl installed.</p>
<p>Once those were installed, I created a script in my ~/bin directory (which I&#8217;ve added to my path &#8212; you can of course put this script in /usr/local/bin/ or wherever) and called it &#8220;google_search.sh&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">term</span>=$<span style="color: #000000; font-weight: bold;">@</span>
<span style="color: #007800;">foo</span>=<span style="color: #ff0000;">''</span>
<span style="color: #666666; font-style: italic;">#search with surfraw</span>
sr google <span style="color: #007800;">$term</span>
<span style="color: #666666; font-style: italic;">#wait until the window exists and registers with the WM</span>
<span style="color: #000000; font-weight: bold;">while</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$foo</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">do</span>
 <span style="color: #007800;">foo</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>wmctrl <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$term</span> - Google Search&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
 <span style="color: #c20cb9; font-weight: bold;">sleep</span> .5
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #666666; font-style: italic;">#could use wmctrl -a, but it's not always reliable in awesome with dual screens</span>
wmctrl <span style="color: #660033;">-r</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$term</span> - Google Search&quot;</span> <span style="color: #660033;">-b</span> add,demands_attention
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;awful.client.urgent.jumpto()&quot;</span> <span style="color: #000000; font-weight: bold;">|</span>awesome-client</pre></div></div>

<p>Basically this script does the following:</p>
<ol>
<li>assigns all arguments to a variable &#8220;term&#8221; </li>
<li>runs surfraw with the search terms</li>
<li>the while loop watches the window list for a window with your search terms and &#8220;Google Search&#8221; in the title</li>
<li>Once it shows up, we mark the given window as &#8220;demands_attention&#8221; a.k.a. &#8220;urgent&#8221;</li>
<li>Finally, we tell awesome to switch to the urgent client.</li>
</ol>
<p>As I noted in the script, on a single monitor situation I could just use &#8220;wmctrl -a&#8221; to switch to the window instead of doing all that urgent nonsense, but I&#8217;ve found that to be unreliable with dual monitors (e.g., sometimes it switches to the right tag, but on the wrong screen).</p>
<p>Once I have this script somewhere in my $PATH, I add the shortcut to awesome, by adding these lines to the &#8220;globalkeys&#8221; table in my rc.lua:</p>

<div class="wp_syntax"><div class="code"><pre class="lua" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">-- surfraw search</span>
 awful.key<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> modkey, <span style="color: #66cc66;">&#125;</span>, <span style="color: #ff0000;">&quot;g&quot;</span>,
 <span style="color: #b1b100;">function</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
 awful.prompt.run<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span> prompt <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">&quot;&lt;span foreground='#7f9f7f'&gt;Google Search:&lt;/span&gt; &quot;</span><span style="color: #66cc66;">&#125;</span>,
 mypromptbox<span style="color: #66cc66;">&#91;</span>mouse.screen<span style="color: #66cc66;">&#93;</span>.widget,
 <span style="color: #b1b100;">function</span><span style="color: #66cc66;">&#40;</span>input<span style="color: #66cc66;">&#41;</span>
 awful.util.spawn_with_shell<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;google_search.sh &quot;</span> .. input<span style="color: #66cc66;">&#41;</span>
 <span style="color: #b1b100;">end</span>, <span style="color: #b1b100;">nil</span>
 <span style="color: #66cc66;">&#41;</span>
 <span style="color: #b1b100;">end</span>
 <span style="color: #66cc66;">&#41;</span>,</pre></div></div>

<p>(Incidentally, you may want to remove or change the pango markup on the prompt to match your theme. I&#8217;m using zenburn, so it matches nicely).</p>
<p>After restarting Awesome, Mod4-g gives me a prompt to do a google search.  Works a treat!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/03/27/quick-google-search-in-awesome-window-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WCGBrowser, meet world&#8230;</title>
		<link>http://www.alandmoore.com/blog/2012/03/06/wcgbrowser-meet-world/</link>
		<comments>http://www.alandmoore.com/blog/2012/03/06/wcgbrowser-meet-world/#comments</comments>
		<pubDate>Tue, 06 Mar 2012 15:23:14 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[kiosk]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software projects]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=311</guid>
		<description><![CDATA[After conversing a bit with one reader of my kiosk how-to, I was reminded how tricky it can be to really lock-down a modern web browser for kiosk use.  It&#8217;s so tricky, that for my own needs I ended up writing my own browser. Well, I figure it&#8217;s time to stop being stingy, so I [...]]]></description>
			<content:encoded><![CDATA[<p>After conversing a bit with one reader of my <a title="Creating a kiosk with Linux and X11:  2011 edition" href="http://www.alandmoore.com/blog/2011/11/05/creating-a-kiosk-with-linux-and-x11-2011-edition/">kiosk how-to</a>, I was reminded how tricky it can be to really lock-down a modern web browser for kiosk use.  It&#8217;s so tricky, that for my own needs I ended up writing my own browser.</p>
<p>Well, I figure it&#8217;s time to stop being stingy, so I am releasing the code to that browser under the GPL.  You can find it on github, here:</p>
<p><a href="https://github.com/alandmoore/wcgbrowser">https://github.com/alandmoore/wcgbrowser</a></p>
<p>Contributions would be welcome, as the code has some stupidities and shortcomings.  It does work for my needs, and may work in a wide variety of situations, so feel free to make use of it.</p>
<p>I will, of course, appreciate code contributions from those so inclined!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/03/06/wcgbrowser-meet-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First recording with my new setup</title>
		<link>http://www.alandmoore.com/blog/2012/02/11/first-recording-with-my-new-setup/</link>
		<comments>http://www.alandmoore.com/blog/2012/02/11/first-recording-with-my-new-setup/#comments</comments>
		<pubDate>Sat, 11 Feb 2012 22:29:23 +0000</pubDate>
		<dc:creator>Alan</dc:creator>
				<category><![CDATA[Free/Libre Open Source Software]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[digital audio]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[my computers]]></category>

		<guid isPermaLink="false">http://www.alandmoore.com/blog/?p=308</guid>
		<description><![CDATA[Finally got some time last night to do a little recording on my Lubuntu/ardour setup.  I wasn&#8217;t doing anything serious, just wanted to lay down some sounds to experiment with software, workflow, and getting a good sound out of my new cajon. The result is here.  No sequencing or drum programming going on (obviously), just [...]]]></description>
			<content:encoded><![CDATA[<p>Finally got some time last night to do a little recording on <a title="Reviving my home studio, this time the free software way" href="http://www.alandmoore.com/blog/2012/01/11/reviving-my-home-studio-this-time-the-free-software-way/">my Lubuntu/ardour setup</a>.  I wasn&#8217;t doing anything serious, just wanted to lay down some sounds to experiment with software, workflow, and getting a good sound out of my new cajon.</p>
<p>The result is <a title="Henry Purcell hits Jamaica, mon." href="http://www.alandmoore.com/lc/aud/purcell-mon.mp3" target="_blank">here</a>.  No sequencing or drum programming going on (obviously), just laid down one track at a time into Ardour and mixed down with a handful of plugins.  The lead synth is nekobee running through a parametric eq and rotary speaker sim, recorded live into Ardour.</p>
<p>I&#8217;m pretty happy with what it can do, though I still feel like the workflow with Jack/Ardour is a little cumbersome.  My hardware is kind of flaky too, sadly.  Still, there&#8217;s something that inspires me more about working with duct-tape and baling wire than with some shiny turnkey system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alandmoore.com/blog/2012/02/11/first-recording-with-my-new-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.alandmoore.com/lc/aud/purcell-mon.mp3" length="3591265" type="audio/mpeg" />
		</item>
	</channel>
</rss>

