<?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>leipies-bloggy</title>
	<atom:link href="http://blog.leipie.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.leipie.com</link>
	<description>The place for my adventures in life!</description>
	<lastBuildDate>Sun, 09 Aug 2009 22:04:24 +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>Fsck completely destroyed my OS!!!</title>
		<link>http://blog.leipie.com/?p=122</link>
		<comments>http://blog.leipie.com/?p=122#comments</comments>
		<pubDate>Sun, 09 Aug 2009 22:04:24 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[Fail]]></category>
		<category><![CDATA[My Laptop]]></category>
		<category><![CDATA[destroyed]]></category>
		<category><![CDATA[fsck]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[root partition]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=122</guid>
		<description><![CDATA[My installation of Gentoo on my laptop was completely destroyed when I tried to make standard hibernation work. I had updated to kernel version 2.6.30 with the tuxonice-sources, but the TuxOnIce hibernation did not work for the 2.6.30-r4 ebuild for some reason.
The kernel worked fine and I was all happy, because it fixed the trouble [...]]]></description>
			<content:encoded><![CDATA[<p>My installation of Gentoo on my laptop was completely destroyed when I tried to make standard hibernation work. I had updated to kernel version 2.6.30 with the tuxonice-sources, but the TuxOnIce hibernation did not work for the 2.6.30-r4 ebuild for some reason.</p>
<p>The kernel worked fine and I was all happy, because it fixed the trouble I had with X not loading the drm module correctly. But when I was done and tried to hibernate my laptop, it refused to do so. So I decided to use the normal gentoo-sources with the normal hibernation for the moment. So I copied my settings to these sources and ran the hibernation and this worked. The next morning when I booted my OS, fsck complained that there were some error and refused the let the OS boot. It told me I needed to check the partition manually. So I did this using the Gentoo minimal installation disk and it found some things and put them in the lost+found directory. The content didn&#8217;t seem interesting so I discarded it. But the next time I had hibernated, it complained again. So I repeated the process of checking manually and told it yes to all. This was a big mistake! :@ When it was done The complete content of my root partition was gone and all that was left was a lost+found directory with thousands of files with numbers as names and some hundreds of folders with the same. They didn&#8217;t resemble the original structure at all, so there was no way of fixing the problem and I was only able to recover some important files. But most of the files, including some important files were untraceable. To bad my back-up was over a week old :s</p>
<p>Because I was in a hurry, I decided to install Ubuntu for now. Lets see how long I will stick with it&#8230;<br />
For know it showed me Gnome can be quite usefull and is low on resources. (After killing and stopping the necessary unneeded services/processes <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  I choose the normal Ubuntu, because Kubuntu is complete pain in the ass, because it keep crashing and I wonder how they can call it stable. So it went off as fast a put it on my laptop.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=122</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Wordpress 2.8.{1,3}</title>
		<link>http://blog.leipie.com/?p=111</link>
		<comments>http://blog.leipie.com/?p=111#comments</comments>
		<pubDate>Sat, 18 Jul 2009 11:44:13 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[Upgrading]]></category>
		<category><![CDATA[maintance]]></category>
		<category><![CDATA[server install]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[2.8.1]]></category>
		<category><![CDATA[2.8.3]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[vhost]]></category>
		<category><![CDATA[webapp-config]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=111</guid>
		<description><![CDATA[Today I upgraded wordpress again,
All I did was upgrade wordpress via emerge (this happens automaticly when running emerge -uND world  ), run webapp-config -U -h blog.leipie.com -u apache -g apache -s apache wordpress 2.8.1, run CONFIG_PROTECT="/var/www/blog.leipie.com/htdocs//" etc-update and execute http://blog.leipie.com/wp-admin/upgrade.php in my browser. Et voila, it was done.
I first made a backup off my mysql data just [...]]]></description>
			<content:encoded><![CDATA[<p>Today I upgraded wordpress again,</p>
<p>All I did was upgrade wordpress via emerge (this happens automaticly when running emerge -uND world <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ), run <code>webapp-config -U -h blog.leipie.com -u apache -g apache -s apache wordpress 2.8.1</code>, run <code>CONFIG_PROTECT="/var/www/blog.leipie.com/htdocs//" etc-update</code> and execute <code>http://blog.leipie.com/wp-admin/upgrade.php</code> in my browser. Et voila, it was done.<br />
I first made a backup off my mysql data just to be sure. using tar to backup my wordpress db in <code>/var/lib/mysql</code> <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Edit: Did the same for 2.8.3 today, but this has overwritten wp-config.php <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' />  Luckily I keep a backup&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=111</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One of PHP&#8217;s major OO flaws</title>
		<link>http://blog.leipie.com/?p=104</link>
		<comments>http://blog.leipie.com/?p=104#comments</comments>
		<pubDate>Fri, 10 Jul 2009 13:23:14 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[Fail]]></category>
		<category><![CDATA[Main Object]]></category>
		<category><![CDATA[OO]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Type hinting]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=104</guid>
		<description><![CDATA[Today I tried to use type hinting for one of my methods. I wanted to hint that one should provide an arbitrary object. This sounds very straightforward, if you familiar with Java. But in PHP it seems this is not as straightforward as you might expect. At first I made the method declaration like this: [...]]]></description>
			<content:encoded><![CDATA[<p>Today I tried to use type hinting for one of my methods. I wanted to hint that one should provide an arbitrary object. This sounds very straightforward, if you familiar with Java. But in PHP it seems this is not as straightforward as you might expect. At first I made the method declaration like this: <code>public function test(Object $object)</code>. But this the PHP parser complained that it could not find the class Object. So I tried class, but this is a reserved word. Same for default.</p>
<p>So I started an investigation via Google, but I couldn&#8217;t find anything useful. So I made this code and executed it:</p>
<p><code>&lt;?php<br />
class Test{<br />
public function __construct() {<br />
echo 'Class: ' . __CLASS__ . "\n";<br />
echo 'Parent?: ' . get_parent_class(__CLASS__) . "\n";<br />
echo 'Parent?: ' . get_class(parent) . "\n";<br />
}<br />
}new Test();<br />
?&gt;</code></p>
<p>This was the result:</p>
<p><code>Class: Test<br />
Parent?:<br />
Parent?:</code></p>
<p>A standard class seems to extend noting&#8230;</p>
<p>In conclusion, it seems PHP has no main class that is extended by default. As a result you cannot request for a generic object via type hinting. The only work around seems to call this at the beginning of your method: <code>assert( is_object($object)  );<code>...</code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=104</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running TeamSpeak on Gentoo</title>
		<link>http://blog.leipie.com/?p=99</link>
		<comments>http://blog.leipie.com/?p=99#comments</comments>
		<pubDate>Wed, 22 Apr 2009 23:06:18 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[My Laptop]]></category>
		<category><![CDATA[Alsa]]></category>
		<category><![CDATA[Aoss]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Hardware mixer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Multiple program]]></category>
		<category><![CDATA[One soundcard]]></category>
		<category><![CDATA[Oss]]></category>
		<category><![CDATA[Teamspeak]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=99</guid>
		<description><![CDATA[Running a TeamSpeak client on Gentoo is quite easy. But there is only a binary available. Installing it is as easy running &#8220;emerge media-sound/teamspeak2-client-bin&#8220;.
The only problem I had, was that it was blocking the sound-card when it was running. Teamspeak worked fine with alsa, but no other program could use the sound-card at the same [...]]]></description>
			<content:encoded><![CDATA[<p>Running a TeamSpeak client on Gentoo is quite easy. But there is only a binary available. Installing it is as easy running &#8220;<em>emerge media-sound/teamspeak2-client-bin</em>&#8220;.</p>
<p>The only problem I had, was that it was blocking the sound-card when it was running. Teamspeak worked fine with alsa, but no other program could use the sound-card at the same time. This makes it completely useless for using during games&#8230; This happens because teamspeak uses the old oss sound system, which only allows multiple programs using the sound-card if it has a hardware mixer. And my sound card has none. Alsa emulates it, but this apparently doesn&#8217;t work right.</p>
<p>To fix this do &#8220;<em>emerge media-libs/alsa-oss</em>&#8221; and then run &#8220;<em>aoss teamspeak</em>&#8221; instead. I found the solution <a title="Teamspeak and alsa" href="http://alsa.opensrc.org/TeamSpeak" target="_blank">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=99</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drop Linux Disc Cache</title>
		<link>http://blog.leipie.com/?p=97</link>
		<comments>http://blog.leipie.com/?p=97#comments</comments>
		<pubDate>Sat, 14 Mar 2009 22:59:36 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[My Laptop]]></category>
		<category><![CDATA[handy]]></category>
		<category><![CDATA[clear memory]]></category>
		<category><![CDATA[Drop disc cache]]></category>
		<category><![CDATA[flush]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[TuxOnIce]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=97</guid>
		<description><![CDATA[On this page I found a handy tip to drop the disc cache that Linux keeps in the main memory. I use this to reduce the amount of information written to disc when hibernating using TuxOnIce.
Linux has the tendency to keep all kinds of information cached in the memory. This is very handy when opening [...]]]></description>
			<content:encoded><![CDATA[<p>On <a title="Drop Disc Cache On Linux" href="http://www.linuxinsight.com/proc_sys_vm_drop_caches.html" target="_blank">this</a> page I found a handy tip to drop the disc cache that Linux keeps in the main memory. I use this to reduce the amount of information written to disc when hibernating using TuxOnIce.</p>
<p>Linux has the tendency to keep all kinds of information cached in the memory. This is very handy when opening programs, but it can be a nousence when you have 2GB memory. Most of the times the disc cache is as large are even twice as large as the actual data in the memory.</p>
<p>When hibernating this results in writing up to 2GB to disk and this can take a while. And TuxOnIce seems not completely stable and crashes during resuming when the disc image is somewhere over 1GB.</p>
<p>So if my memory is filled I run the following commands as root and then I hibernate.<br />
<em>sync; echo 3 &gt; /proc/sys/vm/drop_caches</em>.<br />
The sync command is also very handy for detaching USB drives, because it flushes the caches.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=97</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeMind</title>
		<link>http://blog.leipie.com/?p=95</link>
		<comments>http://blog.leipie.com/?p=95#comments</comments>
		<pubDate>Sat, 14 Mar 2009 22:26:04 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[Interesting]]></category>
		<category><![CDATA[handy]]></category>
		<category><![CDATA[FreeMind]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Mind-mapping]]></category>
		<category><![CDATA[Open source]]></category>
		<category><![CDATA[Portage]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=95</guid>
		<description><![CDATA[A couple off months ago I went to course to learn mind mapping.
I found it to be very useful to remember things in a much more efficient way then taking &#8220;classical&#8221; notes. I can recommend it to everybody. I use whenever I can.
Until recently I just used a pencil and a notebook, but a couple [...]]]></description>
			<content:encoded><![CDATA[<p>A couple off months ago I went to course to learn mind mapping.</p>
<p>I found it to be very useful to remember things in a much more efficient way then taking &#8220;classical&#8221; notes. I can recommend it to everybody. I use whenever I can.</p>
<p>Until recently I just used a pencil and a notebook, but a couple of days ago found some open source software on <a title="FreeMind hosted on SourceForge" href="http://freemind.sourceforge.net/wiki/index.php/Main_Page" target="_self">SourceForge</a>. I found this software very useful, because now it is much easier to manage my mind-maps and I don&#8217;t run put of paper anymore. <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Of course it was very easy to install on Gentoo, because there is an ebuild provided via portage <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=95</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Microcode CPU</title>
		<link>http://blog.leipie.com/?p=93</link>
		<comments>http://blog.leipie.com/?p=93#comments</comments>
		<pubDate>Thu, 05 Mar 2009 16:55:22 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[My Laptop]]></category>
		<category><![CDATA[Upgrading]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[Microcode]]></category>
		<category><![CDATA[Wiki]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=93</guid>
		<description><![CDATA[A couple of days ago,
I decided to try updating the microcode of my Intel CPU. You need to do this each time you boot your computer, because it gets lost again when powering down your system.  On the Gentoo Wiki an easy How-to can be found. For updating the microcode you need to compile in [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of days ago,</p>
<p>I decided to try updating the microcode of my Intel CPU. You need to do this each time you boot your computer, because it gets lost again when powering down your system.  On the <a title="Microcode Wiki" href="http://en.gentoo-wiki.com/wiki/Intel_Microcode" target="_blank">Gentoo Wiki</a> an easy How-to can be found. For updating the microcode you need to compile in microcode support in the kernel and and do &#8220;<em>emerge -av microcode-ctl</em>&#8221; after this you need to add the daemon to the startup scripts and voila your microcode gets update each time the OS starts. Compiling microcode support as module allows the script to unload it, when it is finished.</p>
<p>The microcode that is provided by the installed package is not the latest. The latest version can be found on <a title="Intel download site" href="http://downloadcenter.intel.com/default.asp" target="_blank">download site of intel</a> and needs to placed in the <em>/etc/microcode.dat</em>.</p>
<p>I didn&#8217;t notice any difference yet, but it might give a warm felling inside, to know that it&#8217;s up to date <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>I am only still pondering if I need to manually run the script again when resuming from hibernation.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=93</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Wordpress 2.7.1</title>
		<link>http://blog.leipie.com/?p=86</link>
		<comments>http://blog.leipie.com/?p=86#comments</comments>
		<pubDate>Mon, 02 Mar 2009 11:54:43 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[Upgrading]]></category>
		<category><![CDATA[maintance]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[webconfig]]></category>
		<category><![CDATA[Wordpress 2.7.1]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=86</guid>
		<description><![CDATA[Today I finally upgraded from wordpress 2.6.5.
I just love Gentoo, for doing stuff like this. Before you start you must backup, your database and save all files that were not standard, like wp-config.php! After you have done this, it is as easy as &#8220;emerge -u wordpress&#8221; and install the new version into the webserver with [...]]]></description>
			<content:encoded><![CDATA[<p>Today I finally upgraded from wordpress 2.6.5.</p>
<p>I just love Gentoo, for doing stuff like this. Before you start you must backup, your database and save all files that were not standard, like wp-config.php! After you have done this, it is as easy as &#8220;<em>emerge -u wordpress</em>&#8221; and install the new version into the webserver with &#8220;<em>webapp-config -U -h blog.leipie.com wordpress 2.7.1</em>&#8220;.</p>
<p>The only thing left is to copy back wp.config.php and run &#8220;<em>http://blog.leipie.com/wp-admin/upgrade.php</em>&#8221;</p>
<p>Wonderful!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=86</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Patching TuxOnIce into the kernel</title>
		<link>http://blog.leipie.com/?p=79</link>
		<comments>http://blog.leipie.com/?p=79#comments</comments>
		<pubDate>Tue, 24 Feb 2009 00:12:57 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[My Laptop]]></category>
		<category><![CDATA[Upgrading]]></category>
		<category><![CDATA[maintance]]></category>
		<category><![CDATA[Dedicated swap file]]></category>
		<category><![CDATA[Filewriter]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Hibernation]]></category>
		<category><![CDATA[Kernel 2.6.27.12]]></category>
		<category><![CDATA[Swapwriter]]></category>
		<category><![CDATA[TuxOnIce]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=79</guid>
		<description><![CDATA[TuxOnIce is next,
I always used hibernation when using Windows, so I wanted it on Gentoo too. I decided to use TuxOnIce because the main suspend-to-disk functionality already present in the kernel tree has a lot less room for customisation.
Installing it seems pretty easy. Just take the vanilla kernel sources and apply the patch provided by [...]]]></description>
			<content:encoded><![CDATA[<p>TuxOnIce is next,</p>
<p>I always used hibernation when using Windows, so I wanted it on Gentoo too. I decided to use <a title="TuxOnIce Website" href="http://www.tuxonice.net" target="_blank">TuxOnIce</a> because the main suspend-to-disk functionality already present in the kernel tree has a lot less room for customisation.</p>
<p>Installing it seems pretty easy. Just take the vanilla kernel sources and apply the patch provided by TuxOnIce. It is well maintained, so there are patches for all the release of the kernel. Patching the 2.6.27.12 kernel was as easy as downloading the patch and patching the kernel sources accourding to the manual and set the newly available settings using &#8220;make menuconfig&#8221;. After this build the new kernel and installed it.</p>
<p>After this you need to install the script package they also provide and create space to put the RAM image in. This includes the hibernation script, but also a script for cleaning up after resuming. It invalidates the RAM image after resuming, so it is not accidentally reused when booting another time.</p>
<p>I wanted to hibernate to a dedicated file using the filewriter, but after numerous attempt this failed. The hibernation script kept complaining that the image, where it needed to write to, was not consistent. I wanted to hibernate to a file, because in this way I am not dependent on how much swap space is used or present. I don&#8217;t actually use swap for now. The 2GB RAM is currently more then enough.</p>
<p>So I finally choose to hibernate to a swapfile that was not actualy used as swap space. This is essentially a dedicated file for hibernation. I use the following the following &#8220;script&#8221; to hibernate:<br />
<em>swapon /TuxOnIce.swap; hibernate; swapoff /TuxOnIce.swap</em><br />
This makes sure enough swap space will always be present when hibernation is started. It is almost like just a dedicated file, but if other swap space is present that will be used first. And the third statement is actually executed when hibernation is finished and the resume already done, precisely when we don&#8217;t need the extra swap space anymore.</p>
<p>I am still pondering if I want to add an UI to the hibernation and resume process. The UI is also provided via a seperate download. It seems to make de hibernating and resuming slower, but does enable to cancel hibernation or resuming and show a progress bar. For now I just use TuxOnIce without an UI.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=79</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Gentoo</title>
		<link>http://blog.leipie.com/?p=68</link>
		<comments>http://blog.leipie.com/?p=68#comments</comments>
		<pubDate>Wed, 18 Feb 2009 16:28:48 +0000</pubDate>
		<dc:creator>leipie</dc:creator>
				<category><![CDATA[My Laptop]]></category>
		<category><![CDATA[Upgrading]]></category>
		<category><![CDATA[maintance]]></category>
		<category><![CDATA[D400]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Install Gentoo]]></category>
		<category><![CDATA[Kernel patch 2.6.17.12]]></category>
		<category><![CDATA[Latitude]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux kernel]]></category>
		<category><![CDATA[Resize partitions]]></category>

		<guid isPermaLink="false">http://blog.leipie.com/?p=68</guid>
		<description><![CDATA[To continue last post,
After upgrading the drive of my laptop I wanted to install Linux on it. Because I am already familiar with Gentoo I choose to install this distribution. And it is quite easy to keep up to date, but more important it is very easy to update to a new version. I know [...]]]></description>
			<content:encoded><![CDATA[<p>To continue last post,</p>
<p>After upgrading the drive of my laptop I wanted to install Linux on it. Because I am already familiar with Gentoo I choose to install this distribution. And it is quite easy to keep up to date, but more important it is very easy to update to a new version. I know it is a lot of work to install Gentoo! But hey you do learn a lot about the workings of Linux and the kernel. <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Installing of Gentoo is best done with the Live CD they provide on there website. It provides a complete Linux environment from which you can install/manage/repair you system. They give you the option to install Gentoo really manually from the shell and have the latest portage tree installed right away or use their (GUI or shell) installer which copies part of the system installed on the live CD to the disk drive.</p>
<p>I installed Gentoo manually, because your install will be quite up-to-date and you do not have to update the complete system again once you have it running on its own. Their <a title="The Gentoo x86 manual" href="http://www.google.com/url?q=http://www.gentoo.org/doc/en/handbook/handbook-x86.xml&amp;ei=_y2cSZaYGMOi-ga43fzhBA&amp;sa=X&amp;oi=smap&amp;resnum=1&amp;ct=result&amp;cd=1&amp;usg=AFQjCNF750I6Oq1UwCRHNYJJ-zT92mskYQ" target="_blank">manual</a> is very helpful and quite easy to use. With Gentoo you can choose with patch set use use for the kernel, I choose to use the vanilla kernel 2.6.27.12, because I heard that the patches of the Gentoo developers aren&#8217;t always up to standard&#8230; And the this is a newer kernel <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  The sources can easily be downloaded via emerge the install system of Gentoo. And did &#8220;cd /usr/src/linux&#8221; and &#8220;make menuconfig&#8221;. The result was hours of reading and deciding how to set up the kernel&#8230;</p>
<p>The kernel compiled with a warning for which I applied the following patch and it seems to be running smoothly:<br />
<em>&#8212; arch/x86/kernel/head_32.S.orig	2008-10-14 17:04:39.000000000 -0500</em><em><br />
</em><em> +++ arch/x86/kernel/head_32.S	2008-10-14 17:03:12.000000000 -0500</em><em><br />
</em><em> @@ -600,6 +600,7 @@</em></p>
<p><em> </em></p>
<p><em>.section .cpuinit.data,&#8221;wa&#8221;</em><em><br />
</em><em> .align 4</em><em><br />
</em><em> +__REFDATA</em><em><br />
</em><em> ENTRY(initial_code)</em><br />
<em>.long i386_start_kernel</em></p>
<p>Once you are done, the system is completely bare. So after this I decided to install KDE. I tried Xfce2 also present on the Live CD before, but it was not mature enough for me. Because with Gentoo everything is build from the sources it took me a wooping 5 hours to build. <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' />  This with the kdeenablefinal USE key enable, which should make compiling faster by using enormous amounts of ram.</p>
<p>When it was done I still needed to find out how to get it running. I tried running xorgconfig, but X kept complaining it could not find a window port. After some trial and error I figured out I needed to load the intel-agp and i915 modules, because I forgot to build them directly into the kernel. After this the X would happily start. And I had a GUI for the first time on my system!</p>
<p>The only thing they don&#8217;t tell in the manual is that you can only have 4 primary partitions in your MBR. So I needed to fiddle around a bit with partitions when I wanted to add some more partitions afterwards. But for this I found a very handy <a title="Manipulating Linux partions" href="http://www.howtoforge.com/linux_resizing_ext3_partitions" target="_blank">tutorial</a>. But it is not for the faint hearted, because it involves deleting and recreating partitions with data on them <img src='http://blog.leipie.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>To be continued once again</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leipie.com/?feed=rss2&amp;p=68</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
