<?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>Mon, 09 Jan 2012 14:49:05 +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>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>389 Directory Server Font Requirements</title>
		<link>http://kb.hurricane-ridge.com/applications/389-directory-server-font-requirements</link>
		<comments>http://kb.hurricane-ridge.com/applications/389-directory-server-font-requirements#comments</comments>
		<pubDate>Wed, 23 Feb 2011 01:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[389]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora directory server]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[Red Hat Enterprise Linux]]></category>
		<category><![CDATA[x11]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1051</guid>
		<description><![CDATA[If you are installing a 389 Directory Server instance on a headless (no X11) CentOS installation, you need extra font packages not included as 389 dependencies. (Otherwise, e.g. no text may appear when you launch &#8220;389-console&#8221;.) I verified this listing works; a subset may work, but I have not tested against one. ghostscript-fonts-5.50-13.1.1 xorg-x11-fonts-base-7.1-2.1.el5 xorg-x11-fonts-Type1-7.1-2.1.el5 [...]]]></description>
			<content:encoded><![CDATA[<p>If you are installing a <a href="http://directory.fedoraproject.org/">389 Directory Server</a> instance on a headless (no X11) CentOS installation, you need extra font packages not included as 389 dependencies.  (Otherwise, e.g. no text may appear when you launch &#8220;389-console&#8221;.)  I verified <a href="http://wiki.centos.org/HowTos/JavaOnCentOS#head-93612bdd33c074d5992bd8d0c176331898824d16">this listing</a> works; a subset may work, but I have not tested against one.</p>
<ul>
<li>ghostscript-fonts-5.50-13.1.1</li>
<li>xorg-x11-fonts-base-7.1-2.1.el5</li>
<li>xorg-x11-fonts-Type1-7.1-2.1.el5</li>
<li>xorg-x11-fonts-75dpi-7.1-2.1.el5</li>
<li>bitmap-fonts-0.3-5.1.1</li>
<li>urw-fonts-2.3-6.1.1</li>
<li>xorg-x11-fonts-ISO8859-1-75dpi-7.1-2.1.el5</li>
<li>xorg-x11-fonts-100dpi-7.1-2.1.el5</li>
<li>xorg-x11-fonts-truetype-7.1-2.1.el5</li>
<li>xorg-x11-fonts-ISO8859-15-75dpi-7.1-2.1.el5</li>
<li>dejavu-lgc-fonts-2.10-1</li>
<li>bitstream-vera-fonts-1.10-7</li>
<li>xorg-x11-fonts-ISO8859-15-100dpi-7.1-2.1.el5</li>
<li>xorg-x11-fonts-ISO8859-1-100dpi-7.1-2.1.el5</li>
<li>liberation-fonts-1.0-1.el5</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/389-directory-server-font-requirements/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing files in a .zip archive</title>
		<link>http://kb.hurricane-ridge.com/applications/listing-files-in-a-zip-archive</link>
		<comments>http://kb.hurricane-ridge.com/applications/listing-files-in-a-zip-archive#comments</comments>
		<pubDate>Thu, 06 Jan 2011 19:21:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://kb.hurricane-ridge.com/?p=1033</guid>
		<description><![CDATA[Use the &#8220;-l&#8221; flag to unzip:]]></description>
			<content:encoded><![CDATA[<p>Use the &#8220;-l&#8221; flag to unzip:</p>
<pre class="brush: plain; light: true; title: ; notranslate">
&gt; unzip -l Downloads/vijava2120100824.zip
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kb.hurricane-ridge.com/applications/listing-files-in-a-zip-archive/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 [...]]]></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 [...]]]></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 [...]]]></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>
	</channel>
</rss>

