<?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>Matt Daubneys Blog &#187; LFS</title>
	<atom:link href="http://daubers.co.uk/tag/lfs/feed/" rel="self" type="application/rss+xml" />
	<link>http://daubers.co.uk</link>
	<description></description>
	<lastBuildDate>Sun, 25 Mar 2012 19:34:30 +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>Linux From Scratch</title>
		<link>http://daubers.co.uk/2009/04/08/linux-from-scratch/</link>
		<comments>http://daubers.co.uk/2009/04/08/linux-from-scratch/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:43:40 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[packaging]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[compiling]]></category>
		<category><![CDATA[LFS]]></category>
		<category><![CDATA[linuxfromscratch]]></category>

		<guid isPermaLink="false">http://daubers.co.uk/?p=158</guid>
		<description><![CDATA[My knowledge of linux is sadly lacking, but every day I improve on it. Since I had a few days free over the easter holidays I thought I&#8217;d try and improve this further by installing Linux From Scratch. This is essentially building up a linux system from it&#8217;s base packages and takes a LONG time. [...]]]></description>
			<content:encoded><![CDATA[<p>My knowledge of linux is sadly lacking, but every day I improve on it. Since I had a few days free over the easter holidays I thought I&#8217;d try and improve this further by installing <a title="Linux From Scratch" href="http://www.linuxfromscratch.org" target="_blank">Linux From Scratch</a>. This is essentially building up a linux system from it&#8217;s base packages and takes a <strong>LONG</strong> time. This to me seemed like a good idea, it would exponentially increase my knowledge of what makes linux tick, and what depends on what.</p>
<p>I started on Monday night by reading through all of the LFS documentation. As bedtime reading goes, it&#8217;s actually quite interesting, and it seemed like a good idea to get an overview of what needs doing before I started.</p>
<p>Luckily for me my laptop has a fairly large HD (320GB) so finding some space on a partition was quite easy. A quick boot into a livecd and resizing my /home partition created a nice little 10GB partition for LFS to go in. That was at 9am in the morning. By 10:00am I had downloaded all the required programs in the mounted partition as directed by the book and started to build them.  In the first day, I managed to build the initial toolchain and got into the chroot and got to chapter 6.15 in the <a title="LFS download stable pdf" href="http://http://www.linuxfromscratch.org/lfs/downloads/stable/" target="_blank">LFS PDF</a>. The longest thing to build was probably either glibc or GCC, which took just over an hour, but did give me time to cook some tortillas from scratch for lunch <img src='http://daubers.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The second day, it took me from about 10 in the morning till roughly 3 in the afternoon to finish installing everything.  Was a bit quicker than I expected, but also a lot more involved.</p>
<p>I did hit a few roadbumps, I didn&#8217;t have gawk installed on the host system, so at one point something didn&#8217;t compile properly and freaked out a bit. A simple sudo aptitude install gawk fixed that though. When I was recompiling glibc all of the tests failed, it took me a few minutes to realise that the reason this was happening was because I&#8217;d forgotten to run &#8220;make&#8221;.. oops.</p>
<p>The last major bump was that when I chose which options to compile with the kernel, I forgot to add the drivers for my ethernet card and my wireless card, so when I booted the machine I had no network! A quick scan through the options and a recompile sorted that out (to include the b44 driver)</p>
<p>What have I learnt from this? Two things mainly.</p>
<ol>
<li>Where everything should live on a linux system and why its there</li>
<li>Package Managers are beyond fantastic. They save so much time and hassle!</li>
</ol>
<p>Tomorrow I intend to try and make my LFS install useful by installing openssh initially, wget and possible x.org and gnome. That may be a bit ambitious at the moment though!</p>
]]></content:encoded>
			<wfw:commentRss>http://daubers.co.uk/2009/04/08/linux-from-scratch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

