<?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>damonparker.org</title>
	<atom:link href="http://damonparker.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://damonparker.org/blog</link>
	<description>mental spew</description>
	<lastBuildDate>Thu, 25 Feb 2010 23:37:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enable Sendmail for PHP mail() in OSX</title>
		<link>http://damonparker.org/blog/2010/02/25/enable-sendmail-for-php-mail-in-osx/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=enable-sendmail-for-php-mail-in-osx</link>
		<comments>http://damonparker.org/blog/2010/02/25/enable-sendmail-for-php-mail-in-osx/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 22:05:41 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=468</guid>
		<description><![CDATA[Since this didn&#8217;t dawn on me for thirty minutes while I pursued other avenues&#8230;
In /etc/hostconfig add/edit a line like:
MAILSERVER=-YES-
Note to self: Look for more OSX server administration clients.  
]]></description>
			<content:encoded><![CDATA[<p>Since this didn&#8217;t dawn on me for thirty minutes while I pursued other avenues&#8230;</p>
<p>In /etc/hostconfig add/edit a line like:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #007800;">MAILSERVER</span>=-YES-</div></div>
<p>Note to self: Look for more OSX server administration clients.  </p>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=468&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2010/02/25/enable-sendmail-for-php-mail-in-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Log Grepping</title>
		<link>http://damonparker.org/blog/2009/09/14/apache-log-grepping/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=apache-log-grepping</link>
		<comments>http://damonparker.org/blog/2009/09/14/apache-log-grepping/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 18:34:51 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=368</guid>
		<description><![CDATA[Nothing beats a full stats package, but with a little grepping and a logfile and we can figure out some quick statistics.
Get only hits coming from Google.com/search:
grep 'google.com/search' access_log &#124; head -1
Extract only the referrer field:
grep 'google.com/search' access_log &#124; head -1 &#124; awk '{print $11}'
Get the search terms only:
grep 'google.com/search' access_log &#124; \
&#160; head -1 [...]]]></description>
			<content:encoded><![CDATA[<p>Nothing beats a full stats package, but with a little grepping and a logfile and we can figure out some quick statistics.</p>
<p><strong>Get only hits coming from Google.com/search:</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'google.com/search'</span> access_log <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-1</span></div></div>
<p><strong>Extract only the referrer field:</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'google.com/search'</span> access_log <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $11}'</span></div></div>
<p><strong>Get the search terms only:</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'google.com/search'</span> access_log <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-1</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $11}'</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">cut</span> -d\? <span style="color: #660033;">-f2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> -d\<span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #660033;">-f1</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/+/ /g;s/%22/&quot;/g;s/q=//'</span></div></div>
<p>Here&#8217;s a little script that puts it all together.  It finds the unique search terms, cleans out the trash, sorts them and list the top twenty five in order of descending hit count.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #007800;">LOG</span>=<span style="color: #ff0000;">&quot;/var/logs/httpd/access_log&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'google.com/search'</span> <span style="color: #007800;">$LOG</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $11}'</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">cut</span> -d\? <span style="color: #660033;">-f2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> -d\<span style="color: #000000; font-weight: bold;">&amp;</span> <span style="color: #660033;">-f1</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/+/ /g;s/%22/&quot;/g;s/q=//'</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/%[0-9a-fA-F][0-9a-fA-F]/ /g;s/&quot;//g'</span> <span style="color: #000000; font-weight: bold;">|</span> \<br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'='</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">uniq</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-rn</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-25</span></div></div>
<p>To see them all remove the <code class="codecolorer bash default"><span class="bash"><span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">head</span> <span style="color: #660033;">-25</span></span></code> statement at the end of the command.</p>
<p>Thanks to an article at <a href="http://www.linuxjournal.com/article/9417">Linux Journal</a> for the examples.</p>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=368&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2009/09/14/apache-log-grepping/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Find setuid root Files</title>
		<link>http://damonparker.org/blog/2009/09/10/find-setuid-root-files/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=find-setuid-root-files</link>
		<comments>http://damonparker.org/blog/2009/09/10/find-setuid-root-files/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 04:29:20 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=452</guid>
		<description><![CDATA[Find all setuid / setgid files owned by root:
find / -user root -type f \&#40; -perm -4000 -o -perm -2000 \&#41; -exec ls -ld '{}' \;
Find all setuid / setgid files owned by any user:
find / -type f \&#40; -perm -4000 -o -perm -2000 \&#41; -exec ls -ld '{}' \;
]]></description>
			<content:encoded><![CDATA[<p>Find all setuid / setgid files owned by root:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-user</span> root <span style="color: #660033;">-type</span> f \<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #660033;">-perm</span> <span style="color: #660033;">-4000</span> <span style="color: #660033;">-o</span> <span style="color: #660033;">-perm</span> <span style="color: #660033;">-2000</span> \<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-ld</span> <span style="color: #ff0000;">'{}'</span> \;</div></div>
<p>Find all setuid / setgid files owned by any user:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #000000; font-weight: bold;">/</span> <span style="color: #660033;">-type</span> f \<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #660033;">-perm</span> <span style="color: #660033;">-4000</span> <span style="color: #660033;">-o</span> <span style="color: #660033;">-perm</span> <span style="color: #660033;">-2000</span> \<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-ld</span> <span style="color: #ff0000;">'{}'</span> \;</div></div>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=452&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2009/09/10/find-setuid-root-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debugging HTTP Headers with cURL</title>
		<link>http://damonparker.org/blog/2009/08/31/debugging-http-headers-with-curl/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=debugging-http-headers-with-curl</link>
		<comments>http://damonparker.org/blog/2009/08/31/debugging-http-headers-with-curl/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 16:05:39 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Snippets]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=369</guid>
		<description><![CDATA[curl -I http://damonparker.org
More info on cURL
]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">curl <span style="color: #660033;">-I</span> http:<span style="color: #000000; font-weight: bold;">//</span>damonparker.org</div></div>
<p><a href="http://curl.haxx.se/docs/manpage.html">More info on cURL</a></p>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=369&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2009/08/31/debugging-http-headers-with-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back</title>
		<link>http://damonparker.org/blog/2009/08/29/back/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=back</link>
		<comments>http://damonparker.org/blog/2009/08/29/back/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 19:54:05 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/?p=408</guid>
		<description><![CDATA[After nearly two years with not much to say, I decided to pick up the blog again.  It was a long and winding journey, this time in between.  Maybe more on that later.
I should be updating the pages of the blog with current info about myself and my projects over the next few [...]]]></description>
			<content:encoded><![CDATA[<p>After nearly two years with not much to say, I decided to pick up the blog again.  It was a long and winding journey, this time in between.  Maybe more on that later.</p>
<p>I should be updating the pages of the blog with current info about myself and my projects over the next few weeks.  </p>
<p>As always, the shop is open for any <a href="/blog/contact/">sysadmin or development projects</a>.</p>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=408&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2009/08/29/back/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DNS, Lookupd and OS X</title>
		<link>http://damonparker.org/blog/2007/11/15/dns-lookupd-and-os-x/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dns-lookupd-and-os-x</link>
		<comments>http://damonparker.org/blog/2007/11/15/dns-lookupd-and-os-x/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 19:27:30 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Apple / Mac]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/11/15/dns-lookupd-and-os-x/</guid>
		<description><![CDATA[Pre-Leopard the command to force OS X to flush and reload it&#8217;s DNS cache was:
sudo lookupd -flushcache
In Leopard, lookupd no longer exists.  Instead force a DNS cache refresh with:
sudo dscacheutil -flushcache
]]></description>
			<content:encoded><![CDATA[<p>Pre-Leopard the command to force OS X to flush and reload it&#8217;s DNS cache was:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> lookupd <span style="color: #660033;">-flushcache</span></div></div>
<p>In Leopard, <em>lookupd</em> no longer exists.  Instead force a DNS cache refresh with:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> dscacheutil <span style="color: #660033;">-flushcache</span></div></div>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=384&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/11/15/dns-lookupd-and-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>OSX Scrollbars Top and Bottom</title>
		<link>http://damonparker.org/blog/2007/11/05/osx-scrollbars-top-and-bottom/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=osx-scrollbars-top-and-bottom</link>
		<comments>http://damonparker.org/blog/2007/11/05/osx-scrollbars-top-and-bottom/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 22:00:16 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/11/05/osx-scrollbars-top-and-bottom/</guid>
		<description><![CDATA[In Terminal:
defaults write &#34;Apple Global Domain&#34; AppleScrollBarVariant DoubleBoth
]]></description>
			<content:encoded><![CDATA[<p>In Terminal:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> <span style="color: #ff0000;">&quot;Apple Global Domain&quot;</span> AppleScrollBarVariant DoubleBoth</div></div>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=383&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/11/05/osx-scrollbars-top-and-bottom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MailAnnounce Applescript Source</title>
		<link>http://damonparker.org/blog/2007/10/09/mailannounce-applescript-source/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mailannounce-applescript-source</link>
		<comments>http://damonparker.org/blog/2007/10/09/mailannounce-applescript-source/#comments</comments>
		<pubDate>Tue, 09 Oct 2007 13:49:41 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Apple / Mac]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/10/09/mailannounce-applescript-source/</guid>
		<description><![CDATA[I have received several requests for the source of my MailAnnounce script that is able to speak the subject of mails using Mail.app and Applescript.
Source for version 1 of the script is now available.
]]></description>
			<content:encoded><![CDATA[<p>I have received several requests for the source of my <a href="http://damonparker.org/blog/2006/04/12/mailannounce-applescript-app/">MailAnnounce</a> script that is able to speak the subject of mails using Mail.app and Applescript.</p>
<p>Source for version 1 of the script is now <a href="http://damonparker.org/source/MailAnnounce.scpt.txt">available</a>.</p>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=382&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/10/09/mailannounce-applescript-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rpmdb: unable to join the environment</title>
		<link>http://damonparker.org/blog/2007/09/10/rpmdb-unable-to-join-the-environment/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rpmdb-unable-to-join-the-environment</link>
		<comments>http://damonparker.org/blog/2007/09/10/rpmdb-unable-to-join-the-environment/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 17:03:15 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/09/10/rpmdb-unable-to-join-the-environment/</guid>
		<description><![CDATA[This weekend I was contacted by a client regarding a server that had run out of room on the main hard drive.  Among the things that were corrupted by the drive filling up was the RPM database.
When trying to query of upgrade any package, the error message
rpmdb: unable to join the environment
error: db4 error&#40;11&#41; [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I was contacted by a client regarding a server that had run out of room on the main hard drive.  Among the things that were corrupted by the drive filling up was the <a href="http://en.wikipedia.org/wiki/RPM_Package_Manager" rel="external">RPM</a> database.</p>
<p>When trying to query of upgrade any package, the error message</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpmdb: unable to <span style="color: #c20cb9; font-weight: bold;">join</span> the environment<br />
error: db4 error<span style="color: #7a0874; font-weight: bold;">&#40;</span>11<span style="color: #7a0874; font-weight: bold;">&#41;</span> from dbenv-<span style="color: #000000; font-weight: bold;">&gt;</span>open: Resource temporarily unavailable<br />
error: cannot open Packages index using db3 - Resource temporarily unavailable <span style="color: #7a0874; font-weight: bold;">&#40;</span>11<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
error: cannot open Packages database <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm<br />
warning: <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>webmin-1.360-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 11f63c51<br />
rpmdb: unable to <span style="color: #c20cb9; font-weight: bold;">join</span> the environment<br />
error: db4 error<span style="color: #7a0874; font-weight: bold;">&#40;</span>11<span style="color: #7a0874; font-weight: bold;">&#41;</span> from dbenv-<span style="color: #000000; font-weight: bold;">&gt;</span>open: Resource temporarily unavailable<br />
error: cannot open Packages database <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm<br />
rpmdb: unable to <span style="color: #c20cb9; font-weight: bold;">join</span> the environment<br />
error: db4 error<span style="color: #7a0874; font-weight: bold;">&#40;</span>11<span style="color: #7a0874; font-weight: bold;">&#41;</span> from dbenv-<span style="color: #000000; font-weight: bold;">&gt;</span>open: Resource temporarily unavailable<br />
error: cannot open Packages database <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm</div></div>
<p>A search turned up this howto on <a href="http://www.rpm.org/hintskinks/repairdb/" rel="external">repairing the db</a>.</p>
<p>These two commands made quick work of the fix.  First remove any old lock files:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>rpm<span style="color: #000000; font-weight: bold;">/</span>__db<span style="color: #000000; font-weight: bold;">*</span></div></div>
<p>Then rebuild the RPM database:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rpm <span style="color: #660033;">-vv</span> <span style="color: #660033;">--rebuilddb</span></div></div>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=380&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/09/10/rpmdb-unable-to-join-the-environment/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Blattodephobia</title>
		<link>http://damonparker.org/blog/2007/09/10/blattodephobia/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=blattodephobia</link>
		<comments>http://damonparker.org/blog/2007/09/10/blattodephobia/#comments</comments>
		<pubDate>Mon, 10 Sep 2007 05:55:30 +0000</pubDate>
		<dc:creator>damonp</dc:creator>
				<category><![CDATA[Dictionary]]></category>

		<guid isPermaLink="false">http://damonparker.org/blog/2007/09/10/blattodephobia/</guid>
		<description><![CDATA[n. The fear of cockroaches
]]></description>
			<content:encoded><![CDATA[<p><em>n.</em> The fear of cockroaches</p>
<img src="http://damonparker.org/blog/?ak_action=api_record_view&id=379&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://damonparker.org/blog/2007/09/10/blattodephobia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
