<?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>VerySimple &#187; Operating Systems</title>
	<atom:link href="http://verysimple.com/category/operating-systems/feed/" rel="self" type="application/rss+xml" />
	<link>http://verysimple.com</link>
	<description>Custom Software</description>
	<lastBuildDate>Tue, 15 May 2012 07:40:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Apple Address Book not Syncing With iCloud</title>
		<link>http://verysimple.com/2012/04/01/apple-address-book-not-syncing-with-icloud/</link>
		<comments>http://verysimple.com/2012/04/01/apple-address-book-not-syncing-with-icloud/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 04:46:30 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1207</guid>
		<description><![CDATA[I recently started using Apple&#8217;s iCloud service to sync the address book, contacts and calendar between my desktop and phone.  It&#8217;s a fantastic service that allows you to add or edit a contact in one place and have that contact appear on all of your other devices instantly without plugging in your phone to sync. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://verysimple.com/wp-content/uploads/2012/04/icloud2.png" rel="shadowbox[sbpost-1207];player=img;" title="icloud2"><img class="alignright  wp-image-1209" title="icloud2" src="http://verysimple.com/wp-content/uploads/2012/04/icloud2-248x300.png" alt="" width="149" height="180" /></a>I recently started using Apple&#8217;s iCloud service to sync the address book, contacts and calendar between my desktop and phone.  It&#8217;s a fantastic service that allows you to add or edit a contact in one place and have that contact appear on all of your other devices instantly without plugging in your phone to sync.  I was having a strange problem, though.  The Address Book wasn&#8217;t syncing consistently.  Most contacts would sync right away but a few of them I added from the desktop would never seem to sync to my iPhone.</p>
<p>I discovered that there&#8217;s two Address Book &#8220;accounts&#8221; on the desktop.  There&#8217;s a local account called &#8220;On My Mac&#8221; and another &#8220;iCloud&#8221; account.  It&#8217;s possible that you might have even more accounts, for example Gmail.  Only contacts added to the iCloud account will sync.  It seems obvious except that there&#8217;s no visual indication of which contacts belong to which accounts.   As it turns out &#8220;On My Mac&#8221; was set as the default account so whenever I created a new contact on my desktop it wouldn&#8217;t sync.</p>
<p>My solution was to to first set iCloud as the default account.  From that point on all new contacts would be added to the iCloud account and sync instantly.</p>
<p><a href="http://verysimple.com/wp-content/uploads/2012/04/icloud1.png" rel="shadowbox[sbpost-1207];player=img;" title="icloud1"><img class="alignright size-medium wp-image-1208" title="icloud1" src="http://verysimple.com/wp-content/uploads/2012/04/icloud1-300x159.png" alt="" width="300" height="159" /></a>That left me with the problem of moving the existing &#8220;On My Mac&#8221; contacts into iCloud.  So that I could see which accounts were part of the local account I unchecked the &#8220;enable&#8221; checkbok for the iCloud account.  All of my iCloud contacts became hidden and only the 10 or so local contacts remained visible.  I selected all of the local contacts and dragged them to the desktop, which exported them as vCards.  Next I deleted the local contacts so I wouldn&#8217;t have duplicates when I re-import them.  Finally I re-enabled iCloud and dragged the exported vCards back into Address Book.  At this point all of my contacts were in the iCloud account and everything synced as expected.</p>
<p>Once all of my contacts were moved to iCloud I disabled the local account.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2012/04/01/apple-address-book-not-syncing-with-icloud/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Your connection had to be retried using SSL 3.0 &#8211; Apache 2 SSL Certificate Configuration</title>
		<link>http://verysimple.com/2012/03/12/your-connection-had-to-be-retried-using-ssl-3-0-apache-2-ssl-certificate-configuration/</link>
		<comments>http://verysimple.com/2012/03/12/your-connection-had-to-be-retried-using-ssl-3-0-apache-2-ssl-certificate-configuration/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 04:45:33 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1202</guid>
		<description><![CDATA[When viewing your SSL certification details in Chrome you may notice an annoying yellow warning icon with the error message &#8220;Your connection had to be retried using SSL 3.0 This typically means the server is using very old software and may have other security issues&#8221; This warning technically doesn&#8217;t affect or hurt anything but of [...]]]></description>
			<content:encoded><![CDATA[<p>When viewing your SSL certification details in Chrome you may notice an annoying yellow warning icon with the error message &#8220;Your connection had to be retried using SSL 3.0 This typically means the server is using very old software and may have other security issues&#8221;</p>
<p>This warning technically doesn&#8217;t affect or hurt anything but of course after paying for the SSL cert and going through the trouble of installing it, we all want our users to see the green lock icon and not a yellow warning icon!  If you&#8217;re running Apache2 the reason for this is that Chrome prefers to use TLS encryption but had to fall back to SSL encryption.  Apache2 supports TLS out of the box but may not be enabled by default.</p>
<p>To enable TLS, open your apache configuration file and add the two lines below:  (The config file is where you previously configured SSLCertificateFile and SSLCertificateKeyFile.  It&#8217;s possibly located in /etc/apache2/sites-enabled)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SSLProtocol <span style="color: #660033;">-all</span> +TLSv1 +SSLv3
SSLCipherSuite HIGH:MEDIUM:<span style="color: #000000; font-weight: bold;">!</span>aNULL:+SHA1:+MD5:+HIGH:+MEDIUM</pre></div></div>

<p>What these lines do is specify that both TLS version 1 and SSL version 3 are supported.  Once you&#8217;ve added these lines you need to restart Apache (/etc/init.d/apache2 restart).</p>
<p>If you refresh your browser at this point it&#8217;s likely that the warning icon is still there.   Shutting down and re-starting your browser should resolve it.  I suspect that the browser negotiates an SSL connection once and continues to use it until the session expires or the browser is restarted.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2012/03/12/your-connection-had-to-be-retried-using-ssl-3-0-apache-2-ssl-certificate-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Auto Accept.applescript for OSX Messages</title>
		<link>http://verysimple.com/2012/02/16/auto-accept-applescript-for-osx-messages/</link>
		<comments>http://verysimple.com/2012/02/16/auto-accept-applescript-for-osx-messages/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 23:38:03 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1185</guid>
		<description><![CDATA[iChat will be replaced in the next version of OSX &#8220;Mountain Lion&#8221; with an app called simply &#8220;Messages.&#8221; This new app is an improvement to iChat and includes some nice features like multiple chats in a single window and the ability to send messages to iPhones via iMessage. You can download the BETA version now [...]]]></description>
			<content:encoded><![CDATA[<p>iChat will be replaced in the next version of OSX &#8220;Mountain Lion&#8221; with an app called simply &#8220;Messages.&#8221; This new app is an improvement to iChat and includes some nice features like multiple chats in a single window and the ability to send messages to iPhones via iMessage. You can <a href="http://www.apple.com/macosx/mountain-lion/messages-beta/" target="_blank">download the BETA version now from Apple</a>.</p>
<p>One thing that was not packaged in the initial beta release is the Apple Script to automatically accept text invitations.  I find it a huge annoyance to click &#8220;Accept&#8221; every time a new text comes through.  Fortunately the original iChat AppleScripts work on Messages but you just have to obtain and save it to ~/Library/Scripts/Messages.</p>
<p>Download Auto Accept below and enjoy&#8230;</p>
<p><a href="http://verysimple.com/wp-content/uploads/2012/02/AutoAccept.zip">Download AutoAccept.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2012/02/16/auto-accept-applescript-for-osx-messages/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Kill imagent</title>
		<link>http://verysimple.com/2011/12/23/kill-imagent/</link>
		<comments>http://verysimple.com/2011/12/23/kill-imagent/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 09:33:07 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1169</guid>
		<description><![CDATA[For some reason after upgrading to Lion I have to kill the process for imagent regularly in order to use iChat.  Otherwise iChat stays stuck saying &#8220;unavailable.&#8221;  I don&#8217;t know exactly why this is happening to some people and not others but I&#8217;m one of the unlucky people who has been experiencing it ever since [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://verysimple.com/wp-content/uploads/2011/12/kill-imagent.png" rel="shadowbox[sbpost-1169];player=img;" title="kill-imagent"><img class="alignright size-full wp-image-1171" title="kill-imagent" src="http://verysimple.com/wp-content/uploads/2011/12/kill-imagent.png" alt="" width="247" height="228" /></a>For some reason after upgrading to Lion I have to kill the process for imagent regularly in order to use iChat.  Otherwise iChat stays stuck saying &#8220;unavailable.&#8221;  I don&#8217;t know exactly why this is happening to some people and not others but I&#8217;m one of the unlucky people who has been experiencing it ever since I upgraded.  It seems to happen when I let my computer go to sleep.  iChat doesn&#8217;t connect after the laptop wakes up.</p>
<p>Since it&#8217;s turned into almost a daily thing for me to open terminal and kill imagent, I decided to write that into applescript and make an icon so I can just click it.  It&#8217;s only one line of applescript:</p>
<p><code>do shell script "killall imagent"</code></p>
<p>That&#8217;s all there is to it, but in case you don&#8217;t know or want to deal with compiling that yourself, you can download this <a href="http://verysimple.com/wp-content/uploads/2011/12/kill-imagent.zip">pre-built version of kill-imagent</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/12/23/kill-imagent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Image Magick for PHP on OSX</title>
		<link>http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/</link>
		<comments>http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 05:34:56 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=1160</guid>
		<description><![CDATA[These instructions will install the ImageMagick binaries as well as the PHP extension for the default OSX Apache/PHP setup.  If you prefer not to use MacPorts there are binaries available, however you may have to deal with some dependencies and configuration on your own. 1. Install ImageMagick sudo port install ImageMagick 2. Install imagic module [...]]]></description>
			<content:encoded><![CDATA[<p>These instructions will install the ImageMagick binaries as well as the PHP extension for the default OSX Apache/PHP setup.  If you prefer not to use MacPorts there are binaries available, however you may have to deal with some dependencies and configuration on your own.</p>
<h3>1. Install ImageMagick</h3>
<p><code>sudo port install ImageMagick</code></p>
<h3>2. Install imagic module</h3>
<p>You&#8217;d expect to just be able to run &#8220;pecl install imagick&#8221; and I would probably try it first.  However the instructions below will work if the automatic installation returns the error: ImageMagick MagickWand API configuration program&#8230; configure: error: not found. Please provide a path to MagickWand-config or Wand-config program. ERROR: &#8216;/private/tmp/pear/temp/imagick/configure &#8211;with-imagick=/opt/local/bin/&#8217; failed.</p>
<p><em>Note version is 3.0.1 in these instructions, adjust the commands depending on the version that is downloaded by pecl.</em></p>
<p><code>pecl download imagick<br />
tar xvzf imagick-3.0.1.tgz<br />
cd imagick-3.0.1<br />
phpize<br />
./configure --with-imagick=/opt/local<br />
make<br />
sudo make install</code></p>
<p>The install process will create a file &#8220;imagick.so&#8221;, but it may not be automatically installed in the correct location depending on your PHP path settings.  The install will output the location of the .so file so if necessary, you can manually move that file to the extensions directory for your web server.</p>
<h3>3. Append to php.ini</h3>
<p><code>extension=imagick.so</code></p>
<p>That should be it.  Restart Apache and view phpinfo.php. There should be a section for ImageMagick</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing LAMP Stack on OSX 10.7 Lion</title>
		<link>http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/</link>
		<comments>http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 22:14:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=998</guid>
		<description><![CDATA[This is a follow-up to my previous article on installing a LAMP Stack on Snow Leopard and explains the steps that you need to get Lion up and running for LAMP development.  (Linux, Apache, MySQL and PHP in case you don&#8217;t already know).  Lion comes pre-installed with Apache and PHP 5.3.6 so you only need [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow-up to my previous article on <a href="http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/" target="_blank">installing a LAMP Stack on Snow Leopard</a> and explains the steps that you need to get Lion up and running for LAMP development.  (Linux, Apache, MySQL and PHP in case you don&#8217;t already know).  Lion comes pre-installed with Apache and PHP 5.3.6 so you only need to enable those features.  MySQL is the only component that you have to install.</p>
<h3>1.Turn on Apache</h3>
<p>Go to System Settings-&gt;Sharing and turn on Web Sharing. If necessary click the button that says &#8220;Create Home Folder&#8221; which will create a folder called &#8220;Sites&#8221; in your home directory.  You now have a web server that you can access at http://localhost/~username/  (&#8220;username&#8221; being your own account login name)</p>
<h3>2. Edit /private/etc/apache2/httpd.conf</h3>
<p>To enable PHP uncomment (remove the number sign at the beginning of) the line:</p>
<p>#LoadModule php5_module libexec/apache2/libphp5.so</p>
<p>(optional) you can re-map the server root to your home website directory by editing DocumentRoot:</p>
<p>DocumentRoot “/Users/username/Sites”</p>
<p>If you wish to use .htaccess files then look a bit further down AllowOverride and set it to &#8220;All&#8221; like so:</p>
<p>Options FollowSymLinks<br />
AllowOverride All<br />
Order deny,allow<br />
Deny from all</p>
<h3>3. Edit /private/etc/apache2/users/username.conf</h3>
<p>Your user directory has it&#8217;s own permissions as well which are located in this separate file.  You may wish to enable FollowSymLinks and AllowOverride again here by changing these two lines like so:</p>
<p>Options Indexes MultiViews FollowSymLinks<br />
AllowOverride All</p>
<h3>4. Copy /private/etc/php.ini.default to /private/etc/php.ini</h3>
<p>OSX includes a default php.ini file that you can use but you must rename or copy it first.  If you don&#8217;t do this then PHP will still run but it will just be using the default initialization settings with no way for you to override them.</p>
<p>Edit these settings in <strong>php.ini</strong> (some of these settings will not come into play until they are installed)</p>
<p>display_errors = On<br />
mysql.default_socket = /tmp/mysql.sock<br />
pdo_mysql.default_socket=/tmp/mysql.sock<br />
date.timezone = &#8216;America/Chicago&#8217;<br />
include_path = &#8220;.:/usr/lib/php/pear&#8221;</p>
<h3>5. (Optional) Install PEAR</h3>
<p>If you use the PEAR libraries you can install them using the included phar file like so:</p>
<p>sudo php /usr/lib/php/install-pear-nozlib.phar<br />
sudo pear config-set php_ini /private/etc/php.ini<br />
sudo pecl config-set php_ini /private/etc/php.ini<br />
sudo pear upgrade-all</p>
<h3>6.  Install MySQL</h3>
<p>This doesn&#8217;t really require instructions, simply download the latest MySQL from <a href="http://mysql.com/">mysql.com</a>.  I installed the 64 bit version.</p>
<h3>7. (Optional) Install Apache Plugins</h3>
<p>If you use encryption you may need to install mcrypt.  <a href="http://michaelgracie.com/2011/07/21/plugging-mcrypt-into-php-on-mac-os-x-lion-10-7/" target="_blank">Instructions</a> have been provided by Michael Gracie</p>
<p>If you use the Zend debugger you can install that using <a href="http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/" target="_blank">these instructions</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Installing Zend PHP Debugger in Eclipse on OSX</title>
		<link>http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/</link>
		<comments>http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 21:02:08 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=993</guid>
		<description><![CDATA[This walk-through video shows how to install  and enable PHP debugging using the Zend debugger in Eclipse on OSX.  Instead of using print_r and die statements you can step through your code line-by-line, inspect variables and objects, set breakpoints and view the call stack. Using a debugger really pays off in the long run in [...]]]></description>
			<content:encoded><![CDATA[<p>This walk-through video shows how to install  and enable PHP debugging using the Zend debugger in Eclipse on OSX.  Instead of using print_r and die statements you can step through your code line-by-line, inspect variables and objects, set breakpoints and view the call stack.</p>
<p>Using a debugger really pays off in the long run in my opinion.  It gives you so much visibility and insight into what&#8217;s happening in your code and allows you to work faster.  Most developers that I know don&#8217;t bother installing a debugger for PHP web applications because either they either aren&#8217;t aware of how well it works and/or they think the initial setup is a pain.  The setup does have a few steps but actually isn&#8217;t difficult.  This video walks you through all of the steps to install the Zend debugger.</p>
<p><a href="http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/"><em>Click here to view the embedded video.</em></a></p>
<p><strong>Download links referenced in the video:</strong></p>
<p>Zend Studio Web Debugger (Apache Module):<br />
<a title="http://www.zend.com/en/products/studio/downloads" dir="ltr" href="http://www.zend.com/en/products/studio/downloads" rel="nofollow" target="_blank">http://www.zend.com/en/products/studio/downloads</a></p>
<p>Zend Debugger Plugin Install Site (Eclipse Plugin):<br />
<a title="http://downloads.zend.com/pdt" dir="ltr" href="http://downloads.zend.com/pdt" rel="nofollow" target="_blank">http://downloads.zend.com/pdt</a></p>
<p>Optionally you can download the Zend debugger plugin and install it manually by copying the files to your Eclipse folder instead of using the &#8220;Install Site&#8221;  That can be downloaded here: <a href="http://www.zend.com/en/community/pdt ">http://www.zend.com/en/community/pdt </a></p>
<p><strong>Configuration text for php.ini</strong></p>
<p>zend_extension=/usr/lib/php/extensions/ZendDebugger.so<br />
zend_debugger.expose_remotely=always<br />
zend_debugger.connector_port=10000<br />
zend_debugger.allow_hosts=127.0.0.1/32,192.168.*.*,10.*.*.*</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/08/16/installing-zend-php-debugger-in-eclipse-on-osx/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Connect to VNC over SSH</title>
		<link>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/</link>
		<comments>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/#comments</comments>
		<pubDate>Mon, 28 Mar 2011 03:07:11 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Digital Life]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=861</guid>
		<description><![CDATA[Connecting to your VNC server over SSH is easily done and you most likely don&#8217;t need any special software to do so. Any system that has SSH installed can connect using an SSH Tunnel. I go into more detail about the concept on a separate post about mounting OSX AFS shares over SSH. First you [...]]]></description>
			<content:encoded><![CDATA[<p>Connecting to your VNC server over SSH is easily done and you most likely don&#8217;t need any special software to do so.  Any system that has SSH installed can connect using an SSH Tunnel.  I go into more detail about the concept on a separate post about <a href="http://verysimple.com/2008/03/09/mount-an-osx-afs-shared-drive-over-ssh/">mounting OSX AFS shares over SSH</a>.</p>
<p>First you need to have a server that is running VNC, but most likely only has it&#8217;s SSH port exposed.  I&#8217;ll assume that SSH is on port 22 and VNC is on port 5900 (these are the default ports for these services).  I&#8217;ll also assume that you have the ssh command and a VNC client installed on your client machine.</p>
<p><span id="more-861"></span>1. On your client machine, open a command line window and enter the following to create the SSH tunnel:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-N</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">22</span> USERNAME<span style="color: #000000; font-weight: bold;">@</span>YOURSERVER <span style="color: #660033;">-L</span> <span style="color: #000000;">5901</span><span style="color: #000000; font-weight: bold;">/</span>localhost<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5900</span></pre></div></div>

<p><em>Replace USERNAME with your server username, and replace YOURSERVER with your server address (ie verysimple.com or 192.168.1.99)</em></p>
<p>2. Once you enter this command you&#8217;ll be prompted for the server password.  Enter the password.  You will see no feedback in the terminal window, but the SSH tunnel is now active.</p>
<p>3. Open your VNC client and connect to the address &#8220;localhost:5901&#8243;  If you have a password set for VNC access then you will need to enter that now.  If all goes well, you should see your server VNC desktop!</p>
<p>It might seem weird that you are connecting to localhost in your VNC client.  But the the SSH tunnel you created is actually routing port 5901 on your localhost to port 5900 on your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2011/03/27/connect-to-vnc-over-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable improved vi features (vim) in OSX</title>
		<link>http://verysimple.com/2010/11/22/enable-improved-vi-features-vim-in-osx/</link>
		<comments>http://verysimple.com/2010/11/22/enable-improved-vi-features-vim-in-osx/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 01:29:52 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://verysimple.com/?p=777</guid>
		<description><![CDATA[The vi editor in OSX by default runs in &#8220;compatibility&#8221; mode, however a secret is that vi on OSX is actually an alias to vim (vi iMproved). vim is a more modern version of vi that includes a variety of optional features.  As you can see in the screenshot, colored syntax highlighting is one of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://verysimple.com/wp-content/uploads/2010/11/vim.png" rel="shadowbox[sbpost-777];player=img;" title="vim"><img class="alignright size-medium wp-image-778" title="vim" src="http://verysimple.com/wp-content/uploads/2010/11/vim-300x285.png" alt="" width="300" height="285" /></a>The vi editor in OSX by default runs in &#8220;compatibility&#8221; mode, however a secret is that vi on OSX is actually an alias to vim (vi iMproved). vim is a more modern version of vi that includes a variety of optional features.  As you can see in the screenshot, colored syntax highlighting is one of the more noticeable features.</p>
<p>If you want to enable these, you can run the following from Terminal:</p>
<p>cp /usr/share/vim/vim72/vimrc_example.vim ~/.vimrc<br />
cp /usr/share/vim/vim72/gvimrc_example.vim ~/.gvimrc</p>
<p>Basically what this does is copy some sample configuration files that enable the additional features.  If you decide you don&#8217;t like them, you can just delete ~/.vimrc and ~/.gvimrc and everything will go back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2010/11/22/enable-improved-vi-features-vim-in-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing LAMP stack on OSX 10.6 Snow Leopard</title>
		<link>http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/</link>
		<comments>http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 21:55:19 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.verysimple.com/blog/?p=414</guid>
		<description><![CDATA[Updated instructions are available for installing LAMP on OSX 10.7 Lion. I&#8217;m setting up a new machine and found a great tutorial written by Josh Lockhart on getting a PHP web development environment up and running on Snow Leopard.  This goes through almost everything to be up and running for a typical LAMP stack with [...]]]></description>
			<content:encoded><![CDATA[<p>Updated instructions are available for <a href="http://verysimple.com/2011/08/18/installing-lamp-stack-on-osx-10-7-lion/">installing LAMP on OSX 10.7 Lion</a>.</p>
<p>I&#8217;m setting up a new machine and found a great tutorial written by Josh Lockhart on <a href="http://www.newmediacampaigns.com/page/install-pear-phpunit-xdebug-on-macosx-snow-leopard" target="_blank">getting a PHP web development environment up and running on Snow Leopard</a>.  This goes through almost everything to be up and running for a typical LAMP stack with unit testing using all of the default services.</p>
<p>Josh&#8217;s instructions include everything that I need except mcrypt &amp; IMAP.  Luckily Michael Gracie has provided a walk-through for <a href="http://michaelgracie.com/2009/09/23/plugging-mcrypt-into-php-on-mac-os-x-snow-leopard-10.6.1/" target="_blank">installing mcrypt on Snow Leopard</a> which involves re-compiling some things, but isn&#8217;t as tough as it first appears.  A <a href="http://www.activecollab.com/forums/topic/5844/">walk-through for installing IMAP support</a> is available on activeColab (with a pre-built binary).</p>
<p>After getting PHP, mcrypt and IMAP going, the last step for me is setting up MySQL which has some caveats on OSX.  The main problem is that the MySQL installer places the mysql.sock file in a non-standard place and so you have to either <a href="http://www.verysimple.com/blog/2009/01/07/php-on-os-cant-connect-to-local-mysql-server-through-socket-varmysqlmysqlsock/">create a link or alter your php.ini file</a> before PHP will be able to talk to MySQL.  (If you get <em>&#8220;Can’t connect to local MySQL server through socket ‘/var/mysql/mysql.sock’</em>&#8221; or  “<em>No such file or directory</em>” when calling mysql_connect, then this is the problem)</p>
<p><span id="more-414"></span></p>
<p>After completing the steps on Josh&#8217;s &amp; Michael&#8217;s pages and running the MySQL installation package, here are the additional steps that I like to take to get my local environment configured:</p>
<p><strong>Edit /private/etc/php.ini</strong></p>
<p>display_errors = On<br />
mysql.default_socket = /tmp/mysql.sock<br />
pdo_mysql.default_socket=/tmp/mysql.sock<br />
date.timezone = &#8216;America/Chicago&#8217;</p>
<p><strong>Edit /private/etc/apache2/httpd.conf</strong></p>
<p>DocumentRoot &#8220;/Users/jason/Sites&#8221;</p>
<p><strong>Edit /private/etc/apache2/users/jason.conf</strong></p>
<p>Append <em>FollowSymLinks</em> to the Options</p>
<p>Change AllowOverride to All</p>
<p>I also like to change the permissions on php.ini and httpd.conf to allow my user account edit permissions and create an alias to those two files somewhere easy to get to.</p>
<p>Installing <a href="http://www.mamp.info" target="_blank">MAMP</a> is probably easier, but for some reason I prefer using all of the services that are pre-bundled with OSX.  Also Snow Leopard includes PHP 5.3 which led me to find a couple of deprecated functions in some of our libraries.</p>
]]></content:encoded>
			<wfw:commentRss>http://verysimple.com/2009/09/18/installing-lamp-stack-on-osx-10-6-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

