<?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; System Administration</title>
	<atom:link href="http://sampierson.com/blog/category/system-administration/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>Completely uninstall mysql from Mac OS X</title>
		<link>http://sampierson.com/blog/uncategorized/completely-uninstall-mysql-from-mac-os-x/</link>
		<comments>http://sampierson.com/blog/uncategorized/completely-uninstall-mysql-from-mac-os-x/#comments</comments>
		<pubDate>Thu, 14 May 2009 23:54:42 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=576</guid>
		<description><![CDATA[Remove mysql, prefpane item, startup item.
then:

sudo rm -rf /Library/Receipts/mysql*

There is a good complete explanation of this here.
]]></description>
			<content:encoded><![CDATA[<p>Remove mysql, prefpane item, startup item.<br />
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;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Receipts<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>There is a good complete explanation of this <a href="http://akrabat.com/2008/09/11/uninstalling-mysql-on-mac-os-x-leopard/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/uncategorized/completely-uninstall-mysql-from-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X command-line launchd control of mysql</title>
		<link>http://sampierson.com/blog/system-administration/osx-launchd-mysql-control/</link>
		<comments>http://sampierson.com/blog/system-administration/osx-launchd-mysql-control/#comments</comments>
		<pubDate>Thu, 14 May 2009 23:45:57 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=572</guid>
		<description><![CDATA[To start, stop and disable mysql server from the command line:

# start
sudo launchctl start com.mysql.mysqld
# stop
sudo launchctl stop com.mysql.mysqld
# Unload
sudo launchctl unload /Library/LaunchDaemons/com.mysql.mysqld.plist

]]></description>
			<content:encoded><![CDATA[<p>To start, stop and disable mysql server from the command line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># start</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> launchctl start com.mysql.mysqld
<span style="color: #666666; font-style: italic;"># stop</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> launchctl stop com.mysql.mysqld
<span style="color: #666666; font-style: italic;"># Unload</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> launchctl unload <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>LaunchDaemons<span style="color: #000000; font-weight: bold;">/</span>com.mysql.mysqld.plist</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/osx-launchd-mysql-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal.app custom tab names</title>
		<link>http://sampierson.com/blog/system-administration/terminal_custom_tab_names/</link>
		<comments>http://sampierson.com/blog/system-administration/terminal_custom_tab_names/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 05:07:24 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=551</guid>
		<description><![CDATA[So it turns out you can have the best of both worlds.  I have been using ITerm for a while because it allows me to rename its tabs.  Chad just turned me on to a hack that makes the same thing possible with Terminal.app:
1.  Install SIMBL:  http://www.culater.net/software/SIMBL/SIMBL.php
2.  Install TabNamer.Bundle: http://ericanderson.us/2008/03/02/terminalapp-tab-namer-v01-alpha/
 [...]]]></description>
			<content:encoded><![CDATA[<p>So it turns out you can have the best of both worlds.  I have been using ITerm for a while because it allows me to rename its tabs.  <a href="http://thewoolleyweb.com/">Chad</a> just turned me on to a hack that makes the same thing possible with Terminal.app:</p>
<p>1.  Install SIMBL:  <a href="http://www.culater.net/software/SIMBL/SIMBL.php">http://www.culater.net/software/SIMBL/SIMBL.php</a></p>
<p>2.  Install TabNamer.Bundle: <a href="http://ericanderson.us/2008/03/02/terminalapp-tab-namer-v01-alpha/">http://ericanderson.us/2008/03/02/terminalapp-tab-namer-v01-alpha/</a><br />
  a.  download &#038; unzip<br />
  b.  move TabNamer.Bundle to ~/Library/Application Support/SIMBL/Plugins</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/terminal_custom_tab_names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS Leopard bash echo not interpreting escape sequences</title>
		<link>http://sampierson.com/blog/system-administration/macos-leopard-bash-echo-not-interpreting-escape-sequences/</link>
		<comments>http://sampierson.com/blog/system-administration/macos-leopard-bash-echo-not-interpreting-escape-sequences/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 22:58:56 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[System Administration]]></category>
		<category><![CDATA[MacOS]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=527</guid>
		<description><![CDATA[I just hit this incredibly retarded irritating gotcha in Mac OS Leopard.  Luckily, unlike this poor bastard, it only cost me an hour.
Bash echo is supposed to interpret \ escape sequences (e.g. \n) if you supply it a -e flag.  This works from the command line.  It works in shell scripts.  [...]]]></description>
			<content:encoded><![CDATA[<p>I just hit this incredibly retarded irritating gotcha in Mac OS Leopard.  Luckily, unlike <a href="http://interrupt-driven.com/archives/2007/12/leopard_gotcha_command_modeleg.html">this poor bastard</a>, it only cost me an hour.</p>
<p>Bash echo is supposed to interpret \ escape sequences (e.g. \n) if you supply it a -e flag.  This works from the command line.  It works in shell scripts.  It works in &#8217;system&#8217; commands inside rake scripts.  <strong>Unless of course you ssh into the very same system and run the same rake script</strong>; then it stops working.</p>
<p>I tracked this down to the <em>COMMAND_MODE=legacy</em> environment variable, which if missing (and it is missing if I ssh in) makes Leopard do all sorts of stupid <a href="http://developer.apple.com/releasenotes/Darwin/RN-Unix03Conformance/">Single UNIX Specification Version 3 (SUSv3) compatibility crap</a>.  As Stephen points out, this even breaks GNU autoconf scripts!  Way to go, Apple &#8211;  talk about missing the point completely.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/macos-leopard-bash-echo-not-interpreting-escape-sequences/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache server redirects using MacOS Server Admin</title>
		<link>http://sampierson.com/blog/system-administration/apache-server-redirects-using-macos-server-admin/</link>
		<comments>http://sampierson.com/blog/system-administration/apache-server-redirects-using-macos-server-admin/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 20:16:09 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MacOS]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=347</guid>
		<description><![CDATA[Note to self before I delete this entry.
This will redirect an entire site:
Server Admin -&#62; Your server -&#62; Web -&#62; Your site -&#62; Aliases -&#62; Url Aliases and Redirects
Type = RedirectMatch
Pattern = .*
Path = http://example.com
]]></description>
			<content:encoded><![CDATA[<p>Note to self before I delete this entry.<br />
This will redirect an entire site:</p>
<p>Server Admin -&gt; <em>Your server</em> -&gt; Web -&gt; <em>Your site</em> -&gt; Aliases -&gt; Url Aliases and Redirects</p>
<p>Type = RedirectMatch<br />
Pattern = .*<br />
Path = http://example.com</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/apache-server-redirects-using-macos-server-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iStat menus</title>
		<link>http://sampierson.com/blog/system-administration/istat-menus/</link>
		<comments>http://sampierson.com/blog/system-administration/istat-menus/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 22:57:59 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=316</guid>
		<description><![CDATA[There appear to be a couple of different iStat applications.  You want this one.
]]></description>
			<content:encoded><![CDATA[<p>There appear to be a couple of different iStat applications.  You want <a href="http://islayer.com/apps/istatmenus/">this one</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/istat-menus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Analytics for Wordpress</title>
		<link>http://sampierson.com/blog/system-administration/google-analytics-for-wordpress/</link>
		<comments>http://sampierson.com/blog/system-administration/google-analytics-for-wordpress/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 15:32:46 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[google-analytics]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=299</guid>
		<description><![CDATA[I tried installing the google-analytics-for-wordpress plugin for wordpress.  It did not work.  It&#8217;s admin page appears, so it is being read in, but it does not insert any content into the page.  Not sure whether this is a problem with the plugin, with Wordpress or with the theme I am using.  The theme looks to be [...]]]></description>
			<content:encoded><![CDATA[<p>I tried installing the <a href="http://yoast.com/wordpress/google-analytics/">google-analytics-for-wordpress</a> plugin for wordpress.  It did not work.  It&#8217;s admin page appears, so it is being read in, but it does not insert any content into the page.  Not sure whether this is a problem with the plugin, with Wordpress or with the theme I am using.  The theme looks to be coded correctly, so I said screw it and added the GA code by hand to the end of the wp-content/plugins/themes/&lt;theme&gt;/footer.php file.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/google-analytics-for-wordpress/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>Mac os x screenshots</title>
		<link>http://sampierson.com/blog/system-administration/mac-os-x-screenshots/</link>
		<comments>http://sampierson.com/blog/system-administration/mac-os-x-screenshots/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 13:27:47 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[Tidbits]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=206</guid>
		<description><![CDATA[As described here, Command-Shift-4 will capture a dragged area of the screen and save it to a file.
Command-Shift-3 will capture the entire screen, or if you have SnapProX running, it activates it.
]]></description>
			<content:encoded><![CDATA[<p>As described <a href="http://digitalmedia.oreilly.com/2006/01/01/mac-os-x-screenshot-secrets.html">here</a>, Command-Shift-4 will capture a dragged area of the screen and save it to a file.</p>
<p>Command-Shift-3 will capture the entire screen, or if you have SnapProX running, it activates it.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/mac-os-x-screenshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ServerAdmin wipes changes to apache2/site/* files</title>
		<link>http://sampierson.com/blog/system-administration/serveradmin-wipes-changes-to-apache2site-files/</link>
		<comments>http://sampierson.com/blog/system-administration/serveradmin-wipes-changes-to-apache2site-files/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 21:49:37 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=196</guid>
		<description><![CDATA[If you change the configuration for any site using the Mac OS X Server Admin tool, it will rewrite every single site file in the /etc/apache2/site/ folder.   Do not change these by hand if you use this tool.
This is somewhat braindead as for example to use pretty permalinks in Wordpress you need AllowOverride FileInfo [...]]]></description>
			<content:encoded><![CDATA[<p>If you change the configuration for <strong>any</strong> site using the Mac OS X Server Admin tool, it will rewrite every single site file in the /etc/apache2/site/ folder.   Do not change these by hand if you use this tool.</p>
<p>This is somewhat braindead as for example to use <a href="http://codex.wordpress.org/Using_Permalinks">pretty permalinks in Wordpress</a> you need AllowOverride FileInfo for that &lt;Directory&gt;.  However the only choice that Server Admin gives you is AllowOverride All.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/serveradmin-wipes-changes-to-apache2site-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
