<?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>the brook &#187; linux</title>
	<atom:link href="http://yavin4.anshul.info/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://yavin4.anshul.info</link>
	<description></description>
	<lastBuildDate>Thu, 18 Feb 2010 19:56:07 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Don&#8217;t lower your standards</title>
		<link>http://yavin4.anshul.info/2008/01/03/dont-lower-your-standards/</link>
		<comments>http://yavin4.anshul.info/2008/01/03/dont-lower-your-standards/#comments</comments>
		<pubDate>Thu, 03 Jan 2008 01:40:11 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[law]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2008/01/03/dont-lower-your-standards/</guid>
		<description><![CDATA[It was disheartening to read of two girls being molested in Bombay on new year&#8217;s day. Far more shocking was to hear that the Police Commissioner of Mumbai was dismissive in his reaction and asked the media &#8220;not to blow this out of proportion&#8221;, because such things &#8220;can happen anywhere.&#8221;
There are just so many things [...]]]></description>
			<content:encoded><![CDATA[<p>It was disheartening to read of two girls being molested in Bombay on new year&#8217;s day. Far more shocking was to hear that the Police Commissioner of Mumbai was <a href="http://www.hindustantimes.com/StoryPage/FullcoverageStoryPage.aspx?id=711b19d9-fc41-4c0e-88eb-5c48cb66230bMumbaimolestation_Special&#038;MatchID1=4626&#038;TeamID1=1&#038;TeamID2=6&#038;MatchType1=1&#038;SeriesID1=1165&#038;MatchID2=4618&#038;TeamID3=3&#038;TeamID4=4&#038;MatchType2=1&#038;SeriesID2=1163&#038;PrimaryID=4626&#038;Headline=Mumbai+outrage+a+%e2%80%98little+thing%e2%80%99+for+the+top+cop">dismissive in his reaction</a> and asked the media &#8220;not to blow this out of proportion&#8221;, because such things &#8220;can happen anywhere.&#8221;</p>
<p>There are just so many things wrong with this.</p>
<p>It is downright cowardice to imply that if we somehow lack the resources or motivation to fight crime, we should instead accept it. Especially a crime as degrading, as humiliating as sexual harassment &#8211; humiliating not only to the criminals but to the society at large &#8211; not long ago, Mumbai used to pride itself on being a &#8220;safe&#8221; city, one in which a lady could walk alone at night unafraid. And now, even if a couple of girls are walking in the company of men they know, they still aren&#8217;t safe. As a democratic society, we have laws against such behavior, and if the police aren&#8217;t competent enough to fight it, they just need to be better.</p>
<p>Actually, this wasn&#8217;t blown out of proportion enough. The reason this became visible was that media men happened to be at the scene and recorded the proceedings. I wonder how many other cases of harassment or molestation, or worse, happened that night that went by unnoticed because the victims were too scared, too uninfluential, or just too ignorant to report what happened. It&#8217;s not like we do not know that this is a problem &#8211; we just like to cover it up.</p>
<p>It&#8217;s hypocritical to say that this happens everywhere, so lets just put up with it. The Mumbai police are so proud of their offensive against drug abuse that these days they put up neon signs on intersections congratulating themselves for jailing X number of drug users. How come they could find the resources to fight drugs but somehow can&#8217;t find resources or even the will to start a fight against harassment? Behind drugs are the most powerful resources that organized crime has at its disposal, because drugs earn them money. Comparatively, street harassment ought to be much easier to combat.</p>
<p>Finally, is it that hard to take a stand and say <strong>&#8220;No, we do not accept this&#8221;</strong>? If so, that means we&#8217;ve just given up, or worse, sided with the perpetrators. That does nothing but encourage these people to behave in this way. That such a despicable act occurred in Mumbai is partly due to the &#8220;look-the-other-way&#8221; silence of a society that somehow condones such crimes. Is it surprising that the villians feel increasingly free to encroach upon their victims until their ethics and morals start to define of our society? We don&#8217;t want to let this continue, and part of that process is awareness, part of that process is to face that this indeed is a social disease that we&#8217;ve failed to cure.</p>
<p>We either work towards awareness and a cure, or the crimes get worse; and history holds our entire society responsible.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2008/01/03/dont-lower-your-standards/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pidgin 2.1 on Fedora 7</title>
		<link>http://yavin4.anshul.info/2007/08/08/pidgin-21-on-fedora-7/</link>
		<comments>http://yavin4.anshul.info/2007/08/08/pidgin-21-on-fedora-7/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 06:14:50 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2007/08/08/pidgin-21-on-fedora-7/</guid>
		<description><![CDATA[Yum just updated pidgin to version 2.1, but I got the following error.
$ pidgin
libnm_glib_nm_state_cb: dbus returned an error.
  (org.freedesktop.DBus.Error.ServiceUnknown) The name org.freedesktop.NetworkManager was not provided by any .service files
pidgin: symbol lookup error: pidgin: undefined symbol: purple_core_ensure_single_instance
Turns out pidgin 2.1 has a dependency on libpurple 2.1 which somehow got past the package managers. Works fine [...]]]></description>
			<content:encoded><![CDATA[<p>Yum just updated pidgin to version 2.1, but I got the following error.</p>
<p><code>$ pidgin<br />
libnm_glib_nm_state_cb: dbus returned an error.<br />
  (org.freedesktop.DBus.Error.ServiceUnknown) The name org.freedesktop.NetworkManager was not provided by any .service files<br />
pidgin: symbol lookup error: pidgin: undefined symbol: purple_core_ensure_single_instance</code></p>
<p>Turns out pidgin 2.1 has a dependency on libpurple 2.1 which somehow got past the package managers. Works fine after doing &#8220;yum update libpurple&#8221;.</p>
<p>(<a href="http://www.nabble.com/Fedora-7-Test-Update:-pidgin-2.1.0-1.fc7-t4210284.html">via</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2007/08/08/pidgin-21-on-fedora-7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Dell and the time of the Linux desktop</title>
		<link>http://yavin4.anshul.info/2007/05/03/dell-and-the-time-of-the-linux-desktop/</link>
		<comments>http://yavin4.anshul.info/2007/05/03/dell-and-the-time-of-the-linux-desktop/#comments</comments>
		<pubDate>Thu, 03 May 2007 01:15:27 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2007/05/03/dell-and-the-time-of-the-linux-desktop/</guid>
		<description><![CDATA[So, Dell is finally going to be offering computers with Ubuntu Linux preinstalled, and there are rumours that HP, Lenovo, Toshiba et. al. will follow suit. And of course, the Linux world is in celebration and is saying, &#8220;The Linux Desktop is for real. Linux has proven that it can compete in the same league [...]]]></description>
			<content:encoded><![CDATA[<p>So, Dell is finally going to be offering computers with <a href="http://www.desktoplinux.com/news/NS8661763902.html">Ubuntu Linux preinstalled</a>, and there are rumours that HP, Lenovo, Toshiba et. al. will follow suit. And of course, the Linux world is in celebration and is saying, &#8220;The Linux Desktop is for real. Linux has proven that it can compete in the same league with Mac OS and Windows.&#8221; (<a href="http://www.desktoplinux.com/news/NS7546369370.html">via</a>)</p>
<p>I don&#8217;t think that statement really reflects the ground truth. In one sense, the Linux desktop was &#8220;ready&#8221; to compete with Windows etc. quite a while ago (I&#8217;ve been using Linux on my main system for at least four years now). It&#8217;s much easier to get up to speed on Linux now than a decade ago, and the average person (with zero Linux experience) can manage to install and even use it for most tasks if they break their heads on it for a while. On the other hand, Linux still isn&#8217;t yet ready to be distributed to the masses, or &#8220;grandma-ready&#8221; as people like to call it. Extremetech <a href="http://www.extremetech.com/article2/0,1697,2124099,00.asp">reviewed Feisty Fawn</a> and found that a lot of things like DVD playback etc. were still lacking. I&#8217;m willing to bet that in the next couple of years grandparents and housewives are far from likely to be the main customers of Dell&#8217;s Linux offerings.</p>
<p>What has actually happened, is that Linux geeks have become a market force to reckon with. There are far more casual hackers, computer science graduates, OS adventure-seekers and serious Linux workers in the world today than a few years ago. Dell has realized (and others soon will) that it&#8217;s a very competitive market these days and selling hardware to Linux geeks can actually make a difference to the bottom line &#8211; profit. And that&#8217;s why they&#8217;re taking the Linux plunge. Because one of the most popular questions on laptop and Linux forums is &#8220;which hardware does Linux run best on?&#8221; Not because Linux has crossed some threshold at this point of time that makes it suitable for the masses.</p>
<p>This is good news, of course. Once someone as big as Dell realizes this, it will (hopefully) hit hardware manufacturers and software developers sooner and make one of the biggest headaches of Linux disappear &#8211; lack of hardware (driver) and software support from companies.</p>
<p>Will Linux ever truly be ready for the masses &#8211; and become something of an OS X? Eventually, yes. Someone will realize that it&#8217;s actually quite simple to have Linux running all the users want to run (as long as you ignore the everything-must-be-free-as-in-speech mantra), and then actually do it, and then actually market it to the masses as such. Maybe it&#8217;ll be Canonical with Ubuntu, maybe it&#8217;ll be Linspire, maybe Xandros or maybe Novell. I think it will still take a few years before Linux becomes mainstream though.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2007/05/03/dell-and-the-time-of-the-linux-desktop/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compiling subversion on x86_64</title>
		<link>http://yavin4.anshul.info/2007/02/05/compiling-subversion-on-x86_64/</link>
		<comments>http://yavin4.anshul.info/2007/02/05/compiling-subversion-on-x86_64/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 13:27:53 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2007/02/05/compiling-subversion-on-x86_64/</guid>
		<description><![CDATA[I think if there&#8217;s a technology equivalent of the poverty line, it should be having to live without subversion. Yet when I logged into a compute node assigned to us since we started clamouring for clock cycles, the first thing I see is: &#8220;bash: svn: command not found&#8221;. Ouch. What did I do to deserve [...]]]></description>
			<content:encoded><![CDATA[<p>I think if there&#8217;s a technology equivalent of the poverty line, it should be having to live without subversion. Yet when I logged into a compute node assigned to us since we started clamouring for clock cycles, the first thing I see is: &#8220;bash: svn: command not found&#8221;. Ouch. What did I do to deserve this?</p>
<p>Anyway compiling svn on this machine was a bit of a chore, so I&#8217;m just writing it down for reference. The normal way to compile is to get the subversion-1.x.x and subversion-deps-1.x.x files, untar/gunzip them (they extract into the same subversion-1.x.x directory), run autogen.sh, run ./configure, make and make install. I got caught while running make due to one of the dependencies and the error was:</p>
<p><code>.../neon/src/.libs/libneon.a(ne_request.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC</code></p>
<p>I found the solution in the comments of <a href="http://blog.matharvard.com/2006/11/16/installing-subversion">this blog post</a>. The subversion-deps archive extracts a subdir called &#8220;neon&#8221; into the subversion source folder. The workaround is to go into the neon subdir, run ./configure &#8211;enable-shared &#038;&#038; make &#038;&#038; make install (i also used &#8211;prefix=$HOME/usr for both this and the top-level ./configure). Once this is done, go back to the top-level source directory, run autogen.sh, ./configure, make and make install as usual and it should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2007/02/05/compiling-subversion-on-x86_64/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>A million distros? Bring &#8216;em on</title>
		<link>http://yavin4.anshul.info/2007/01/18/a-million-distros-bring-em-on/</link>
		<comments>http://yavin4.anshul.info/2007/01/18/a-million-distros-bring-em-on/#comments</comments>
		<pubDate>Wed, 17 Jan 2007 18:07:34 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2007/01/18/a-million-distros-bring-em-on/</guid>
		<description><![CDATA[Reproducing here my rather longish comment on this rant on LinuxDevCenter about there being so many Linux distributions.
I think you ignore the benefits of having the thousand and one linux distros around.
First, all of these distros are in the end attempts to do something _different_. Puppy Linux was one of the first ones to run [...]]]></description>
			<content:encoded><![CDATA[<p>Reproducing here my rather longish comment on <a href="http://www.oreillynet.com/linux/blog/2007/01/so_many_distros_so_little_time.html">this rant</a> on LinuxDevCenter about there being so many Linux distributions.</p>
<p><em>I think you ignore the benefits of having the thousand and one linux distros around.</p>
<p>First, all of these distros are in the end attempts to do something _different_. Puppy Linux was one of the first ones to run completely from RAM, and for that reason it was blazingly fast. Try asking a Fedora or an OpenSUSE admin to include something like that. The mainstream distros are also slow on the uptake for a lot of new software &#8211; FC6 still doesn&#8217;t have Firefox 2.0 for example &#8211; and so there is choice for the users, which directly contributes to lack of frustration.</p>
<p>Second, a number of distributions are created and meant only for targeted and small groups of people, for example, programmers in Bioinformatics. There is great benefit in that, because a relatively new user to Linux can simply be told to install this; and his/her required software will run straight off it. Another classic example is Knopmyth for running a media-center out of a live CD.</p>
<p>Third, and somewhat related to the second, is that the burgeoning numbers of distros are directly indicative of choice and freedom of Linux. I have yet to meet someone who comes over to Linux because it looks good or even because it never crashes &#8211; a Windows hater can easily go to Mac OS X. What Mac OS X lacks, however, is complete freedom &#8211; what drivers you use, basic system principles (try putting your Users (/home) into another partition on OS X and you&#8217;ll find its quite tough &#8211; and may break with an OS update). People come to Linux in the long term because of software freedom &#8211; and nothing says freedom like &#8220;whatever you want to do &#8211; there&#8217;s probably a distro that does it&#8221;.</p>
<p>Fourth, and probably the most important &#8211; don&#8217;t you see that these distros mean there is so much of effort in the community to develop Linux? It&#8217;s infinitely easier to just join a project than start your own, yet people do it &#8211; which means Linux development is in good shape for the years to come. If only a few major distros &#8211; those supported by companies &#8211; are left at some point, I&#8217;ll seriously start to doubt the community&#8217;s interest and/or capability of maintaining Linux anymore.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2007/01/18/a-million-distros-bring-em-on/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Easy screenshots with the keyboard in Linux</title>
		<link>http://yavin4.anshul.info/2006/10/25/easy-screenshots-with-the-keyboard-in-linux/</link>
		<comments>http://yavin4.anshul.info/2006/10/25/easy-screenshots-with-the-keyboard-in-linux/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 18:32:28 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2006/10/25/easy-screenshots-with-the-keyboard-in-linux/</guid>
		<description><![CDATA[There was an article today at Linux.com that reviews various screenshot programs available for Linux. What it doesn&#8217;t tell you, is how to take screenshots painlessly in Linux. Let me try and do that. Since I use a Mac, I&#8217;m quite used to the Mac OS X way &#8211; Command+Shift+3 takes a full screenshots and [...]]]></description>
			<content:encoded><![CDATA[<p>There was an <a href="http://www.linux.com/article.pl?sid=06/10/12/1843204">article</a> today at Linux.com that reviews various screenshot programs available for Linux. What it doesn&#8217;t tell you, is how to take screenshots painlessly in Linux. Let me try and do that. Since I use a Mac, I&#8217;m quite used to the Mac OS X way &#8211; Command+Shift+3 takes a full screenshots and leaves a PNG file on your desktop, and Command+Shift+4 allows you to select a region for a screenshot.</p>
<p>Duplicating that in Linux is quite simple. First, you need <a href="http://linuxbrit.co.uk/scrot/">scrot</a>, a command-line program mentioned in the article linked above. Fedora users can get it through yum (yum install scrot). Otherwise you&#8217;ll need to download and compile it.</p>
<p>Next, we need to setup the keyboard shortcuts. I&#8217;ll describe this for KDE, but I&#8217;m sure there&#8217;s an equivalent way to do this in GNOME. In KDE (3.5) go to Control Center -&gt; Regional &#038; Accessibility -&gt; Input actions. Create a new action of type &#8220;Keyboard Shortcut -&gt; Command/URL (simple)&#8221;. I setup Ctrl+Shift+3 to the command <code>scrot ~/Desktop/scr`date +%d%b%y_%H%M%S`.png</code> and Ctrl+Shift+4 to the command <code>scrot -s ~/Desktop/scr`date +%d%b%y_%H%M%S`.png</code>. See the screenshot below (click for larger image).</p>
<p><a href="http://yavin4.anshul.info/wp-content/uploads/2006/10/scr25Oct06_021545.png"><br />
<img id="image213" src="http://yavin4.anshul.info/wp-content/uploads/2006/10/scr25Oct06_021545.png" alt="Screenshots in KDE" width="500" /></a></p>
<p>Now, pressing Ctrl+Shift+3 puts a full screenshot on your desktop, and pressing Ctrl+Shift+4 allows you to either select a window (single click in a window) or select a region of the screen (click and drag rectangle) and the appropriate capture will be placed on the desktop. The files are dated and timed, so they should be easy to find.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2006/10/25/easy-screenshots-with-the-keyboard-in-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fedora Core 6 is out!</title>
		<link>http://yavin4.anshul.info/2006/10/24/fedora-core-6-is-out/</link>
		<comments>http://yavin4.anshul.info/2006/10/24/fedora-core-6-is-out/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 14:17:04 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2006/10/24/fedora-core-6-is-out/</guid>
		<description><![CDATA[Torrents here.
]]></description>
			<content:encoded><![CDATA[<p>Torrents <a href="http://torrent.fedoraproject.org/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2006/10/24/fedora-core-6-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing checkgmail in Fedora Core 5/6</title>
		<link>http://yavin4.anshul.info/2006/09/19/installing-checkgmail-in-fedora-core-5/</link>
		<comments>http://yavin4.anshul.info/2006/09/19/installing-checkgmail-in-fedora-core-5/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 22:09:17 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2006/09/19/installing-checkgmail-in-fedora-core-5/</guid>
		<description><![CDATA[I&#8217;ve really come to love checkgmail, a perl-based tray application that allows you to monitor and manipulate your gmail account. The killer feature is that the notification window gives you options to delete a message, mark it as read or report it as spam. Very, very useful and fast for messages that you don&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve really come to love <a href="http://checkgmail.sourceforge.net/">checkgmail</a>, a perl-based tray application that allows you to monitor and manipulate your gmail account. The killer feature is that the notification window gives you options to delete a message, mark it as read or report it as spam. Very, very useful and fast for messages that you don&#8217;t want to waste time opening a browser window for.</p>
<p><img id="image167" src="http://yavin4.anshul.info/wp-content/uploads/2006/07/checkgmail.png" alt="checkgmail.png" /></p>
<p>Anyway, it has a number of dependencies and since it&#8217;s not made into the fedora repos yet (I hope it will, soon!) here&#8217;s the easy way to install it.</p>
<ol>
<li><code>yum install perl-Crypt-Blowfish perl-FreezeThaw perl-Crypt-SSLeay perl-XML-Simple perl-Gtk2 perl-Gtk2-TrayIcon </code> (these are obtainable from the preinstalled Fedora repos &#8211; core, updates and extras)</li>
<li><code>yum update perl glib* perl-Glib</code> (Older versions of glib give problems)</li>
<li>If you have the <a href="http://dries.studentenweb.org/rpm/">dries repository</a> added to yum, just do <code>yum install perl-Crypt-Simple</code>. If not, get the rpm from <a href="http://dries.studentenweb.org/apt/packages/perl-Crypt-Simple/info.html">here</a>. Install it using <code> rpm -ivh perl-Crypt-Simple*</code></li>
<li>Get the <a href="http://prdownloads.sourceforge.net/checkgmail/checkgmail-1.10-1.noarch.rpm?download">checkgmail fedora rpm</a> and install: <code>rpm -ivh checkgmail*</code></li>
</ol>
<p>[ <strong>Update for Fedora Core 6</strong> ] Step 2 is not needed. In step 3, download the perl-Crypt-Simple fc6 rpm. The rest is the same.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2006/09/19/installing-checkgmail-in-fedora-core-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora Core 5 on Apple Powerbook G4</title>
		<link>http://yavin4.anshul.info/2006/09/19/fedora-core-5-on-apple-powerbook-g4/</link>
		<comments>http://yavin4.anshul.info/2006/09/19/fedora-core-5-on-apple-powerbook-g4/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 21:52:21 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2006/09/19/fedora-core-5-on-apple-powerbook-g4/</guid>
		<description><![CDATA[So, I decided to install Linux on my Powerbook G4 12&#8243;. Why? (Feel free to skip to the real install notes while I rant!)
Recently, I&#8217;ve become slightly bored, slightly bugged with OS X. Nothing much wrong with OS X, just that I tend to do most of my work on Linux, and switching context back [...]]]></description>
			<content:encoded><![CDATA[<p>So, I decided to install Linux on my Powerbook G4 12&#8243;. Why? (Feel free to skip to the real install notes while I rant!)</p>
<p>Recently, I&#8217;ve become slightly bored, slightly bugged with OS X. Nothing much wrong with OS X, just that I tend to do most of my work on Linux, and switching context back to the Mac takes brain cycles. Even though nearly everything works the same, there are minor, but painful differences. How you copy and paste text to and from Terminal / iTerm, gVim behavior, virtual desktop switching &#8211; minor things but very irritating and distracting at times. There are three main computers I use &#8211; my desktops at home and lab and my Powerbook and finally, all three run Fedora.</p>
<p>I&#8217;ve got the linux-ppc urge for quite some while now, I guess the last straw was the Apple battery recall fiasco, my Powerbook, after nearly a month of turning in the battery is still battery-less and therefore nearly use-less. So I didn&#8217;t have much to lose by experimenting. And I came across <a href="http://www.viraj.org/b2evolution/blogs/index.php/2006/08/20/ubuntu_on_my_powerbook">this post</a> after which I decided to take the plunge.</p>
<p><strong>PPC is not x86</strong></p>
<p>Just in case you&#8217;re planning to try this out on your G4/G5 based Mac &#8211; these computers have a different architecture called powerpc or ppc, and aren&#8217;t as well-supported for Linux as the x86 architectures of AMD or Intel processors.</p>
<p><strong>Ubuntu vs. Fedora</strong></p>
<p>There are a number of resources online for installing Ubuntu on ppc architectures, but relatively few for Fedora. I was initially tempted to go for Ubuntu because of this but I really prefer Fedora. No harm in trying (we Linux folks are supposed to do that aren&#8217;t we?) and I could always reinstall Ubuntu if Fedora didn&#8217;t work out. Like I said, my Powerbook without a battery was just a toy to play with.</p>
<p><strong>Partitions</strong></p>
<p>My original configuration was a single partition containing my entire Mac OS X partition. I wanted to make a dual-boot system (didn&#8217;t know how well Linux would work out and OS X is useful for PowerPoint). There are a number of paid utilities and some free/shareware ones to resize an existing hard drive but I didn&#8217;t find anything that I could trust. I figured after more than 18 months my Powerbook could use a OS X reinstall anyway, and so I backed up my data and reinstalled Mac OS X, leaving about 15 GB in free space on my disk for Linux.</p>
<p><strong>Installation</strong></p>
<p>I burned myself a FC5 ppc DVD and set to work. To boot from CD, you need to restart your mac and hold the &#8216;C&#8217; key while starting up. First hitch: touchpad didn&#8217;t work in the graphical installer for some reason (it started working just fine after installation &#8211; on it&#8217;s own). I plugged in a USB mouse which worked fine. For partitioning, I chose to manually partition. The first thing you need to create for a Powerbook is an Apple bootstrap partition, of size exactly 1 MB (any larger and the installer will complain). Following this, you can create the usual partitions &#8211; I created swap, root and home partitions. The rest of the partition went smoothly. I foolishly unchecked the eth0 wired-LAN connection that FC5 detected (don&#8217;t do this). On my Powerbook, the system clock is set to UTC and timezone is offset, so I checked that.</p>
<p><strong>Wired Networking</strong></p>
<p>Wired LAN is detected in Fedora by default. I had mistakenly unchecked the device during install, I got it back running the <code>neat</code> command. Then, I plugged in an ethernet cable and did an <code>ifup eth0</code> to breathe the fresh air of the Net.</p>
<p><strong>Wireless</strong></p>
<p>The good news is &#8211; Airport Extreme does work &#8211; relatively painlessly. What you need to do:</p>
<ol>
<li>Update your kernel to 2.6.17 or later: <code>yum update kernel</code></li>
<li>Do <code>yum install bcm43xx-fwcutter</code> (firmware cutter &#8211; does some stuff to the wireless card firmware)</li>
<li>Download firmware: <code>wget http://drinus.net/airport/wl_apsta.o</code></li>
<li>Run: <code>bcm43xx-fwcutter -w /lib/firmware wl_apsta.o</code></li>
<li>Run: <code>modprobe bcm43xx</code></li>
<li>Run: <code>cp /usr/share/doc/bcm43xx-fw-cutter-004/modprobe.bcm43xx /etc/modprobe.d/</code></li>
<li>Run: <code>system-config-network</code>, click on add device, and choose the Broadcom Wireless LAN device and your desired settings, and activate.</li>
</ol>
<p>And wireless works!</p>
<p><strong>Sound</strong></p>
<p>Fedora detected the sound card. To get it working though I had to load the snd-powermac module by running: <code>modprobe snd-powermac</code> every startup. And somehow, putting this in modprobe.conf etc. did not work. Finally what worked was adding <code>/sbin/modprobe snd_powermac</code> to the file /etc/sysconfig/modules/udev-stw.modules. Note the underscore in the latter addition as opposed to the hyphen that I was using earlier. I don&#8217;t really understand this, and for another guy I spoke to at #fedora-ppc the hyphen was what worked. Anyway, this got the sound module auto-loaded at startup.</p>
<p>One more thing &#8211; sound is muted by default. I needed to run alsamixer at the prompt and &#8220;mute&#8221; a volume bar called &#8220;auto-mute&#8221; (don&#8217;t ask me) before sound would work. Also, the volume control is strange, it needs to be set to at least 75% for me to hear anything.</p>
<p><strong>Touchpad</strong></p>
<p>The touchpad, while not detected during the installer, works fine once you reboot after installation. However, the standard touchpad leaves a lot to be desired, especially since the Powerbook has only one click button. Fortunately, the synaptics driver can be used to give good touchpad functionality quite easily. The synaptics driver was included with my FC5 install, if not you can get it by <code>yum install synaptics</code>. Now edit the file /etc/X11/xorg.conf. Insert the following in the &#8220;ServerLayout&#8221; section:</p>
<p><code>Section "ServerLayout"<br />
...<br />
InputDevice    "TouchPad"<br />
...<br />
EndSection</code></p>
<p>And then add the following lines somewhere in the file:</p>
<p><code>Section "InputDevice"<br />
	Identifier	"TouchPad"<br />
	Driver		"synaptics"<br />
	Option		"SendCoreEvents"	"true"<br />
	Option		"Device"		"/dev/input/mice"<br />
	Option		"Protocol"		"auto-dev"<br />
	Option		"LeftEdge"		"0"<br />
	Option		"RightEdge"		"850"<br />
	Option		"TopEdge"		"0"<br />
	Option		"BottomEdge"		"645"<br />
	Option		"MinSpeed"		"0.4"<br />
	Option		"MaxSpeed"		"1.5"<br />
	Option		"AccelFactor"		"0.05"<br />
	Option		"FingerLow"		"55"<br />
	Option		"FingerHigh"		"60"<br />
	Option		"HorizScrollDelta"	"0"<br />
	Option		"VertScrollDelta"	"30"<br />
	Option		"UseShm"		"true"<br />
	Option		"SHMConfig"		"on"<br />
EndSection</code></p>
<p>This gives you the ability to scroll vertically using the right side of the touchpad, middle click by tapping two fingers on the touchpad, and right click by tapping three fingers on the touchpad. The values for MinSpeed, MaxSpeed and AccelFactor are what I am comfortable with, and you may want to experiment. I made a couple of modifications to this &#8211; the Apple touchpad single-click is too sensitive for me and I end up inadvertently clicking a lot of times, so I disabled the single click tap (single click is only by pressing the button below the touchpad). Also, I find it more convenient to right click using two fingers. These modifications can be made by inserting the following lines into the code above:</p>
<p><code>	Option		"TapButton2"		"3"<br />
	Option		"TapButton3"		"2"<br />
	Option		"MaxTapMove"		"0"</code></p>
<p><strong>Java</strong></p>
<p>Sun doesn&#8217;t have a release of Java for PPC. gij (gcc-java) is hopeless for GUIs. Fortunately, IBM has released a Java 5 SDK for PPC <a href="http://www-128.ibm.com/developerworks/java/jdk/linux/download.html">here</a>. You want the 32-bit iSeries/pSeries file. Once you have it, simply unpack it and put it somewhere appropriate, like /usr/java. To install the Java plugin for Firefox, simply go to /usr/lib/firefox-1.5.x.x (depending on your firefox version) and make a symbolic link: <code>ln -s /usr/java/jre/bin/libjavaplugin_oji.so</code></p>
<p>So far this version of Java has been quite stable, running fine on my internet banking site and running applications such as <a href="http://jabref.sourceforge.net/">JabRef</a>.</p>
<p><strong>Suspend</strong></p>
<p>After doing <code>yum install apmud</code> closing the lid suspends to RAM. However, this doesn&#8217;t work in KDE for me (yet).</p>
<p><strong>Mounting the OS X partition</strong></p>
<p>Just make sure you have hfsutils installed and it&#8217;s as simple as mount -t hfsplus /dev/hda3 /mnt/macosx</p>
<p><strong>Flash doth not work</strong></p>
<p>The ways around this are obscure and IMHO not worth exploring. You can run the normal flash player in some emulation environment called qemu, though apparently only Gentoo users have been able to do this. You can try OSS implementations of flash like <a href="http://www.gnu.org/software/gnash/">gnash</a>. Let me know how you fare :)</p>
<p><strong>Yet to try</strong></p>
<p>External monitor support, remapping F1-F5 keys, hibernate. I&#8217;ll update this post if I try out any of these. If you&#8217;ve had experience with these, do leave a comment.</p>
<p>The bottom line is that I&#8217;m quite impressed. I expected to face a lot more problems getting a workable system on linux-ppc. I have a system now that I can fully work on (except for MATLAB, which doesn&#8217;t support linux-ppc platform).</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2006/09/19/fedora-core-5-on-apple-powerbook-g4/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>New Toy &#8211; iRiver H10 Jr</title>
		<link>http://yavin4.anshul.info/2006/09/04/new-toy-iriver-h10-jr/</link>
		<comments>http://yavin4.anshul.info/2006/09/04/new-toy-iriver-h10-jr/#comments</comments>
		<pubDate>Sun, 03 Sep 2006 18:14:37 +0000</pubDate>
		<dc:creator>Anshul</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://yavin4.anshul.info/2006/09/04/new-toy-iriver-h10-jr/</guid>
		<description><![CDATA[
Couldn&#8217;t come back empty-handed from COMEX now, could I?
I&#8217;ve recently started listening to podcasts and audiobooks along with music &#8211; which means a player with no screen and playlist options (like my old Shuffle) was becoming a pain. I had to either exclusively put one type of content, or blindly search around to find what [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/anshul/232895886/" title="Photo Sharing"><img src="http://static.flickr.com/97/232895886_77ff5574f8_m.jpg" width="162" height="240" alt="New Toy" /></a></p>
<p>Couldn&#8217;t come back empty-handed from COMEX now, could I?</p>
<p>I&#8217;ve recently started listening to podcasts and audiobooks along with music &#8211; which means a player with no screen and playlist options (like my old Shuffle) was becoming a pain. I had to either exclusively put one type of content, or blindly search around to find what I needed to hear.</p>
<p>So I ended up getting this little beauty which has all that I need, and more. I did consider the iPod nano and the Zen V Plus from Creative. The latter was out of stock at Creative, and I had no inkling of Linux support. The Nano has just too few features (or rather you purchase most of the features &#8211; like the Apple Remote w/ radio separately).</p>
<p>This thing does radio, voice recording, text reading, photo display and actually plays OGG files, a huge plus for me. The interface and looks are quite decent, and the thing is actually pretty small in size (<a href="http://www.flickr.com/photos/anshul/232896467/">see here</a>). Sounds phenomenal, as good or better than the Shuffle.</p>
<p>The Linux story goes like this. The thing mounts as a USB Mass Storage device, and it has directories for Music, Pictures, Text etc. You put music files in the music directory. The interface has a &#8220;browser&#8221; mode in which you can simply go to any folder and load the file that you want. However, to get support for the standard Artist/Album/Genre interface on the Music menu, you need to generate a database in the System folder. Some nice folks have written a <a href="http://pmplib.sourceforge.net/index.html">nice program that does this</a>. Pretty cool.</p>
]]></content:encoded>
			<wfw:commentRss>http://yavin4.anshul.info/2006/09/04/new-toy-iriver-h10-jr/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
