<?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>lifecoding.com Blog &#187; SysAdmin</title>
	<atom:link href="http://lifecoding.com/blog/index.php/category/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifecoding.com/blog</link>
	<description>(define (life-coding life code) (organize life (using code)))</description>
	<lastBuildDate>Wed, 11 Jun 2008 03:29:55 +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>Grr&#8230; Mac OS X and ctags</title>
		<link>http://lifecoding.com/blog/2006/06/19/grr-mac-os-x-and-ctags/</link>
		<comments>http://lifecoding.com/blog/2006/06/19/grr-mac-os-x-and-ctags/#comments</comments>
		<pubDate>Tue, 20 Jun 2006 00:17:02 +0000</pubDate>
		<dc:creator>Trotter Cashion</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[SysAdmin]]></category>

		<guid isPermaLink="false">http://lifecoding.com/blog/?p=30</guid>
		<description><![CDATA[Another day, another software problem. This time, I&#8217;m taking the advice of Zed Shaw and attempting to use gvim for my text editing.  I&#8217;m currently using Textmate, but I change my editor about as often as I workout (aka every two months). Enough rambling, gvim has support for this cool thing called ctags. I [...]]]></description>
			<content:encoded><![CDATA[<p>Another day, another software problem. This time, I&#8217;m taking the advice of <a href="http://www.zedshaw.com">Zed Shaw</a> and attempting to use <a href="http://macvim.org">gvim</a> for my text editing.  I&#8217;m currently using <a href="http://macromates.com/">Textmate</a>, but I change my editor about as often as I workout (aka every two months). Enough rambling, gvim has support for this cool thing called ctags. I haven&#8217;t investigated it enough yet, but it&#8217;s apparently used to allow you to jump to the definition of a function, class, or what-have-you very easliy. Sounds cool right?</p>
<p>Unfortunately, the version of ctags that ships with Mac OS X is a piece of crap. Looking at the man page it&#8217;s only version 3.0 from 1993. That&#8217;s 13 years ago for those of you not into math. Anyway, <b>the fix</b> is simple (that&#8217;s in bold for those of you from google). Just install <a href="http://www.darwinports.org">Darwin Port</a> and then enter </p>
<pre>sudo port install ctags</pre>
<p>That&#8217;ll get you up and good with a modern version.</p>
<p>P.S. &#8211; If you really want to install this by source and do not know how, let me know. I can easily do another write up on how that&#8217;s done.</p>
]]></content:encoded>
			<wfw:commentRss>http://lifecoding.com/blog/2006/06/19/grr-mac-os-x-and-ctags/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Make Pound And SSL Play Nice With OS X</title>
		<link>http://lifecoding.com/blog/2006/06/09/how-to-make-pound-and-ssl-play-nice-with-os-x/</link>
		<comments>http://lifecoding.com/blog/2006/06/09/how-to-make-pound-and-ssl-play-nice-with-os-x/#comments</comments>
		<pubDate>Fri, 09 Jun 2006 22:23:31 +0000</pubDate>
		<dc:creator>Trotter Cashion</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://lifecoding.com/blog/?p=29</guid>
		<description><![CDATA[Though building sites with ssl is cool and gives your users a sense of security, configuring a webserver with ssl can be a royal pain. Thankfully, there&#8217;s pound.  Pound is a &#8220;is a reverse proxy, load balancer and HTTPS front-end for Web server(s).&#8221;
Pound is dead simple to setup and configure. Unfortunately, the darwin port [...]]]></description>
			<content:encoded><![CDATA[<p>Though building sites with ssl is cool and gives your users a sense of security, configuring a webserver with ssl can be a royal pain. Thankfully, there&#8217;s pound.  <a href="">Pound</a> is a &#8220;is a reverse proxy, load balancer and HTTPS front-end for Web server(s).&#8221;</p>
<p>Pound is dead simple to setup and configure. Unfortunately, the darwin port for pound is old and does not work. So this guide will help you build pound on your own. Besides, everyone feels cooler after compiling that hot fire. Click on for the steps.</p>
<ol>
<span id="more-29"></span></p>
<li>Open terminal.</li>
<li>Install zlib</li>
<pre>
mkdir ~/temp
curl -O http://www.zlib.net/zlib-1.2.3.tar.gz
tar xzvf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr/local --shared
make
sudo make install
</pre>
<li>Install openssl</li>
<pre>
curl -O http://www.openssl.org/source/openssl-0.9.8b.tar.gz
tar xzvf openssl-0.9.8b.tar.gz
cd openssl-0.9.8b
./config -L/usr/local/lib --openssldir=/usr/local/etc/openssl \\
    zlib no-asm no-krb5 shared
make
sudo make install
</pre>
<li>Install Pound 2.0 or greater</li>
<pre>
curl -O http://www.apsis.ch/pound/Pound-2.0.tgz
tar xzvf Pound-2.0.tgz
cd Pound-2.0
sed "s/-o bin -g bin //g" < Makefile.in > Makefile.in.new
mv Makefile.in.new Makefile.in  # Hit y to override any restrictions
./configure --with-ssl=/usr/local/etc/openssl/ --prefix=/usr/local
make
sudo make install
</pre>
<li>Generate an ssl certificate.</li>
<pre>
cd /usr/local/etc
</pre>
<p>You can put the next line in ~/.bash_profile if you want openssl available everytime you open the terminal.</p>
<pre>
export PATH="/usr/local/etc/openssl/bin:$PATH"
sudo openssl/bin/openssl req -x509 -newkey rsa:1024 -keyout our_cert.pem \\
    -out our_cert.pem -days 365 -nodes
</pre>
<p>Fill out the required information to generate the ssl certificate.</p>
<li>Create a pound.cfg file.</li>
<pre>
cd /usr/local/etc # You should already be here
</pre>
<p>This next piece uses a trick called a heredoc. Instead of copying and pasting the below command into terminal, you could also just copy and paste the text into pound.cfg in /usr/local/etc/pound.cfg</p>
<pre>
cat &gt; ~/tmp_file &lt;&lt;EOF
ListenHTTP
  Address 0.0.0.0
  Port    80
  Service
    BackEnd
      Address 127.0.0.1
      Port    3000
    End
  End
End

ListenHTTPS
  Address 0.0.0.0
  Port    443
  Cert    "/usr/local/etc/our_cert.pem"
  # pass along https hint
  AddHeader "X-Forwarded-Proto: https"
  HeadRemove "X-Forwarded-Proto"
  Service
    BackEnd
      Address 127.0.0.1
      Port    3000
    End
  End
End
EOF
sudo mv ~/tmp_file ./pound.cfg
</pre>
<li>Make sure that pound works.</li>
<pre>
pound -v -c
</pre>
<p>You should see Config file /usr/local/etc/pound.cfg is OK.<br />
If not, make sure that you copied your config file correctly<br />
using &#8216;cat pound.cfg&#8217; to view what is in the file.</p>
<li>Turn off apache (assuming it&#8217;s running).</li>
<pre>sudo apachectl stop</pre>
<li>Turn on pound.</li>
<pre>sudo pound -v</pre>
<li>Start mongrel/webrick/lighty.</li>
<pre>
cd ~/work/my_killer_app
mongrel_rails start # Or ruby script/server (if you're still on lighty/webrick)
</pre>
<li>Marvel at your wonderous creation by pointing your browser to http://localhost/ or https://localhost/</li>
</ol>
<p>TODO (feel free to do these and post how to do them in the comments):
<ul>
<li>Make pound start when the computer loads.</li>
<li>Use darwin ports to install zlib and openssl, but not pound.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://lifecoding.com/blog/2006/06/09/how-to-make-pound-and-ssl-play-nice-with-os-x/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

