<?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>Intrepid Blog &#187; linux</title>
	<atom:link href="http://blog.affien.com/archives/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com</link>
	<description>A few thoughts</description>
	<lastBuildDate>Mon, 01 Mar 2010 00:58:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Interrupting a select without a timeout</title>
		<link>http://blog.affien.com/archives/2008/03/11/interrupting-a-select-without-a-timeout/</link>
		<comments>http://blog.affien.com/archives/2008/03/11/interrupting-a-select-without-a-timeout/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 22:24:30 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[select]]></category>
		<category><![CDATA[socketpair]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2008/03/11/interrupting-a-select-without-a-timeout/</guid>
		<description><![CDATA[select is a POSIX syscall which allows you to wait on several different filedescriptors (including sockets) for the event that they won&#8217;t block on write; won&#8217;t block or read or are in error.  This syscall is very convenient when you&#8217;re writing a server.
When I want to shutdown an instance of the server, I have [...]]]></description>
			<content:encoded><![CDATA[<p><code>select</code> is a POSIX syscall which allows you to wait on several different filedescriptors (including sockets) for the event that they won&#8217;t block on write; won&#8217;t block or read or are in error.  This syscall is very convenient when you&#8217;re writing a server.</p>
<p>When I want to shutdown an instance of the server, I have to interrupt the <code>select</code>.  I have yet to find a satisfying way of doing this.  At the moment I create a pair of linked sockets with <code>socketpair</code>.  I include one of them to the sockets on which to block until there is data to read in the <code>select</code> call.  To interrupt, I simply write some data to the other socket which will cause data to be available on the socket which in turn will interrupt the <code>select</code>.</p>
<p>There must be a more elegant solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2008/03/11/interrupting-a-select-without-a-timeout/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Java crashing on xcb_xlib_unlock.</title>
		<link>http://blog.affien.com/archives/2007/12/17/java-crashing-on-xcb_xlib_unlock/</link>
		<comments>http://blog.affien.com/archives/2007/12/17/java-crashing-on-xcb_xlib_unlock/#comments</comments>
		<pubDate>Mon, 17 Dec 2007 22:34:31 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[xcb]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/12/17/java-crashing-on-xcb_xlib_unlock/</guid>
		<description><![CDATA[When Java applications crash on linux with xcb_xlib_unlock: Assertion `c->xlib.lock' failed you should upgrade to libxcb-1.1 and add LIBXCB_ALLOW_SLOPPY_LOCK=1 to the environment.
]]></description>
			<content:encoded><![CDATA[<p>When Java applications crash on linux with <code>xcb_xlib_unlock: Assertion `c->xlib.lock' failed</code> you should upgrade to <code>libxcb-1.1</code> and add <code>LIBXCB_ALLOW_SLOPPY_LOCK=1</code> to the environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/12/17/java-crashing-on-xcb_xlib_unlock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xgl with RandR 1.3 and Ati</title>
		<link>http://blog.affien.com/archives/2007/06/25/xgl-with-randr-13-and-ati/</link>
		<comments>http://blog.affien.com/archives/2007/06/25/xgl-with-randr-13-and-ati/#comments</comments>
		<pubDate>Mon, 25 Jun 2007 09:18:26 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[randr]]></category>
		<category><![CDATA[xgl]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/06/25/xgl-with-randr-13-and-ati/</guid>
		<description><![CDATA[You have to add Option "DesktopSetup" "single" to your ati&#8217;s Device section in xorg.conf otherwise Xgl will think you&#8217;ve got two screens if you&#8217;ve got two adapters even if you just use one (which is the case with my Thinkpad) and will miserably fail on the second unattached screen.
]]></description>
			<content:encoded><![CDATA[<p>You have to add <code>Option "DesktopSetup" "single"</code> to your ati&#8217;s <code>Device</code> section in <code>xorg.conf</code> otherwise Xgl will think you&#8217;ve got two screens if you&#8217;ve got two adapters even if you just use one (which is the case with my Thinkpad) and will miserably fail on the second unattached screen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/06/25/xgl-with-randr-13-and-ati/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C&amp;C 3 on Linux</title>
		<link>http://blog.affien.com/archives/2007/04/01/cc-3-on-linux/</link>
		<comments>http://blog.affien.com/archives/2007/04/01/cc-3-on-linux/#comments</comments>
		<pubDate>Sun, 01 Apr 2007 14:20:10 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[command and conquer 3]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/04/01/cc-3-on-linux/</guid>
		<description><![CDATA[I&#8217;ve got Command and Conquer 3: Tiberium Wars running on my Gentoo Linux installation with wine 0.9.34 by following the instructions here. I had to first install it on windows though, and copy the folder for the installer didn&#8217;t work, even with Crossover Office.
Except for (very glitchly) video and sometimes a crash everything seems to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got <em>Command and Conquer 3: Tiberium Wars</em> running on my Gentoo Linux installation with wine 0.9.34 by following the instructions <a href="http://appdb.winehq.org/appview.php?iVersionId=7440">here</a>. I had to first install it on windows though, and copy the folder for the installer didn&#8217;t work, even with Crossover Office.</p>
<p>Except for (very glitchly) video and sometimes a crash everything seems to run. (Didn&#8217;t try multiplayer yet though). I had to put all quality settings to lowest, which makes me wonder whether that is my radeon X1400 being not so good as I expected or wine just being slow in emulating Direct3D.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/04/01/cc-3-on-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Filesystem Failed. Part I: introduction</title>
		<link>http://blog.affien.com/archives/2007/03/03/the-filesystem-failed-part-i-introduction/</link>
		<comments>http://blog.affien.com/archives/2007/03/03/the-filesystem-failed-part-i-introduction/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 18:12:12 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[The Filesystem Failed]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[namespaces]]></category>
		<category><![CDATA[vfs]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/03/03/the-filesystem-failed-part-i-introduction/</guid>
		<description><![CDATA[The Filesystem (I&#8217;ll consider the Linux VFS as an example) has failed:

Database storage is implemented on top of the Filesystem, because the Filesystem is incapable of serving the needs of relational storage.
Metadata is stored inside files in many different formats which can only be guessed by clumsy &#8216;magic&#8217; in the headers. This forces many media [...]]]></description>
			<content:encoded><![CDATA[<p>The Filesystem (I&#8217;ll consider the Linux VFS as an example) has failed:</p>
<ul>
<li><em>Database</em> storage is implemented on top of the Filesystem, because the Filesystem is incapable of serving the needs of relational storage.</li>
<li><em>Metadata is stored inside files</em> in many different formats which can only be guessed by clumsy &#8216;magic&#8217; in the headers. This forces many media player and desktop search application to duplicate tag information in their own databases. Each of them has only limited support for each of the many different formats.</li>
<li>More and more device and service abstractions are moving from the Filesystem <em>to seperate namespaces</em>, because the Filesystem&#8217;s API is inadequate. Take for instance oss which used <code>/dev/dsp</code>, whereas alsa uses its own. Many new abstractions don&#8217;t even go near the filesystem anymore, for instance kevents, futexes, networking, dbus and hal.</li>
<li>Small files are stored in (compressed) <em>packs and archives</em> because the Filesystem can&#8217;t handle them. This happens with for instance your mailbox.</li>
</ul>
<p>The problem comes down to fragmentation of data and metadata in too many namespaces because the Filesystem doesn&#8217;t seem to be an adequate one.</p>
<p>In a series of posts I&#8217;ll look at the possibilities to create one unified filesystem.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/03/03/the-filesystem-failed-part-i-introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reiser4 for linux 2.6.20</title>
		<link>http://blog.affien.com/archives/2007/02/25/reiser4-for-linux-2620/</link>
		<comments>http://blog.affien.com/archives/2007/02/25/reiser4-for-linux-2620/#comments</comments>
		<pubDate>Sun, 25 Feb 2007 22:27:37 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reiser4]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/02/25/reiser4-for-linux-2620/</guid>
		<description><![CDATA[reiser4-for-2.6.20-0.patch.gz
Big fat warning, when hibernating using suspend2 it seems to corrupt some memory here and there. So don&#8217;t hibernate.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://w-nz.com/~darkshines/projects/reiser4-for-2.6.20-0.patch.gz">reiser4-for-2.6.20-0.patch.gz</a></p>
<p><strong>Big fat warning</strong>, when hibernating using suspend2 it seems to corrupt some memory here and there. So don&#8217;t hibernate.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/02/25/reiser4-for-linux-2620/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ati-drivers-8.33.6 for Gentoo</title>
		<link>http://blog.affien.com/archives/2007/02/02/ati-drivers-8336-for-gentoo/</link>
		<comments>http://blog.affien.com/archives/2007/02/02/ati-drivers-8336-for-gentoo/#comments</comments>
		<pubDate>Fri, 02 Feb 2007 20:29:29 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2007/02/02/ati-drivers-8336-for-gentoo/</guid>
		<description><![CDATA[This is a slightly adjusted 25.3 ebuild that will give you the 8.33.6 ati-drivers for Gentoo. Yes, it&#8217;s dirty. They aren&#8217;t in the main tree yet because they are considered broken, although it works just fine for me.
Download: ati-drivers-overlay-8.33.6.tar.bz2
Extract them to an overlay.
Update, the 8.33.6 drivers are in the mainline tree now, so you should [...]]]></description>
			<content:encoded><![CDATA[<p>This is a slightly adjusted 25.3 ebuild that will give you the 8.33.6 ati-drivers for Gentoo. Yes, it&#8217;s dirty. They aren&#8217;t in the main tree yet because they are considered broken, although it works just fine for me.</p>
<p>Download: <a href="http://w-nz.com/~darkshines/projects/ati-drivers-overlay-8.33.6.tar.bz2">ati-drivers-overlay-8.33.6.tar.bz2</a></p>
<p>Extract them to an <a href="http://gentoo-wiki.com/HOWTO_Installing_3rd_Party_Ebuilds">overlay</a>.</p>
<p><strong>Update</strong>, the 8.33.6 drivers are <em>in the mainline tree now</em>, so you should use those instead of mine.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2007/02/02/ati-drivers-8336-for-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(auto)mounting removable media as user</title>
		<link>http://blog.affien.com/archives/2006/12/13/automounting-removable-media-as-user/</link>
		<comments>http://blog.affien.com/archives/2006/12/13/automounting-removable-media-as-user/#comments</comments>
		<pubDate>Wed, 13 Dec 2006 17:46:26 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pmount]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/12/13/automounting-removable-media-as-user/</guid>
		<description><![CDATA[I&#8217;ve always been bothered by the fact that you need to be root to mount anything (like an usb stick). It can be solved a bit by setting up udev rules and putting a specific device in /etc/fstab, but that only works for that single usb stick. Pretty annoying.
Googling only gives you stupid and silly [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve always been bothered by the fact that you need to be root to mount anything (like an usb stick). It can be solved a bit by setting up udev rules and putting a specific device in <code>/etc/fstab</code>, but that only works for <em>that</em> single usb stick. Pretty annoying.</p>
<p>Googling only gives you stupid and silly solution (like allowing users to mount <code>/dev/sd[a-z]</code> &#8212; security risk).</p>
<p>Luckily I&#8217;ve recently been pointed to <a href="http://ivman.sourceforge.net/">ivman</a>, which is an automounter. It automatically mounts removable media for you in <code>/media</code>.</p>
<p>I looked at the internals of ivman, and noticed that it uses <a href="http://www.piware.de/projects.shtml">pmount</a>, which is a wrapper around mount which allows users to mount removable media on a <code>/media</code> folder. Great!</p>
<p>Btw, you need to be in the <code>plugdev</code> group to use pmount.</p>
<p><em>Update</em> It seems that gnome-mount also works fine when you&#8217;re in the <code>plugdev</code> group. Gnome-mount does about the same as pmount with the advantage that gnome-mount has got the nice gui integration everywhere in gnome.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/12/13/automounting-removable-media-as-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reiser4 for 2.6.19</title>
		<link>http://blog.affien.com/archives/2006/12/09/reiser4-for-2619/</link>
		<comments>http://blog.affien.com/archives/2006/12/09/reiser4-for-2619/#comments</comments>
		<pubDate>Sat, 09 Dec 2006 15:23:23 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[reiser4]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/12/09/reiser4-for-2619/</guid>
		<description><![CDATA[I found this patch: reiser4-for-2.6.19.patch.gz.
]]></description>
			<content:encoded><![CDATA[<p>I found this patch: <a href="http://laurent.riffard.free.fr/reiser4/reiser4-for-2.6.19.patch.gz">reiser4-for-2.6.19.patch.gz</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/12/09/reiser4-for-2619/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RTFM, where?</title>
		<link>http://blog.affien.com/archives/2006/10/27/rtfm-where/</link>
		<comments>http://blog.affien.com/archives/2006/10/27/rtfm-where/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 07:24:03 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rtfm]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2006/10/27/rtfm-where/</guid>
		<description><![CDATA[Recently a buddy on msn asked me a linux question, he just started linux so he had some problems getting stuff done.
He downloaded an installer, he said, a .run, but he doesn&#8217;t know how to execute it. He tried googling for it and asking on forums, but didn&#8217;t get an answer, so he asked me.
I [...]]]></description>
			<content:encoded><![CDATA[<p>Recently a buddy on msn asked me a linux question, he just started linux so he had some problems getting stuff done.</p>
<p>He downloaded an installer, he said, a .run, but he doesn&#8217;t know how to execute it. He tried googling for it and asking on forums, but didn&#8217;t get an answer, so he asked me.</p>
<p>I solved his problem, but I still wondered, where you can find that you need to put &#8216;./&#8217; in front of a file in bash to execute it and where can you find that you probably need to <code>chmod +x</code> the file too if you downloaded it from somewhere, if you are a total newcomer to linux.</p>
<p>The bash tutorial would&#8217;ve probably solved it, but do you know that that thing in which you are typing actually is a separate program? Probably not.</p>
<p>I basically learned all this trivial stuff while following the gentoo installation manual, but I guess that&#8217;s a bit too much to ask from each new linux user. There should be a good linux introduction that explains this trivial stuff somewhere to which I can redirect new users. Anyone knows one?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2006/10/27/rtfm-where/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
