<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>planetfoo</title>
	
	<link>http://planetfoo.org/blog</link>
	<description>silicon based lifeforms</description>
	<lastBuildDate>Wed, 25 Aug 2010 13:49:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/planetfoo" /><feedburner:info uri="planetfoo" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Count SYNs</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/tiNSWcISb5E/</link>
		<comments>http://planetfoo.org/blog/2010/08/05/count-syns/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 17:56:28 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[/dev/random]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=72</guid>
		<description><![CDATA[A while back I was deploying a new high volume TCP application and I was interested in the number of connections from particular hosts I was seeing over a period of time. Who was connecting the most, that kind of thing. This one liner accomplishes that rather well. Replace 70.164.19.160 with your servers IP address [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I was deploying a new high volume TCP application and I was interested in the number of connections from particular hosts I was seeing over a period of time. Who was connecting the most, that kind of thing. This one liner accomplishes that rather well. Replace 70.164.19.160 with your servers IP address and should get a list of top connecting hosts and the number of times each host as connected in ascending order. Alter -c 100 to specify the number of packets to capture. Basically what this does is capture the fist 100 SYN sent to the destination host, extract the send IP, sorts them and then counts the number of SYN packets from each host. Simple but effective. I love one liners like this. </p>
<p>[bash]<br />
time tcpdump -ieth0 -c 100 -nn dst 70.164.19.160 and &#8216;tcp[13] &#038; 2 == 2&#8242; | awk &#8217;split($3,ip,&#8221;.&#8221;) {print ip[1] &#8220;.&#8221; ip[2] &#8220;.&#8221; ip[3] &#8220;.&#8221; ip[4]}&#8217;| sort | uniq -c | sort -n<br />
[/bash]</p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/08/05/count-syns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/08/05/count-syns/</feedburner:origLink></item>
		<item>
		<title>imdb url grabber</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/_cFHBIvTQpA/</link>
		<comments>http://planetfoo.org/blog/2010/08/04/imdb-url-grabber/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 14:52:57 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=70</guid>
		<description><![CDATA[Here&#8217;s a quick and dirty shell script that will attempt get the correct IMDB link based on a files name. I use this to copy media into the appropriate places on my media server along with an NFO file that xbmc can use to download the appropriate movie info. This technique can be used to [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick and dirty shell script that will attempt get the correct IMDB link based on a files name. I use this to copy media into the appropriate places on my media server along with an NFO file that xbmc can use to download the appropriate movie info. This technique can be used to fetch links from google for a lot of different things from the command line. Be careful though, if you use this too many times (1000s?) in a short amount of time google will ban you for a while. I think the correct thing to do is use their API. I did say quick and dirty though <img src='http://planetfoo.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Adjust path&#8217;s, etc. accordingly and try your luck.</p>
<p>[bash]<br />
#!/bin/bash</p>
<p>SEARCHSTRING=`echo $1|cut -d. -f1|sed &#8217;s/ /_/g&#8217;|sed &#8217;s/-/_/g&#8217;|sed &#8217;s/_/+/g&#8217;`<br />
IMDBURL=`curl -iIs -A &#8220;Mozilla/5.0&#8243; &#8220;http://www.google.com/search?&#038;q=site+www.imdb.com+$SEARCHSTRING&#038;btnI&#8221; | grep Location | awk {&#8216;print $2&#8242;}`<br />
echo $IMDBURL<br />
[/bash]</p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/08/04/imdb-url-grabber/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/08/04/imdb-url-grabber/</feedburner:origLink></item>
		<item>
		<title>Me @ Defcon 18</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/2dm9n7RnDF4/</link>
		<comments>http://planetfoo.org/blog/2010/07/26/me-defcon-18/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 16:41:18 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[/dev/random]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=69</guid>
		<description><![CDATA[I&#8217;m presenting at Defcon 18 this weekend. My talk is about how ARIN transitioned to IPv6 on its own networks. The talk also goes over IPv6 implementation details in a more general sense. I wrote up a short summary for the defcon speakers corner blog which is located here: ARIN AND IPV6 AT DEF CON
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m presenting at Defcon 18 this weekend. My talk is about how ARIN transitioned to IPv6 on its own networks. The talk also goes over IPv6 implementation details in a more general sense. I wrote up a short summary for the defcon speakers corner blog which is located here: <a href="https://www.defcon.org/html/links/dc-speakerscorner.html#arin-ryanczak">ARIN AND IPV6 AT DEF CON</a></p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/07/26/me-defcon-18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/07/26/me-defcon-18/</feedburner:origLink></item>
		<item>
		<title>Ubuntu Server</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/Ff1LdSy2q24/</link>
		<comments>http://planetfoo.org/blog/2010/06/04/ubuntu-server/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 20:47:10 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=61</guid>
		<description><![CDATA[I&#8217;ve been using Linux as my *nix server of choice for about 15 years now. I&#8217;ve been using it as my primary desktop for about 10 years. On the desktop I&#8217;ve used just about everything from Slackware, to Rehdat, to Suse and Debian. I&#8217;ve been using Ubuntu on the desktop for about 4 years now [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using Linux as my *nix server of choice for about 15 years now. I&#8217;ve been using it as my primary desktop for about 10 years. On the desktop I&#8217;ve used just about everything from Slackware, to Rehdat, to Suse and Debian. I&#8217;ve been using Ubuntu on the desktop for about 4 years now and I am very happy with it. The work that canonical has put into Ubuntu has dramatically improved Linux as a desktop operating system and I find it hard to use anything else. When I use any other OS I miss using Linux and at least some of that credit goes to Canonical for doing such a good job with Ubuntu. My preference for Linux on the server side has always been different from what I use on the desktop. </p>
<p><span id="more-61"></span></p>
<p>For most of my Linux life I have been in the Red Hat camp. First Red Hat itself, then CentOS. At work we run CentOS, the box this blog runs on is running CentOS. I like rpm better than dpkg, though I think apt is better than yum. I used Debian as a server for a while and I like it for a number of reasons. The huge package repository was great and there was a certain amount of polish to be found with Debian in general. I liked Debian. I also got burned when Debian broke their repository several times which broke my servers. The openssl fiasco was the thing that really drove me away though. Such a lapse in security really made me doubt that Debian was a good distro for my servers. I replaced all of my Debian servers with CentOS after that and did not look back. I occasionally used Debian for special projects. When I needed a slim distro to use as a base for an MAME arcade machine I chose Debian. My first XBMC box was Debian (if you don&#8217;t count xboxes). </p>
<p>About a year ago I was building a new media server for my home network. This machine would store all of my music, movies, pictures and other media in a central location so that all of my xbmc instances could access my entire collection over the network. I wanted this machine to have a large amount of space, support samba, nfs, http and other typical stuff. I also wanted to run music player daemon (MPD) and play music in various locations around the house or over the network. My previous media server, which was really just an old PC, ran CentOS and performed all of these tasks fairly well. One thing that was difficult on CentOS though was using MPD. There is an MPD package in the RPMForge repo but it falls behind the the MPD sources quickly. Building MPD from source on CentOS was a pain because so many of the dependencies also had to be compiled from source which meant that this was a lot of work. This type of situation is typical for a Redhat / CentOS install. </p>
<p>Because Red Hat aims for supportability many of their packages are out of date. Their kernel can fall behind in important ways, IPv6 is a good example of this. Red Hat kernels are missing many IPv6 related features when compared to the mainline Linux kernel. Good IPv6 support is something I need and this forced me to maintain my own kernel packages on CentOS. Not a huge burden, but not ideal either. The less time I have to spend compiling and configuring things the more time I have to do other stuff.  </p>
<p>What does all of this have to do with Ubuntu server? Well, I decided that for this media server I would try something new. I would give Ubuntu server a try. I&#8217;d been using Ubuntu on the desktop for years and had been happy, perhaps the server distro was just as good. I installed the 64 bit version of Ubuntu server on a Via Nano based system with 4 disks using RAID w/ LVM. The system is a file and print server running CUPS, Samba and NFS. It is an MPD server serving music throughout my house, deck and the Internet via Icecast. This server also runs Cacti in order to collect and display stats from a bunch of other servers I run at various locations. This server has been running for about a year now and I have to say that I am very pleased with Ubuntu server. </p>
<p>Ubuntu server offers many of the benefits of Debian, a large binary repo (based on Debian testing) and a big community. Ubuntu also has a 6 month release cycle for new stable releases, Debian has a history of taking forever to release a new stable release. You can run testing or unstable but there is risk associated with that. Ubuntu&#8217;s 6 month release cycle is a great feature. I have not had a problem upgrading to each new release either. Ubuntu also offers some of the things Redhat offers. Namely, long term commercial support. Canonical does things a bit differently than Red Hat in regard to support. Canonical supports what they call Long Term Releases. These releases get 3 years of support on the desktop and 5 years on servers. You can buy various levels of support from Canonical on the Ubuntu website. Costs seem to be on par with Red Hat though the pricing model is somewhat different. Commercial support is of no interest to me though. I support myself. I do think it is good that Redhat and Novell have some competition though so Canonical providing support is a very good thing. Canonical is approaching the commercial Linux space differently than Novell and Red Hat. I think this is a good thing as well. Red Hat and Novell are buried in old school brick and mortar software company dynamics. Canonical seems to be doing things in a more &#8220;web 2.0&#8243;, new Internet sort of way. I like that. </p>
<p>I recently converted the last of my home servers to Ubuntu from CentOS. This machine acts as my home firewall, VPN server, IPv6 tunnel end point and other networking related functions. Ubuntu performs the functions that are required of this role very well without having to compile my own kernel, iptables or other tools. I appreciate that very much. Ubuntu has given me more time to focus on my projects, not fighting with my OS or maintaining my own packages in order to be able to do what I want to do. I like that a lot too. </p>
<p>Ubuntu sits somewhere between the wild west that can be the world of Debian (or Gentoo perhaps) and the conservative environment that is made by Red Hat. I think this is a good place to be.</p>
<p>Thanks Canonical. Ubuntu server is hella good <img src='http://planetfoo.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/06/04/ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/06/04/ubuntu-server/</feedburner:origLink></item>
		<item>
		<title>Dulles still sucks</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/oXd7Asa8SzE/</link>
		<comments>http://planetfoo.org/blog/2010/04/18/dulles-still-suck/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 20:26:53 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[/dev/random]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=58</guid>
		<description><![CDATA[The new trains are nice and all but I don&#8217;t get why they build all of this new security infrastructure only to keep it closed when they are busy.
 Sent from my iPhone
 


 
]]></description>
			<content:encoded><![CDATA[<p>The new trains are nice and all but I don&#8217;t get why they build all of this new security infrastructure only to keep it closed when they are busy.</p>
<p> Sent from my iPhone</p>
<div class="wp-caption alignleft" style="width: 224px"><a rel="attachment wp-att-59" href="http://planetfoo.org/blog/2010/04/18/dulles-still-suck/photo-3/"><img class="size-medium wp-image-59" alt="" src="http://planetfoo.org/blog/wp-content/uploads/2010/04/photo-224x300.jpg" /> </a>
<p class="wp-caption-text"></p>
</div>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/04/18/dulles-still-suck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/04/18/dulles-still-suck/</feedburner:origLink></item>
		<item>
		<title>SCJA</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/377izEW2XO4/</link>
		<comments>http://planetfoo.org/blog/2010/03/27/scja/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 13:50:28 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[/dev/random]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=57</guid>
		<description><![CDATA[Passed the SCJA recently. I actually thought the test was somewhat hard. Having to parse java source code in your head and making sure not to miss any &#8220;;&#8221; or other syntactical errors is kinda lame in my opinion. It is what it is though. I can recommend SCJA Certification Study Guide and Mock Exam [...]]]></description>
			<content:encoded><![CDATA[<p>Passed the SCJA recently. I actually thought the test was somewhat hard. Having to parse java source code in your head and making sure not to miss any &#8220;;&#8221; or other syntactical errors is kinda lame in my opinion. It is what it is though. I can recommend SCJA Certification Study Guide and Mock Exam Questions Book, by Cameron McKenzie. He does a good job of explaining some of the sneaky stuff SUn throws at you during this exam. His website is located here: http://freemockexamssunjava.scja.com/ExamScam/get.jsp</p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/03/27/scja/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/03/27/scja/</feedburner:origLink></item>
		<item>
		<title>Dynamic IP address checker / DNS / IPv6 Tunnel Updater</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/OafA8Upvcuw/</link>
		<comments>http://planetfoo.org/blog/2010/01/08/dynamic-ip-address-checker-dns-ipv6-tunnel-updater/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 18:40:57 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[IPv6]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=56</guid>
		<description><![CDATA[Here&#8217;s a script I wrote that will check the IP address of my FIOS connected firewall, update DNS and IPv6 tunnel settings and send me an email. This script assumes you have control of a DNS server somewhere that has resource records related to your firewall host. I use he.net&#8217;s tunnelbroker for my IPv6 tunnel [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a script I wrote that will check the IP address of my FIOS connected firewall, update DNS and IPv6 tunnel settings and send me an email. This script assumes you have control of a DNS server somewhere that has resource records related to your firewall host. I use he.net&#8217;s tunnelbroker for my IPv6 tunnel and this script uses their facility to update the tunnel end point configuration and then restarts the tunnel on my side. Details and script are below.<br />
<span id="more-56"></span><br />
First the script defines some variables. Note that CURRENTIP grabs the IP address from eth0. If your Internet facing interface is different you will need to change that line as appropriate.</p>
<p>[bash]<br />
#!/bin/bash<br />
#<br />
# Matt&#8217;s IP change checker, DNS updater, he.net tunnel endpoint updater, etc, etc.<br />
#<br />
# Local Vars:<br />
CURRENTIP=`/sbin/ifconfig eth0 | /bin/awk &#8216;/inet addr/ { sub(/inet addr:/, &#8220;&#8221;); print$1}&#8217;`<br />
LASTIP=`/bin/cat /var/tmp/lastip`<br />
[/bash]</p>
<p>Here are some variables for updating the he.net tunnel settings. I got this information from http://ipv6.he.net/certification/faq.php<br />
he.net&#8217;s tunnelbroker service is awesome! Thanks he.net! Be aware that MD5HASH != MD5SUM in this instance. </p>
<p>[bash]<br />
# Vars for he.net tunnel setup<br />
IPV4ADDR=&#8221;$CURRENTIP&#8221;<br />
MD5PASS=&#8221;YOURMD5HASHEDPASSWORDGOESHERE&#8221;<br />
USERID=&#8221;YOURHENETUSERIDGOESHERE&#8221;<br />
GTUNID=&#8221;TUNNELID&#8221;<br />
[/bash]</p>
<p>Now we compare the CURRENTIP to LASTIP. If they are the same then the script exits.</p>
<p>[bash]<br />
if [ "$CURRENTIP" = "$LASTIP" ]; then<br />
        exit<br />
[/bash]</p>
<p>If they are different the script does a bunch of stuff starting re-running my firewall script. I use a custom iptables script that is probably not very useful to most people but I can provide it if people are interested in how I do stuff. Next the script restarts openvpn. I have some static openvpn tunnels and they need to be restarted when my IP address changes. Next the script updates DNS. In order for this to work your name server must allow dynamic updates and you should secure the transaction using keys. This is all pretty straight forward using BIND so I&#8217;m not going to get into how to do it here but if you have questions feel free to ask and I&#8217;ll help if I can.</p>
<p>[bash]<br />
else<br />
# Update the LASTIP tmp file to reflect new IP address<br />
        echo $CURRENTIP > /var/tmp/lastip<br />
# Re-Run my firewall script so rules use new IP address<br />
        /etc/firewall/v4firewall.sh<br />
# Restart static openvpn tunnels<br />
        /etc/init.d/openvpn restart<br />
# update planetfoo.org zone with leela&#8217;s new IP<br />
        /usr/bin/nsupdate -k /PATH/TO/KEY <<EOF<br />
server "Your DNS Server IP address goes here"<br />
zone planetfoo.org<br />
update delete leela.planetfoo.org A<br />
update add leela.planetfoo.org 60 A $CURRENTIP<br />
send<br />
EOF<br />
# update home.planetfoo.org with ns's new IP<br />
        /usr/bin/nsupdate -k PATH/TO/KEY <<EOF<br />
server "Your DNS Server IP address goes here"<br />
zone home.planetfoo.org<br />
update delete ns.home.planetfoo.org A<br />
update add ns.home.planetfoo.org 300 A $CURRENTIP<br />
send<br />
EOF<br />
[/bash]</p>
<p>Next the script updates the IPv6 tunnel configuration with he.net's tunnelbroker service, restarts the tunnel in order to get IPv6 connectivity working again. </p>
<p>[bash]<br />
# update the he.net tunnel configuration<br />
/usr/bin/curl -k https://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$IPV4ADDR\&#038;pass=$MD5PASS\&#038;user_id=$USERID\&#038;tunnel_id=$GTUNID<br />
sleep 5<br />
# Stop the current tunnel<br />
/etc/init.d/ipv6-tunnel stop $LASTIP<br />
sleep 5<br />
/etc/init.d/ipv6-tunnel start $CURRENTIP<br />
[/bash]</p>
<p>The last thing the script does is send an email to my phone letting me know that my IP address has changed. This is kind of a fail safe in case the DNS changes don't go through or something else happens. At least I have the new IP address. </p>
<p>[bash]<br />
# Send email to myself with new IPv4 address<br />
echo $CURRENTIP | /bin/mail -s "Leela's IP New IP Address" YOUR_EMAIL_ADDRESS_GOES_HERE<br />
fi<br />
[/bash]</p>
<p><a href="http://www.planetfoo.org/files/check-ip.sh">Download Complete Script</a></p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2010/01/08/dynamic-ip-address-checker-dns-ipv6-tunnel-updater/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2010/01/08/dynamic-ip-address-checker-dns-ipv6-tunnel-updater/</feedburner:origLink></item>
		<item>
		<title>Walking in the woods</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/K0_wG1inhpA/</link>
		<comments>http://planetfoo.org/blog/2009/12/02/walking-in-the-woods/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 12:31:04 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[/dev/random]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=53</guid>
		<description><![CDATA[ Thanksgiving @ smith mountain lake.
 


 
]]></description>
			<content:encoded><![CDATA[<p> Thanksgiving @ smith mountain lake.</p>
<div class="wp-caption alignleft" style="width: 300px"><a rel="attachment wp-att-54" href="http://planetfoo.org/blog/?attachment_id=54"><img class="size-medium wp-image-54" alt="" src="http://planetfoo.org/blog/wp-content/uploads/2009/12/photo-300x225.jpg" /> </a>
<p class="wp-caption-text"></p>
</div>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2009/12/02/walking-in-the-woods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2009/12/02/walking-in-the-woods/</feedburner:origLink></item>
		<item>
		<title>Import apt repository GPG keys</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/uB67J2YZUPk/</link>
		<comments>http://planetfoo.org/blog/2009/12/01/import-apt-repository-gpp-keys/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 22:32:21 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=52</guid>
		<description><![CDATA[Here&#8217;s how to import the appropriate key in ubuntu:
[bash]
apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys $Key
[/bash]
Where $key == the gpg key id. The key id is shown in the error message you get when running apt-get update after adding a new repository. For example:
[bash]
GPG error: http://download.virtualbox.org karmic Release: The following signatures couldn&#8217;t be verified because the public [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to import the appropriate key in ubuntu:</p>
<p>[bash]<br />
apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys $Key<br />
[/bash]<br />
Where $key == the gpg key id. The key id is shown in the error message you get when running apt-get update after adding a new repository. For example:<br />
[bash]<br />
GPG error: http://download.virtualbox.org karmic Release: The following signatures couldn&#8217;t be verified because the public key is not available: NO_PUBKEY DCF9F87B6DFBCBAE<br />
[/bash]<br />
DCF9F87B6DFBCBAE is the key ID for the virtualbox karmic repository. So doing this:<br />
[bash]<br />
apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys DCF9F87B6DFBCBAE<br />
[/bash]<br />
imports the correct key.</p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2009/12/01/import-apt-repository-gpp-keys/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2009/12/01/import-apt-repository-gpp-keys/</feedburner:origLink></item>
		<item>
		<title>Reboot Linux via proc</title>
		<link>http://feedproxy.google.com/~r/planetfoo/~3/bYRXvCJSRqQ/</link>
		<comments>http://planetfoo.org/blog/2009/11/23/reboot-linux-via-proc/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:17:46 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://planetfoo.org/blog/?p=51</guid>
		<description><![CDATA[Every now and then one of my machine looses a disk in such a way that I can no longer read the file system but the system is up and I can log in or get console access. This seems to happen when using software RAID1 when one of the disks fails on some of [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then one of my machine looses a disk in such a way that I can no longer read the file system but the system is up and I can log in or get console access. This seems to happen when using software RAID1 when one of the disks fails on some of the hardware I use. </p>
<p>To reboot the box:<br />
[bash]<br />
echo 1 > /proc/sys/kernel/sysrq<br />
echo b > /proc/sysrq-trigger<br />
[/bash]<br />
To shut it down:<br />
[bash]<br />
 echo 1 > /proc/sys/kernel/sysrq<br />
echo o > /proc/sysrq-trigger<br />
[/bash]</p>
]]></content:encoded>
			<wfw:commentRss>http://planetfoo.org/blog/2009/11/23/reboot-linux-via-proc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://planetfoo.org/blog/2009/11/23/reboot-linux-via-proc/</feedburner:origLink></item>
	</channel>
</rss>
