<?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>SysAdmin Adventures &#187; General</title>
	<atom:link href="http://blog.tpa.me.uk/category/linux/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Slackware, 3ware &amp; RAID61 = Win</title>
		<link>http://blog.tpa.me.uk/2009/09/29/slackware-3ware-raid61-win/</link>
		<comments>http://blog.tpa.me.uk/2009/09/29/slackware-3ware-raid61-win/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 14:28:17 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[3ware]]></category>
		<category><![CDATA[drbd]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[highavailability]]></category>
		<category><![CDATA[pacemaker]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[raid61]]></category>
		<category><![CDATA[slackware64]]></category>
		<category><![CDATA[supermicro]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=196</guid>
		<description><![CDATA[I have a new page up detailing my adventures in putting together a brand new storage system here at work with the primary purpose of increasing redundancy, reducing cost and increasing efficiency. The page itself doesn&#8217;t look very good because I am still fighting with wordpress. I finally pick a theme I like, but the [...]]]></description>
			<content:encoded><![CDATA[<p>I have a new page up detailing my adventures in putting together a brand new storage system here at work with the primary purpose of increasing redundancy, reducing cost and increasing efficiency.</p>
<p>The page itself doesn&#8217;t look very good because I am still fighting with wordpress. I finally pick a theme I like, but the header css is god-awful. I&#8217;m no graphic designer and I thought WordPress was supposed to take care of that, well it doesn&#8217;t.</p>
<p>The link:</p>
<p><a title="High Availability Storage with Slackware, DRBD &amp; Pacemaker" href="http://blog.tpa.me.uk/high-availability-storage-with-slackware-drbd-pacemaker/">http://blog.tpa.me.uk/high-availability-storage-with-slackware-drbd-pacemaker/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/09/29/slackware-3ware-raid61-win/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>gdisk: fdisk for GPT</title>
		<link>http://blog.tpa.me.uk/2009/09/28/gdisk-fdisk-for-gpt/</link>
		<comments>http://blog.tpa.me.uk/2009/09/28/gdisk-fdisk-for-gpt/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 12:18:04 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[gdisk]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[gpt]]></category>
		<category><![CDATA[guid]]></category>
		<category><![CDATA[parted]]></category>
		<category><![CDATA[partition]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=171</guid>
		<description><![CDATA[I finally found a basic fdisk-like utility for dealing with GUID Partition Tables (GPT). And not a moment too soon because I can&#8217;t stand GNU Parted which seems to be the only other tool available for handling them. I really wish I understood why because GPT is hardly brand-new. fdisk, cfdisk and sfdisk are WELL [...]]]></description>
			<content:encoded><![CDATA[<p>I finally found a basic fdisk-like utility for dealing with GUID Partition Tables (GPT). And not a moment too soon because I can&#8217;t stand GNU Parted which seems to be the only other tool available for handling them. I really wish I understood why because GPT is hardly brand-new. fdisk, cfdisk and sfdisk are WELL overdue for an upgrade.</p>
<p>It&#8217;s called (unsurprisingly) gdisk:</p>
<p><a href="http://www.rodsbooks.com/gdisk/" onclick="pageTracker._trackPageview('/outgoing/www.rodsbooks.com/gdisk/?referer=');">http://www.rodsbooks.com/gdisk/</a></p>
<p><a href="http://sourceforge.net/projects/gptfdisk/" onclick="pageTracker._trackPageview('/outgoing/sourceforge.net/projects/gptfdisk/?referer=');">http://sourceforge.net/projects/gptfdisk/</a></p>
<p>I haven&#8217;t bothered making a SlackBuild for it right now, because it&#8217;s too simple to bother. Download the source, extract it, type make and there&#8217;s your binary. Move it to /sbin if you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/09/28/gdisk-fdisk-for-gpt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Slackware 13.0 &#8211; Xorg + Hal</title>
		<link>http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/</link>
		<comments>http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 15:04:30 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Slackware]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[hal]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[Xorg]]></category>

		<guid isPermaLink="false">https://blog.tpa.me.uk/?p=13</guid>
		<description><![CDATA[A lot of people have been coming a cropper on the new Xorg in Slackware 13.0. Because Xorg now loads hardware information automatically via hal  by default, people are confused about how to set things up that they&#8217;re used to setting up in the xorg.conf. Now, a lot of people have been choosing to shy [...]]]></description>
			<content:encoded><![CDATA[<p>A lot of people have been coming a cropper on the new Xorg in Slackware 13.0. Because Xorg now loads hardware information automatically via hal  by default, people are confused about how to set things up that they&#8217;re used to setting up in the xorg.conf.</p>
<p>Now, a lot of people have been choosing to shy away from the hal-based auto-detection and simply turn it off. That was my initial reaction too, but the bottom line is that this was brought in as an improvement and if you can get your head around it it may prove to save you effort in the long run.</p>
<p>The two things that affect me in a normal set-up are graphics and keyboard layout.<br />
<br clear="none" /><br />
<strong>Graphics</strong></p>
<p>If you&#8217;re going to use the open source driver shipped with the kernel for your graphics card you almost certainly don&#8217;t have to do a thing. Hal will pick up your card, and your driver will be loaded into Xorg. If you need a different driver like the proprietary nVidia driver, then it&#8217;s business as usual: run the installer, let it create an xorg.conf for you and that information will be used by Xorg.</p>
<p>You might want to check the xorg.conf that gets created as the installer may not be ready for hal yet and may try to insert useless keyboard/mouse information because the installer thinks it&#8217;s required.<br />
<br clear="none" /><br />
<strong>Keyboard Layout</strong></p>
<p>Being in the UK, I use UK keyboards. They are different ot US keyboards in that they have £ above 3 instead of # and &#8221; above 2 instead of @ as well as couple of other subtle differences. I also use the GB Dvorak layout for my IRC box and again, this needs a modification.</p>
<p>You&#8217;re probably used to loading up your xorg.conf and modifying:</p>
<pre>Option     "XkbLayout"     "us"</pre>
<p>to:</p>
<pre>Option     "XkbLayout"     "gb"</pre>
<p>or whatever is relevant to your locale. Well, it&#8217;s different now, but practically just as simple. Instead of telling Xorg about your layout, you now tell hal instead. To do this, you need to change the hal config, but you don&#8217;t modify the configuration &#8216;in-place&#8217;, you copy the config to a secondary location, and then make the changes you need. In Slackware 13.0:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-av</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>hal<span style="color: #000000; font-weight: bold;">/</span>fdi<span style="color: #000000; font-weight: bold;">/</span>policy<span style="color: #000000; font-weight: bold;">/</span>10osvendor<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-keymap.fdi <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hal<span style="color: #000000; font-weight: bold;">/</span>fdi<span style="color: #000000; font-weight: bold;">/</span>policy<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-keymap.fdi<br />
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>hal<span style="color: #000000; font-weight: bold;">/</span>fdi<span style="color: #000000; font-weight: bold;">/</span>policy<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">10</span>-keymap.fdi</div></div>
<p><br clear="none" /><br />
Modify:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.layout&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>us<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.variant&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>To:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.layout&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.variant&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>Or for uk-dvorak:</p>
<div class="codecolorer-container xml geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.layout&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>gb<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;merge</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;input.xkb.variant&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;string&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>dvorak<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/merge<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p><br clear="none" /><br />
Restart hal. Restart X.<br />
<br clear="none" /><br />
Job done.<br />
<br clear="none" /><br />
<br clear="none" /></p>
<p><em>Post followed-up by:<br />
<a href="http://blog.tpa.me.uk/2011/03/29/slackware-13-37-xorg-hal/">Slackware 13.37 &#8211; Xorg + Hal</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/08/30/slackware-13-0-xorg-hal/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>The Evil of InitRD</title>
		<link>http://blog.tpa.me.uk/2009/08/30/the-evil-of-initrd/</link>
		<comments>http://blog.tpa.me.uk/2009/08/30/the-evil-of-initrd/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 14:26:03 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[initrd]]></category>
		<category><![CDATA[Slackware]]></category>

		<guid isPermaLink="false">https://blog.tpa.me.uk/?p=8</guid>
		<description><![CDATA[I understand that there are rare situations in which an initrd can be useful. For example, when hardware is constantly being swapped out, or when you absolutely must have an identical kernel image, or if you are using LUKS for your / partition. However, in general an initrd is, in my opinion, a completely pointless [...]]]></description>
			<content:encoded><![CDATA[<p>I understand that there are rare situations in which an initrd can be useful. For example, when hardware is constantly being swapped out, or when you absolutely must have an identical kernel image, or if you are using LUKS for your / partition. However, in general an initrd is, in my opinion, a completely pointless level of complexity that you are better off without.</p>
<p>I&#8217;m currently managing in excess of 15 completely different Slackware installs across lots of different hardware and not one of them is running a &#8220;huge&#8221; kernel, or an initrd. If a module is absolutely essential to your system&#8217;s ability to boot, why in hell haven&#8217;t you compiled it into your kernel? It&#8217;s like having a your starter-motor in your car disconnected from the battery, but having a relay on its own mini-battery connect it up when you turn the ignition.. why would you do it? What&#8217;s the point? The car will not start without it, why is it not hard wired into the system? It&#8217;s the same for the kernel. If the system won&#8217;t start without it, compile it into the kernel. Don&#8217;t play about with an injection system you don&#8217;t even need.</p>
<p>Ok, so your root device is inside RAID &amp; LVM on a GPT partition. So, compile in mdadm support for your RAID level, LVM support and GPT partition support; job done.</p>
<p>For the less experienced, it&#8217;s also a good way to learn the basics of kernel compilation without needing to do much more than follow a standard process. All you need to do is use the config from the generic kernel you were going to boot anyway, and knowledge of what filesystem your root device is installed with and what storage controller your disk uses. Go into the kernel config, add them in [*], make, make modules_install, move and symlink the new kernel, update lilo, reboot. Once you&#8217;ve done it twice, it becomes so routine and easy you&#8217;ll wonder why you haven&#8217;t been doing it forever.</p>
<p>Then, once you&#8217;re more familiar with the process, you can start removing other parts of the kernel you don&#8217;t need, especially hardware controllers for hardware you don&#8217;t have, with each step making your kernel smaller and your system leaner and faster.</p>
<p>Have kernel, will compile.</p>
<p><em>Post followed-up by:<br />
<a href="http://blog.tpa.me.uk/2009/08/31/compiling-your-own-slackware-kernel/">Compiling your own Slackware kernel</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2009/08/30/the-evil-of-initrd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

