<?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>handyfloss &#187; Ubuntu</title>
	<atom:link href="http://handyfloss.net/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://handyfloss.net</link>
	<description>Because FLOSS is handy, isn&#039;t it?</description>
	<lastBuildDate>Mon, 21 May 2012 06:44:32 +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>First impressions with Arch Linux</title>
		<link>http://handyfloss.net/2009.10/first-impressions-with-arch-linux/</link>
		<comments>http://handyfloss.net/2009.10/first-impressions-with-arch-linux/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 11:19:29 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[64-bits]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[x.org]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=856</guid>
		<description><![CDATA[I have been considering for some time trying some Linux distro that would be a little faster than Ubuntu. I made the switch from Debian to Ubuntu some time ago, and I must say that I am very pleased with it, despite it being a bit bloated and slow. Ubuntu is really user-friendly. This term [...]]]></description>
			<content:encoded><![CDATA[<p>I have been considering for some time trying some Linux distro that would be a little faster than <a href="http://en.wikipedia.org/wiki/Ubuntu (operating system)">Ubuntu</a>. I made the switch from <a href="http://en.wikipedia.org/wiki/Debian">Debian</a> to Ubuntu some time ago, and I must say that I am very pleased with it, despite it being a bit bloated and slow. Ubuntu is really user-friendly. This term is often despised among geeks, but it does have a huge value. Often times a distro will disguise poor dependency-handling, lack of package tuning and absence of wise defaults as  not having &#8220;fallen&#8221; for user-friendliness and &#8220;allowing the user do whatever she feels like&#8221;.</p>
<p>However comfortable Ubuntu might be, my inner geek wanted to get his hands a little bit dirtier with configurations, and obtain a more responsive OS in return. And that&#8217;s where <a href="http://en.wikipedia.org/wiki/Arch Linux">Arch Linux</a> fits in. Arch Linux is regarded as one of the fastest Linux distros, at least among the ones based on <a href="http://en.wikipedia.org/wiki/executable">binary</a> <a href="http://en.wikipedia.org/wiki/Software package (installation)">packages</a>, not <a href="http://en.wikipedia.org/wiki/source code">source code</a>. Is this fame deserved? Well, in my short experience, it seem to be.</p>
<p>First off, let us clarify what one means with a &#8220;faster&#8221; Linux distro. There are as I see it, broadly speaking, three things that can be faster or slower in the users&#8217; interaction with a computer. The first one, and very often cited one, is the <a href="http://en.wikipedia.org/wiki/booting">boot</a> (and shutdown) time. Any period of time between a user deciding to use the computer and being able to do so is wasted time (from the user&#8217;s point of view). Many computers stay on for long periods of time, but for a home user, short booting times are a must. A second speed-related item would be the startup time of applications. Booting would be a sub-section of this, if we consider the OS/<a href="http://en.wikipedia.org/wiki/kernel (computing)">kernel</a> as an &#8220;app&#8221;, but I refer here to user apps such as an e-mail client or text editor. Granted, most start within seconds at most, many below one second or apparently &#8220;instantly&#8221;, but some others are renowned for their slugginess (<a href="http://en.wikipedia.org/wiki/OpenOffice.org">OpenOffice.org</a>, <a href="http://en.wikipedia.org/wiki/Firefox">Firefox</a> and <a href="http://en.wikipedia.org/wiki/Amarok (software)">Amarok</a> come to mind). Even the not-very-slow apps that take a few seconds can become irritating if used with some frequency. The third speed-related item would be the execution of long-running CPU-intensive software, such as audio/video coding or scientific computation.</p>
<p>Of the three issues mentioned, it should be made clear that the third one (execution of CPU-intensive tasks) is seldom affected at all by the &#8220;speed&#8221; of the OS. Or it shouldn&#8217;t be.  Of course having the latest versions of the libraries used by the CPU-intensive software should make a difference, but I doubt that encoding a video with <a href="http://en.wikipedia.org/wiki/MEncoder">MEncoder</a> is any faster in <a href="http://en.wikipedia.org/wiki/Gentoo Linux">Gentoo</a> than Ubuntu (for the same version of mencoder and libraries). However, the first two (booting and start up of apps) <b>are</b> different from OS to OS.</p>
<p><b>Booting</b></p>
<p>I did some timings in Ubuntu and Arch, both in the same (dual boot) machine. I measured the time from <a href="http://en.wikipedia.org/wiki/GRUB">GRUB</a> to <a href="http://en.wikipedia.org/wiki/GNOME Display Manager">GDM</a>, and then the time from GDM to a working <a href="http://en.wikipedia.org/wiki/desktop environment">desktop environment</a> (<a href="http://en.wikipedia.org/wiki/GNOME">GNOME</a> in both). The exact data might not be that meaningful, as some details could be different from one installation to the other (different choice of firewall, or (minimally) different autostarted apps in the DE). But the big numbers are significant: where Ubuntu takes slightly below 1 minute to GDM, and around half a minute to GNOME, Arch takes below 20 seconds and 10 seconds, respectively.</p>
<p><b>App start up</b></p>
<p>Of the three applications mentioned, OpenOffice.org and Firefox start faster in Arch than in Ubuntu. I wrote down the numbers, but don&#8217;t have them now. Amarok, on the other hand, took equally long to start (some infamous 35 seconds) in both OSs. It is worth mentioning that all of them start up faster the second and successive times, and that the Ubuntu/Arch differences between second starts is correspondingly smaller (because both are fast). Still Arch is a bit faster (except for Amarok).</p>
<p><b>ABS, or custom compilation</b></p>
<p>But the benefits of Arch don&#8217;t end in a faster boot, or a more responsive desktop (which it has). Arch Linux makes it really easy to compile and install any custom package the user wants, and I decided to take advantage of it. With Debian/Ubuntu, you can download the source code of a package quite easily, but the compilation is more or less left to you, and the installation is different from that of a &#8220;official&#8221; package. With Arch, generating a package from the source is quite easy, and then installing it with <a href="http://en.wikipedia.org/wiki/Pacman (package manager)">Pacman</a> is trivial. For more info, refer to the Arch wiki entry for <a href="http://wiki.archlinux.org/index.php/ABS_-_The_Arch_Build_System">ABS</a>.</p>
<p>I first compiled MEncoder (inside the <tt>mplayer</tt> package), and found out that the compiled version made no difference with respect to the stock binary package. I should have known that, because I say so in this very post, don&#8217;t I? However, one always thinks that he can compile a package &#8220;better&#8221;, so I tried it (and failed to get any improvement).</p>
<p>On the other hand, when I recompiled Amarok, I <b>did</b> get a huge boost in speed. A simple custom compilation produced an Amarok that took only 15 seconds to start up, less than half of the vanilla binary distributed with Arch (I measured the 15 seconds even after rebooting, which rules out any &#8220;second time is faster&#8221; effect).</p>
<p><b>Is it hard to use?</b></p>
<p>Leaving the speed issue aside, one of the possible drawbacks of a geekier Linux distro is that it could be harder to use. Arch is, indeed, but not much. A seasoned Linux user should hardly find any difficulty to install and configure Arch. It is certainly not for beginners, but it is not super-hard either.</p>
<p>One of the few gripes I have with it regards the installation of a graphical environment. As it turns out, installing a DE such as GNOME does not trigger the installation of any <a href="http://en.wikipedia.org/wiki/X Window System">X Window System</a>, such as <a href="http://en.wikipedia.org/wiki/X.org Server">X.org Server</a>, as dependencies are set only for really vital things. Well, that&#8217;s not too bad, Arch is not assuming I want something until I tell it I do. Fine. Then, when I do install Xorg, the tools for configuring it are a bit lacking. I am so spoiled by the automagic configurations in Ubuntu, where you are presented a full-fledged desktop with almost no decision on your side, that I miss a magic script that will make X &#8220;just work&#8221;. Anyway, I can live with that. But some thing that made me feel like giving up was that after following all the instruction in the really nice Arch Wiki, I was unable to start X (it would start as a black screen, then freeze, and I could only get out by rebooting the computer). The problem was that I have a <a href="http://en.wikipedia.org/wiki/Nvidia">Nvidia</a> graphics card, and I needed the (proprietary) drivers. OK, of course I need them, but the default <tt>vesa</tt> driver should work as well!! In Ubuntu one can get a lower resolution, non-3D effect, desktop with the default vesa driver. Then the proprietary Nvidia drivers allow for more eye-candy and fanciness. But not in Arch. When I decided to skip the test with vesa, and download the proprietary drivers, the X server started without any problem.</p>
<p><b>Conclusions</b></p>
<p>I am quite happy with Arch so far. Yes, one has to work around some rough edges, but it is a nice experience as well, because one learns more than with other too user-friendly distros. I think Arch Linux is a very nice distro that is worth using, and I recommend it to any Linux user willing to learn and &#8220;get hands dirty&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2009.10/first-impressions-with-arch-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu error: the installer needs to remove operating system files</title>
		<link>http://handyfloss.net/2009.06/ubuntu-error-the-installer-needs-to-remove-operating-system-files/</link>
		<comments>http://handyfloss.net/2009.06/ubuntu-error-the-installer-needs-to-remove-operating-system-files/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 07:54:38 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=783</guid>
		<description><![CDATA[I started installing Ubuntu Netbook Remix 9.04 in my ASUS Eee PC, and after the partitioning step, I stumbled upon the following error: The installer needs to remove operating system files from the install target, but was unable to do so. The install cannot continue I was installing Ubuntu on top of a previous eeebuntu [...]]]></description>
			<content:encoded><![CDATA[<p>I started installing <a href="http://en.wikipedia.org/wiki/Ubuntu Netbook Remix">Ubuntu Netbook Remix</a> 9.04 in my <a href="http://en.wikipedia.org/wiki/ASUS Eee PC">ASUS Eee PC</a>, and after the partitioning step, I stumbled upon the following error:</p>
<blockquote><p>
The installer needs to remove operating system files from the install target, but was unable to do so. The install cannot continue
</p></blockquote>
<p>I was installing Ubuntu on top of a previous eeebuntu install, smashing the / partition, while reusing the /home. After minimal googling, I found <a href="https://bugs.launchpad.net/ubuntu/+source/partman-target/+bug/186711">this bug report at Launchpad</a>, with the same problem (and one year old).</p>
<p>As it turns out, the problem was not with the root partition, as I assumed from the error message, but with the home one. Apparently, Ubuntu didn&#8217;t like the idea that my home partition was <a href="http://en.wikipedia.org/wiki/JFS (file system)">JFS</a> (maybe it couldn&#8217;t mount it, because jfs_utils are not loaded by default). The solution: install the OS ignoring (not using) the home partition, and mount it afterwards.</p>
<p>Shame on you, Ubuntu, this solution is lame!</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2009.06/ubuntu-error-the-installer-needs-to-remove-operating-system-files/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Poor Intel graphics performance in Ubuntu Jaunty Jackalope, and a fix for it</title>
		<link>http://handyfloss.net/2009.04/poor-intel-graphics-performance-in-ubuntu-jaunty-jackalope-and-a-fix-for-it/</link>
		<comments>http://handyfloss.net/2009.04/poor-intel-graphics-performance-in-ubuntu-jaunty-jackalope-and-a-fix-for-it/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 11:23:05 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[x.org]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=703</guid>
		<description><![CDATA[Update: read second comment I recently upgraded to Ubuntu Jaunty Jackalope, and have experienced a much slower response of my desktop since. The problem seems to be with Intel GMA chips, as my computer has. The reason for the poor performance is that Canonical Ltd. decided not to include the UXA acceleration in Jaunty, for [...]]]></description>
			<content:encoded><![CDATA[<p><i><b>Update:</b> read second comment</i></p>
<p>I recently upgraded to <a href="http://en.wikipedia.org/wiki/Ubuntu">Ubuntu</a> Jaunty Jackalope, and have experienced a much slower response of my desktop since. The problem seems to be with <a href="http://en.wikipedia.org/wiki/Intel GMA">Intel GMA</a> chips, as my computer has. The reason for the poor performance is that Canonical Ltd. decided not to include the <a href="http://en.wikipedia.org/wiki/UXA">UXA</a> acceleration in Jaunty, for stability reasons (read more at <a href="http://www.phoronix.com/scan.php?page=news_item&#038;px=NzE3MQ">Phoronix</a>).</p>
<p>The issue is discussed at the <a href="https://wiki.ubuntu.com/X/Troubleshooting/IntelPerformance">Ubuntu wiki</a>, along with some solutions. For me, the fix involved just making <a href="http://en.wikipedia.org/wiki/X.Org Server">X.org</a> use UXA, by including the following in the <tt>xorg.conf</tt> file, as they recommend in the wiki:</p>
<div class="codeblock">
<pre>
Section "Device"
        Identifier    "Configured Video Device"
        # ...
        Option        "AccelMethod" "uxa"
EndSection
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2009.04/poor-intel-graphics-performance-in-ubuntu-jaunty-jackalope-and-a-fix-for-it/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>My Ubuntu Jaunty Jackalope upgrade plan</title>
		<link>http://handyfloss.net/2009.04/my-ubuntu-jaunty-jackalope-upgrade-plan/</link>
		<comments>http://handyfloss.net/2009.04/my-ubuntu-jaunty-jackalope-upgrade-plan/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 08:34:58 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[networks]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=698</guid>
		<description><![CDATA[Well, not much of a &#8220;plan&#8221;, but bear with me. Ever since using Debian and Ubuntu, I have installed the OS just once per computer. All software upgrades, including full releases, have been done through upgrades, not re-installations. This means that I have never actually had the need to download any ISO besides the first [...]]]></description>
			<content:encoded><![CDATA[<p>Well, not much of a &#8220;plan&#8221;, but bear with me.</p>
<p>Ever since using <a href="http://en.wikipedia.org/wiki/Debian">Debian</a> and <a href="http://en.wikipedia.org/wiki/Ubuntu">Ubuntu</a>, I have installed the OS just once per computer. All software upgrades, including full releases, have been done through upgrades, not re-installations. This means that I have never actually had the need to download any ISO besides the first one used when I bought the computer.</p>
<p>This is fine, but I always felt the compulsion to share my bandwidth with fellow Linux users, and relieve some load from the  <a href="http://en.wikipedia.org/wiki/Canonical Ltd.">Canonical Ltd.</a> servers. So for every new Ubuntu release, I have downloaded one or more (amd64, i386, desktop, alternate&#8230;) Ubuntu CD ISOs via BitTorrent, and kept them uploading for some time. However, the full BT download of the ISO is a waste of bandwidth, and unless my later upload share is greater than 1.0, I will have been <b>overloading</b> the servers, not relieving them.</p>
<p>Now, with Jaunty Jackalope, I have a way to fix this. I could have done similarly with previous releases, but I didn&#8217;t. Here&#8217;s the deal: download the ISO and share it with BitTorrent, but don&#8217;t upgrade from the Internet as well. Upgrade from the ISO I just downloaded! In the past I would be reluctant to do this, among other things because I don&#8217;t want to waste a physical CD for that. However, the <a href="http://www.ubuntu.com/getubuntu/upgrading">Ubuntu upgrade instructions</a> say how to mount the ISO (yes, mounting ISOs is not new. I&#8217;ve done it in the past), then upgrade from the mounted image. Once the upgrade is done, I can keep seeding the ISO with BitTorrent.</p>
<p>With this procedure I can use bandwidth more efficiently (I download the required software just once), and I can still share the ISO with other people. Moreover, there is another plus: the ISO is just 699 MB, whereas the upgrade manager in Ubuntu tells me that for the upgrade I will need to download more than 1 GB! The difference is due to the ISO being somehow compressed, I think. I will report on the size of the file system mounted from the ISO (which should be much more than 1 GB).</p>
<p><b>Update:</b> Well, actually the internet upgrade involves <i>more</i> packages. If you upgrade from the CD, you are still required to download 800 more MB to complete the upgrade, so no magic there.</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2009.04/my-ubuntu-jaunty-jackalope-upgrade-plan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hibernating my MacBook under Ubuntu Intrepid Ibex</title>
		<link>http://handyfloss.net/2008.11/hibernating-my-macbook-under-ubuntu-intrepid-ibex/</link>
		<comments>http://handyfloss.net/2008.11/hibernating-my-macbook-under-ubuntu-intrepid-ibex/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 21:25:39 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Xfce]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=539</guid>
		<description><![CDATA[No matter what they say, hibernating Linux laptops has always been a problem. I managed to get my MacBook to suspend to RAM quite reliably without much of a hassle. It suspends when I close the lid, and it resumes when I open the lid back. I even configured it to suspend when battery is [...]]]></description>
			<content:encoded><![CDATA[<p>No matter what they say, <a href="http://en.wikipedia.org/wiki/Hibernate (OS feature)">hibernating</a> Linux laptops has always been a problem. I managed to get my MacBook to <a href="http://en.wikipedia.org/wiki/sleep mode">suspend</a> to RAM quite reliably without much of a hassle. It suspends when I close the lid, and it resumes when I open the lid back. I even configured it to suspend when battery is critically low. This way, and due to the really low power consumption while suspended, I can safely forget my laptop on and unplugged for extended periods of time, and the worst that can happen is that I will have to resume it. A huge difference from the nasty surprise of finding it off and losing all the information not saved to disk.</p>
<p>However hibernating to disk is a whole different business. I never managed it to work, and that was an itch I wanted to scratch. Finally I managed, with the following recipe.</p>
<p><b>HowTo</b></p>
<p>First, make sure that you have enough <a href="http://en.wikipedia.org/wiki/paging">swap space</a> available in disk. In Linux you generally create a swap <a href="http://en.wikipedia.org/wiki/disk partitioning">partition</a> when installing the OS. The old adage states that one should make the swap partition <i>twice</i> as big as the RAM memory of the computer. With modern computers this is both unnecessary (because the big RAM makes sure you&#8217;ll never run out of it, and if you do, you are screwed anyway) and wasteful (if you have a 4GB RAM, it means that you dump 8GB of disk space). However, if you intend to hibernate your computer, all the information in the RAM memory has to be copied to the hard disk, so you sure need at least as much swap as RAM (but not twice).</p>
<p>Second, you need to use the correct tool. I use <a href="http://en.wikipedia.org/wiki/Xfce">Xfce</a> as desktop environment under Ubuntu, and the Exit menu presents me with six options: &#8220;Switch user&#8221;, &#8220;Log out&#8221;, &#8220;Restart&#8221;, &#8220;Shut down&#8221;, &#8220;Suspend&#8221; and &#8220;Hibernate&#8221;. I think that the latter two make use of the tools in the <tt>acpi-support</tt> package. The suspend action seems to work OK, but the hibernate one doesn&#8217;t (for me). It runs the command <tt>/etc/acpi/hibernate.sh</tt>, and it gives me problems. Thankfully I found some utilities that work reliably, namely <a href="http://pm-utils.freedesktop.org/wiki/">pm-utils</a>.</p>
<p>The <tt>pm-suspend</tt> command seems to work as correctly as the &#8220;Suspend&#8221; button in the Exit menu of Xfce. The <tt>pm-hibernate</tt>, on the other hand, works perfectly, unlike the &#8220;Hibernate&#8221; button. The drawback is that only root can run it. My solution is to put a launcher button in the Xfce task bar, that will run &#8220;gksudo pm-hibernate&#8221;. This way I am asked for my password and, if sudo is correctly set up, <tt>pm-hibernate</tt> will run.</p>
<p><b>More info</b></p>
<p>Sometimes it is very interesting to run some commands at suspension/hibernation moment, or at resuming/thawing. One such command is <a href="http://en.wikipedia.org/wiki/hdparm">hdparm</a>, with which you can fix the long known <a href="https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695">load/unload cycle problem</a> (you can <a href="http://www.google.com/search?q=ubuntu+load%2Funload+hdparm">google about it</a>). Another one is one to fix a problem that apparently appears on MacBooks: the <a href="http://en.wikipedia.org/wiki/touchpad">touchpad</a> is lost when the computer wakes up back. The keyboard works, and USB mice work, but the touchpad doesn&#8217;t. This problem can be fixed by reloading the <tt>appletouch</tt> <a href="http://en.wikipedia.org/wiki/Loadable kernel module">kernel module</a>:</p>
<div class="codeblock">
# modprobe -r appletouch &#038;&#038; modprobe appletouch
</div>
<p>You can fix both issues above by creating a file named, e.g., <tt>99-macbook_fix</tt>, in <tt>/etc/pm/sleep.d/</tt>, and making it executable. Then write in it the following:</p>
<div class="codeblock">
#!/bin/sh</p>
<p>if [ $1 = 'thaw' ]; then<br />
  # The appletouch module has to be reloaded after hibernating<br />
  # (not after suspending, though), because otherwise the touchpad<br />
  # remains frozen upon awakening.<br />
  modprobe -r appletouch<br />
  modprobe appletouch</p>
<p>  # Correct the load/unload cycles problem<br />
  /sbin/hdparm -B 254 /dev/sda<br />
fi</p>
<p>if [ $i = 'resume' ]; then<br />
  # Correct the load/unload cycles problem<br />
  /sbin/hdparm -B 254 /dev/sda<br />
fi
</p></div>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.11/hibernating-my-macbook-under-ubuntu-intrepid-ibex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.10 Intrepid Ibex is here!</title>
		<link>http://handyfloss.net/2008.10/ubuntu-810-intrepid-ibex-is-here/</link>
		<comments>http://handyfloss.net/2008.10/ubuntu-810-intrepid-ibex-is-here/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 18:26:06 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=506</guid>
		<description><![CDATA[As you can see on the right side tab of this page, Ubuntu 8.10 has just been released! Pick a mirror and download. Or better yet, do it through BitTorrent.]]></description>
			<content:encoded><![CDATA[<p>As you can see on the right side tab of this page, <a href="http://www.ubuntu.com/">Ubuntu 8.10</a> has just been released!</p>
<div align="center">
<img src="http://isilanes.org/pub/blog/pics/countdown_8_10_a_00_days_a_here.png">
</div>
<p>Pick a mirror and <a href="http://www.ubuntu.com/getubuntu/download">download</a>. Or better yet, do it through <a href="http://www.ubuntu.com/getubuntu/downloadmirrors#bt">BitTorrent</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.10/ubuntu-810-intrepid-ibex-is-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Soy un PC y quiero ser libre</title>
		<link>http://handyfloss.net/2008.10/soy-un-pc-y-quiero-ser-libre/</link>
		<comments>http://handyfloss.net/2008.10/soy-un-pc-y-quiero-ser-libre/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 20:05:33 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[es]]></category>
		<category><![CDATA[eu]]></category>
		<category><![CDATA[euskadi]]></category>
		<category><![CDATA[euskaltube]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[ordizia]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=489</guid>
		<description><![CDATA[Leído vía Menéame, un vídeo hecho por alumnos de una escuela de Ordizia, mi pueblo natal:]]></description>
			<content:encoded><![CDATA[<p>Leído vía <a href="http://meneame.net/story/soy-un-pc-y-quiero-ser-libre">Menéame</a>, un vídeo hecho por alumnos de una escuela de Ordizia, mi pueblo natal:</p>
<div align="center">
<embed src="http://www.euskaltube.com/flvplayer.swf" quality="high" width="450" height="367" name="VideoPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="file=http://www.euskaltube.com/uploads/me0FkLdlGRDXegkkntRs.flv&#038;width=450&#038;height=337&#038;displaywidth=450&#038;displayheight=367&#038;overstretch=false&#038;autostart=false&#038;showfsbutton=false&#038;logo=http://www.euskaltube.com/image_s/playerlogo.png&#038;link=http://www.euskaltube.com&#038;linktarget=_blank&#038;backcolor=0xFFFFFF" wmode="transparent" border="0"></embed>
</div>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.10/soy-un-pc-y-quiero-ser-libre/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>LaTeX input in Inkscape 0.46</title>
		<link>http://handyfloss.net/2008.07/latex-input-in-inkscape-046/</link>
		<comments>http://handyfloss.net/2008.07/latex-input-in-inkscape-046/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 13:09:48 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[Free software and related beasts]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=334</guid>
		<description><![CDATA[I use Inkscape to do many of the drawings for my articles and talks, and have come across an irritating problem: I could not include LaTeX formulas on it. I have googled a bit about it, and the first match already led me to a bug report, where a comment by Kees Cook gives a [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://en.wikipedia.org/wiki/Inkscape">Inkscape</a> to do many of the drawings for my articles and talks, and have come across an irritating problem: I could not include <a href="http://en.wikipedia.org/wiki/LaTeX">LaTeX</a> formulas on it. I have <a href="http://www.google.com/search?q=inkscape+0.46+latex+problem">googled a bit about it</a>, and the <a href="https://launchpad.net/bugs/195052">first match</a> already led me to a bug report, where <a href="https://bugs.launchpad.net/inkscape/+bug/195052/comments/20">a comment by Kees Cook</a> gives a fix that I quote below:</p>
<p><code>% cd /usr/share/inkscape/extensions<br />
% curl -s 'http://launchpadlibrarian.net/12978623/eqtexsvg.py.patch' | sudo patch -p0</code></p>
<p>The bug affects (and the patch fixes) Inkscape 0.46 on <a href="http://en.wikipedia.org/wiki/Ubuntu">Ubuntu</a> Hardy Heron and <a href="http://en.wikipedia.org/wiki/Debian">Debian</a> Lenny (that I know of).</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.07/latex-input-in-inkscape-046/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making iSight camera work in Ubuntu</title>
		<link>http://handyfloss.net/2008.07/making-isight-camera-work-in-ubuntu/</link>
		<comments>http://handyfloss.net/2008.07/making-isight-camera-work-in-ubuntu/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 15:59:12 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[64-bits]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=331</guid>
		<description><![CDATA[As I said in a previous post, I bought a MacBook, and I am making all bits work correctly. Out-of-the-box support from Ubuntu (the only GNU/Linux I tried on the MacBook so far) is excellent, but some things (camera, WiFi&#8230;) need proprietary drivers, so some more tweaks are needed. I have followed the instructions in [...]]]></description>
			<content:encoded><![CDATA[<p>As I said in <a href="/2008.06/installing-ubuntu-hardy-heron-on-a-macbook/">a previous post</a>, I bought a <a href="http://en.wikipedia.org/wiki/MacBook">MacBook</a>, and I am making all bits work correctly. Out-of-the-box support from Ubuntu (the only GNU/Linux I tried on the MacBook so far) is excellent, but some things (camera, WiFi&#8230;) need proprietary drivers, so some more tweaks are needed.</p>
<p>I have followed the instructions in the <a href="https://help.ubuntu.com/community/MacBook_Santa_Rosa#Built-in iSight Webcam">Ubuntu community site</a>, as with the procedures detailed in the previous post.</p>
<p>Basically, it all boils down to:</p>
<p><b>Fetch the Apple drivers for the camera</b></p>
<p>As root (if, unlike me, you like <tt>sudo</tt>, then run the following as user, but prepended with sudo), mount the Mac OSX partition (you didn&#8217;t delete it, right?) and copy the relevant file somewhere else (the <tt>cp</tt> command should be all in one line):</p>
<pre>
<code># cd
# mkdir /mnt/macosx
# mount /dev/sda2 /mnt/macosx
# cp /mnt/macosx/System/Library/Extensions/
     IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/
     Contents/MacOS/AppleUSBVideoSupport .
# umount /mnt/macosx</code>
</pre>
<p></p>
<p>You might have noticed that the Mac OSX partition is not <tt>sda1</tt>, but <tt>sda2</tt>. Don&#8217;t ask me. It turns out like this after following my own <a href="/2008.06/installing-ubuntu-hardy-heron-on-a-macbook/">installation instructions</a>. Apple must have decided to install the OS in the second partition for some reason.</p>
<p><b>Install the required packages</b></p>
<p>We need a package called <tt>isight-firmware-tools</tt>. Unfortunately it is not present in the Hardy repos at the moment (it was in the Gutsy ones, I think). You can add a <a href=" https://edge.launchpad.net/~mactel-support/+archive">Launchpad repo</a>, editing <tt>/etc/apt/sources.list</tt> to add:</p>
<pre>
<code>deb http://ppa.launchpad.net/mactel-support/ubuntu hardy main
deb-src http://ppa.launchpad.net/mactel-support/ubuntu hardy main</code>
</pre>
<p></p>
<p>Then, as root:</p>
<pre>
<code># aptitude update
# aptitude install isight-firmware-tools</code>
</pre>
<p></p>
<p>You will be prompted for a path to the driver you copied before. You can press Enter without paying much attention, then execute (assuming you copied the driver to your root home):</p>
<pre>
<code># cd
# ift-extract -a ./AppleUSBVideoSupport</code>
</pre>
<p></p>
<p>To activate the driver, restart <a href="http://en.wikipedia.org/wiki/HAL (software)">HAL</a>:</p>
<pre>
<code># /etc/init.d/hal restart</code>
</pre>
<p></p>
<p><b>Test it with <a href="http://en.wikipedia.org/wiki/Ekiga">Ekiga</a></b></p>
<p>As explained in the <a href="https://help.ubuntu.com/community/MacBook_Santa_Rosa#Ekiga Test">Ubuntu community site</a>, you can run Ekiga as user (after installing the <tt>ekiga</tt> package). Choose V4L2 as video plugin, and <tt>Built-in iSight</tt> should appear among the <tt>Input device</tt> list. If it does, the process worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.07/making-isight-camera-work-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu Hardy Heron on a MacBook</title>
		<link>http://handyfloss.net/2008.06/installing-ubuntu-hardy-heron-on-a-macbook/</link>
		<comments>http://handyfloss.net/2008.06/installing-ubuntu-hardy-heron-on-a-macbook/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 16:49:02 +0000</pubDate>
		<dc:creator>isilanes</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[64-bits]]></category>
		<category><![CDATA[about me]]></category>
		<category><![CDATA[en]]></category>
		<category><![CDATA[FLOSS]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://handyfloss.net/?p=330</guid>
		<description><![CDATA[Yes, dear reader, I committed the heresy of purchasing an Apple MacBook. I obviously didn&#8217;t do it for MacOS X, for which I couldn&#8217;t care less, but for the hardware, which is quite good. I was looking for a laptop as small as possible, keeping price low (it cost 799 eur), and screen not too [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, dear reader, I committed the heresy of purchasing an Apple <a href="http://en.wikipedia.org/wiki/MacBook">MacBook</a>. I obviously didn&#8217;t do it for MacOS X, for which I couldn&#8217;t care less, but for the hardware, which is quite good. I was looking for a laptop as small as possible, keeping price low (it cost 799 eur), and screen not too small (this one has a 13&#8243; one. Maybe even 12&#8243; is acceptable. 13&#8243; sure is).</p>
<p>You can see some pictures of it at my <a href="http://isilanes.org/gallery/v/macbook">MacBook gallery</a>.</p>
<p>If you, like me, are used to PCs, then there are a few things to note:</p>
<ul>
<li>It has a different layout in the keyboard. Most prominently, some keys are missing: Del, PgUp, PgDn, Home, End. Some others (Win key, AltGr) have substitutes that can be mapped. Also the equivalent to AltGr and right Ctrl are kind of swapped: the key closest to the SpaceBar is right &#8220;cmd&#8221; (could be right Ctrl), and the farthest one is left &#8220;alt&#8221; (could be AltGr)</li>
<li>The <a href="http://en.wikipedia.org/wiki/touchpad">touchpad</a> has a single button, and tapping on it won&#8217;t click. There is no zone on it to use as vertical scroll, either. Luckily the latter can be fixed via software, so that in Ubuntu the touchpad does behave correctly: you can tap-click, and you can scroll with a smooth movement of a finger. The single-button issue is not present in USB mice: they work &#8220;normally&#8221;.</li>
</ul>
<p>I would like to outline here the process of installing Ubuntu (Hardy Heron) in this machine. For that, I recommend reading (as I did), the following links:</p>
<ul>
<li><a href="https://help.ubuntu.com/community/MacBook">How to install Ubuntu on a MacBook</a></li>
<li><a href="https://help.ubuntu.com/community/MacBook_Santa_Rosa">Specifics for Santa Rosa MacBooks</a> (mine is a SR).</li>
<li>As usual, google the net for &#8220;Linux on a MacBook&#8221;, and you&#8217;ll find a good list of sites</li>
</ul>
<p><b>Repartition of the hard disk</b></p>
<p>My Mac came with 120 GB (109 real) of HD, all of it devoted to OS X. Unfortunately, the Ubuntu installer can not cope with resizing of <a href="http://en.wikipedia.org/wiki/HFS Plus">HFS+</a> partitions. Fortunately, OS X itself can. You can make use of <a href="http://en.wikipedia.org/wiki/Boot Camp (software)">Boot Camp</a> as follows: go to <i>Go->Utilities->Boot Camp Assistant</i>. There you can (should) reduce the existing HFS+ partition to the bare minimum (in my machine it was 22GB, because OSX already uses 17GB, and it won&#8217;t accept less than 5GB of free disk). Leave the rest unassigned, and quit.</p>
<p><b>Installation of multi-boot system</b></p>
<p>The first hurdle in our Linux installation is that the Mac machines do not have  a &#8220;normal&#8221; <a href="http://en.wikipedia.org/wiki/BIOS">BIOS</a>. The BIOS is important for Linux/Windows installations, so this is a drawback. Macs come with a thingie called <a href="http://en.wikipedia.org/wiki/Extensible Firmware Interface">Extensible Firmware Interface</a> (EFI), instead. However, there is a nice little tool called <a href="http://refit.sourceforge.net/">rEFIt</a> that can help us with it.</p>
<p>To install rEFIt, you can follow the instructions at <a href="http://refit.sourceforge.net/doc/c1s1_install.html">its Sourceforge site</a>. I followed the <i>Automatic Installation with the Installer Package</i> instructions. Basically I downloaded the Mac disk image from <a href="http://refit.sourceforge.net/#download">the download page</a>, opened in the Mac OSX file browser, double-clicked it to open it, then double-clicked on the <tt>rEFIt.mpkg</tt> file inside, and followed the instructions.</p>
<p>This will make the rEFIt menu appear in the next reboot, but only if you hold some key while booting (I think it&#8217;s &#8220;C&#8221;). If you want the menu to always appear, do the following in a terminal, inside Mac OSX:</p>
<p><code>% cd /efi/refit<br />
% ./enable-always.sh</code></p>
<p><b>Installation of Linux OS</b></p>
<p>After doing the above, you should reboot with an Ubuntu installation CD inserted. If the EFI installation was correct, you will be presented with <a href="http://refit.sourceforge.net/screen.html">the rEFIt menu</a>, in which you will have two big icons (OSX and the Linux CD), and five small ones below (&#8220;Start EFI Shell&#8221;, &#8220;Start Partitioning Tool&#8221;, &#8220;About rEFIt&#8221;, &#8220;Shut down computer&#8221; and &#8220;Restart computer&#8221;).</p>
<p>Use the left-rigth arrow keys to select the Ubuntu CD, and press Enter. At that moment, or after installing Ubuntu (I don&#8217;t recall), the computer could complain saying: <i>&#8220;No bootable device &#8212; insert boot disk and press any key&#8221;</i>. If so, reboot and, in the aforementioned rEFIt menu, choose the second small icon, &#8220;Start Partitioning Tool&#8221;. This tool will prompt you to update the <a href="http://en.wikipedia.org/wiki/Master boot record">MBR</a>. Accept, and let it do its magic.</p>
<p>When booting with the CD, you will have the option to make an absolutely normal Ubuntu installation. The <a href="https://help.ubuntu.com/community/MacBook">Ubuntu MacBook page</a> says that Boot Camp will complain if you make more than two partitions in total. It will, but for me this is ridiculous, since OSX is already eating up one. There&#8217;s no way I will install any Linux in a single partition (withouth even swap!). If you do not care about opening Boot Camp ever again (I don&#8217;t), do a totally normal install. I created two 8.5GB partitions for / (one for Ubuntu, another one unused for the future), a 750MB swap partition, and the rest (73GB) as /home (potentially shared among the two Linux I could install).</p>
<p>After the installation, reboot and you will find the aforementioned rEFIt menu. Choosing the penguin icon on the right side will take you to the <a href="http://en.wikipedia.org/wiki/GNU GRUB">GRUB</a> screen you probably are accustomed to. What this means is that you have to go through two boot menus when booting, but that&#8217;s a minor issue, I think. The first menu is an EFI menu, in which you choose OSX or GRUB. The second one is the GRUB menu that lets you choose among different installed kernels.</p>
<p>And I think that&#8217;s it&#8230;</p>
<p>I will keep on writing when I have time, at least about how to make WiFi work, and also how to configure <a href="http://en.wikipedia.org/wiki/Compiz Fusion">Compiz Fusion</a>. Yes, the X3100 graphics chip that the MacBooks carry is blacklisted, as not working with CF. But, believe me, it does work!</p>
]]></content:encoded>
			<wfw:commentRss>http://handyfloss.net/2008.06/installing-ubuntu-hardy-heron-on-a-macbook/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

