<?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 &#187; Applications</title>
	<atom:link href="http://kb.hurricane-ridge.com/category/applications/feed" rel="self" type="application/rss+xml" />
	<link>http://kb.hurricane-ridge.com</link>
	<description>My personal - but public - knowledge base</description>
	<lastBuildDate>Tue, 31 Aug 2010 22:18:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Adobe Reader Download Site, Flash Current Versions</title>
		<link>http://kb.hurricane-ridge.com/applications/adobe-reader-download-site</link>
		<comments>http://kb.hurricane-ridge.com/applications/adobe-reader-download-site#comments</comments>
		<pubDate>Mon, 30 Nov 2009 22:17:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[acrobat]]></category>
		<category><![CDATA[acroread]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[adobe reader]]></category>
		<category><![CDATA[flash]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=726</guid>
		<description><![CDATA[Skip Adobe&#8217;s buggy download web page, which frequently lists out-of-date versions of Reader as current; go direct to the FTP site at ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/.
The current version of Adobe Flash is detailed at http://www.adobe.com/software/flash/about/.
]]></description>
			<content:encoded><![CDATA[<p>Skip Adobe&#8217;s buggy download web page, which frequently lists out-of-date versions of Reader as current; go direct to the FTP site at <a href="ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/">ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/</a>.</p>
<p>The current version of Adobe Flash is detailed at <a href="http://www.adobe.com/software/flash/about/">http://www.adobe.com/software/flash/about/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/adobe-reader-download-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using sftp on an alternate port</title>
		<link>http://kb.hurricane-ridge.com/applications/using-sftp-on-an-alternate-port</link>
		<comments>http://kb.hurricane-ridge.com/applications/using-sftp-on-an-alternate-port#comments</comments>
		<pubDate>Fri, 07 Aug 2009 16:43:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=580</guid>
		<description><![CDATA[Unlike ssh and scp, sftp does not have a &#8220;-p&#8221; or &#8220;-P&#8221; flag to specify an alternate port.  Instead, if the host you are connecting to has ssh running on a port other than 22, you need to use the &#8220;-o&#8221; flag:
sftp -oPort=2345 remote.hurricane-ridge.com
According to the man page, &#8220;-o&#8221; allows you to &#8220;give options [...]]]></description>
			<content:encoded><![CDATA[<p>Unlike ssh and scp, sftp does not have a &#8220;-p&#8221; or &#8220;-P&#8221; flag to specify an alternate port.  Instead, if the host you are connecting to has ssh running on a port other than 22, you need to use the &#8220;-o&#8221; flag:</p>
<p><code>sftp -oPort=2345 remote.hurricane-ridge.com</code></p>
<p>According to the man page, &#8220;-o&#8221; allows you to &#8220;give options in the format used in the configuration file.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/using-sftp-on-an-alternate-port/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Initializing an SVN repository</title>
		<link>http://kb.hurricane-ridge.com/applications/initializing-an-svn-repository</link>
		<comments>http://kb.hurricane-ridge.com/applications/initializing-an-svn-repository#comments</comments>
		<pubDate>Mon, 16 Mar 2009 23:26:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=359</guid>
		<description><![CDATA[To initialize a Subversion repository, use the svnadmin command.  In its simplest form:
&#62; svnadmin create /var/svn/repos
For an HTTP repository, it might be something like the following:
&#62; sudo -H -u www svnadmin create /var/svn/repos
References: &#8220;Creating the Repository&#8221; Version Control with Subversion
]]></description>
			<content:encoded><![CDATA[<p>To initialize a Subversion repository, use the svnadmin command.  In its simplest form:</p>
<p><code>&gt; svnadmin create /var/svn/repos</code></p>
<p>For an HTTP repository, it might be something like the following:</p>
<p><code>&gt; sudo -H -u www svnadmin create /var/svn/repos</code></p>
<p>References: &#8220;<a href="http://svnbook.red-bean.com/en/1.5/svn.reposadmin.create.html#svn.reposadmin.basics.creating">Creating the Repository</a>&#8221; Version Control with Subversion</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/initializing-an-svn-repository/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually changing the expiration date of NBU media</title>
		<link>http://kb.hurricane-ridge.com/applications/manually-changing-the-expiration-date-of-nbu-media</link>
		<comments>http://kb.hurricane-ridge.com/applications/manually-changing-the-expiration-date-of-nbu-media#comments</comments>
		<pubDate>Mon, 16 Feb 2009 23:36:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[nbu]]></category>
		<category><![CDATA[netbackup]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=302</guid>
		<description><![CDATA[Use NetBackup&#8217;s bpexpdate.  For example, to set tape 001038 to never expire (actually, this sets it to expire sometime in 2038, but close enough for those of us living in 2009):
bpexpdate -m 001038 -d infinity
To expire 001038 immediately:
bpexpdate -m 001038 -d 0
]]></description>
			<content:encoded><![CDATA[<p>Use NetBackup&#8217;s <code>bpexpdate</code>.  For example, to set tape <code>001038</code> to never expire (actually, this sets it to expire sometime in 2038, but close enough for those of us living in 2009):</p>
<pre>bpexpdate -m 001038 -d infinity</pre>
<p>To expire <code>001038</code> immediately:</p>
<pre>bpexpdate -m 001038 -d 0</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/manually-changing-the-expiration-date-of-nbu-media/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running Nginx with PHP via FastCGI</title>
		<link>http://kb.hurricane-ridge.com/applications/running-nginx-with-php-via-fastcgi</link>
		<comments>http://kb.hurricane-ridge.com/applications/running-nginx-with-php-via-fastcgi#comments</comments>
		<pubDate>Mon, 19 Jan 2009 19:52:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=172</guid>
		<description><![CDATA[Build a default Nginx install; I used the following configure arguments, but these are not necessary for using PHP/FastCGI (only for my environment):
./configure --prefix=/opt/nginx-0.6.34 --user=apache --group=apache
Build PHP for FastCGI, with the following configure arguments:
./configure  --prefix=/opt/php-5.2.8 --enable-fastcgi --enable-force-cgi-redirect --with-gd --with-mysqli --enable-mbstring
--enable-fastcgi --enable-force-cgi-redirect are the important arguments to configure; the others are simply needed for my environment.
Use [...]]]></description>
			<content:encoded><![CDATA[<p>Build a default Nginx install; I used the following <code>configure</code> arguments, but these are not necessary for using PHP/FastCGI (only for my environment):</p>
<pre>./configure --prefix=/opt/nginx-0.6.34 --user=apache --group=apache</pre>
<p>Build PHP for FastCGI, with the following <code>configure</code> arguments:</p>
<pre>./configure  --prefix=/opt/php-5.2.8 --enable-fastcgi --enable-force-cgi-redirect --with-gd --with-mysqli --enable-mbstring</pre>
<p><code>--enable-fastcgi --enable-force-cgi-redirect</code> are the important arguments to <code>configure</code>; the others are simply needed for my environment.</p>
<p>Use the following script to start the PHP FastCGI processes, adapted from <a href="http://blog.kovyrin.net/2006/05/30/nginx-php-fastcgi-howto/">Nginx With PHP As FastCGI Howto</a>:</p>
<pre>
#!/bin/bash

## ABSOLUTE path to the PHP binary
PHPFCGI="/opt/php/bin/php-cgi"

## tcp-port to bind on
FCGIPORT="8888"

## IP to bind on
FCGIADDR="127.0.0.1"

## IP address to accept connections from:
FCGI_WEB_SERVER_ADDRS=127.0.0.1

## number of PHP children to spawn
PHP_FCGI_CHILDREN=4

## number of request before php-process will be restarted
PHP_FCGI_MAX_REQUESTS=1000

# allowed environment variables sperated by spaces
ALLOWED_ENV="PATH USER"

## if this script is run as root switch to the following user
USERID=apache

################## no config below this line

if test x$PHP_FCGI_CHILDREN = x; then
  PHP_FCGI_CHILDREN=5
fi

ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_CHILDREN"
ALLOWED_ENV="$ALLOWED_ENV PHP_FCGI_MAX_REQUESTS"
ALLOWED_ENV="$ALLOWED_ENV FCGI_WEB_SERVER_ADDRS"

if test x$UID = x0; then
  EX="/bin/su -m -c \"$PHPFCGI -q -b $FCGIADDR:$FCGIPORT\" $USERID"
else
  EX="$PHPFCGI -b $FCGIADDR:$FCGIPORT"
fi

echo $EX

# copy the allowed environment variables
E=

for i in $ALLOWED_ENV; do
  E="$E $i=${!i}"
done

# clean environment and set up a new one
nohup env - $E sh -c "$EX" &#038;> /dev/null &#038;</pre>
<p>I found it necessary to add the <code>FCGI_WEB_SERVER_ADDRS</code> variable to avoid errors similar to the following from the PHP processes (visible by not redirecting output to <code>/dev/null</code> in the last line of the script):</p>
<pre>Connection from disallowed IP address '127.0.0.1' is dropped.</pre>
<p>The <code>nginx.conf</code> file is modified as follows (for a <code>/var/www/html</code> webroot):</p>
<pre>
        # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
        #
        location ~ \.php$ {
            root           /var/www/html;
            fastcgi_pass   127.0.0.1:8888;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  /var/www/html$fastcgi_script_name;
            include        fastcgi_params;
        }
</pre>
<p>Additional references: <a href="http://wiki.codemongers.com/Main">Nginx English Wiki</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/running-nginx-with-php-via-fastcgi/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Source Installation Checklist</title>
		<link>http://kb.hurricane-ridge.com/applications/mysql-source-installation-checklist</link>
		<comments>http://kb.hurricane-ridge.com/applications/mysql-source-installation-checklist#comments</comments>
		<pubDate>Thu, 15 Jan 2009 22:14:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=157</guid>
		<description><![CDATA[
Installation overview:

shell&#62; groupadd mysql
shell&#62; useradd -g mysql mysql
shell&#62; gunzip cd mysql-VERSION
shell&#62; ./configure --prefix=/usr/local/mysql
shell&#62; make
shell&#62; make install
shell&#62; cp support-files/my-medium.cnf /etc/my.cnf
shell&#62; cd /usr/local/mysql
shell&#62; bin/mysql_install_db --user=mysql
shell&#62; chown -R root .
shell&#62; chown -R mysql var
shell&#62; chgrp -R mysql .
shell&#62; bin/mysqld_safe --user=mysql &#38;
shell&#62; /usr/local/mysql/bin/mysqladmin -u root password \
'new-password'
shell&#62; /usr/local/mysql/bin/mysqladmin -u root -h \
www.hurricane-ridge.com password 'new-password'
Then, log into the database as [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>Installation overview:<br />
<code><br />
shell&gt; groupadd mysql<br />
shell&gt; useradd -g mysql mysql<br />
shell&gt; gunzip cd mysql-VERSION<br />
shell&gt; ./configure --prefix=/usr/local/mysql<br />
shell&gt; make<br />
shell&gt; make install<br />
shell&gt; cp support-files/my-medium.cnf /etc/my.cnf<br />
shell&gt; cd /usr/local/mysql<br />
shell&gt; bin/mysql_install_db --user=mysql<br />
shell&gt; chown -R root .<br />
shell&gt; chown -R mysql var<br />
shell&gt; chgrp -R mysql .<br />
shell&gt; bin/mysqld_safe --user=mysql &amp;<br />
shell&gt; /usr/local/mysql/bin/mysqladmin -u root password \<br />
'new-password'<br />
shell&gt; /usr/local/mysql/bin/mysqladmin -u root -h \<br />
www.hurricane-ridge.com password 'new-password'</code></li>
<li>Then, log into the database as root, and run the following commands to remove anonymous accounts:<br />
<code><br />
use mysql;<br />
delete from user where User='';<br />
delete from db where User='';<br />
flush privileges;</code></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/mysql-source-installation-checklist/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EICAR Test Viruses</title>
		<link>http://kb.hurricane-ridge.com/applications/eicar-test-viruses</link>
		<comments>http://kb.hurricane-ridge.com/applications/eicar-test-viruses#comments</comments>
		<pubDate>Thu, 15 Jan 2009 22:11:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[clamav]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=155</guid>
		<description><![CDATA[For testing ClamAV and other antivirus software:

EICAR Test Virus
EICAR Test Virus, zipped
EICAR Test Virus, nested zipped

]]></description>
			<content:encoded><![CDATA[<p>For testing ClamAV and other antivirus software:</p>
<ul>
<li><a href="http://www.eicar.org/download/eicar.com">EICAR Test Virus</a></li>
<li><a href="http://www.eicar.org/download/eicar_com.zip">EICAR Test Virus, zipped</a></li>
<li><a href="http://www.eicar.org/download/eicarcom2.zip">EICAR Test Virus, nested zipped</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/eicar-test-viruses/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CVSROOT Environment Variable for CVS-over-SSH</title>
		<link>http://kb.hurricane-ridge.com/applications/cvsroot-environment-variable-for-cvs-over-ssh</link>
		<comments>http://kb.hurricane-ridge.com/applications/cvsroot-environment-variable-for-cvs-over-ssh#comments</comments>
		<pubDate>Thu, 15 Jan 2009 22:09:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[cvs]]></category>
		<category><![CDATA[openssh]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=151</guid>
		<description><![CDATA[When using CVS-over-SSH, set the CVSROOT environment variable as follows:
:ext:username@remotemachine:/full/path/to/cvsroot

You may wish to use SSH public key authentication and ssh-agent to avoid having to enter your password on the remote machine repeatedly.
]]></description>
			<content:encoded><![CDATA[<p>When using CVS-over-SSH, set the CVSROOT environment variable as follows:</p>
<p><code>:ext:username@remotemachine:/full/path/to/cvsroot<br />
</code></p>
<p>You may wish to use SSH public key authentication and ssh-agent to avoid having to enter your password on the remote machine repeatedly.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/cvsroot-environment-variable-for-cvs-over-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate a Patch File from CVS</title>
		<link>http://kb.hurricane-ridge.com/applications/generate-a-patch-file-from-cvs</link>
		<comments>http://kb.hurricane-ridge.com/applications/generate-a-patch-file-from-cvs#comments</comments>
		<pubDate>Thu, 15 Jan 2009 22:06:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[cvs]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=149</guid>
		<description><![CDATA[To generate a patch against CVS to your current sandbox:
cvs diff -uw
To generate a patch against a tagged revision (PROD_2005031101 for this example) in CVS to your current sandbox:
cvs diff -uw -r PROD_2005031101
]]></description>
			<content:encoded><![CDATA[<p>To generate a patch against CVS to your current sandbox:</p>
<p><code>cvs diff -uw</code></p>
<p>To generate a patch against a tagged revision (PROD_2005031101 for this example) in CVS to your current sandbox:</p>
<p><code>cvs diff -uw -r PROD_2005031101</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/generate-a-patch-file-from-cvs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apply a Symbolic Tag to All Files in a CVS Checkout</title>
		<link>http://kb.hurricane-ridge.com/applications/apply-a-symbolic-tag-to-all-files-in-a-cvs-checkout</link>
		<comments>http://kb.hurricane-ridge.com/applications/apply-a-symbolic-tag-to-all-files-in-a-cvs-checkout#comments</comments>
		<pubDate>Thu, 15 Jan 2009 22:03:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[cvs]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=147</guid>
		<description><![CDATA[To apply a symbolic CVS tag to all files in your sandbox, do the following:
cvs tag PROD_2005050900
where PROD_2005050900 is the name of the symbolic tag you want to apply.
]]></description>
			<content:encoded><![CDATA[<p>To apply a symbolic CVS tag to all files in your sandbox, do the following:</p>
<p><code>cvs tag PROD_2005050900</code></p>
<p>where PROD_2005050900 is the name of the symbolic tag you want to apply.</p>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/apply-a-symbolic-tag-to-all-files-in-a-cvs-checkout/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
