<?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>Feeding The Machine &#187; Open Source</title>
	<atom:link href="http://www.feedingthemachine.com/tag/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.feedingthemachine.com</link>
	<description>Gotta keep the fires burning so those gears will keep on turning.</description>
	<lastBuildDate>Fri, 20 Jan 2012 21:51:11 +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>ClamAV Live CD update script</title>
		<link>http://www.feedingthemachine.com/2009/01/clamav-live-cd-update-script/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=clamav-live-cd-update-script</link>
		<comments>http://www.feedingthemachine.com/2009/01/clamav-live-cd-update-script/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 06:41:00 +0000</pubDate>
		<dc:creator>q</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.feedingthemachine.com/?p=166</guid>
		<description><![CDATA[Brandon Perry has created a very handy live CD for running Clam AV. One of the tricks with CD&#8217;s like this though is that the virus definitions need to be continually updated. He graciously addressed this by writing up a script that automates that process of updating the definitions and re-creating the CD. I checked [...]]]></description>
			<content:encoded><![CDATA[<p>Brandon Perry has created a very handy live CD for running Clam AV. One of the tricks with CD&#8217;s like this though is that the virus definitions need to be continually updated.</p>
<p>He graciously addressed this by writing up a script that automates that process of updating the definitions and re-creating the CD. I checked it out and decided to make a couple improvements. Mostly things to make it more portable and maintainable. Here is my version (note that there may be some wrapping problems so a direct copy/paste will be a problem. Yay for no attachments.):<br />
<blockquote>#!/bin/bash</p>
<p>iso=&#8221;ClamAVLiveCD2.0&#8243;<br />ver=&#8221;2.0&#8243;</p>
<p>if [ "$UID" -ne "0" ]<br />then<br />   echo &#8220;This script will only work when run by &#8220;root&#8221;.&#8221;<br />   exit 1<br />fi</p>
<p># not everyone will have squash tools, install them if not found<br />if [ ! `which unsquashfs` ]<br />then<br />   aptitude install squashfs-tools<br />fi</p>
<p># not everyone will have genisoimage, install it if not found<br />if [ ! `which mkisofs` ]<br />then<br />   aptitude install genisoimage<br />fi</p>
<p>START=$(date +%s)</p>
<p>mkdir iso<br />mount $iso.iso iso/ -o loop</p>
<p>cp -R iso/ image/</p>
<p>echo &#8220;Decompressing SquashFS&#8230;&#8221;<br />cp iso/casper/filesystem.squashfs ./<br />unsquashfs filesystem.squashfs</p>
<p>echo &#8220;Setting up Live CD chroot&#8230;&#8221;<br />cp /etc/resolv.conf squashfs-root/etc/resolv.conf</p>
<p>chroot squashfs-root/ mount /proc<br />chroot squashfs-root/ mount /sys<br />chroot squashfs-root/ mount -t devpts none /dev/pts</p>
<p>echo &#8220;Refreshing and updating ClamAV virus definitions&#8230;&#8221;<br />chroot squashfs-root/ freshclam</p>
<p>#cleanup chroot<br />echo &#8220;Cleaning up chroot&#8230;&#8221;<br />chroot squashfs-root/ rm -rf /tmp/*<br />chroot squashfs-root/ rm /etc/resolv.conf<br />chroot squashfs-root/ umount -l -f /proc<br />chroot squashfs-root/ umount -l -f /sys<br />chroot squashfs-root/ umount /dev/pts</p>
<p>echo &#8220;Removing old SquashFS filesystem&#8230;&#8221;<br />rm image/casper/filesystem.squashfs</p>
<p>echo &#8220;Creating new SquashFS filesystem&#8230;&#8221;<br />mksquashfs squashfs-root image/casper/filesystem.squashfs</p>
<p>echo &#8220;Finding and creating MD5 hash sums of files in image&#8230;&#8221;<br />cd image<br />find . -type f -print0 | xargs -0 md5sum > md5sum.txt</p>
<p>cd ..<br />echo &#8220;Creating new image&#8230;&#8221;<br />mkisofs -r -V &#8220;ClamAV Live CD $ver&#8221; -cache-inodes -J -l \<br />-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \<br />-boot-load-size 4 -boot-info-table -o $iso_new.iso image/</p>
<p># Make sure that mkisofs succeeded before we try moving or renaming<br /># any images.<br />if [ $? != "0" ]<br />then<br />   echo &#8220;mkisofs failed with error code: $?&#8221;<br />   exit<br />fi</p>
<p>echo &#8220;Renaming new image, and moving original image to old&#8230;&#8221;<br />mv $iso.iso $iso_old.iso<br />mv $iso_new.iso $iso.iso</p>
<p>#cleanup working directory</p>
<p>echo &#8220;Cleaning up working directory&#8230;&#8221;<br />umount iso/</p>
<p>rm -rf squashfs-root<br />rm -rf image<br />rm -rf iso<br />rm filesystem.squashfs</p>
<p>echo &#8220;Getting MD5 and SHA1 sum of image&#8230;&#8221;<br />echo &#8220;MD5: &#8221; > clamavlivecd.sums<br />md5sum $iso.iso >> clamavlivecd.sums<br />echo &#8220;SHA1: &#8221; >> clamavlivecd.sums<br />sha1sum $iso.iso >> clamavlivecd.sums</p>
<p>END=$(date +%s)</p>
<p>echo &#8220;Done at `date`. The whole process took $(($END &#8211; $START)) seconds!&#8221;</p></blockquote>
<p>His original is posted at <a href="http://volatile-minds.blogspot.com/2008/12/clamav-live-cd-being-updated-every-hour.html#links">Volatile Minds: ClamAV Live CD being updated every hour! (+ script)</a></p>
<p>You can get his clam AV live CD at <a href="http://volatileminds.net/projects/clamav/">http://volatileminds.net/projects/clamav/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.feedingthemachine.com/2009/01/clamav-live-cd-update-script/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Freaking Brilliant</title>
		<link>http://www.feedingthemachine.com/2008/01/freaking-brilliant/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=freaking-brilliant</link>
		<comments>http://www.feedingthemachine.com/2008/01/freaking-brilliant/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 21:46:00 +0000</pubDate>
		<dc:creator>q</dc:creator>
				<category><![CDATA[Freedom]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[philosophy]]></category>

		<guid isPermaLink="false">http://www.feedingthemachine.com/?p=121</guid>
		<description><![CDATA[In the spirit of MLK Jr day in the US, Joey Stanford wrote a rather brilliant piece on the part that Free Software can play in forwarding the social good. Good job Joey. I particularly liked this quote he referenced from Martin Luther King Jr: “Change does not roll in on the wheels of inevitability, [...]]]></description>
			<content:encoded><![CDATA[<p>In the spirit of MLK Jr day in the US, Joey Stanford wrote a rather <a href="http://joey.ubuntu-rocks.org/blog/2008/01/21/a-day-of-freedom/">brilliant piece</a> on the part that Free Software can play in forwarding the social good. Good job Joey. I particularly liked this quote he referenced from Martin Luther King Jr:</p>
<p>“<strong>Change does not roll in on the wheels of inevitability, but comes through continuous struggle. And so we must straighten our backs and work for our freedom. A man can’t ride you unless your back is bent.”</p>
<p><span style="font-weight: normal;">Awesome. I&#8217;ve often wished I had been alive to see or hear MLK Jr speak.</span><br /></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.feedingthemachine.com/2008/01/freaking-brilliant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hell Hath Frozen Over</title>
		<link>http://www.feedingthemachine.com/2007/09/hell-hath-frozen-over/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=hell-hath-frozen-over</link>
		<comments>http://www.feedingthemachine.com/2007/09/hell-hath-frozen-over/#comments</comments>
		<pubDate>Wed, 05 Sep 2007 17:22:00 +0000</pubDate>
		<dc:creator>q</dc:creator>
				<category><![CDATA[AMD]]></category>
		<category><![CDATA[customer service]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.feedingthemachine.com/?p=112</guid>
		<description><![CDATA[AMD just promised to release chip specs and a minimal reference driver to the OSS community for all their products from R500 forward so that the community can create good drivers for them. Big kudos to to AMD for this move. This is huge, and I seriously had my doubts about it happening. The best [...]]]></description>
			<content:encoded><![CDATA[<p>AMD <a href="http://lwn.net/Articles/248227/">just promised</a> to release chip specs and a minimal reference driver to the OSS community for all their products from R500 forward so that the community can create good drivers for them. Big kudos to to AMD for this move. This is huge, and I seriously had my doubts about it happening. The best part about this is that Nvidia is now the odd man out amongst the top three video chip producers with closed hardware and/or (fully functional) drivers. One hopes they will decide to join the party soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.feedingthemachine.com/2007/09/hell-hath-frozen-over/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

