<?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>Only Dreaming &#187; Ubuntu</title>
	<atom:link href="http://onlydreaming.net/tag/ubuntu/feed" rel="self" type="application/rss+xml" />
	<link>http://onlydreaming.net</link>
	<description></description>
	<lastBuildDate>Thu, 09 Feb 2012 23:39:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>HOWTO: Install Sun’s JDK on Ubuntu (without the Command Line)</title>
		<link>http://onlydreaming.net/guides/howto-install-suns-jdk-on-ubuntu-without-the-command-line</link>
		<comments>http://onlydreaming.net/guides/howto-install-suns-jdk-on-ubuntu-without-the-command-line#comments</comments>
		<pubDate>Wed, 20 Jul 2011 19:52:50 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Installing]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JDK]]></category>
		<category><![CDATA[JRE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Package Management]]></category>
		<category><![CDATA[Partner Repository]]></category>
		<category><![CDATA[Repositories]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Ubuntu Software Centre]]></category>
		<guid isPermaLink="false">http://onlydreaming.net/?p=11746</guid>
		<description><![CDATA[The Java Development Kit (JDK), which is required to write applications in Java, is not included by default in the Ubuntu Linux OS. Various guides (such as this one) will give you a succinct set of commands to run from &#8230; <a href="http://onlydreaming.net/guides/howto-install-suns-jdk-on-ubuntu-without-the-command-line">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The Java Development Kit (JDK), which is required to write applications in Java, is not included by default in the Ubuntu Linux OS. Various guides (such as <a href="http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/">this one</a>) will give you a succinct set of commands to run from the terminal to download and install Sun’s (now Oracle’s) official JDK. But, probably because it’s harder to explain, none show you the slightly more user-friendly point-and-click way of doing it. Well, this page does.</p>
<ol>
<li>Open the <em>Ubuntu Software Centre</em>, located in your Applications menu.  The app will open, but no matter what you search for, you won’t get Sun’s JDK.  This is because it has been <a href="http://www.ubuntugeek.com/sun-java-moved-to-the-partner-repository-in-ubuntu-10-04-lucid.html">moved</a> to Ubuntu’s “Partner” repository, which is not enabled by default.  We will now enable it.</li>
<li>Go to the <em>Edit</em> menu, and click <em>Software Sources…<br />
</em><a href="http://onlydreaming.net/wp-content/uploads/2011/07/2.png"><img class="aligncenter size-large wp-image-11747" title="The Ubuntu Software Centre's Edit menu" src="http://onlydreaming.net/wp-content/uploads/2011/07/2-500x305.png" alt="The Ubuntu Software Centre's Edit menu" width="500" height="305" /></a></li>
<li>You’ll be prompted to enter your password, so do that:<br />
<a href="http://onlydreaming.net/wp-content/uploads/2011/07/3.png"><img class="aligncenter size-medium wp-image-11748" title="Password dialog" src="http://onlydreaming.net/wp-content/uploads/2011/07/3-300x170.png" alt="Password dialog" width="300" height="170" /></a></li>
<li>In the box that appears, go to the <em>Other Software</em> tab.  You should see an entry on the list labelled <em>“Canonical Partners”</em>.  Check the box at the left of that entry, then click <em>Close</em>.<br />
<a href="http://onlydreaming.net/wp-content/uploads/2011/07/4.png"><img class="aligncenter size-medium wp-image-11749" title="Software Sources window" src="http://onlydreaming.net/wp-content/uploads/2011/07/4-300x291.png" alt="Software Sources window" width="300" height="291" /></a></li>
<li>You will now be returned to the main <em>Ubuntu Software Centre</em> window, where an <em>“In Progress”</em> indicator will appear for a minute or so.  Once complete, you can search for “JDK” and… it still won’t show it to you.</li>
<li>As the JDK is not something that most home users want, there’s an extra obstacle in the way — you must ask the Software Centre to show you “technical items”.  There’s a link at the bottom of the window for this:<br />
<a href="http://onlydreaming.net/wp-content/uploads/2011/07/5.png"><img class="aligncenter size-large wp-image-11750" title="Show Technical Items" src="http://onlydreaming.net/wp-content/uploads/2011/07/5-500x305.png" alt="Show Technical Items" width="500" height="305" /></a></li>
<li>You should now have an extensive list of packages that feature the letters “JDK”.  You want to pick the one with the package name <em>sun-java6-jdk</em>.  Click it, then click the <em>Install</em> button on the right.<br />
<a href="http://onlydreaming.net/wp-content/uploads/2011/07/6.png"><img class="aligncenter size-large wp-image-11751" title="Ubuntu Software Centre window with sun-java6-jre selected" src="http://onlydreaming.net/wp-content/uploads/2011/07/6-500x305.png" alt="Ubuntu Software Centre window with sun-java6-jre selected" width="500" height="305" /></a></li>
<li>The JDK will now be downloaded and installed.  Within a couple of minutes, this will be complete; the <em>Install</em> button will change to say <em>Remove</em> and the icon next to <em>sun-java6-jre</em> will show a green tick.</li>
</ol>
<p>Sun’s JDK is now installed.  You can now search for and install Sun’s JRE, and anything else you might want from the Partner repository.  The appropriate locations have been added to the system path automatically, but if you should need to find the JDK files manually, they’re in <code>/usr/lib/jvm/java-6-sun-1.6.0.26</code> (the last section of the path may change if the latest JDK version is later than it was when this article was written).</p>
]]></content:encoded>
			<wfw:commentRss>http://onlydreaming.net/guides/howto-install-suns-jdk-on-ubuntu-without-the-command-line/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>The UI of Least Resistance</title>
		<link>http://onlydreaming.net/blog/the-ui-of-least-resistance</link>
		<comments>http://onlydreaming.net/blog/the-ui-of-least-resistance#comments</comments>
		<pubDate>Tue, 17 May 2011 22:35:19 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Experience]]></category>
		<category><![CDATA[GUIs]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[User Experience]]></category>
		<category><![CDATA[UX]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://onlydreaming.net/?p=11644</guid>
		<description><![CDATA[I was working up to a blog post on Ubuntu’s new “Unity” interface a couple of days ago, but repeatedly stalled when it came to making a point. The only point I could come up with was essentially just “I &#8230; <a href="http://onlydreaming.net/blog/the-ui-of-least-resistance">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was working up to a blog post on <a href="http://ubuntu.com">Ubuntu</a>’s new “Unity” interface a couple of days ago, but repeatedly stalled when it came to making a point.  The only point I could come up with was essentially just “I don’t like this”, which isn’t the greatest of subjects for a blog post — to say nothing of the hundreds who have trodden that territory before me.</p>
<div id="attachment_11647" class="wp-caption aligncenter" style="width: 310px"><a href="http://onlydreaming.net/wp-content/uploads/2011/05/ubuntu-unity-apps2.png"><img src="http://onlydreaming.net/wp-content/uploads/2011/05/ubuntu-unity-apps2-300x168.png" alt="Ubuntu&#039;s Unity interface" title="Ubuntu&#039;s Unity interface" width="300" height="168" class="size-medium wp-image-11647" /></a><p class="wp-caption-text">Ubuntu’s Unity interface (image credit: webupd8.org)</p></div>
<p>It’s a fairly bold new direction for Ubuntu’s UI, and the first time their default interface has really diverged from what the upstream GNOME project provides.  Now I don’t like it for a number of reasons: it’s slow, it doesn’t provide some basic functionality, other functionality is really well hidden (Go on, re-order your icons. Try it.) and it’s got an “our way or nothing” approach to handling workspaces.</p>
<p>On one hand, as a software guy whose main specialisation is user interface design, I understand the urge to try new UI paradigms as often as possible, on the grounds that sooner or later you’ll discover something that really is better than what you currently have.  On the other hand, I quietly despair at how far off that “something better” seems.</p>
<p>Take, for example, me.  I’m a UX person, and a perfectionist when it comes to interfaces.  I’m irritated by slightly-wrong fonts and icons a couple of pixels out of alignment. I love new things, new ways of organising and displaying data. I’m big on augmented reality. And my desktop looks like this:</p>
<p><a href="http://onlydreaming.net/wp-content/uploads/2011/05/desktop1.png"><img src="http://onlydreaming.net/wp-content/uploads/2011/05/desktop1-300x187.png" alt="Bare XFCE Desktop" title="Bare XFCE Desktop" width="300" height="187" class="aligncenter size-medium wp-image-11648" /></a></p>
<p>Now I think that’s aesthetically pleasing, but in terms of functionality, it resembles nothing quite so much as:</p>
<div id="attachment_11645" class="wp-caption aligncenter" style="width: 310px"><a href="http://onlydreaming.net/wp-content/uploads/2011/05/Am_windows95_desktop.png"><img src="http://onlydreaming.net/wp-content/uploads/2011/05/Am_windows95_desktop-300x225.png" alt="Windows 95 Desktop" title="Windows 95 Desktop" width="300" height="225" class="size-medium wp-image-11645" /></a><p class="wp-caption-text">Yeah, that.</p></div>
<p>The only notable exception is <a href="http://do.davebsd.com/">GNOME-Do</a> (think Launchy on Windows or Quicksilver on OS X), which I use exclusively for launching apps. The main menu, lower left, only gets used if I forget the name of something.  Aside from that, I’m using my computer in exactly the same way I was 16 years ago.</p>
<p>The reason for that, as far as I can tell, is that it is <em>the UI of least resistance</em>.  In sixteen years, probably 99% of my computer-using time has involved an interface that’s very similar to that one.  Sure, there are certainly better UIs out there.  Maybe from an objective point of view, Unity is one of them.  But for more than half of my life, my brain has been slowly optimising itself for the Windows 95 style interface.</p>
<p>To become the “next big thing” in desktop UI, a new paradigm must not only be better than what came before, it must be <em>so much better</em> that our brains don’t mind losing half a lifetime’s worth of learning.</p>
<p>That’s a milestone I haven’t seen reached lately on the desktop, and a fear we may not see it reached before “the desktop” stops being a thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://onlydreaming.net/blog/the-ui-of-least-resistance/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>HOWTO: Use an XBox 360 Dance Mat on Ubuntu Karmic</title>
		<link>http://onlydreaming.net/guides/using-an-xbox-360-dance-mat-on-ubuntu-karmic</link>
		<comments>http://onlydreaming.net/guides/using-an-xbox-360-dance-mat-on-ubuntu-karmic#comments</comments>
		<pubDate>Wed, 03 Mar 2010 11:36:14 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Guides]]></category>
		<category><![CDATA[Console Hackery]]></category>
		<category><![CDATA[Dance Mat]]></category>
		<category><![CDATA[Dancing Stage]]></category>
		<category><![CDATA[DDR]]></category>
		<category><![CDATA[Driver]]></category>
		<category><![CDATA[Drivers]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Help]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[Joystick]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Support]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Xbox 360]]></category>
		<guid isPermaLink="false">http://www.onlydreaming.net/?p=2780</guid>
		<description><![CDATA[Normal XBox 360 wired controllers are supported out of the box on Ubuntu Karmic (9.10). However, it seems that dance mats such as the one that comes bundled with Dancing Stage Universe behave a little differently. Here’s how I got &#8230; <a href="http://onlydreaming.net/guides/using-an-xbox-360-dance-mat-on-ubuntu-karmic">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Normal XBox 360 wired controllers are supported out of the box on Ubuntu Karmic (9.10).  However, it seems that dance mats such as the one that comes bundled with Dancing Stage Universe behave a little differently.  Here’s how I got mine to work.</p>
<div id="notes">
<p>This HOWTO is in the public domain.  You are free to re-post it wherever and however you like, though a link back <a href="http://www.onlydreaming.net/blog/using-an-xbox-360-dance-mat-on-ubuntu-karmic">here</a> would be appreciated.</p>
</div>
<p>Be warned, this is not for the faint of heart — we will be spending most of our time in a terminal window, and we’ll be compiling drivers ourselves.  Read the instructions carefully, and follow what I did line by line.  If you have problems, leave a comment and I’ll see if I can help you out.  <i>Running commands as the root user is potentially dangerous; I am not responsible if your computer is damaged by incorrectly following these instructions.</i></p>
<p>First of all, check that you have the same device as I do.  If not, proceed only with caution!  To find out, plug your dance mat into a USB port, open up a terminal window and run</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">lsusb</pre></div></div>
<p>You should see a line which looks like:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Bus 002 Device 002: ID 12ab:0004 Honey Bee Electronic International Ltd.</pre></div></div>
<p>Your ‘Bus’ and ‘Device’ numbers will probably be different, but the rest of the line should be the same.</p>
<p>The <code>xpad</code> driver, which is already baked into the kernel, does not work for these dance mats.  We will have to instead install <a href="http://pingus.seul.org/~grumbel/xboxdrv/">xboxdrv</a>, which does support dance mats.</p>
<p>The first thing we need to do is download the source code for xboxdrv.  Their website provides downloads of various versions (at time of writing, the latest was <a href="http://pingus.seul.org/~grumbel/xboxdrv/xboxdrv-linux-0.4.10.tar.bz2">0.4.10</a>), but I chose to grab the very latest code from their <code>git</code> repository.  To do that, first install <code>git</code> if you don’t already have it:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> git-core</pre></div></div>
<p>Then find a space to download <code>xboxdrv</code> to — I just chose my home directory, which should be the location you’re at when you first run the terminal anyway.  Download their latest source using git, then go into the downloaded directory:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>Grumbel<span style="color: #000000; font-weight: bold;">/</span>xboxdrv.git
<span style="color: #7a0874; font-weight: bold;">cd</span> xboxdrv</pre></div></div>
<p>Now you’ll need to compile the driver from the source code you’ve just downloaded.  These following instructions are largely from the <code>README</code> file included with <code>xboxdrv</code>.  You’ll need a bunch of things installed so that you can compile the code.  To make sure you have everything, run:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #c20cb9; font-weight: bold;">g++</span> libboost1.40-dev libboost-thread1.40-dev scons libusb-dev libx11-dev x11proto-core-dev python-dbus</pre></div></div>
<p>Now compile by simply running:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">scons</pre></div></div>
<p>Make a cup of tea, this will take a few minutes.</p>
<p>Assuming you don’t see any errors, you now have a driver that will support the dance mat.  However, this is a ‘user-space’ driver, which means we don’t actually bake it into the kernel — instead, we need to make sure that the kernel supports user-space input drivers, then we run <code>xboxdrv</code> as if it were a normal application.</p>
<p>First of all, though, we should check it’s actually working.  To start with, we’ll remove the <code>xpad</code> driver from the kernel, and add the user-space driver support.  <em>Note that if you have any other joysticks, removing xpad could stop them working.  I’m not sure if there’s any way around this at the moment.</em>  Run the following commands:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> rmmod xpad
<span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe uinput
<span style="color: #c20cb9; font-weight: bold;">sudo</span> modprobe joydev</pre></div></div>
<p>Now we can run <code>xboxdrv</code> and check it’s working.  Type:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>xboxdrv</pre></div></div>
<p>You should see something like the following:</p>
<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">xboxdrv 0.4.8
Copyright (C) 2008 Ingo Ruhnke &lt;grumbel@gmx.de&gt;
License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
&nbsp;
USB Device:        002:002
Controller:        &quot;DDR Universe 2 Mat&quot; (idVendor: 0x12ab, idProduct: 0x0004)
Controller Type:   Xbox360
Deadzone:          0
Trigger Deadzone:  0
Rumble Debug:      off
Rumble Speed:      left: -1 right: -1
LED Status:        auto
Square Axis:       no
ButtonMap:         none
AxisMap:           none
RelativeAxisMap:   none
AutoFireMap:       none
RumbleGain:        255
ForceFeedback:     disabled
&nbsp;
Starting with uinput... Error: /dev/input/uinput: No such file or directory
done
&nbsp;
Your Xbox/Xbox360 controller should now be available as:
  /dev/input/js0
  /dev/input/event7
&nbsp;
Press Ctrl-c to quit
&nbsp;
X1:     0 Y1:     0  X2:     0 Y2:     0  du:0 dd:0 dl:0 dr:0  back:0 guide:0 start:0
TL:0 TR:0  A:0 B:0 X:0 Y:0  LB:0 RB:0  LT:  0 RT:  0</pre></div></div>
<p>(You can ignore the “<code>Error: /dev/input/uinput: No such file or directory</code>” line if it appears on your screen, it doesn’t seem to affect <code>xboxdrv</code> at all.)</p>
<p>Press some of the pads on your dance mat.  You should see extra lines appearing at the end indicating the buttons that have been pressed.  The arrows on the mat match up to D-pad directions, so for example if you press Down, you should see <code>dd:1</code> on the line that appears.</p>
<p>Once you’re satisfied that it’s working, hit Ctrl+C to quit.</p>
<p>Before we’re finished, we need to make those changes to the kernel modules permanent.  To do this, run:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-i</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;blacklist xpad&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modprobe.d<span style="color: #000000; font-weight: bold;">/</span>blacklist.conf
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;uinput&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modules
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;joydev&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>modules
<span style="color: #7a0874; font-weight: bold;">exit</span></pre></div></div>
<p>You can now reboot if you want to, and all your kernel module changes will stick.</p>
<p>There’s one more step.  At the moment before using your dance mat, you’ll still have to run <code>xboxdrv</code> manually.  We can fix this with an ‘init script’ that will run <code>xboxdrv</code> automatically on startup.</p>
<p>First, let’s put <code>xboxdrv</code> somewhere sensible on your filesystem, rather than in your home directory:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>xboxdrv
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> xboxdrv <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>xboxdrv<span style="color: #000000; font-weight: bold;">/</span>xboxdrv
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> tools<span style="color: #000000; font-weight: bold;">/</span>xboxdrv-daemon.py <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>xboxdrv<span style="color: #000000; font-weight: bold;">/</span>xboxdrv-daemon.py</pre></div></div>
<p>Now we’ll set up the init script.  The script itself is a few dozen lines, so rather than pasting it here, here’s a download link instead: <a href="http://www.onlydreaming.net/files/xboxdrv">xboxdrv init script</a>.  Download this, then copy it to <code>/etc/init.d</code>.  That requires root access, so from your terminal, run the following to download the above file and put it in the right place:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.onlydreaming.net<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>xboxdrv
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> xboxdrv <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>xboxdrv</pre></div></div>
<p>Now we have to make sure that’s executable and that it runs on startup:</p>
<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>xboxdrv
<span style="color: #c20cb9; font-weight: bold;">sudo</span> update-rc.d xboxdrv start <span style="color: #000000;">51</span> S .</pre></div></div>
<p>(don’t forget the dot on the end!)</p>
<p>Aaaand at long last, you should be done.  Reboot, and your dance mat should work properly with no extra configuration.  If you’re using StepMania, remember to map the mat’s controls before playing.  If you’ve not drunk that cup of tea yet, it’s probably cold!</p>
<p><em>If you’re looking for a similar guide for OpenSuSE, I’ve just discovered <a href="http://forums.opensuse.org/hardware/415316-my-xbox-360-controller-controls-mouse.html#post1992693">this post</a> which is similar to the post you’re reading, but with OpenSuSE-specific init script instructions.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://onlydreaming.net/guides/using-an-xbox-360-dance-mat-on-ubuntu-karmic/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>All Bugs Are Shallow… Except This One</title>
		<link>http://onlydreaming.net/blog/all-bugs-are-shallow-except-this-one</link>
		<comments>http://onlydreaming.net/blog/all-bugs-are-shallow-except-this-one#comments</comments>
		<pubDate>Wed, 24 Feb 2010 09:49:51 +0000</pubDate>
		<dc:creator>Ian</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[ACPI]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[openSUSE]]></category>
		<category><![CDATA[Power Management]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Resume]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Suspend]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[x86]]></category>
		<guid isPermaLink="false">http://www.onlydreaming.net/?p=2768</guid>
		<description><![CDATA[In his essay “The Cathedral and the Bazaar”, Eric S. Raymond coins the phrase “given enough eyeballs, all bugs are shallow” — meaning that with enough testers and enough programmers, it is possible to diagnose and fix any software bug. &#8230; <a href="http://onlydreaming.net/blog/all-bugs-are-shallow-except-this-one">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In his essay <a href="http://www.catb.org/~esr/writings/cathedral-bazaar/cathedral-bazaar/">“The Cathedral and the Bazaar”</a>, <a href="http://en.wikipedia.org/wiki/Eric_S._Raymond">Eric S. Raymond</a> coins the phrase “given enough eyeballs, all bugs are shallow” — meaning that with enough testers and enough programmers, it is possible to diagnose and fix any software bug.</p>
<p>So why can’t my computer suspend and resume properly?</p>
<p>The concept of ‘suspend’ — or ‘sleep’, or ‘standby’ — mode, whereby the computer dumps its internal state to RAM then enters a low-power state with its processor and other hardware turned off, is not new.  The <a href="http://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface">ACPI</a> standard has been kicking around for 14 years now, a very long time compared to the life cycle of an operating system.  These days, with laptop use on the rise, it’s a very common thing for users to want to do.  And yet resuming from suspend is still hit-and-miss.</p>
<p>Why do I find it more reliable in Ubuntu than openSUSE for the same base kernel?  Why does GNOME fare better than KDE?  Why does my WiFi sometimes not come back?  Why, with Microsoft’s million– if not billion-dollar operating system budgets, with Intel and AMD and nVidia’s decades’ of driver experience, is suspend and resume still frequently an issue even on Windows?</p>
<p>Only Apple, with its closed hardware / software ecosystem, seems to have cracked it.</p>
<p>I’d hate to think of that as the only way to a bug-free existence — I’m very fond of the idea of an open ecosystem where I can run whatever software I want on whatever hardware I want.  But I’m worried.  Is the range of (IBM-compatible, ACPI-supporting) hardware out there just too diverse and too widely different in its support for suspend-and-resume?  Is it just infeasible for software to perfectly implement it on all devices?</p>
<p>Has hardware created the one software bug that, for any reasonable number of eyeballs, <i>isn’t shallow?</i></p>
]]></content:encoded>
			<wfw:commentRss>http://onlydreaming.net/blog/all-bugs-are-shallow-except-this-one/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

