<?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; FreeBSD</title>
	<atom:link href="http://lair.moria.org/blog/archives/category/freebsd/feed" rel="self" type="application/rss+xml" />
	<link>http://lair.moria.org/blog</link>
	<description>Unix, Information Security &#38; Systems Administration</description>
	<lastBuildDate>Thu, 10 Feb 2011 21:44:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>convert man pages to PDF</title>
		<link>http://lair.moria.org/blog/archives/267</link>
		<comments>http://lair.moria.org/blog/archives/267#comments</comments>
		<pubDate>Sun, 09 Aug 2009 14:22:19 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=267</guid>
		<description><![CDATA[Recently I had need to produce pdf files of some man pages simple because the are far easier to print and review onscreen. The following snippet added to my .bash_profile does the trick. # Convert man pages to pdf man2pdf() { m2pfile="/tmp/${1}-m2p.pdf" if [ ! -s $m2pfile ]; then # is it there and &#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had need to produce pdf files of some man pages simple because the are far easier to print and review onscreen.  The following snippet added to my .bash_profile does the trick.</p>
<p><code><br />
# Convert man pages to pdf<br />
man2pdf()<br />
{<br />
m2pfile="/tmp/${1}-m2p.pdf"<br />
if [ ! -s $m2pfile ]; then   # is it there and &gt; zero bytes&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;     man -t "${1}" | ps2pdf  - &gt;  "$m2pfile"<br />
&nbsp;&nbsp;&nbsp;&nbsp;     fsize=`du -k $m2pfile | awk '{print $1}'`<br />
&nbsp;&nbsp;&nbsp;&nbsp;     echo "Created PDF file in $m2pfile ($fsize KB)"<br />
fi<br />
}<br />
</code></p>
<p>It can trivially be extended to check for things like a $DISPLAY variable and pop up a viewer or request to print.  The caching is admittedly crude, but works since /tmp is cleared out periodically. Output  looks like:</p>
<p><code>[bvi@starburst ~]$ man2pdf ls<br />
Created PDF file in /tmp/ls-m2p.pdf (20 KB)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/267/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning up&#8230;</title>
		<link>http://lair.moria.org/blog/archives/201</link>
		<comments>http://lair.moria.org/blog/archives/201#comments</comments>
		<pubDate>Mon, 29 Jun 2009 21:11:32 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[PhD]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Books]]></category>
		<category><![CDATA[sys]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=201</guid>
		<description><![CDATA[With the year almost half gone,  and Winter Solstice almost a distant memory, its time to catch up with some of the systems related housekeeping. While conficker seems to still be rampaging around from my scan log inspections, the Conficker Working Group has been quite since late April. A far greater threat to civilization is [...]]]></description>
			<content:encoded><![CDATA[<p>With the year almost half gone,  and <a href="http://en.wikipedia.org/wiki/Winter_solstice">Winter Solstice</a> almost a distant memory, its time to catch up with some of the systems related housekeeping. While <a href="http://en.wikipedia.org/wiki/Conficker">conficker</a> seems to still be rampaging around from my scan log inspections, the <a href="http://www.confickerworkinggroup.org/">Conficker Working Group</a> has been quite since late April. A far greater threat to civilization is that  coming from North Korea.  Some of the sysadmin type work done include:</p>
<ul>
<li>migrating the host for this blog, along with pretty much all my other FreeBSD boxes to FreeBSD 7.2.</li>
<li>Trying out the new <a title="New Jail features in FreeBSD - milti ip and more control" href="http://www.cyberciti.biz/tips/freebsd-72-review-improved-virtualization.html">jail(8) features in 7.2</a> particularly the multip  ip and ipv6 support</li>
<li>A move to wordpress 2.8, which while the upgrade was pretty painless Ive ruin into some hastles with plugins that break the nice widget selection system  under the admin panel &#8211; most notable of the plugins I&#8217;ve notice d causing this is <a href="http://wordpress.org/extend/plugins/wp-recaptcha/">wp-recapcha</a>. Along with this has been a migration to somethign alittle more elegant than the boring Kubric Theme.</li>
<li>A pilot version of my new squid external_acl  filtering software is being tested by two sites, so far with positive results.</li>
</ul>
<p>Progress on the phd is plodding on with growing collection of rather interesting images and plots generation that I now need to try fathom and write about. with the university now on vac I should be able to make good progress in this direction.</p>
<p>One of the most fascinating and gripping books I have read in a while is<a title="Apache: Inside the Cockpit of the World’s Most Deadly Fighting Machine" href="http://lair.moria.org/blog/library/ed-macy/apache-inside-the-cockpit-of-the-worlds-most-deadly-fighting-machine/"> Ed Macy&#8217;s Apache</a>, which is well worth a read if you are into military biographies.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/201/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RIP LT box</title>
		<link>http://lair.moria.org/blog/archives/188</link>
		<comments>http://lair.moria.org/blog/archives/188#comments</comments>
		<pubDate>Fri, 13 Mar 2009 11:43:15 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=188</guid>
		<description><![CDATA[This morning I move the last of the services and data off the system I&#8217;ve had at LayeredTech since November 2005. This little AMD XP 2400 has given great service over the years, but the hardware got increasingly flaky and the cost of hosting at LT just keeps increasing for old kit. These factors in [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I move the last of the services and data off the system I&#8217;ve had at <a href="http://layeredtech.com/">LayeredTech</a> since November 2005.  This little AMD XP 2400 has given great service over the years, but the hardware got increasingly flaky and the cost of hosting at LT just keeps increasing for old kit.  These factors in combination with a change of datacenters prompted me to bid it a fond farewell and relocate much of my offshore stuff to a shiny new host at hetzner.de, along with the chance to move to FreeBSD7.x,  and free myself of the cruft that accumulates with 4.x -&gt; 5.x -&gt; 6.x migrations without clean installs.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/188/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stable builds</title>
		<link>http://lair.moria.org/blog/archives/18</link>
		<comments>http://lair.moria.org/blog/archives/18#comments</comments>
		<pubDate>Wed, 21 May 2008 21:37:02 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=18</guid>
		<description><![CDATA[I was cleaning out some old notes the other day and came across a pile of work relating to the development of some custom FreeBSD firewall solutions that Neil and I developed while at Itouch Labs, many years back in 2002. The majority of the code is completely out dated, given these were based on [...]]]></description>
			<content:encoded><![CDATA[<p>I was cleaning out some old notes the other day and came across a pile of work relating to the development of some custom FreeBSD firewall solutions that <a href="http://nxsy.org">Neil</a> and I developed while at Itouch Labs, many years back in 2002.</p>
<p>The majority of the code is completely out dated, given these were based on the the then bleeding edge 4.3  branch.  The only thing thats probably of value, is to sometime dust off the extensions we did to natd to provide an interactive console and the ability to reload rules without dumping its state table. Possibly post PhD.</p>
<p>I also found a link to a post made by <a href="http://devco.net/">Arri</a> when he <a href="http://www.devco.net/archives/2006/07/30/freebsd_stability.php">decommissioned them</a> some four and a bit years later, with some impressive uptimes:</p>
<blockquote><p>4.3-RELEASE-p28 FreeBSD 4.3-RELEASE-p28 #0<br />
8:56AM  up 1175 days, 14:25, 1 user, load averages: 0.01, 0.00, 0.00<br />
4.3-RELEASE FreeBSD 4.3-RELEASE #3: Thu Aug  9 08:24:10 SAST 2001<br />
8:55AM  up 1353 days, 13:07, 1 user, load averages: 0.07, 0.03, 0.004.3-RELEASE FreeBSD 4.3-RELEASE #3: Thu Aug  9 08:24:10 SAST 2001<br />
8:57AM  up 1636 days, 12:16, 2 users, load averages: 0.01, 0.02, 0.00</p></blockquote>
<p>BSD is great to work with! I see that the 2nd edition of <a href="http://www.absolutefreebsd.com/">Absolute FreeBSD</a> is now finally available, and am eagerly  awaiting for my copy to arrive.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/18/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Systems Administration Cheet Sheets</title>
		<link>http://lair.moria.org/blog/archives/15</link>
		<comments>http://lair.moria.org/blog/archives/15#comments</comments>
		<pubDate>Sun, 18 May 2008 08:25:09 +0000</pubDate>
		<dc:creator>Barry Irwin</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Systems Administration]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lair.moria.org/blog/?p=15</guid>
		<description><![CDATA[Colin Barschel has published a rather complete listing of how to perform common unix related tasks in Linux and FreeBSD, and even some Solaris examples. Even better hes got a booklet version as well for easy printing. Something to keep on the back burner/bookmarks for when you get stuck trying to remember just how broken [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://cb.vu/" target="_blank">Colin Barschel</a> has published a rather complete listing of <a href="http://cb.vu/unixtoolbox.xhtml">how to perform common unix related tasks </a>in Linux and FreeBSD, and even some Solaris examples. Even better hes got a<a title="Booklet PDF version" href="http://cb.vu/unixtoolbox.book.pdf" target="_blank"> booklet version</a> as well for easy printing.  Something to keep on the back burner/bookmarks for when you get stuck trying to remember just how broken ‹insert os of choice›&#8217;s fooblat command is.</p>
]]></content:encoded>
			<wfw:commentRss>http://lair.moria.org/blog/archives/15/feed</wfw:commentRss>
		<slash:comments>0</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>
	</channel>
</rss>

