<?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>No Znx! &#187; Linux</title>
	<atom:link href="http://znx.no/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://znx.no</link>
	<description>the pigeons!!!!</description>
	<lastBuildDate>Fri, 21 May 2010 16:05:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Accidental Firefox Quits</title>
		<link>http://znx.no/2010/04/accidental-firefox-quit/</link>
		<comments>http://znx.no/2010/04/accidental-firefox-quit/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 14:38:18 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://znx.no/?p=284</guid>
		<description><![CDATA[Whilst using Firefox I normally use the key press Ctrl+w to close the tabs, however on occasion my fingers strayed into Ctrl+q which, to my horror, quit Firefox! A quick Google pointed me towards a post on the useful Add-On Mirrors site. I then went to the homepage of the author and installed the nice [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst using Firefox I normally use the key press Ctrl+w to close the tabs, however on occasion my fingers strayed into Ctrl+q which, to my horror, quit Firefox!</p>
<p>A quick Google pointed me towards a <a href='http://forum.addonsmirror.net/index.php?showtopic=254'>post</a> on the useful Add-On Mirrors site. I then went to the <a href='http://mozilla.dorando.at/'>homepage</a> of the author and installed the nice tool <a href='http://mozilla.dorando.at/keyconfig.xpi'>KeyConfig</a>.</p>
<p>A quick restart of Firefox, then open KeyConfig (via Tools > KeyConfig), search for the Ctrl+q key press and disable.</p>
<p>Another restart of Firefox and it&#8217;s complete, no more accidental quits of Firefox! KeyConfig is a very nice and simple to use Add-On and will certainly be added to my default Firefox pack from now on, ace!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/04/accidental-firefox-quit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH Magic</title>
		<link>http://znx.no/2010/04/ssh-magic/</link>
		<comments>http://znx.no/2010/04/ssh-magic/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 22:14:50 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://znx.no/?p=278</guid>
		<description><![CDATA[A friend of mine just recently posted a trick with long hostnames when using SSH. I have commented before many times when I see people making aliases or shorthand&#8217;s like this that they just don&#8217;t know about the magic that is possible in the SSH configuration file. Take for example this, imagine having a long [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine just recently posted a <a href='http://zcentric.com/2010/04/07/ssh-trick/'>trick with long hostnames</a> when using SSH. I have commented before many times when I see people making aliases or shorthand&#8217;s like this that they just don&#8217;t know about the magic that is possible in the SSH configuration file.</p>
<p>Take for example this, imagine having a long hostname, with an odd port and a different user. Typing that would be a pain, most people would do something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">alias</span> ssh-short=<span style="color: #ff0000;">&quot;ssh -p 12345 someotheruser@somelong.hostname.com&quot;</span></pre></div></div>

<p>In their <code>~/.bashrc</code>, however the same can be filled into the configuration file. Edit the file <code>~/.ssh/config</code> (or make it!):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Host short
  HostName somelong.hostname.com
  User someotheruser
  Port <span style="color: #000000;">12345</span></pre></div></div>

<p>After doing this you can simply do:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ssh</span> short</pre></div></div>

<p>How much easier do you need it to be?!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/04/ssh-magic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unrar Bug</title>
		<link>http://znx.no/2010/02/unrar-bu/</link>
		<comments>http://znx.no/2010/02/unrar-bu/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 01:29:50 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://znx.no/?p=274</guid>
		<description><![CDATA[So I was recently scripting with the unrar tool and discovered something stupid: unrar t file.rar if &#91; $? -eq 0 &#93;; then echo &#34;Rar file is good?&#34; fi However it was returning zero all the time, even when the file wasn&#8217;t a rar: # unrar t file.rar &#160; UNRAR 3.80 freeware Copyright &#40;c&#41; 1993-2008 [...]]]></description>
			<content:encoded><![CDATA[<p>So I was recently scripting with the unrar tool and discovered something stupid:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">unrar t file.rar
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$?</span> <span style="color: #660033;">-eq</span> <span style="color: #000000;">0</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Rar file is good?&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span></pre></div></div>

<p>However it was returning zero all the time, even when the file wasn&#8217;t a rar:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># unrar t file.rar</span>
&nbsp;
UNRAR <span style="color: #000000;">3.80</span> freeware      Copyright <span style="color: #7a0874; font-weight: bold;">&#40;</span>c<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #000000;">1993</span>-<span style="color: #000000;">2008</span> Alexander Roshal
&nbsp;
file.rar is not RAR archive
<span style="color: #666666; font-style: italic;"># echo $?</span>
<span style="color: #000000;">0</span></pre></div></div>

<p>So it fails the test but returns zero regardless. This makes it very unhelpful for using in scripting. Fortunately enough a mate on IRC discovered that his version did.</p>
<p>So I first download the existing SRPM and installed it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yumdownloader --source unrar</span>
<span style="color: #666666; font-style: italic;"># rpm -i unrar*.srpm</span></pre></div></div>

<p>Then I installed that and simply modified  so I downloaded the latest, created a RPM and installed.</p>
<p>I have submitted the updated spec file to <a href='https://bugzilla.rpmfusion.org/show_bug.cgi?id=1091'>RPMfusion</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/02/unrar-bu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WPA2 Wireless With Linux</title>
		<link>http://znx.no/2010/02/wpa2-wireless-with-linux/</link>
		<comments>http://znx.no/2010/02/wpa2-wireless-with-linux/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 18:02:57 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[gentoo]]></category>

		<guid isPermaLink="false">http://znx.no/?p=106</guid>
		<description><![CDATA[This is a simple tutorial produced by me and my good mate enigma. It is aimed at Gentoo and uses the Broadcom drivers but this should replicate to other systems. The first step is to get your drivers and for Broadcom, which is relatively easy as they produce them for us. So first download the [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple tutorial produced by me and my good mate <a href="http://www.gentoo-fun.com/">enigma</a>. It is aimed at Gentoo and uses the Broadcom drivers but this should replicate to other systems.</p>
<p>The first step is to get your drivers and for Broadcom, which is relatively easy as they produce them for us. So first <a href="http://www.broadcom.com/support/802.11/linux_sta.php">download</a> the driver (these drivers support BM4311-, BCM4312-, BCM4321-, and BCM4322-based cards) and was also successful in this case with BCM4328.</p>
<p>Check that the package &#8216;linux-headers&#8217; is installed, this is really just for completeness sakes. Gentoo would not work for long without this package!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># emerge linux-headers</span>
... output ...</pre></div></div>

<p>Unpack the downloaded drivers and build for your current kernel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># tar -xzf hybrid-portsrc-ARCH-VERSION.tar.gz</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># make -C /lib/modules/`uname -r`/build M=`pwd`</span>
... output ...</pre></div></div>

<p>Remove any existing wireless drivers.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># rmmod ndiswrapper b43 ssb bcm43xx b43legacy</span></pre></div></div>

<p>Add in some modules required for WPA wireless:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># modprobe ieee80211_crypt_tkip</span></pre></div></div>

<p>Test the newly built wireless driver:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># insmod wl.ko</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># iwconfig</span>
.. output ...
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># iwlist scanning</span>
... output ...</pre></div></div>

<p>If that is working we can copy in the driver to the kernel and add to the autoload:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># cp wl.ko /lib/modules/`uname-r`/kernel/net/wireless/</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># rmmod wl</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># modprobe wl</span>
<span style="color: #7a0874; font-weight: bold;">&#40;</span>gentoo<span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #666666; font-style: italic;"># echo 'wl' &gt;&gt;/etc/modules.autoload.d/kernel-2.6</span></pre></div></div>

<p>So now we have a working driver we can go on to configure for WPA. Alter the <i>/etc/conf.d/net</i> (note we assume that eth0 is wireless):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Prefer wpa_supplicant over wireless-tools</span>
<span style="color: #007800;">modules</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #ff0000;">&quot;wpa_supplicant&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># It's important that we tell wpa_supplicant which driver we should</span>
<span style="color: #666666; font-style: italic;"># be using as it's not very good at guessing yet</span>
<span style="color: #007800;">wpa_supplicant_eth0</span>=<span style="color: #ff0000;">&quot;-Dmadwifi&quot;</span></pre></div></div>

<p>Next set up the network in the <i>/etc/wpa_supplicant/wpa_supplicant.conf</i>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># This setting is required or the connection will not work</span>
<span style="color: #007800;">ctrl_interface</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>wpa_supplicant
&nbsp;
<span style="color: #666666; font-style: italic;"># Ensure that only root can read the WPA configuration</span>
<span style="color: #007800;">ctrl_interface_group</span>=<span style="color: #000000;">0</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Let wpa_supplicant take care of scanning and AP selection</span>
<span style="color: #007800;">ap_scan</span>=<span style="color: #000000;">1</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Only WPA-PSK is used. Any valid cipher combination is accepted</span>
<span style="color: #007800;">network</span>=<span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #007800;">ssid</span>=<span style="color: #ff0000;">&quot;example&quot;</span>
  <span style="color: #007800;">proto</span>=WPA RSN   <span style="color: #666666; font-style: italic;"># RSN is needed for WPA2</span>
  <span style="color: #007800;">key_mgmt</span>=WPA-PSK
  <span style="color: #007800;">pairwise</span>=CCMP TKIP
  <span style="color: #007800;">group</span>=CCMP TKIP WEP104 WEP40
  <span style="color: #007800;">psk</span>=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
  <span style="color: #666666; font-style: italic;">#The higher the priority the faster it connects</span>
  <span style="color: #007800;">priority</span>=<span style="color: #000000;">2</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>And that is it, you should find that your wireless is enabled on boot.</p>
<p>Thanks should also go to <a href="http://djkaos.wordpress.com/2008/10/25/installing-broadcom-80211-linux-sta-driver/">DJ Kaos</a> for the preparation of the driver.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2010/02/wpa2-wireless-with-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Acer Aspire One Tips</title>
		<link>http://znx.no/2009/09/acer-aspire-one-tips/</link>
		<comments>http://znx.no/2009/09/acer-aspire-one-tips/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 22:10:24 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[aa1]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://znx.no/?p=162</guid>
		<description><![CDATA[Just came across a really good site with lots of tips and tricks for the AA1. I have owned this dinky wee notebook for sometime now and can highly advise it for anyone looking for a Linux Notebook. Some tricks I have are: Alt+F2 &#62; xfce-settings-show &#62; Desktop &#62; Behaviour &#62; Show desktop menu on [...]]]></description>
			<content:encoded><![CDATA[<p>Just came across a really good <a title="Macles Blog" href="http://macles.blogspot.com/">site</a> with lots of tips and tricks for the AA1.</p>
<p>I have owned this dinky wee notebook for sometime now and can highly advise it for anyone looking for a Linux Notebook.</p>
<p>Some tricks I have are:</p>
<p><b>Alt+F2 &gt; xfce-settings-show &gt; Desktop &gt; Behaviour &gt; Show desktop menu on right click.</b><br />
The will enable the XFCE menu on right click, which is useful to me.</p>
<p><b>Alt+F2 &gt; xfce-settings-show &gt; Sessions and Startup &gt; Advanced &gt; Launch Gnome services on startup</b><br />
This will allow NetworkManger to use gnome-keyring and therefore finally store the keys for wireless!</p>
<p>Simple but effective!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/09/acer-aspire-one-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPG Errors</title>
		<link>http://znx.no/2009/08/gpg-errors/</link>
		<comments>http://znx.no/2009/08/gpg-errors/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 21:47:23 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[gpg]]></category>

		<guid isPermaLink="false">http://znx.no/?p=142</guid>
		<description><![CDATA[Sometimes when you are installing RPM&#8217;s or Deb&#8217;s you will find yourself faced with GPG errors. Instead of ignoring them why not fix them! Simply download the key by using the GPG tool: gpg --keyserver pgpkeys.mit.edu --recv-key E6F33B6628973CC0 Then import that key into either apt: gpg -a --export 010908312D230C5F &#124; sudo apt-key add - Or [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes when you are installing RPM&#8217;s or Deb&#8217;s you will find yourself faced with GPG errors. Instead of ignoring them why not fix them!</p>
<p>Simply download the key by using the GPG tool:</p>
<pre>gpg --keyserver pgpkeys.mit.edu --recv-key E6F33B6628973CC0</pre>
<p>Then import that key into either apt:</p>
<pre>gpg -a --export 010908312D230C5F | sudo apt-key add -</pre>
<p>Or rpm:</p>
<pre>gpg --export -a 010908312D230C5F >key.txt
rpm --import key.txt</pre>
<p>Simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/08/gpg-errors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML E-mails And Mutt</title>
		<link>http://znx.no/2009/06/html-e-mails-and-mutt/</link>
		<comments>http://znx.no/2009/06/html-e-mails-and-mutt/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 23:19:20 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://znx.no/?p=137</guid>
		<description><![CDATA[I find myself regularly using terminals and thus have grown to love any tool that allows me to remain in terminal. Mutt is only of those, a fantastic terminal mail client. The only issue is that most people these days send HTML e-mails rather than plain text. This means that when I open them in [...]]]></description>
			<content:encoded><![CDATA[<p>I find myself regularly using terminals and thus have grown to love any tool that allows me to remain in terminal. Mutt is only of those, a fantastic terminal mail client. The only issue is that most people these days send HTML e-mails rather than plain text. This means that when I open them in mutt it is very unreadable. However there is a very simple solution.</p>
<p>First off lets make a simple script to convert the HTML into text. Several terminal based browsers exist and these can do the conversion for us (make sure to place it in your PATH somewhere).</p>
<pre>#!/bin/sh

if [ ! -z `which links | grep -v 'no links'` ]
then
  links -html-numbered-links 1 -html-images 1 -dump "file://$@"
elif [ ! -z `which lynx | grep -v 'no lynx'` ]
then
  lynx -force_html -dump "$@"
elif [ ! -z `which w3m | grep -v 'no w3m'` ]
then
  w3m -T text/html -F -dump "$@"
else
  cat $@
fi</pre>
<p>Add this to your <i>~/.muttrc</i>:</p>
<pre>auto_view text/html
alternative_order text/enriched text/plain text text/html</pre>
<p>And then this to your <i>~/.mailcap</i>:</p>
<pre>text/html;html2txt %s; copiousoutput</pre>
<p>Start up Mutt and get nothing but text e-mails.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/06/html-e-mails-and-mutt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CentOS NetInstall</title>
		<link>http://znx.no/2009/06/centos-netinstall/</link>
		<comments>http://znx.no/2009/06/centos-netinstall/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 17:08:25 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://znx.no/?p=132</guid>
		<description><![CDATA[I recently reinstalled my CentOS (to upgrade to 5.3) and this time I decided to use a netinstall method. The netinstall can be very useful if you have a local repository of RPM files and even then it can be nice to download a very small ISO (only 8.3Mb). So here is how you can [...]]]></description>
			<content:encoded><![CDATA[<p>I recently reinstalled my CentOS (to upgrade to 5.3) and this time I decided to use a netinstall method. The netinstall can be very useful if you have a local repository of RPM files and even then it can be nice to download a very small ISO (only 8.3Mb).</p>
<p>So here is how you can do it for yourself. If you require to setup any partitioning scheme before hand, I highly recommend <a href="http://partitionlogic.org.uk/">Partition Logic</a> as a good run-from-CD partitioning tool. You will also need to download the small <a href="http://anorien.csc.warwick.ac.uk/mirrors/centos/5.3/isos/i386/CentOS-5.3-i386-netinstall.iso">CentOS NetInstall ISO</a>.</p>
<ul>
<li>Boot from the ISO</li>
<li>Type <strong>linux askmethod</strong> at the boot prompt</li>
<li>Select the required network setup. Normally DHCP is good enough, disable IPv6 unless you plan on using it.</li>
<li>Select <strong>HTTP</strong> as the installation method.</li>
<li>If you have a local web server with your RPM&#8217;s on it then put in the information there. Otherwise use: <strong>mirror.centos.org</strong> and <strong>centos/5.3/os/i386</strong>.</li>
<li>Finally start the installation process.</li>
</ul>
<p></p>
<p>The whole thing should take no more than a couple of hours to complete. This method allows you to quickly start an installation of CentOS without the need to download all 6 of the CD&#8217;s or the DVD image.</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/06/centos-netinstall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error Codes</title>
		<link>http://znx.no/2009/06/error-code/</link>
		<comments>http://znx.no/2009/06/error-code/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 22:22:21 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[funny]]></category>

		<guid isPermaLink="false">http://znx.no/?p=123</guid>
		<description><![CDATA[I recently came across this caused me to smile if not giggle. ENOTOBACCO Read on an empty pipe EBEFOREI Invalid syntax ECHERNOBYL Core dumped ECRAY Program exited before being run EDINGDONG The daemon is dead EFLAT System needs tuning EGEEK Program written by inept Frat member EIEIO Here-a-bug, there-a-bug, .... EIUD Missing period ELECTROLUX Your [...]]]></description>
			<content:encoded><![CDATA[<p>I recently came across this caused me to smile if not giggle.</p>
<pre>ENOTOBACCO		Read on an empty pipe
EBEFOREI		Invalid syntax
ECHERNOBYL		Core dumped
ECRAY			Program exited before being run
EDINGDONG		The daemon is dead
EFLAT			System needs tuning
EGEEK			Program written by inept Frat member
EIEIO			Here-a-bug, there-a-bug, ....
EIUD			Missing period
ELECTROLUX		Your code could stand to be cleaned up
EMILYPOST		Wrong fork
END.ARMS.CONTROL	Silo overflow
ENOHORSE		Mount failed
ENONSEQUETOR		C program not derived from main(){printf("Hello, world");}
EWATERGATE		Extended tape gap
EWOK			Aliens sighted
EWOK			Your code appears to have been stir-fried
EWOULDBNICE     	The feature you want has not been implemented yet</pre>
<p>Not to be out done, a new signal:</p>
<pre>SIGNUKE     	Nuclear event occurred (cannot be caught or ignored)</pre>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/06/error-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skinning A Cat</title>
		<link>http://znx.no/2009/05/skinning-a-cat/</link>
		<comments>http://znx.no/2009/05/skinning-a-cat/#comments</comments>
		<pubDate>Sun, 17 May 2009 02:02:36 +0000</pubDate>
		<dc:creator>znx</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://znx.no/?p=116</guid>
		<description><![CDATA[I was recently discussing with someone about sed usage. They were having difficultly creating an appropriate regex to handle their problem: (Orlando) sed regex kicks my ass. I like to remove the second : in the line. So that in 123:456:6789 it will only returns 123:456. I can find the first :, but I have [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently discussing with someone about <code>sed</code> usage. They were having difficultly creating an appropriate regex to handle their problem:</p>
<pre>(Orlando) sed regex kicks my ass.  I like to remove the second : in the
line. So that in 123:456:6789 it will only returns 123:456.  I can find the
first :, but I have not been able to use s/:{2}// to find the second
one, and remove the rest.</pre>
<p>I enjoy regex (I know I&#8217;m weird, leave me alone), so I was able to provide an answer to this problem:</p>
<pre>(@znx) Orlando: the trick is to use [^:] and \1 ..
(@znx) like:   s/\(:[^:]*\):.*/\1/</pre>
<p>Now obviously at first glance this regex could be a bit intimating to someone who is still picking up the skills but as with most things if we break it down it becomes easier.</p>
<p>Working out to in, <code>\(    \):.*</code>, that says match something with <strong>:</strong> at the end and all the character after it. The <strong>.</strong> is a special meaning &#8220;any character&#8221; and <strong>*</strong> to match multiple characters. The first match will be stored by <code>sed</code> and assigned into the <strong>\1</strong> for the replacement (that is what the brackets do). Inside the brackets we have <code>:[^:]*</code>. The sequence <strong>[^ ]</strong> is a negated list, that means that we are asking it to match everything that is NOT inside the list, in this case <strong>:</strong>.</p>
<p>Putting it altogether we are saying: Match a leading : and a trailing : with any characters after it. Placing the contents between the two <strong>:</strong> in memory. Then finally we replace the contents.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">123</span>:<span style="color: #000000;">456</span>:<span style="color: #000000;">6789</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/\(:[^:]*\):.*/\1/'</span>
<span style="color: #000000;">123</span>:<span style="color: #000000;">456</span></pre></div></div>

<p>Sucess, however as with most things, there is more than one way to skin a cat and regex is rarely the prettiest method. So what other ways can we solve this problem?</p>
<p>With AWK:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">123</span>:<span style="color: #000000;">456</span>:<span style="color: #000000;">6789</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> -F: <span style="color: #ff0000;">'{print $1&quot;:&quot;$2}'</span>
<span style="color: #000000;">123</span>:<span style="color: #000000;">456</span></pre></div></div>

<p>With <code>cut</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">123</span>:<span style="color: #000000;">456</span>:<span style="color: #000000;">6789</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> -d: -f1,<span style="color: #000000;">2</span>
<span style="color: #000000;">123</span>:<span style="color: #000000;">456</span></pre></div></div>

<p>As always, experimentation with the mass of GNU tools you can find on your system will bring a greater deal of power to your tool chest. Mind you, then I wouldn&#8217;t get complements for helping would I?</p>
<pre>(Orlando) Wow, When I grow up, I like to remember this thing like you do. <img src='http://znx.no/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </pre>
<p>Haha, till next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://znx.no/2009/05/skinning-a-cat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
