<?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>kb.hurricane-ridge.com</title>
	<atom:link href="http://kb.hurricane-ridge.com/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Tue, 15 May 2012 22:49:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Show Current PostgreSQL Activity</title>
		<link>http://kb.hurricane-ridge.com/dbms/postgresql/show-current-postgresql-activity</link>
		<comments>http://kb.hurricane-ridge.com/dbms/postgresql/show-current-postgresql-activity#comments</comments>
		<pubDate>Tue, 15 May 2012 22:49:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1185</guid>
		<description><![CDATA[Reference: Viewing current PostgreSQL queries]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; light: true; title: ; notranslate">
SELECT datname,procpid,current_query FROM pg_stat_activity
</pre>
<p>Reference: <a href="http://chrismiles.info/systemsadmin/databases/articles/viewing-current-postgresql-queries/">Viewing current PostgreSQL queries</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/dbms/postgresql/show-current-postgresql-activity/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vmadm by example</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/smartos/vmadm-by-example</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/smartos/vmadm-by-example#comments</comments>
		<pubDate>Sun, 29 Apr 2012 20:30:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SmartOS]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[vmadm]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1177</guid>
		<description><![CDATA[Update a VM&#8217;s alias: Set a VM to not autoboot:]]></description>
			<content:encoded><![CDATA[<p>Update a VM&#8217;s alias: </p>
<pre class="brush: plain; light: true; title: ; notranslate">
vmadm update c2875232-d7f6-434b-8d0c-909924ee2f05 alias=precise-template
</pre>
<p>Set a VM to not autoboot:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
vmadm update c2875232-d7f6-434b-8d0c-909924ee2f05 autoboot=false
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/smartos/vmadm-by-example/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying a Zone on SmartOS</title>
		<link>http://kb.hurricane-ridge.com/os/solaris/smartos/deploying-a-zone-on-smartos</link>
		<comments>http://kb.hurricane-ridge.com/os/solaris/smartos/deploying-a-zone-on-smartos#comments</comments>
		<pubDate>Sun, 29 Apr 2012 16:06:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[SmartOS]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[dsadm]]></category>
		<category><![CDATA[joyent]]></category>
		<category><![CDATA[vmadm]]></category>
		<category><![CDATA[zlogin]]></category>
		<category><![CDATA[zone]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1173</guid>
		<description><![CDATA[Assuming a fresh install: References: How to create a zone ( OS virtualized machine ) in SmartOS]]></description>
			<content:encoded><![CDATA[<p>Assuming a fresh install:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
# dsadm update
updating local images database...
Get https://datasets.joyent.com/datasets...
done
# dsadm avail
UUID                                 OS      PUBLISHED  URN
b2845b76-80c5-11e1-9d72-5b4ca4191e12 smartos 2012-04-07 sdc:sdc:smartosplus64:3.2.0
c36a3d28-80c2-11e1-9ec6-df5bd8b43f76 smartos 2012-04-07 sdc:sdc:smartosplus:3.2.0
ce610cc2-80ac-11e1-8626-d788d6268d5b smartos 2012-04-07 sdc:sdc:smartos64:1.6.2
a93fda38-80aa-11e1-b8c1-8b1f33cd9007 smartos 2012-04-07 sdc:sdc:smartos:1.6.2
e4cd7b9e-4330-11e1-81cf-3bb50a972bda linux   2012-04-04 sdc:jpc:centos-6:1.0.1
f4c23828-7981-11e1-912f-8b6d67c68076 smartos 2012-03-29 sdc:sdc:smartos64:1.6.1
2b4466d8-7981-11e1-9be2-3b0d0e114740 smartos 2012-03-29 sdc:sdc:smartos:1.6.1
d239389c-7535-11e1-b60a-6f75edc139df smartos 2012-03-23 sdc:sdc:mongodb:1.2.4
98f38e14-6f83-11e1-bc32-2b9d0a8b6759 smartos 2012-03-16 sdc:sdc:mongodb:1.1.1
[...]
# dsadm list
# dsadm import ce610cc2-80ac-11e1-8626-d788d6268d5b
ce610cc2-80ac-11e1-8626-d788d6268d5b doesnt exist. continuing with install
ce610cc2-80ac-11e1-8626-d788d6268d5b successfully installed
dataset ce610cc2-80ac-11e1-8626-d788d6268d5b successfully imported
# dsadm list
UUID                                 OS      PUBLISHED  URN
ce610cc2-80ac-11e1-8626-d788d6268d5b smartos 2012-04-07 sdc:sdc:smartos64:1.6.2
[create zone definition file at /tmp/zonedef]
# cat /tmp/zonedef
{
      &quot;brand&quot;: &quot;joyent&quot;,
      &quot;dataset_uuid&quot;: &quot;ce610cc2-80ac-11e1-8626-d788d6268d5b&quot;,
      &quot;nics&quot;: [
        {
          &quot;nic_tag&quot;: &quot;admin&quot;,
          &quot;ip&quot;: &quot;172.31.252.101&quot;,
          &quot;netmask&quot;: &quot;255.255.255.0&quot;,
          &quot;gateway&quot;: &quot;172.31.252.1&quot;
        }
      ]
    }
# vmadm create -f /tmp/zonedef
Successfully created 323a0dd6-4b3c-47b4-987b-3876e554986e
# zlogin 323a0dd6-4b3c-47b4-987b-3876e554986e
[Connected to zone '323a0dd6-4b3c-47b4-987b-3876e554986e' pts/3]
[root@323a0dd6-4b3c-47b4-987b-3876e554986e ~]#
</pre>
<p>References:<br />
<a href="http://wiki.smartos.org/display/DOC/How+to+create+a+zone+%28+OS+virtualized+machine+%29+in+SmartOS">How to create a zone ( OS virtualized machine ) in SmartOS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/solaris/smartos/deploying-a-zone-on-smartos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Burning a CD using wodim on Ubuntu</title>
		<link>http://kb.hurricane-ridge.com/os/linux/ubuntu/burning-a-cd-using-wodim-on-ubuntu</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/ubuntu/burning-a-cd-using-wodim-on-ubuntu#comments</comments>
		<pubDate>Sun, 29 Apr 2012 13:34:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[cd burner]]></category>
		<category><![CDATA[cd-rw]]></category>
		<category><![CDATA[iso]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1170</guid>
		<description><![CDATA[&#8220;wodim &#8211; write data to optical disk media&#8230; This application is derived from &#8220;cdrecord&#8221; as included in the cdrtools package created by Joerg Schilling, who deserves most of the credit for its success.&#8221;]]></description>
			<content:encoded><![CDATA[<p>&#8220;wodim &#8211; write data to optical disk media&#8230; This application is derived from &#8220;cdrecord&#8221; as included in the cdrtools package created by Joerg Schilling, who deserves most of the credit for  its  success.&#8221;</p>
<pre class="brush: plain; light: true; title: ; notranslate">
&gt; wodim --devices
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
 0  dev='/dev/scd0'	rwrw-- : 'SONY' 'CD-RW  CRX320E'
-------------------------------------------------------------------------
&gt; wodim dev=/dev/scd0 -v -data smartos-20120422T024501Z.iso
[...]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/ubuntu/burning-a-cd-using-wodim-on-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging Outbound SMTP Traffic Using iptables</title>
		<link>http://kb.hurricane-ridge.com/os/linux/logging-outbound-smtp-traffic-using-iptables</link>
		<comments>http://kb.hurricane-ridge.com/os/linux/logging-outbound-smtp-traffic-using-iptables#comments</comments>
		<pubDate>Sun, 18 Mar 2012 04:36:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[rate limiting]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[traffic shaping]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1160</guid>
		<description><![CDATA[If this is a defensive setting &#8211; monitoring for a host being used as a spam bot, for example &#8211; you may want to consider rate-limiting outbound SMTP traffic first, to prevent your log partition from being filled (and limit the damage done by a compromised host in the first place):]]></description>
			<content:encoded><![CDATA[<pre class="brush: plain; light: true; title: ; notranslate">
iptables -I OUTPUT -p tcp --dport 25 -o eth0 -j LOG --log-level info --log-prefix 'iptables smtp: '
</pre>
<p>If this is a defensive setting &#8211; monitoring for a host being used as a spam bot, for example &#8211; you may want to consider rate-limiting outbound SMTP traffic first, to prevent your log partition from being filled (and limit the damage done by a compromised host in the first place):</p>
<pre class="brush: plain; light: true; title: ; notranslate">
iptables -I OUTPUT -p tcp --dport 25 -o eth0 -m state --state NEW -m limit --limit 1/minute --limit-burst 2 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 25 -o eth0 -m state --state NEW -j DROP
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/os/linux/logging-outbound-smtp-traffic-using-iptables/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Agile Acid Test</title>
		<link>http://kb.hurricane-ridge.com/agile/the-agile-acid-test</link>
		<comments>http://kb.hurricane-ridge.com/agile/the-agile-acid-test#comments</comments>
		<pubDate>Mon, 09 Jan 2012 14:49:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Agile]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1135</guid>
		<description><![CDATA[Agile teams produce a continuous stream of value, at a sustainable pace, while adapting to the changing needs of the business. More here.]]></description>
			<content:encoded><![CDATA[<blockquote><p>Agile teams produce a continuous stream of value, at a sustainable pace, while adapting to the changing needs of the business.</p></blockquote>
<p>More <a href="http://testobsessed.com/blog/2010/12/14/the-agile-acid-test/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/agile/the-agile-acid-test/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync with a non-default ssh port</title>
		<link>http://kb.hurricane-ridge.com/applications/rsync-with-a-non-default-ssh-port</link>
		<comments>http://kb.hurricane-ridge.com/applications/rsync-with-a-non-default-ssh-port#comments</comments>
		<pubDate>Wed, 28 Dec 2011 13:49:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1109</guid>
		<description><![CDATA[The rsync man page notes that the &#8220;-e&#8221; or &#8220;&#8211;rsh&#8221; flag lets you &#8220;specify the remote shell to use&#8221;. This can be used to specify transfer over a non-standard SSH port using the &#8220;-p&#8221; flag to the ssh binary:]]></description>
			<content:encoded><![CDATA[<p>The rsync man page notes that the &#8220;-e&#8221; or &#8220;&#8211;rsh&#8221; flag lets you &#8220;specify the remote shell to use&#8221;.  This can be used to specify transfer over a non-standard SSH port using the &#8220;-p&#8221; flag to the ssh binary:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
SSH_PORT=...
rsync [OPTION...] -e &quot;ssh -p $SSH_PORT&quot; [USER@]HOST:SRC... [DEST]
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/rsync-with-a-non-default-ssh-port/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use a non-default port with ssh-copy-id</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/use-a-non-default-port-with-ssh-copy-id</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/use-a-non-default-port-with-ssh-copy-id#comments</comments>
		<pubDate>Mon, 26 Dec 2011 13:57:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[ssh key]]></category>
		<category><![CDATA[ssh-copy-id]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1105</guid>
		<description><![CDATA[Quote a &#8220;-p&#8221; flag specifying the port with the &#8220;user@machine&#8221; portion of the arguments; e.g. for port 2234: Hat tip to Mike Gerwitz for getting me looking in the right direction, although the solution described on his blog does not work with the version of ssh-copy-id I have. (Edit: Looks like the same solution that [...]]]></description>
			<content:encoded><![CDATA[<p>Quote a &#8220;-p&#8221; flag specifying the port with the &#8220;user@machine&#8221; portion of the arguments; e.g. for port 2234:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
ssh-copy-id -i ~/.ssh/id_rsa.pub '-p 2234 user@machine'
</pre>
<p>Hat tip to <a href="http://mikegerwitz.com/2009/10/07/ssh-copy-id-and-sshd-port/">Mike Gerwitz</a> for getting me looking in the right direction, although the solution described on his blog does not work with the version of ssh-copy-id I have.  (<strong>Edit:</strong> Looks like the same solution that I arrived at was pointed out in the comments on the above blog post.)</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/use-a-non-default-port-with-ssh-copy-id/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate an SSH Public Key from a Private Key</title>
		<link>http://kb.hurricane-ridge.com/daemons/ssh-daemons/generate-an-ssh-public-key-from-a-private-key</link>
		<comments>http://kb.hurricane-ridge.com/daemons/ssh-daemons/generate-an-ssh-public-key-from-a-private-key#comments</comments>
		<pubDate>Thu, 08 Dec 2011 04:08:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ssh]]></category>
		<category><![CDATA[private]]></category>
		<category><![CDATA[public]]></category>
		<category><![CDATA[ssh-keygen]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1101</guid>
		<description><![CDATA[Use ssh-keygen:]]></description>
			<content:encoded><![CDATA[<p>Use ssh-keygen:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
ssh-keygen -y -f key.pem &gt; key.pub
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/daemons/ssh-daemons/generate-an-ssh-public-key-from-a-private-key/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SGE Queue States</title>
		<link>http://kb.hurricane-ridge.com/hpc/sge/sge-queue-states</link>
		<comments>http://kb.hurricane-ridge.com/hpc/sge/sge-queue-states#comments</comments>
		<pubDate>Fri, 30 Sep 2011 16:21:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sun Grid Engine]]></category>
		<category><![CDATA[qstat]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1096</guid>
		<description><![CDATA[Reference: Monitoring and Controlling Queues a – Load threshold alarm o – Orphaned A – Suspend threshold alarm C – Suspended by calendar D – Disabled by calendar S – Suspended by subordination to another queue c – Configuration ambiguous d – Disabled s – Suspended u – Unknown E – Error]]></description>
			<content:encoded><![CDATA[<p>Reference: <a href="http://wikis.sun.com/display/GridEngine/Monitoring+and+Controlling+Queues">Monitoring and Controlling Queues</a></p>
<p>a – Load threshold alarm<br />
o – Orphaned<br />
A – Suspend threshold alarm<br />
C – Suspended by calendar<br />
D – Disabled by calendar<br />
S – Suspended by subordination to another queue<br />
c – Configuration ambiguous<br />
d – Disabled<br />
s – Suspended<br />
u – Unknown<br />
E – Error</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/hpc/sge/sge-queue-states/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

