<?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>Phil Hunter</title>
	<atom:link href="http://blog.philhunter.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.philhunter.com</link>
	<description>Mac, Linux and everthing else!</description>
	<lastBuildDate>Tue, 01 Jun 2010 20:22:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Samba and OS X permission solution</title>
		<link>http://blog.philhunter.com/2010/06/01/samba-and-os-x-permission-solution/</link>
		<comments>http://blog.philhunter.com/2010/06/01/samba-and-os-x-permission-solution/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 20:21:54 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=53</guid>
		<description><![CDATA[To avoid permission problems when accessing a SAMBA file share from OS X add the following to the [global] section of your samba configuration /etc/samba/smb.conf
unix extensions = no
]]></description>
			<content:encoded><![CDATA[<p>To avoid permission problems when accessing a SAMBA file share from OS X add the following to the [global] section of your samba configuration /etc/samba/smb.conf</p>
<p><code>unix extensions = no</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2010/06/01/samba-and-os-x-permission-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto update to an old version of Fedora</title>
		<link>http://blog.philhunter.com/2010/02/24/howto-update-to-an-old-version-of-fedora/</link>
		<comments>http://blog.philhunter.com/2010/02/24/howto-update-to-an-old-version-of-fedora/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 15:53:11 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=43</guid>
		<description><![CDATA[I recently needed access to an older version Fedora and discovered that neither updates or the core packages would download and install using YUM.
To fix this (based on Fedora Core 5) I made the following modifications to these files:
File: /etc/yum.repos.d/fedora-core.repo
[core]
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/5/i386/os/
File: /etc/yum.repos.d/fedora-extras.repo
[extras]
enabled=0
File: /etc/yum.repos.d/fedora-updates.repo
[updates]
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/5/i386/
Now when I execute &#8220;yum update&#8221; I get the last set of updates to [...]]]></description>
			<content:encoded><![CDATA[<p>I recently needed access to an older version Fedora and discovered that neither updates or the core packages would download and install using YUM.</p>
<p>To fix this (based on Fedora Core 5) I made the following modifications to these files:</p>
<p><strong>File: /etc/yum.repos.d/fedora-core.repo</strong></p>
<p><code>[core]<br />
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/5/i386/os/</code></p>
<p><strong>File: /etc/yum.repos.d/fedora-extras.repo</strong></p>
<p><code>[extras]<br />
enabled=0</code></p>
<p><strong>File: /etc/yum.repos.d/fedora-updates.repo</strong></p>
<p><code>[updates]<br />
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/core/updates/5/i386/</code></p>
<p>Now when I execute &#8220;yum update&#8221; I get the last set of updates to be released for that particular version of Fedora and likewise I can use yum to also install new software packages.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2010/02/24/howto-update-to-an-old-version-of-fedora/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where to find the iPhone software update</title>
		<link>http://blog.philhunter.com/2009/10/11/where-to-find-the-iphone-software-update/</link>
		<comments>http://blog.philhunter.com/2009/10/11/where-to-find-the-iphone-software-update/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 22:26:05 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=39</guid>
		<description><![CDATA[If you are like me and want the ability to return to a previous version of the iPhone OS then you&#8217;ll need to start taking back-ups of the downloaded OS images.
When you click to Update your iPhone in iTunes and select Download with the intention to install later, you&#8217;ll be able to take a copy [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me and want the ability to return to a previous version of the iPhone OS then you&#8217;ll need to start taking back-ups of the downloaded OS images.</p>
<p>When you click to Update your iPhone in iTunes and select Download with the intention to install later, you&#8217;ll be able to take a copy of the downloaded file before you install.</p>
<p>Once downloaded, this can be located under your User folder /Library/iTunes/iPhone Software Updates</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2009/10/11/where-to-find-the-iphone-software-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X Eject button</title>
		<link>http://blog.philhunter.com/2008/12/29/osx-eject-button/</link>
		<comments>http://blog.philhunter.com/2008/12/29/osx-eject-button/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 09:40:58 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=30</guid>
		<description><![CDATA[A small collection of keyboard shortcuts that breath new life into the Eject button in OS X.
Screen to sleep
ctrl + shift + eject
Computer to sleep
option + cmd + eject
Computer restart
ctrl + cmd + eject
Computer shutdown
ctrl + option + cmd + eject
]]></description>
			<content:encoded><![CDATA[<p>A small collection of keyboard shortcuts that breath new life into the Eject button in OS X.</p>
<p><strong>Screen to sleep</strong><br />
ctrl + shift + eject</p>
<p><strong>Computer to sleep</strong><br />
option + cmd + eject</p>
<p><strong>Computer restart</strong><br />
ctrl + cmd + eject</p>
<p><strong>Computer shutdown</strong><br />
ctrl + option + cmd + eject</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2008/12/29/osx-eject-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SharePoint 2007 &#8211; An unexpected error has occurred</title>
		<link>http://blog.philhunter.com/2008/12/01/sharepoint-2007-an-unexpected-error-has-occurred/</link>
		<comments>http://blog.philhunter.com/2008/12/01/sharepoint-2007-an-unexpected-error-has-occurred/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 13:59:23 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[stacktrace]]></category>
		<category><![CDATA[unexpected]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=18</guid>
		<description><![CDATA[Sometimes things can and do go wrong when working with WSS or SharePoint.  The first port of call should be the SharePoint Log files.
If this help then its a good idea to change the default behavour of the .NET web application to allow the application stack traces to be shown when the page fails to render.  [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes things can and do go wrong when working with WSS or SharePoint.  The first port of call should be the SharePoint Log files.</p>
<p>If this help then its a good idea to change the default behavour of the .NET web application to allow the application stack traces to be shown when the page fails to render.  Simply locate your web applications <strong>web.config</strong> file and make the following changes:</p>
<p style="text-align: left;"><strong>From:<br />
</strong><code>&lt;SafeMode MaxControls="200" CallStack="false" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"&gt;</code></p>
<p style="text-align: left;"><strong>To:<br />
</strong><code>&lt;SafeMode MaxControls="200" CallStack="<strong>true</strong>" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false"&gt;</code></p>
<p>and also</p>
<p><strong>From:</strong><br />
<code>&lt;customErrors mode="On" /&gt;</code></p>
<p><strong>To:</strong><br />
<code>&lt;customErrors mode="<strong>Off</strong>" /&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2008/12/01/sharepoint-2007-an-unexpected-error-has-occurred/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Windows Clip Art on a Mac</title>
		<link>http://blog.philhunter.com/2008/08/20/using-windows-clip-art-on-a-mac/</link>
		<comments>http://blog.philhunter.com/2008/08/20/using-windows-clip-art-on-a-mac/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 16:20:38 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PICT]]></category>
		<category><![CDATA[WMF]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=12</guid>
		<description><![CDATA[Having recently convinced my wife that she needed to make the switch to Mac OS X I was horrified to find that the Mac would not open WMF files.  Over the years I have accumulated a large collection of clip art files in the WMF (Windows Metafile) file format and didn&#8217;t really want to start [...]]]></description>
			<content:encoded><![CDATA[<p>Having recently convinced my wife that she needed to make the switch to Mac OS X I was horrified to find that the Mac would not open WMF files.  Over the years I have accumulated a large collection of clip art files in the WMF (<a title="Windows Metafile" href="http://en.wikipedia.org/wiki/Windows_Metafile">Windows Metafile</a>) file format and didn&#8217;t really want to start again.</p>
<p>I found the quickest way to resolve this was to convert all of my existing WMF file into the PICT file format.  Using one of my Linux servers I ran the following shell command against my picture library:</p>
<p><code>find /home/user/clipart/ *.WMF -print0 | while IFS= read -rd $'\0' f;<br />
do echo "[$f]";<br />
convert "$f" "$f.pict";<br />
rm -f "$f";<br />
done</code></p>
<p>This creates a list of files who&#8217;s file-name ends with WMF.  We then loop through each of these file-names converting each and saving it with a .pict file extension.  The <em>IFS= read -rd</em> parameters are absolutely necessary should your WMF files contain spaces.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2008/08/20/using-windows-clip-art-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick guide to installing Ruby on Rails (Fedora 7)</title>
		<link>http://blog.philhunter.com/2008/04/16/quick-guide-to-installing-ruby-on-rails-fedora-7/</link>
		<comments>http://blog.philhunter.com/2008/04/16/quick-guide-to-installing-ruby-on-rails-fedora-7/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 15:38:49 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=10</guid>
		<description><![CDATA[First make sure Ruby is installed first.
# yum install ruby ruby-rdoc ruby-irb rubygems
Next, update the GEM repository by running
# gem update
Followed by&#8230;
# gem install -y rails --include-dependencies
yum install mod_fcgid
Add the following virtual host config to your apache config file /etc/httpd/httpd.conf
SetEnv RAILS_ENV development
ServerName rails
DocumentRoot /path/application/public/
ErrorLog /path/application/log/apache.log
&#60;Directory /path/application/public/&#62;
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
&#60;/Directory&#62;
&#60;/VirtualHost&#62;
]]></description>
			<content:encoded><![CDATA[<p>First make sure Ruby is installed first.</p>
<p><code># yum install ruby ruby-rdoc ruby-irb rubygems</code></p>
<p>Next, update the GEM repository by running</p>
<p><code># gem update</code></p>
<p>Followed by&#8230;</p>
<p><code># gem install -y rails --include-dependencies</code></p>
<p><code>yum install mod_fcgid</code></p>
<p>Add the following virtual host config to your apache config file /etc/httpd/httpd.conf</p>
<p><code>SetEnv RAILS_ENV development<br />
ServerName rails<br />
DocumentRoot /path/application/public/<br />
ErrorLog /path/application/log/apache.log</code></p>
<p><code>&lt;Directory /path/application/public/&gt;<br />
Options ExecCGI FollowSymLinks<br />
AddHandler cgi-script .cgi<br />
AllowOverride all<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2008/04/16/quick-guide-to-installing-ruby-on-rails-fedora-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Self-Signed IIS SSL Certificates using OpenSSL</title>
		<link>http://blog.philhunter.com/2008/04/16/self-signed-iis-ssl-certificates-using-openssl/</link>
		<comments>http://blog.philhunter.com/2008/04/16/self-signed-iis-ssl-certificates-using-openssl/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 15:01:46 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=9</guid>
		<description><![CDATA[This tutorial assumes that you have a Linux box with OpenSSL installed,and that you want to create a self-signed certificate for IIS5.0

Set up your CA (you only have to do this once)
ON THE LINUX BOX&#8230;

Create a private key
openssl genrsa -des3 -out CA.key 1024
(You&#8217;ll need to supply a passphrase.  DON&#8217;T FORGET THIS!!)
Set this to read-only [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial assumes that you have a Linux box with OpenSSL installed,and that you want to create a self-signed certificate for IIS5.0</p>
<ol>
<li><strong>Set up your CA (you only have to do this once)</strong><br />
<strong><em>ON THE LINUX BOX&#8230;</em></strong></p>
<ul>
<li>Create a private key<br />
<blockquote><p>openssl genrsa -des3 -out CA.key 1024</p></blockquote>
<p>(You&#8217;ll need to supply a passphrase.  DON&#8217;T FORGET THIS!!)</li>
<li>Set this to read-only for root access only<br />
<blockquote><p>chmod 400 CA.key</p></blockquote>
</li>
<li>Create the CA certificate<br />
<blockquote><p>openssl req -new -key CA.key -x509 -days 1095 -out CA.crt</p></blockquote>
<p>(Provide appropriate responses to the prompts&#8230;for Common Name,	you might want to use something like &#8220;OurCompany CA&#8221;)</li>
<li>Country Name: GB</li>
<li>State or Province Name: Newcastle</li>
<li>Locality Name: Gateshead</li>
<li>Organization Name: Your company name</li>
<li>Organizational Unit Name: OI</li>
<li>Common Nmae: www.yourwebsite-address.com</li>
<li>Email Address: your-admin-email@address.com</li>
<li>Set the certificate to read-only for root access only<br />
<blockquote><p>chmod 400 CA.crt</p></blockquote>
</li>
</ul>
</li>
<li><strong>Obtain a CSR</strong><br />
<strong><em>ON THE IIS BOX&#8230;</em></strong></p>
<ul>
<li>Open the Internet Manager</li>
<li>Select the site for which you want to create a key</li>
<li>Right-click and choose Properties</li>
<li>Select the &#8220;Directory Security&#8221; tab</li>
<li>Click the &#8220;Server Certificate&#8221; button</li>
<li>Follow the prompts to create a CSR</li>
<li>Save your CSR, then transfer it to the Linux box for further processing. (For the following steps, we&#8217;ll refer to your CSR as &#8220;new.csr&#8221;)</li>
</ul>
</li>
<li><strong>Sign the CSR</strong><br />
<strong><em>ON THE LINUX BOX&#8230;</em></strong></p>
<ul>
<li>Sign the CSR (all of this on one line)<br />
<blockquote><p>openssl x509 -req -days 365 -in new.csr -CA CA.crt<br />
-CAkey CA.key -CAcreateserial -out new.crt</p></blockquote>
</li>
<li>Transfer the new.crt file back to the IIS box</li>
</ul>
</li>
<li><strong>Install self-signed certificate</strong><br />
<strong><em>ON THE IIS BOX&#8230;</em></strong></p>
<ul>
<li>Open the Internet Manager</li>
<li>Select the site to install the key</li>
<li>Right-click and choose properties</li>
<li>Select the &#8220;Directory Security&#8221; tab</li>
<li>Click the &#8220;Server Certificate&#8221; button</li>
<li>Specify that you want to complete the pending request</li>
<li>Select the .crt file that you just transferred</li>
</ul>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2008/04/16/self-signed-iis-ssl-certificates-using-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an ISO image (.iso) on Mac OS X</title>
		<link>http://blog.philhunter.com/2008/03/02/create-an-iso-image-iso-on-mac-os-x/</link>
		<comments>http://blog.philhunter.com/2008/03/02/create-an-iso-image-iso-on-mac-os-x/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 12:50:46 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=8</guid>
		<description><![CDATA[1. Insert the CD or DVD you would like to create an ISO image from
2. In a Terminal window execute the drutil status command in order to determine the device path to your CD/DVD drive.  For example:
$ drutil status
Vendor   Product           Rev
OPTIARC  [...]]]></description>
			<content:encoded><![CDATA[<p>1. Insert the CD or DVD you would like to create an ISO image from</p>
<p>2. In a Terminal window execute the drutil status command in order to determine the device path to your CD/DVD drive.  For example:<br />
<code>$ drutil status</code><br />
<code>Vendor   Product           Rev</code><br />
<code>OPTIARC  DVD RW AD-5630A   1AHM</code></p>
<p><code>Type: DVD-RW               <strong>Name: /dev/disk1</strong></code><br />
<code>Sessions: 1                  Tracks: 1</code><br />
<code>Write Speeds: 1x, 2x</code><br />
<code>Overwritable:  510:38:38         blocks:  2297888 /   4.71GB /   4.38GiB</code><br />
<code>Space Free:   00:00:00         blocks:        0 /   0.00MB /   0.00MiB</code><br />
<code>Space Used:   68:00:64         blocks:   306064 / 626.82MB / 597.78MiB</code><br />
<code>Writability: erasable, overwritable</code><br />
<code>Book Type: DVD-RW (v2)</code><br />
<code>Media ID: CMCW02</code></p>
<p>3. Assuming your Mac automatically mounts the disc and puts an icon on the desktop, you will need to unmount the disk before we proceed.  To to this run the following command again the terminal window:<br />
<code>$ diskutil unmountDisk /dev/disk1</code><br />
<code>Unmount of all volumes on disk1 was successful</code></p>
<p>4. Now to create your ISO file simply use the following command substituting the value of your disk device path and the filename you want to use for your ISO file.:<br />
<code>$ dd if=/dev/disk1 of=file.iso bs=20485</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2008/03/02/create-an-iso-image-iso-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto burning an audio CD under Linux using just the command line</title>
		<link>http://blog.philhunter.com/2007/02/11/burning-an-audio-cd/</link>
		<comments>http://blog.philhunter.com/2007/02/11/burning-an-audio-cd/#comments</comments>
		<pubDate>Sun, 11 Feb 2007 12:07:20 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.philhunter.com/?p=3</guid>
		<description><![CDATA[The following command set allows you to take a selection of MP3 files, convert them into WAV file format and burn them to disc.
(run the following commands as root)
Convert the MP3 files to the WAV file format
for i in `ls *.mp3`; do lame --decode $i ; done
Before you can burn the WAV files to disc [...]]]></description>
			<content:encoded><![CDATA[<p>The following command set allows you to take a selection of MP3 files, convert them into WAV file format and burn them to disc.</p>
<p>(run the following commands as root)</p>
<p><strong>Convert the MP3 files to the WAV file format</strong><br />
<code>for i in `ls *.mp3`; do lame --decode $i ; done</code></p>
<p>Before you can burn the WAV files to disc you should know the <strong>bus address</strong> it is connected to (as far as the operating system is concerned).  To find this out, just run the following command:<br />
<code>cdrecord --scanbus</code></p>
<p>Look for the comma separated address of your cd-writer in the output and substitute the comma separated address e.g. 1,0,0 with the one shown in the <strong>dev</strong> parameter in the command line below:</p>
<p><strong>Burn the WAV files to disc</strong><br />
<code>cdrecord -dao -pad -audio -speed=4 -v dev=ATAPI:1,0,0 *.wav</code></p>
<p>After a short while you should end up with an audio CD you can play in a standard CD player.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.philhunter.com/2007/02/11/burning-an-audio-cd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

