<?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>Paul Tow &#187; Linux</title>
	<atom:link href="http://www.paultow.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.paultow.com</link>
	<description>Tech writer for hire</description>
	<lastBuildDate>Thu, 24 Dec 2009 21:32:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Multiplatform pick: Folding@home</title>
		<link>http://www.paultow.com/2009/06/15/foldinghome/</link>
		<comments>http://www.paultow.com/2009/06/15/foldinghome/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 00:25:44 +0000</pubDate>
		<dc:creator>Paul Tow</dc:creator>
				<category><![CDATA[Picks & Reviews]]></category>
		<category><![CDATA[Alzheimer's]]></category>
		<category><![CDATA[cancer]]></category>
		<category><![CDATA[cause]]></category>
		<category><![CDATA[distributed computing]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.paultow.com/?p=191</guid>
		<description><![CDATA[Folding@home is a way to easily contribute for free to the search for cures to Alzheimer&#8217;s disease and even many cancers. All you have to do is let Stanford University&#8217;s free program run in the background on your computer (Windows, Mac, Linux, BSD) or Sony PlayStation3. I recommend that you give it a try if [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://folding.stanford.edu"><img class="alignright size-full wp-image-254" title="Folding@home" src="http://www.paultow.com/wp-content/uploads/2009/06/folding_at_home.png" alt="Folding@home" width="128" height="128" />Folding@home</a> is a way to easily contribute for free to the search for cures to Alzheimer&#8217;s disease and even many cancers. All you have to do is let Stanford University&#8217;s free program run in the background on your computer (Windows, Mac, Linux, BSD) or Sony PlayStation3. I recommend that you give it a try if you haven&#8217;t already. More details after the jump.<span id="more-191"></span></p>
<p>An important biological function that scientists still don&#8217;t have a firm understanding of is how proteins fold (assemble themselves). By studying the results of computer simulations, they hope to find cures to diseases resulting from proteins misfolding. These simulations are extremely complex, to the point that they require massive distributed computing. Nobody on their own has enough computing power to do the work alone. The Folding@home project needs the help of many computers from around the world. Further information can be found in their <a href="http://folding.stanford.edu/English/FAQ">FAQ</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.paultow.com/2009/06/15/foldinghome/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to: Block ads with a router</title>
		<link>http://www.paultow.com/2009/06/10/how-to-block-ads-with-a-router/</link>
		<comments>http://www.paultow.com/2009/06/10/how-to-block-ads-with-a-router/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 16:56:46 +0000</pubDate>
		<dc:creator>Paul Tow</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[ad]]></category>
		<category><![CDATA[ad-blocking]]></category>
		<category><![CDATA[adblock]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[Linksys]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[Tomato]]></category>

		<guid isPermaLink="false">http://www.paultow.com/?p=65</guid>
		<description><![CDATA[Does the idea of blocking online advertisements appeal to you? Many solutions exist, such as the AdBlock Plus extension for Firefox, CSS-based ad-blocking, and Privoxy. What you may not be familiar with, however, is using a router to block ads. Imagine: ad-blocking for an entire network, for all browsers and all operating systems, without any [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Linksys WRT54G" src="http://www-es.linksys.com/servlet/Satellite?blobcol=urldata&amp;blobheadername1=Content-Type&amp;blobheadername2=Content-Disposition&amp;blobheadervalue1=image%2Fjpeg&amp;blobheadervalue2=inline%3B+filename%3DWRT54GL_med%252C2.jpg&amp;blobkey=id&amp;blobtable=MungoBlobs&amp;blobwhere=1130868514220&amp;ssbinary=true" alt="" width="135" height="114" />Does the idea of blocking online advertisements appeal to you? Many solutions exist, such as the <a href="http://www.adblockplus.org/">AdBlock Plus</a> extension for Firefox, CSS-based ad-blocking, and <a href="http://www.privoxy.org/">Privoxy</a>. What you may not be familiar with, however, is using a router to block ads. Imagine: ad-blocking for an entire network, for all browsers and all operating systems, without any additional configuration on the clients. This includes devices which might not otherwise have a way to block ads, and it can be made even nicer by having the router automatically update its ad-blocking rules. All you need is the <a href="http://www.polarcloud.com/tomato">Tomato firmware</a> on a compatible router and this guide.<span id="more-65"></span></p>
<ol>
<li>Check if you have a <a href="http://www.polarcloud.com/tomatofaq#what_will_this_run_on">compatible router</a>. If you do, follow the installation instructions carefully, realizing that you are modifying firmware at your own risk. Set your router as you like and then continue to step 2.</li>
<li>
<div id="attachment_48" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-init.jpg"><img class="size-thumbnail wp-image-48" title="Init script" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-init-150x150.jpg" alt="Administration -&gt; Scripts -&gt; Init" width="150" height="150" /></a><p class="wp-caption-text">Administration -&gt; Scripts -&gt; Init</p></div>
<p><br class="spacer_" /></p>
<p>In your router&#8217;s config panel, go to Administration -&gt; Scripts. Paste the following in the &#8220;Init&#8221; script, which will run when the router is booted. This will create an empty text file called adblock.conf</p>
<pre>sleep 3
touch /etc/adblock.conf
sleep 2
logger adblock.conf created</pre>
</li>
<p><br class="spacer_" /></p>
<li>
<p><div id="attachment_49" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-wan_up.jpg"><img class="size-thumbnail wp-image-49" title="WAN Up script" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-wan_up-150x150.jpg" alt="Administration -&gt; Scripts -&gt; WAN Up" width="150" height="150" /></a><p class="wp-caption-text">Administration -&gt; Scripts -&gt; WAN Up</p></div> <br class="spacer_" /></p>
<p>Once the router obtains an Internet/WAN connection, we want it to download the latest ad server list. Still under Administration -&gt; Scripts, choose WAN Up and paste the following:</p>
<pre>logger WAN UP Script will execute after 30sec please wait.....
sleep 30
wget -O /etc/adblock.conf "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;showintro=0&amp;mimetype=plaintext"
service dnsmasq restart</pre>
</li>
<p> <br class="spacer_" /></p>
<li>
<p><div id="attachment_50" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-custom_1.jpg"><img class="size-thumbnail wp-image-50" title="Custom scheduler" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-custom_1-150x150.jpg" alt="Advanced -&gt; Scheduler" width="150" height="150" /></a><p class="wp-caption-text">Advanced -&gt; Scheduler</p></div> <br class="spacer_" /></p>
<p>Now we want to set the router to update its ad blocking rules on a regular basis. Go to Administration -&gt; Scheduler.</p>
</li>
<p><br class="spacer_" /><br class="spacer_" /><br class="spacer_" /><br class="spacer_" /></p>
<li>
<p>Check the box labeled &#8220;Enabled&#8221; under Custom 1, 2, or 3.</p>
</li>
<li>For the time, choose a reasonable update interval that isn&#8217;t overly aggressive. I chose to update once a week (every 10080 minutes, Everyday).</li>
<li>Paste the following into the box labeled &#8220;Command.&#8221;
<pre>wget -O /etc/adblock.conf "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;showintro=0&amp;mimetype=plaintext" &amp;&amp; service dnsmasq restart;</pre>
</li>
<li>
<p><div id="attachment_51" class="wp-caption alignleft" style="width: 160px"><a href="http://www.paultow.com/wp-content/uploads/2007/07/tomato-dnsmasq.jpg"><img class="size-thumbnail wp-image-51" title="DNSmasq" src="http://www.paultow.com/wp-content/uploads/2007/07/tomato-dnsmasq-150x150.jpg" alt="Advanced -&gt; DHCP / DNS" width="150" height="150" /></a><p class="wp-caption-text">Advanced -&gt; DHCP / DNS</p></div> <br class="spacer_" /></p>
<p>Almost done! Go to Advanced -&gt; DHCP / DNS, and make sure that &#8220;Use Internal Caching DNS Forwarder&#8221; is checked.</p>
</li>
<p> <br class="spacer_" /><br class="spacer_" /><br class="spacer_" /><br class="spacer_" /></p>
<li>
<p>Paste the following into the box labeled &#8220;Dnsmasq custom configuration.&#8221;</p>
<pre>conf-file=/etc/adblock.conf</pre>
</li>
<li>If you ever suspect that the adblocking is breaking a particular website (such as streaming video), you can temporarily disable it just by removing the text in step 9.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.paultow.com/2009/06/10/how-to-block-ads-with-a-router/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>How to: Use Twitter for software update notifications</title>
		<link>http://www.paultow.com/2007/07/10/use-twitter-for-software-update-notifications/</link>
		<comments>http://www.paultow.com/2007/07/10/use-twitter-for-software-update-notifications/#comments</comments>
		<pubDate>Tue, 10 Jul 2007 05:14:10 +0000</pubDate>
		<dc:creator>Paul Tow</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://macskeeball.wordpress.com/2007/07/10/using-twitter-for-software-update-notifications/</guid>
		<description><![CDATA[Putting the above pieces together, it is possible for you to set your server to periodically check for updates and then, if it finds any, update a Twitter status with alsit of available updates. You can then subscribe to the Twitter feed in a feed reader, or better yet use a service such as Feedburner, Yahoo! Alerts, or RMail to receive email notification when the Twitter feed is updated.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.twitter.com"><img class="alignright" title="Twitter bird" src="http://twitter.com/images/press-bird.gif" alt="" width="141" height="110" /></a>When running a server, security is a major concern. Part of that means keeping the software up to date, and package managers make it very easy to update all of the software installed on a Linux system in one fell swoop. However, the person maintaining the server still needs to be made aware that updates are available, and servers are often headless. While it&#8217;s true that tools such as cron-apt are available to receive update notification via email, such tools require the user to run their own mail server, which many ISPs block in an effort to reduce spam. Fortunately, it is possible to get around this using <a href="http://www.twitter.com">Twitter</a>.<span id="more-12"></span></p>
<p>Twitter is a popular web service that lets its users post short status messages and is intended to be used for keeping friends up to date on whatever it is you may be doing at a given moment. However, these status messages are really just free form blobs of text (containing a maximum of 140 characters) with RSS feeds to monitor updates. There are many different ways to update a Twitter status, including from the command line. Actions that can be performed non-interactively in the command line can be scheduled to run automatically on a regular basis.</p>
<p>Putting the above pieces together, it is possible for you to set your server to periodically check for updates and then, if it finds any, update a Twitter status used for self notifications with a list of available updates. You can then subscribe to the Twitter feed in a feed reader, or better yet use a service such as <a href="http://www.feedburner.com">Feedburner</a>, <a href="http://alerts.yahoo.com">Yahoo! Alerts</a>, or <a href="http://www.r-mail.org">RMail</a> to receive email notification when the Twitter feed is updated. It turns out that this is not that hard to do.</p>
<ol>
<li>With root privileges, use your favorite text editor to put the following shell script into a text file in /etc/cron.daily. I suggest naming it cron-apt-twitter
<pre>#!/bin/bash
#
# Cron Script - run from /etc/crontab or /etc/cron.daily
#
# Check for updates and updates Twitter status with list
# if any are found.

if [[ `apt-get update 2&gt;&amp;1 | grep Get` ]]; then
  if [[ `apt-get --simulate dist-upgrade 2&gt;&amp;1 | grep Inst` ]]; then
    curl -s -o /dev/null --basic --user USERNAME:PASSWORD --data status="`apt-get -q --simulate dist-upgrade`" http://twitter.com/statuses/update.xml
  fi
fi</pre>
</li>
<li>Don&#8217;t forget to replace USERNAME and PASSWORD with the username and password for the Twitter account.</li>
<li>Make the shell script executable by running this command:
<pre>sudo chmod +x /etc/cron.daily/cron-apt-twitter</pre>
</li>
<li>Make a temporary post to Twitter so that you can get the link to the RSS feed.</li>
<li>Subscribe to the feed using a feed reader or get an email notification of feed updates via <a href="http://www.feedburner.com">Feedburner</a>, <a href="http://alerts.yahoo.com">Yahoo! Alerts</a>, or <a href="http://www.r-mail.org">Rmail</a></li>
</ol>
<p>This has been tested with Debian Etch 4.0, but should also work in Debian-based distributions such as Ubuntu. With a few modifications to the shell script, this should also be possible to do with other distributions&#8217; such as Fedora.</p>
<p>Credits: The shell script is based on a combination of <a href="http://www.mattiaswikstrom.net/linux/20050526-apt-update-script.html">Mattias Wikistrom&#8217;s  Apt Update Script</a> and a Sakana article called <a href="http://www.sakana.fr/blog/2007/03/18/scripting-twitter-with-curl/">&#8220;Scripting Twitter with cURL.&#8221;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.paultow.com/2007/07/10/use-twitter-for-software-update-notifications/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

