<?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>Tech Thought &#187; Linux</title>
	<atom:link href="http://blog.evandavey.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.evandavey.com</link>
	<description>Tech tips, hints, and general musings. PHP, Perl, Mysql, Javascript, AJAX, JSON, Linux, Mac OSX</description>
	<lastBuildDate>Wed, 27 Apr 2011 03:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>How-To: Check root DNS settings for domain</title>
		<link>http://blog.evandavey.com/2009/12/how-to-check-root-dns-settings-for-domain.html</link>
		<comments>http://blog.evandavey.com/2009/12/how-to-check-root-dns-settings-for-domain.html#comments</comments>
		<pubDate>Sun, 20 Dec 2009 01:09:52 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=572</guid>
		<description><![CDATA[Using &#8220;dig&#8221; you can determine what IP address or CNAME your domain is pointing to quite easily. However what I didn&#8217;t know was that you can actually check what the root server thinks your domain is pointing at, so you can check if its set correctly when you are migrating to a new IP address. [...]]]></description>
			<content:encoded><![CDATA[<p>Using &#8220;dig&#8221; you can determine what IP address or CNAME your domain is pointing to quite easily.  However what I didn&#8217;t know was that you can actually check what the root server thinks your domain is pointing at, so you can check if its set correctly when you are migrating to a new IP address.</p>
<p>To do this, simply type:</p>
<pre>dig domaintolookup.com +trace</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2009/12/how-to-check-root-dns-settings-for-domain.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To: Recursively remove .svn folders</title>
		<link>http://blog.evandavey.com/2009/08/how-to-recursively-remove-svn-folders.html</link>
		<comments>http://blog.evandavey.com/2009/08/how-to-recursively-remove-svn-folders.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 01:02:53 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=546</guid>
		<description><![CDATA[Okay, so you&#8217;ve accidentally adding a bunch of files to SVN.  Or, you need to copy a bunch of files but you don&#8217;t want to take the .svn folders with you.  How to get rid of these?  On any *nix machine (Mac included) you can run the following command: rm -rf `find . -type d [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, so you&#8217;ve accidentally adding a bunch of files to SVN.  Or, you need to copy a bunch of files but you don&#8217;t want to take the .svn folders with you.  How to get rid of these?  On any *nix machine (Mac included) you can run the following command:</p>
<pre>
rm -rf `find . -type d -name .svn`
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2009/08/how-to-recursively-remove-svn-folders.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>yum fails: Fixing Fedora Core 5 yum repositories</title>
		<link>http://blog.evandavey.com/2009/07/yum-fails-fixing-fedora-core-5-yum-repositories.html</link>
		<comments>http://blog.evandavey.com/2009/07/yum-fails-fixing-fedora-core-5-yum-repositories.html#comments</comments>
		<pubDate>Sun, 12 Jul 2009 00:48:33 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[core5]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=527</guid>
		<description><![CDATA[Fedora Core 5 is currently EOL &#8211; it&#8217;s not supported any more.  As a result, you might find you can&#8217;t use yum to install packages any more &#8211; you get an error message about this file not existing: http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml This is because the repositories that yum uses aren&#8217;t there anymore.  However you can modify the [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora Core 5 is currently EOL &#8211; it&#8217;s not supported any more.  As a result, you might find you can&#8217;t use <strong>yum</strong> to install packages any more &#8211; you get an error message about this file not existing:</p>
<pre>http://download.fedora.redhat.com/pub/fedora/linux/core/5/i386/os/repodata/repomd.xml</pre>
<p>This is because the repositories that yum uses aren&#8217;t there anymore.  However you can modify the repositories in <strong>/etc/yum/repos.d/</strong> and add these to fix the problem:</p>
<p><a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/os/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/os/</a><br />
<a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/debug/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/i386/debug/</a><br />
<a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/source/SRPMS/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/core/6/source/SRPMS/</a></p>
<p><a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/</a><br />
<a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/debug/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/i386/debug/</a><br />
<a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/SRPMS/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/core/updates/6/SRPMS/</a></p>
<p><a style="color: #006699;" href="http://archive.fedoraproject.org/pub/archive/fedora/linux/extras/6/i386/" target="_blank">http://archive.fedoraproject.org/pub/archive/fedora/linux/extras/6/i386/</a></p>
<p>An example change would be to the <strong>/etc/yum/repos.d/fedora-core.repo</strong> file:</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 54px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">[core]</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 54px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">name=Fedora Core $releasever &#8211; $basearch</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 54px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 54px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/5/i386/os/</div>
<pre>[core]
name=Fedora Core $releasever - $basearch
baseurl=http://archive.fedoraproject.org/pub/archive/fedora/linux/core/5/i386/os/</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2009/07/yum-fails-fixing-fedora-core-5-yum-repositories.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How-To: Remotely monitor your server with monit</title>
		<link>http://blog.evandavey.com/2008/08/how-to-remotely-monitor-your-server-with-monit.html</link>
		<comments>http://blog.evandavey.com/2008/08/how-to-remotely-monitor-your-server-with-monit.html#comments</comments>
		<pubDate>Wed, 06 Aug 2008 05:33:18 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[monit]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=181</guid>
		<description><![CDATA[moint is a fantastic utility that can be installed on Linux or Mac OS X and provides the ability to monitor services running on your server.  These could be apache, mysql, bind or any other service you need to be up and running.  After installing monit, you create a config file containing information about the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tildeslash.com/monit/" target="_blank">moint</a> is a fantastic utility that can be installed on Linux or Mac OS X and provides the ability to monitor services running on your server.  These could be apache, mysql, bind or any other service you need to be up and running.  After installing monit, you create a config file containing information about the services you want to monitor.  Monit with then dutifully monitor the service, and email you if they go down.  You can even configure it to restart the service if it fails.</p>
<p style="text-align: left;">Running on top of monit is <a href="http://www.tildeslash.com/mmonit/" target="_blank">m/monit</a>, which is a web based service which pools information from all your servers running monit and provides information in a easily accessable format on a web page.  You can use this as your monitoring station for your website for instance, as it also includes information such as load average, disk usage and uptime &#8211; in addition to the services you are monitoring.</p>
<p style="text-align: left;">Highly recommended.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/08/how-to-remotely-monitor-your-server-with-monit.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How-To: Check a Reverse DNS Record Lookup (PTR Record) and Solve Email Delivery Issues</title>
		<link>http://blog.evandavey.com/2008/07/how-to-check-a-reverse-dns-record-lookup-ptr-record-and-solve-email-delivery-issues.html</link>
		<comments>http://blog.evandavey.com/2008/07/how-to-check-a-reverse-dns-record-lookup-ptr-record-and-solve-email-delivery-issues.html#comments</comments>
		<pubDate>Thu, 10 Jul 2008 01:16:16 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[email]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=169</guid>
		<description><![CDATA[More and more mail servers are starting to reject email if your outgoing mail server doesn&#8217;t have a reverse DNS record or PTR record. You can check if you have one by issuing the following command: dig -x 127.0.0.1 Obviously, replace the 127.0.0.1 address with the relevant IP address of your mail server. You should [...]]]></description>
			<content:encoded><![CDATA[<p>More and more mail servers are starting to reject email if your outgoing mail server doesn&#8217;t have a reverse DNS record or PTR record.  You can check if you have one by issuing the following command:</p>
<pre>
dig -x 127.0.0.1
</pre>
<p>Obviously, replace the 127.0.0.1 address with the relevant IP address of your mail server.  You should receive a response like this:</p>
<pre>
; <<>> DiG 9.4.1-P1 <<>> -x 67.192.127.21
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17269
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;21.127.192.67.in-addr.arpa.	IN	PTR

;; ANSWER SECTION:
21.127.192.67.in-addr.arpa. 3600 IN	PTR	myserver.mydomain.com.

;; Query time: 217 msec
;; SERVER: 203.50.2.71#53(203.50.2.71)
;; WHEN: Thu Jul 10 11:09:58 2008
;; MSG SIZE  rcvd: 79
</pre>
<p>If you don't have one setup, you won't get a response in the ANSWER SECTION - so contact your host and ask them to set one up for you.  It can help save a lot of headaches when you get bounce-back messages such as:</p>
<pre>Could not deliver the message in the time limit specified.  Please
retry or contact your administrator.</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/07/how-to-check-a-reverse-dns-record-lookup-ptr-record-and-solve-email-delivery-issues.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To Fix: make: yacc: Command not found</title>
		<link>http://blog.evandavey.com/2008/06/how-to-fix-make-yacc-command-not-found.html</link>
		<comments>http://blog.evandavey.com/2008/06/how-to-fix-make-yacc-command-not-found.html#comments</comments>
		<pubDate>Fri, 20 Jun 2008 06:03:32 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=160</guid>
		<description><![CDATA[I have been getting the following error when trying to compile monit for my CentOS server: make: *** [y.tab.c] Error 127 To resolve it, I simply installed bison: yum install bison Then run configure again: ./configure make &#38;&#38; make install And that fixed the problem!  Hope that helps someone.]]></description>
			<content:encoded><![CDATA[<p>I have been getting the following error when trying to compile <a href="http://www.tildeslash.com/monit/" target="_blank"><strong>monit</strong></a> for my CentOS server:</p>
<pre>make: *** [y.tab.c] Error 127</pre>
<p>To resolve it, I simply installed bison:</p>
<pre>yum install bison</pre>
<p>Then run configure again:</p>
<pre>./configure
make &amp;&amp; make install</pre>
<p>And that fixed the problem!  Hope that helps someone.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/06/how-to-fix-make-yacc-command-not-found.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Handy RPM Search Utility &#8211; rpm.pbone.net</title>
		<link>http://blog.evandavey.com/2008/06/handy-rpm-search-utility-rpmpbonenet.html</link>
		<comments>http://blog.evandavey.com/2008/06/handy-rpm-search-utility-rpmpbonenet.html#comments</comments>
		<pubDate>Fri, 20 Jun 2008 01:50:10 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=159</guid>
		<description><![CDATA[If you are looking for an easy way to find RPMs for your favourite linux distribution, there are many options out there.  However none seem to have the easy of use and search capabilites of rpm.pbone.net.  The service is easy to use and covers all the major distributions and version.  Very handy.]]></description>
			<content:encoded><![CDATA[<p>If you are looking for an easy way to find RPMs for your favourite linux distribution, there are many options out there.  However none seem to have the easy of use and search capabilites of <a href="http://rpm.pbone.net/" target="_blank">rpm.pbone.net</a>.  The service is easy to use and covers all the major distributions and version.  Very handy.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/06/handy-rpm-search-utility-rpmpbonenet.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How-To: Configure Postfix to Relay based on Domain</title>
		<link>http://blog.evandavey.com/2008/06/how-to-configure-postfix-to-relay-based-on-domain.html</link>
		<comments>http://blog.evandavey.com/2008/06/how-to-configure-postfix-to-relay-based-on-domain.html#comments</comments>
		<pubDate>Fri, 20 Jun 2008 01:35:52 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=158</guid>
		<description><![CDATA[We use Postfix as a dropin replacement for Sendmail on our servers.  We wanted to configure postfix to relay email via our internal mail server for internal email addresses, and send directly if the email address was external. To do this, follow these steps: Edit the /etc/postfix/transport file and add the following line: myinternaldomain.com smtp:[ipaddress]:25 [...]]]></description>
			<content:encoded><![CDATA[<p>We use <a href="http://www.postfix.org/" target="_blank">Postfix</a> as a dropin replacement for <a href="http://www.sendmail.org/" target="_blank">Sendmail</a> on our servers.  We wanted to configure postfix to relay email via our internal mail server for internal email addresses, and send directly if the email address was external.</p>
<p>To do this, follow these steps:</p>
<ol>
<li>Edit the /etc/postfix/transport file and add the following line:</li>
<pre>myinternaldomain.com   smtp:[ipaddress]:25</pre>
<li>Edit the /etc/postfix/main.cf file and add the following line to the end:</li>
<pre>transport_maps = hash:/etc/postfix/transport</pre>
<li>Run the following commands at the prompt:</li>
<pre>[root@triton postfix]# postfix /etc/postfix/transport

[root@triton postfix]# service postfix restart
</pre>
</ol>
<p>And you should be done!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/06/how-to-configure-postfix-to-relay-based-on-domain.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centralized storage of prototype.js with Google AJAX Libraries API</title>
		<link>http://blog.evandavey.com/2008/06/centralized-storage-prototype-google-ajax-libraries.html</link>
		<comments>http://blog.evandavey.com/2008/06/centralized-storage-prototype-google-ajax-libraries.html#comments</comments>
		<pubDate>Mon, 02 Jun 2008 04:22:53 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=145</guid>
		<description><![CDATA[Google has just announced that it now provides a free, hosted copy of a many common AJAX Javascript libraries through Google AJAX Libraries API.  This has huge implications for speed and caching for users hitting sites which utilise these libraries: Google automatically serves them up in Gzip format (if your browser supports this) Caching is [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-146 alignright" style="float: right;" title="AJAX Libraries" src="http://blog.evandavey.com/wp-content/uploads/2008/06/ajaxlibs.png" alt="" width="171" height="124" />Google has just announced that it now provides a free, hosted copy of a many common AJAX Javascript libraries through <a href="http://code.google.com/apis/ajaxlibs/" target="_blank">Google AJAX Libraries API</a>.  This has huge implications for speed and caching for users hitting sites which utilise these libraries:</p>
<ul>
<li>Google automatically serves them up in Gzip format (if your browser supports this)</li>
<li>Caching is done by Google &#8211; you only have to load a copy once, and it can be used at many sites!</li>
<li>The servers are really quick</li>
<li>The servers are physically &#8220;close&#8221; to users (utilising the Google network)</li>
<li>They are minified</li>
</ul>
<p>This is very exciting development, as I use many of these libraries in my applications &#8211; and the speed they load direct impacts all users of the software I develop.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/06/centralized-storage-prototype-google-ajax-libraries.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-To: Convert Epoch to Normal Time</title>
		<link>http://blog.evandavey.com/2008/05/how-to-convert-epoch-to-normal-time.html</link>
		<comments>http://blog.evandavey.com/2008/05/how-to-convert-epoch-to-normal-time.html#comments</comments>
		<pubDate>Wed, 28 May 2008 01:04:38 +0000</pubDate>
		<dc:creator>Ev</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://blog.evandavey.com/?p=141</guid>
		<description><![CDATA[If you want to covert from epoch (number of seconds since 1970) to a more human readable format, you can use this simple perl script: #!/usr/bin/perl $time = localtime($ARGV[0]); print "$time\n"; Save it as epoch.sh and make it executable, then simply issue the following command from the command line: $> ./epoch.sh 1211926097 Wed May 28 [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to covert from epoch (number of seconds since 1970) to a more human readable format, you can use this simple perl script:</p>
<pre lang='perl'>
#!/usr/bin/perl
$time = localtime($ARGV[0]);
print "$time\n";
</pre>
<p>Save it as <strong>epoch.sh</strong> and make it executable, then simply issue the following command from the command line:</p>
<pre>
$> ./epoch.sh 1211926097
Wed May 28 08:08:17 2008
</pre>
<p>It&#8217;s that easy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.evandavey.com/2008/05/how-to-convert-epoch-to-normal-time.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

