<?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>Static in the Ether &#187; Unix</title>
	<atom:link href="http://lair.moria.org/blog/archives/tag/unix/feed" rel="self" type="application/rss+xml" />
	<link>http://lair.moria.org/blog</link>
	<description>Unix, Information Security &#38; Systems Administration</description>
	<lastBuildDate>Wed, 11 Nov 2009 09:14:29 +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>Hilbert Curve TNG &#8211; Unix port</title>
		<link>http://lair.moria.org/blog/archives/11</link>
		<comments>http://lair.moria.org/blog/archives/11#comments</comments>
		<pubDate>Sun, 20 Apr 2008 10:41:13 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[Vizualization]]></category>
		<category><![CDATA[Hilbert Curve]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=11</guid>
		<description><![CDATA[The Hilbert Curve Rework project is progressing well with version 2.05 having been released, by Nick earlier this week. Ive now taken the opportunity to port the current Windows code across to unix and particularly FreeBSD. Around 10 lines worth of changes later the app built and ran on my FreeBSD 7.0 system. For once [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://nick.rucus.net/hilbert/">Hilbert Curve Rework project</a> is progressing well with <a href="http://nick.rucus.net/hilbert/hilbert205.zip">version 2.05</a> having been released, by Nick earlier this week.  Ive now taken the opportunity to port the current Windows code across to unix and particularly FreeBSD. Around 10 lines worth of changes later the app built and ran on my FreeBSD 7.0 system. For once the mantra of the C/C++ work actually proved try &#8211; write once, run anywhere.  I really wish Java was that simple.</p>
<p>A couple of issues still need to be addressed:</p>
<ul>
<li>Rework the source to we can maintain a single source three for Windows and Unix targets- this is mostly slog rather than thinking work.</li>
<li>There is a bug in that some images are coming out a little wrong, but I think this may have to do with line termination issues the good old <tt>\r\n</tt> <em>vs.</em> <tt>\n</tt> issue again.</li>
<li>Write some decent docs!</li>
</ul>
<p>With a bit of luck <a title="Nicholas Pilkington" href="http://nick.rucus.net/">Nick</a> should be returning to Grahamstown for a month or so thanks to some funding from the<a href="http://www.coe.ru.ac.za/"> Center of Excellence</a> in the department. Working on the Hilbert project will be one of his main priorities.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/11/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Remote FreeBSD install &#8211; Depenguinator TNG</title>
		<link>http://lair.moria.org/blog/archives/10</link>
		<comments>http://lair.moria.org/blog/archives/10#comments</comments>
		<pubDate>Sat, 19 Apr 2008 10:39:11 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=10</guid>
		<description><![CDATA[Daniel Gerzo, has recently published an article as part of the FreeBSD documentation project on how to install FreeBSD on a remote system, when one doesn&#8217;t have the luxury of a IP KVM or other remote console. Unfortunately most hosting providers seem to think Linux in its gazillions of flavors (really who would want to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danger.rulez.sk/">Daniel Gerzo</a>, has recently published an <a title="Remote Installation of the FreeBSD Operating System without a Remote Console" href="http://www.freebsd.org/doc/en_US.ISO8859-1/articles/remote-install/index.html" target="_blank">article</a> as part of the <a href="http://www.freebsd.org/">FreeBSD</a> documentation project on how to install FreeBSD on a remote system, when one doesn&#8217;t have the luxury of a IP KVM or other remote console.  Unfortunately most hosting providers seem to think Linux in its gazillions of flavors (really who would want to run <a title="Gentoo - because you like recompileing every 5 minutes " href="http://lair.moria.org/blog/wp-admin/www.gentoo.org" target="_blank">Gentoo</a>?) is the preferable option to windows.</p>
<p>The basic process is about creating a magic memory File System 9MFS) based mini FreeBSD install one can then <tt>dd</tt>over the base MBR on the system  This gets you jsut enough of a Real  OS to carry on with the rest of your install.</p>
<p>What this means for me is the possibility of doing some nice rmeote upgrade, or more acuratlye nuke and paves on some remorely hosted equipment.  The big cath of course is your remote systems should have sufficient bandwidth (, or at least a local copy of the ISO or CD handy and mounted.  Exploring other hosting providers may also now be feasible, now that I can run my favorite server OS without having to try persuade remotes upport to just put a BSD CD in and let me pay for a KVM access window :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/10/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sorting IPv4 Addresses with GNU Sort</title>
		<link>http://lair.moria.org/blog/archives/4</link>
		<comments>http://lair.moria.org/blog/archives/4#comments</comments>
		<pubDate>Tue, 08 Apr 2008 00:36:13 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=4</guid>
		<description><![CDATA[While processing some rather large lists of addresses as part of a side project, I needed to be able to sort them in a numerical order within a shell script. I had a file with lines like: 69.90.132.19 69.90.132.22 66.152.91.84 208.122.204.181 69.90.132.22 69.90.132.31 216.131.106.249 216.131.84.26 67.55.105.252 208.64.44.102 Standard sort using sort –n only sorts on [...]]]></description>
			<content:encoded><![CDATA[<p>While processing some rather large lists of addresses as part of a side project, I needed to be able to sort them in a numerical order within a shell script. I had a file with lines like:</p>
<ul>
<li><tt>69.90.132.19</tt></li>
<li><tt>69.90.132.22</tt></li>
<li><tt>66.152.91.84</tt></li>
<li><tt>208.122.204.181</tt></li>
<li><tt>69.90.132.22</tt></li>
<li><tt>69.90.132.31</tt></li>
<li><tt>216.131.106.249</tt></li>
<li><tt>216.131.84.26</tt></li>
<li><tt>67.55.105.252</tt></li>
<li><tt>208.64.44.102</tt></li>
</ul>
<p>Standard sort using sort –n only sorts on the first octet, and although it&#8217;s a improvement on alphabetic sorting its not ideal.  The solution comes in specifying a pile of switches to sort:</p>
<pre><tt>sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4</tt></pre>
<p style="18pt">This gets it sorted in Numerical order, by octet, using a period (dot) as a separator between octets. Combining this with a <tt>–u</tt> flag gives one a nicely sorted, unique list of IP addresses.  This could probably be extended to IPv6 without too much hastle.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
