<?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>Sam Pierson&#039;s Blog &#187; leopard</title>
	<atom:link href="http://sampierson.com/blog/tag/leopard/feed/" rel="self" type="application/rss+xml" />
	<link>http://sampierson.com/blog</link>
	<description>Augmentation of an Imperfect Memory.</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:41:32 +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>LockScreen icon in menu bar on MacOS X</title>
		<link>http://sampierson.com/blog/macos/lockscreen-icon-in-menu-bar-on-macos-x/</link>
		<comments>http://sampierson.com/blog/macos/lockscreen-icon-in-menu-bar-on-macos-x/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 00:58:26 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[MacOS]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=311</guid>
		<description><![CDATA[
How to add an icon in your MacOS X menu bar (a la System Tray) that will allow you to lock the screen:
/Applications/Utilities/Keychain Access.app
-&#62; Preferences -&#62; General -&#62; Show Status in Menu Bar
]]></description>
			<content:encoded><![CDATA[<div>
<p>How to add an icon in your MacOS X menu bar (a la System Tray) that will allow you to lock the screen:</p>
<p>/Applications/Utilities/Keychain Access.app</p>
<p>-&gt; Preferences -&gt; General -&gt; Show Status in Menu Bar</p></div>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/macos/lockscreen-icon-in-menu-bar-on-macos-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby MySQL gem on Mac OS X Leopard</title>
		<link>http://sampierson.com/blog/system-administration/installing-ruby-mysql-gem-on-mac-os-x-leopard/</link>
		<comments>http://sampierson.com/blog/system-administration/installing-ruby-mysql-gem-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 13:24:30 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=254</guid>
		<description><![CDATA[Thanks to this post, I discovered how to install the MySQL ruby gem on Mac OS X:
You must be using the x86 variant of MySQL, not x86_64, apparently.  Then:

sudo env ARCHFLAGS=&#34;-arch i386&#34; gem install mysql -- \
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
--with-mysql-include=/usr/local/mysql/include

]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://wonko.com/post/how-to-install-the-mysqlruby-gem-on-mac-os-x-leopard">this post</a>, I discovered how to install the MySQL ruby gem on Mac OS X:</p>
<p>You must be using the x86 variant of MySQL, not x86_64, apparently.  Then:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">ARCHFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386&quot;</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql <span style="color: #660033;">--</span> \
<span style="color: #660033;">--with-mysql-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql <span style="color: #660033;">--with-mysql-lib</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>lib \
<span style="color: #660033;">--with-mysql-include</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>include</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/installing-ruby-mysql-gem-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Leopard screen sharing built-in</title>
		<link>http://sampierson.com/blog/system-administration/leopard-screen-sharing-built-in/</link>
		<comments>http://sampierson.com/blog/system-administration/leopard-screen-sharing-built-in/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 20:02:33 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tidbits]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=194</guid>
		<description><![CDATA[I keep forgetting where this is, and I can&#8217;t find it in google right now, so lets blog it:  The builtin Screen Sharing tool in Mac OS X Leopard is at:

/System/Library/CoreServices/Screen Sharing.app

Just run it and it will prompt you for a server to connect to.  From the command line use open -a with the [...]]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting where this is, and I can&#8217;t find it in google right now, so lets blog it:  The builtin Screen Sharing tool in Mac OS X Leopard is at:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>CoreServices<span style="color: #000000; font-weight: bold;">/</span>Screen Sharing.app</pre></div></div>

<p>Just run it and it will prompt you for a server to connect to.  From the command line use <em>open -a</em> with the above path</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/leopard-screen-sharing-built-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MySQL (binaries) on Mac OS X Leopard</title>
		<link>http://sampierson.com/blog/system-administration/installing-mysql-on-mac-os-x-leopard/</link>
		<comments>http://sampierson.com/blog/system-administration/installing-mysql-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 15:58:58 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=104</guid>
		<description><![CDATA[There are a couple of possible ways to install MySQL server on Mac OS X Leopard. Which one you take depends on what is available at mysql.com. When a new version of Mac OS come out, in the past it has taken mysql.com many months to come up with packaged binary releases of MySQL server [...]]]></description>
			<content:encoded><![CDATA[<p>There are a couple of possible ways to install MySQL server on Mac OS X Leopard. Which one you take depends on what is available at mysql.com. When a new version of Mac OS come out, in the past it has taken mysql.com many months to come up with packaged binary releases of MySQL server for it. During that period you are forced to build MySQL server from sources &#8211; I will detail how to do that in a separate post.</p>
<div>
<p>For the purposes of this post, let us assume that binary packages are available. At the time of writing, there are binary packages of MySQL server 5.0 and 5.1 available for Mac OS X. The packages also come in two styles: a tar archive, and a .dmg containing .pkg format packages. The tar version contains a nice readme file called INSTALL-BINARY that details all the steps required to get install MySQL up from scratch (e.g. creating mysql user); This is well worth reading. For this go-around however, I decided to try out the .pkg packages.</p>
<p>I downloaded and mounted mysql-5.0.67-osx10.5-x86_64.dmg and mounted it.  It contains:</p>
<p>mysql-5.0.67-osx10.5-x86_64.pkg &#8211; the server<br />
MySQLStartupitem.pkg &#8211; guess what<br />
MySQL.prefPane &#8211; a prefpane to start/stop the server</p>
<p>Double-clicking on each of these will install them. The server package appears to be very well behaved &#8211; it installs into /usr/local/mysql-VERSION and them symlinks /usr/local/mysql to it. It execute all the other steps required to get the server up (create users, run mysql_install_db etc). The startup item installs to /Library/StartupItems/MySQLCOM.  The preference pane goes where preference panes go <img src='http://sampierson.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After installing set your mysql root password with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqladmin password <span style="color: #000000; font-weight: bold;">&lt;</span>new-password<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>and my personal preference is to then install phpmyadmin and go in and delete all other users before continuing.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/installing-mysql-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting PHP working in Apache2 on Mac OS X Leopard</title>
		<link>http://sampierson.com/blog/system-administration/getting-php-working-in-mac-os-x-leopard/</link>
		<comments>http://sampierson.com/blog/system-administration/getting-php-working-in-mac-os-x-leopard/#comments</comments>
		<pubDate>Sat, 06 Sep 2008 16:42:38 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=97</guid>
		<description><![CDATA[As with OS X Leopard Server, the OS X Leopard standard OS is missing Apache config statements to enable PHP support.  Of course with standard Leopard, you don&#8217;t get the fancy Server Admin tool to let us fix it via a GUI, so we do it by hand:
In /etc/apache2/httpd.conf:
Uncomment the php LoadModule statement:

LoadModule php5_module [...]]]></description>
			<content:encoded><![CDATA[<p>As with OS X Leopard Server, the OS X Leopard standard OS is missing Apache config statements to enable PHP support.  Of course with standard Leopard, you don&#8217;t get the fancy Server Admin tool to let us fix it via a GUI, so we do it by hand:</p>
<p>In /etc/apache2/httpd.conf:</p>
<p>Uncomment the php LoadModule statement:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">LoadModule php5_module libexec/apache2/libphp5.so</pre></div></div>

<p>Then within the &lt;IfModule mime_module&gt; section, add:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps
AddType application/x-httpd-php3 php3
AddHandler php5-script php</pre></div></div>

<p>Start or restart apache via the check box System Preferences -&gt; Sharing -&gt; Web Sharing</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/getting-php-working-in-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting PHP working in Apache2 on Mac OS X Server</title>
		<link>http://sampierson.com/blog/system-administration/getting-php-working-in-apache2-on-mac-os-x-server/</link>
		<comments>http://sampierson.com/blog/system-administration/getting-php-working-in-apache2-on-mac-os-x-server/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 18:00:00 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">urn:uuid:c451c870-5b9d-4de2-9b59-ffe39a37928e</guid>
		<description><![CDATA[In OS X Leopard, out of the box (at least on the System I got access to) Apache2 is missing an AddHandler statement for PHP, so PHP won’t work if you just enable the module.  Here is how to fix that through Server Admin:
Check  -&#62; Web -&#62; Settings -&#62; Modules, php5_module is enabled.
In Settings -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>In OS X Leopard, out of the box (at least on the System I got access to) Apache2 is missing an AddHandler statement for PHP, so PHP won’t work if you just enable the module.  Here is how to fix that through Server Admin:</p>
<p>Check  -&gt; Web -&gt; Settings -&gt; Modules, php5_module is enabled.</p>
<p>In Settings -&gt; MIME Types, check the following is present:</p>

<div class="wp_syntax"><div class="code"><pre class="foo" style="font-family:monospace;">application/x-httpd-php      php</pre></div></div>

<p>In Settings -&gt; MIME Types -&gt; Content Handlers, add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="foo" style="font-family:monospace;">php5-script      php</pre></div></div>

<p>The resulting PHP entries in /etc/apache2/httpd.conf should look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="conf" style="font-family:monospace;">$ grep php httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
AddHandler php5-script php
AddType application/x-httpd-php php
AddType application/x-httpd-php-source phps
AddType application/x-httpd-php3 php3</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/getting-php-working-in-apache2-on-mac-os-x-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting MySQL working on Mac OS X Server</title>
		<link>http://sampierson.com/blog/system-administration/getting-mysql-working-on-mac-os-x-server/</link>
		<comments>http://sampierson.com/blog/system-administration/getting-mysql-working-on-mac-os-x-server/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 17:00:00 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">urn:uuid:539289f2-02ff-4fea-adfe-d9d0de871a43</guid>
		<description><![CDATA[The version of MySQL that comes preintsalled on MacOS X (Leopard) Server does not include client libraries and header files, as discussed here.  The remedy as discussed here is to:
Download MySQL-43.binaries.tar.gz
Stop MySQL Server if it was running (Server Admin -&#62; MySQL -&#62; Stop MySQL)

tar xvfz MySQL-43.binaries.tar.gz
cd MySQL-43.binaries
sudo tar -xzvf MySQL-43.root.tar.gz -C /

To configure and start MySQL:
Using Server Admin
Servername -&#62; Services -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>The version of MySQL that comes preintsalled on MacOS X (Leopard) Server does not include client libraries and header files, as discussed <a href="http://discussions.apple.com/thread.jspa?threadID=1289454">here.</a>  The remedy as discussed <a href="http://docs.info.apple.com/article.html?artnum=306782">here</a> is to:</p>
<p>Download <a href="http://www.opensource.apple.com/darwinsource/other/MySQL-43.binaries.tar.gz">MySQL-43.binaries.tar.gz</a></p>
<p>Stop MySQL Server if it was running (Server Admin -&gt; MySQL -&gt; Stop MySQL)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> xvfz MySQL-43.binaries.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> MySQL-43.binaries
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xzvf</span> MySQL-43.root.tar.gz <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span></pre></div></div>

<div>To configure and start MySQL:</div>
<div>Using Server Admin</div>
<div>Servername -&gt; Services -&gt; Enable MySQL service, Save.</div>
<div>Servername -&gt; MySQL -&gt; Set root password, Save.</div>
<div>Start MySQL.</div>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/getting-mysql-working-on-mac-os-x-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
