<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>System Explorer</title>
	<atom:link href="http://sysexplorer.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sysexplorer.wordpress.com</link>
	<description>Notes on my exploration of modern systems.</description>
	<lastBuildDate>Tue, 05 Jul 2011 19:52:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sysexplorer.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>System Explorer</title>
		<link>http://sysexplorer.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sysexplorer.wordpress.com/osd.xml" title="System Explorer" />
	<atom:link rel='hub' href='http://sysexplorer.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Setup an EBS (non-boot) partition</title>
		<link>http://sysexplorer.wordpress.com/2011/07/05/setup-an-ebs-non-boot-partition/</link>
		<comments>http://sysexplorer.wordpress.com/2011/07/05/setup-an-ebs-non-boot-partition/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 19:52:21 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/?p=52</guid>
		<description><![CDATA[1. Go into elasticfox 2. From your instance, determine which availability zone 3. Go to Volumes and Snapshots tab 4. Click to add one (green + button) a. Choose the size ($0.10 / GB per month) b. Leave SnapID at (unless you want to clone an existing EBS volume, in which case, don't format it!) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=52&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre>
1. Go into elasticfox
2. From your instance, determine which availability zone
3. Go to Volumes and Snapshots tab
4. Click to add one (green + button)
    a. Choose the size ($0.10 / GB per month)
    b. Leave SnapID at  (unless you want to clone an existing EBS volume, in which case, don't format it!)
    c. Set availability zone as appropriate
    d. Set tag to be whatever you want it to be (seems to be optional)
5. In elasticfox, right-click on the volume and choose Attach This Volume
    a. Pick a device - /dev/sdh or similar; check what you already have in /dev, but pick /dev/sd?
6. Go to the EC2 instance
7. Format the new device; assuming it's /dev/sdh:
    a. #  mkfs.ext3 /dev/sdh
    b. Type 'y'
8. Modify /etc/fstab to map to /vol (or whatever location you want)
    a. # vi /etc/fstab
    b. Add a new line:
    c. "/dev/sdh   /vol   ext3   noatime   0   0"
    d. Write and exit the file
9. Create the directory where the new EBS will go:
    a. # mkdir /vol
10. Mount the EBS
    a. # mount /vol
    b. Ensure that a lost+found directory exists in /vol
11. To unmount the EBS:
    a. # umount /vol
</pre>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=52&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2011/07/05/setup-an-ebs-non-boot-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Burning DVD&#8217;s to iTunes for iPhone consumption (Mac 10.6)</title>
		<link>http://sysexplorer.wordpress.com/2010/10/21/burning-dvds-to-itunes-for-iphone-consumption-mac-10-6/</link>
		<comments>http://sysexplorer.wordpress.com/2010/10/21/burning-dvds-to-itunes-for-iphone-consumption-mac-10-6/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 17:59:32 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Mac GUI]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/?p=49</guid>
		<description><![CDATA[I have a way the works for me, and it&#8217;s somewhat imperfect. I don&#8217;t care about the menus, I just care about watching whatever the show is. So here&#8217;s how you do it. Ensure that you have Handbrake installed on your mac. Insert the DVD; close the dvd player app that automatically starts. Open Handbrake. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=49&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have a way the works for me, and it&#8217;s somewhat imperfect.  I don&#8217;t care about the menus, I just care about watching whatever the show is.  So here&#8217;s how you do it.</p>
<ol>
<li>Ensure that you have Handbrake installed on your mac.</li>
<li>Insert the DVD; close the dvd player app that automatically starts.</li>
<li>Open Handbrake.</li>
<li>Choose the &#8220;Source&#8221; button, and choose the dvd.</li>
<li>In the right try, choose iPhone &amp; iPod Touch</li>
<li>Now comes the hard part.  You have to figure out what you actually want from the dvd.  Different dvd&#8217;s partition their stuff differently, and it&#8217;s almost never on the chapter/scene partitions that you see in a regular dvd player.  I typically look at the times.  Something that&#8217;s 12 seconds, well, that&#8217;s probably what plays in the background for the dvd menu, or the intro when you first put it in.  Something that&#8217;s 26 minutes, well, that&#8217;s be your payload &#8211; or at least one of them.  It&#8217;s generally best to keep them in the same order that Handbrake shows them.  If there are multiple payloads, you&#8217;ll have to rip each one by adding them to the ripping queue individually.</li>
<li>Choose the destination folder so you know where the ripped files will be stored.</li>
<li>Ensure that mp4 is selected &#8211; it will create m4v files (odd, I know, but it works).  Also, the video codec should be H.264.</li>
<li>The filename ends up being what is displayed on the iPhone, and that display is not very much &#8211; perhaps 20 characters.  As a result, don&#8217;t name your things like &#8220;French In Action Lessons &#8211; Lesson 1&#8243;  &#8211; because they&#8217;ll all look like &#8220;French In Action Less&#8230;.&#8221;  and you will have no idea which is which.  Instead, name them &#8220;L01 &#8211; French In Action&#8221;.</li>
<li>Click &#8220;Add to queue&#8221; button.  The first DVD section is now ready to be copied!</li>
<li>Repeat the previous steps for each of the segments you wish to rip from the DVD, ensuring that the file names are numbered somehow so you know which order to watch them in.  In iTunes, each one will appear as a totally separate movie.</li>
<li>Click &#8220;Start&#8221; and Handbrake will begin the ripping.</li>
<li>Get yourself a cup of coffee.</li>
<li>Open iTunes, and bring up in Finder the folder that contains your ripped m4v files.</li>
<li>Drag your m4v files into iTunes, into the library area.  They should automatically get added to the movie section.</li>
<li>Now sync with your iPhone like normal.</li>
</ol>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/mac-gui/'>Mac GUI</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=49&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/10/21/burning-dvds-to-itunes-for-iphone-consumption-mac-10-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring time machine to use another Mac&#8217;s external drive</title>
		<link>http://sysexplorer.wordpress.com/2010/05/27/setting-up-time-machine-on-an-external-mac/</link>
		<comments>http://sysexplorer.wordpress.com/2010/05/27/setting-up-time-machine-on-an-external-mac/#comments</comments>
		<pubDate>Thu, 27 May 2010 13:30:12 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Mac Configuration]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/?p=43</guid>
		<description><![CDATA[The problem:  I have two macs, one portable, one mini, and I don&#8217;t want to shell out money to buy a time capsule, but I&#8217;d like to be able to backup both of the machines to one external hard drive. The solution: Attach the external hard drive to the mini (which will handle backing up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=43&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The problem:  I have two macs, one portable, one mini, and I don&#8217;t want to shell out money to buy a time capsule, but I&#8217;d like to be able to backup both of the machines to one external hard drive.</p>
<p>The solution: Attach the external hard drive to the mini (which will handle backing up the mini), and setup the MBP so that it backups up to the drive through the mini.</p>
<p>The steps:<br />
</p>
<ol>
<li>Plug the external drive into the mac mini, ensure it&#8217;s powered up.</li>
<li>On the mini, setup the time machine to backup to the external drive like normal.</li>
<li>On the mini, open Preferences-&gt;Sharing</li>
<li>Check the correct box to enable File sharing</li>
<li>Ensure that the external hard drive appears in the &#8220;Shared Folders&#8221; window.</li>
<li>On the MBP, enable &#8220;unsupported&#8221; network volumes by entering this in the terminal window:
<pre>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1</pre>
</li>
<li>Open finder in the MBP, ensure you&#8217;re connected to the mini.  Click on the external hard drive.  It should appear on your desktop.</li>
<li>Go into time machine, the external drive should now appear as an option.  Select it and you&#8217;re done.</li>
</ol>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/mac-configuration/'>Mac Configuration</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=43&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/05/27/setting-up-time-machine-on-an-external-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>EC2: Converting AMI from Instance Boot to EBS Boot</title>
		<link>http://sysexplorer.wordpress.com/2010/03/16/ec2-converting-ami-from-instance-boot-to-ebs-boot/</link>
		<comments>http://sysexplorer.wordpress.com/2010/03/16/ec2-converting-ami-from-instance-boot-to-ebs-boot/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 02:26:32 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/?p=33</guid>
		<description><![CDATA[If you have an existing 32 bit or 64 bit EC2 AMI image that you&#8217;ve configured just the way you like it (and don&#8217;t want to spend all those hours a second time using an existing EBS boot volume), here&#8217;s the process I&#8217;ve found to convert it. Boot up an instance of the AMI, any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=33&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you have an existing 32 bit or 64 bit EC2 AMI image that you&#8217;ve configured just the way you like it (and don&#8217;t want to spend all those hours a second time using an existing EBS boot volume), here&#8217;s the process I&#8217;ve found to convert it.</p>
<ol>
<li>Boot up an instance of the AMI, any AMI, using elasticfox, the AWS console, or a CLI command.</li>
<li>Update the latest and greatest EC2 API tools (version 1.3-46266 2009-11-30 at a minimum)
<ul>
<li>For CentOS, copy the bin and lib files to /home/ec2 &#8211; you might need to blow away all existing files in these directories to work right.</li>
<li>For Ubuntu, mkdir /home/ec2 and copy -R the bin and lib dirs in there, then export EC2_HOME to /home/ec2</li>
<li>Get latest api tools from <a href="http://developer.amazonwebservices.com/connect/entry!default.jspa?categoryID=88&amp;externalID=351&amp;fromSearchPage=true">here.</a></li>
</ul>
</li>
<li>Download your privateKey and 509Certificate pem files (this doc assumes you put them in /root)</li>
<li>Export the location of the pem files to your environment (not doing this causes certain commands to emit a &#8220;file not found: &#8221;&#8221;)<br />
<code><br />
# export EC2_CERT=/root/my_509Certificate.pem<br />
# export EC2_PRIVATE_KEY=/root/my_privateKey.pem<br />
</code>
</li>
<li>Ensure the EC2 binaries are in the beginning your path (/home/ec2/bin)</li>
<li>Download the AMI you want to convert from S3 using this formula:<br />
  <code><br />
    # ec2-download-bundle -b $MANIFEST_PATH -a $ACCESS_ID -s $SECRET_KEY -k pk.pem -p $MANIFEST_PREFIX -d /mnt<br />
     <b>Example:</b><br />
   # ec2-download-bundle -b ami.bucket -a AAAAAAAAA -s SSSSSS -k /root/my_privateKey.pem -p 20090926_centos -d /mnt<br />
  </code>
</li>
<li>Unbundle the AMI using the following formula (will take a while)<br />
<code><br />
    # /usr/local/bin/ec2-unbundle -k pk.pem -m /mnt/$MANIFEST_PREFIX.manifest.xml  -s /mnt -d /mnt<br />
<b>Example:</b><br />
    # ec2-unbundle -k /root/my_privateKey.pem -m /mnt/20090926_centos.manifest.xml  -s /mnt -d /mnt<br />
    Creates one big file called /mnt/20090926_centos<br />
</code>
</li>
<li>Create a volume in the same availability zone as the instance you&#8217;re doing all this in, and attach it as /dev/sdh (elasticfox is the easiest way to do this)</li>
<li>Copy the ami file to the EBS volume (this may also take a while)<br />
<code><br />
    # dd if=/mnt/20090926_centos of=/dev/sdh<br />
</code>
</li>
<li>
Now that the entire AMI has been copied onto the EBS, mount it<br />
<code><br />
    # mkdir /vol<br />
    # mount /dev/sdh /vol<br />
</code>
</li>
<li>Adjust the fstab in the EBS and remove the /mnt line &#8211; this is the ephemeral store that non-EBS instances get, but which EBS volumes don&#8217;t.  Keep a backup, just because it&#8217;s good practice.<br />
<code><br />
    # cp /vol/etc/fstab /vol/etc/fstab.orig<br />
    # vi /vol/etc/fstab<br />
</code>
</li>
<li>Unmount the volume and detach it.<br />
<code><br />
    # umount /vol<br />
    Detach via elasticfox.<br />
</code>
</li>
<li>Create a new snapshot in elasticfox from this new EBS volume.  This takes some time.</li>
<li>Register the snapshot as an image using this formula (use i386 or x86_64 for architecture):<br />
<code><br />
    # ec2reg -s $SNAP_ID -a $ARCH -d $DESCR -n $MANIFEST_PREFIX<br />
<b>Example:</b><br />
    # ec2reg -s snap-e92a2b80 -a i386 -d '20100310' -n 20090926_centos<br />
</code>
</li>
<li>It may take a few minutes, but an EBS backed volume should now appear in your AMI list.  It is safe to delete the original EBS volume now; only the snapshot is used.</li>
</ol>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=33&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/03/16/ec2-converting-ami-from-instance-boot-to-ebs-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating an ISO image in Snow Leopard</title>
		<link>http://sysexplorer.wordpress.com/2010/03/09/creating-an-iso-image-in-snow-leopard/</link>
		<comments>http://sysexplorer.wordpress.com/2010/03/09/creating-an-iso-image-in-snow-leopard/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 03:28:51 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/?p=30</guid>
		<description><![CDATA[On Macintosh 10.6, here&#8217;s how you create an iso of a DVD using the terminal. Insert the dvd/cd, wait until it appears on the desktop. Type drutil status In the output, find the name; it will be something like /dev/disk1 Unmount the disk (it will disappear from the desktop): diskutil unmountDisk disk1 If creating an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=30&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>On Macintosh 10.6, here&#8217;s how you create an iso of a DVD using the terminal.</p>
<ol>
<li>Insert the dvd/cd, wait until it appears on the desktop.</li>
<li>Type <code>drutil status</code></li>
<li>In the output, find the name; it will be something like <code>/dev/disk1</code></li>
<li>Unmount the disk (it will disappear from the desktop): <code>diskutil unmountDisk disk1</code></li>
<li>If creating an ISO of a CD, you can&#8217;t use the name as-is: you need a slightly different device.  If the name is <code>/dev/disk1</code>, then do <code>ls /dev/disk1*</code> to find the actual disk, something like /dev/disk1s1.</li>
<li>Perform the dd command for dvd: <code>dd if=/dev/disk1 of=file.iso</code></li>
<li>Perofrm the dd command for cd: <code>dd if=/dev/disk1s1 of=file.iso</code></li>
<li>If you want, mount the disk afterwards (so it appears back on the desktop): <code>diskutil mountDisk disk1</code></li>
</ol>
<p>I used disk1 in these examples, you would need to use whatever name that is specified in <code>drutil</code>.</p>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=30&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/03/09/creating-an-iso-image-in-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Mac Ports to Install PHP5.2</title>
		<link>http://sysexplorer.wordpress.com/2010/02/25/setting-up-mac-ports/</link>
		<comments>http://sysexplorer.wordpress.com/2010/02/25/setting-up-mac-ports/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 22:17:32 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Mac Configuration]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/?p=16</guid>
		<description><![CDATA[One of the great things about FreeBSD is their ports collection: you download a directory tree that contains a boatload of makefiles, change directories to the package you want, and then type make. Voila! All dependencies handled, all code downloaded from the net and compiled on your machine so that it&#8217;s guaranteed to be compatible. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=16&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the great things about FreeBSD is their ports collection: you download a directory tree that contains a boatload of makefiles, change directories to the package you want, and then type make.  Voila!  All dependencies handled, all code downloaded from the net and compiled on your machine so that it&#8217;s guaranteed to be compatible.</p>
<p>With OS-X, Macintosh took the FreeBSD core and built their new operating system.  For whatever reason, the ports collection didn&#8217;t come along with it.  However, the open source community has come to the rescue with <a href="http://www.macports.org/">macports</a>.  And, once installed, its even easier to use than the FreeBSD ports collection.</p>
<p>First of all, go to the <a href="http://www.macports.org/">macports home page</a> and download the latest copy.  You&#8217;ll probably want to backup your system first.</p>
<p>The macports people were very kind in that all your ports will be installed in the /opt directory &#8211; not /usr, like in BSD.  That&#8217;s so they don&#8217;t conflict with the Mac operating system files.  That way, you can have the mac ports version of MySQL installed at the same time as the built-in mac version of MySQL &#8211; and they don&#8217;t have to know about each other (if they both try to listen on the same port then they will conflict, but the point is that the databases are segregated on disk).</p>
<p>So here are the basic steps I took to setup PHP 5.2 on my mac &#8211; it came with 5.3, but I needed 5.2.</p>
<ol>
<li>Download XCode from apple (<a href="http://developer.apple.com/tools/xcode/">download here</a>)</li>
<li>Download the Macports DMG file and install it</li>
<li>Update the <a href="http://sysexplorer.wordpress.com/2010/02/23/adding-to-the-path-environment-variable-in-mac-snow-leopard-10-6/">system path</a> to include: <code>/opt/local/bin:/opt/local/sbin</code></li>
<li>Update the port tree:  <code>$ sudo port -v selfupdate</code></li>
<li>Search for php ports (partial okay): <code>$ port search php</code></li>
<li>Install the port: <code>$ sudo port install php52</code></li>
<li>Watch the output for instructions.</li>
</ol>
<p><strong>Note:</strong> It&#8217;s installed in /opt/local/var/macports<br />
<strong>Note: </strong>Ports are in /opt/local/var/macports/source<br />
<strong>Note: </strong><code>man 1 port</code> to access man page<br />
<strong>Note: </strong>Mac ports wiki is located <a href="http://trac.macports.org">here</a>.</p>
<p>The instructions I saw that were useful consisted of the following items:</p>
<ul>
<li>To cause Apache to start at boot time: <code>$ sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist</code></li>
<li>To customize PHP, copy:
<ul>
<li><code>/opt/local/etc/php5/php.ini-dist</code> (if this is a development server)</li>
<li><code>/opt/local/etc/php5/php.ini-recommended</code> (if this is a production  server) to</li>
<li><code>/opt/local/etc/php5/php.ini</code> and then make changes.</li>
</ul>
</li>
<li>To enable PHP in Apache, run:
<ul>
<li><code>$ cd /opt/local/apache2/modules</code></li>
<li><code>$ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so</code></li>
</ul>
</li>
</ul>
<p>The original, 5.3 version of php was located in /usr/bin.</p>
<p>More information can be found at <a href="http://trikks.wordpress.com/2009/10/07/downgrading-php-5-3-0-to-5-2-10-on-snow-leopard-server/">this excellent blog</a>.</p>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/mac-configuration/'>Mac Configuration</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=16&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/02/25/setting-up-mac-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding to the $PATH environment variable in Mac Snow Leopard (10.6)</title>
		<link>http://sysexplorer.wordpress.com/2010/02/23/adding-to-the-path-environment-variable-in-mac-snow-leopard-10-6/</link>
		<comments>http://sysexplorer.wordpress.com/2010/02/23/adding-to-the-path-environment-variable-in-mac-snow-leopard-10-6/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 04:16:00 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Mac Configuration]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/2010/02/23/adding-to-the-path-environment-variable-in-mac-snow-leopard-10-6</guid>
		<description><![CDATA[Adding a path to the system variable $PATH is pretty simple, assuming you know your way around the command line. First open a terminal window. Then type (not the $, that&#8217;s the prompt): $ sudo vi /etc/paths Enter your password, then add a new path anywhere in the file. Each line is its own path. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=13&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Adding a path to the system variable $PATH is pretty simple, assuming you know your way around the command line.  First open a terminal window.  Then type (not the $, that&#8217;s the prompt):</p>
<p>$ sudo vi /etc/paths</p>
<p>Enter your password, then add a new path anywhere in the file.  Each line is its own path.  For those who are not vi junkies, here&#8217;s how you add a path to the end:</p>
<p>1. Shift-G : goes to the bottom of the file<br />
<br />
2. o : lower-case &#8220;o&#8221; will &#8220;open&#8221; a new line below the cursor and put you in edit mode<br />
<br />
3. Type the path you want.<br />
<br />
4. esc  : Presssing escape returns you to command mode.<br />
<br />
5. :wq   : The colon tells vi you want to enter a command sequence; &#8220;w&#8221; means write (save), and &#8220;q&#8221; means quit (exit) the file.<br />
<br />
6. You should now be back at the command line.</p>
<p>If you want more instruction on how to use vi, there are probably thousands of sites that explain things.  <a href="http://www.cs.colostate.edu/helpdocs/vi.html">This</a> is a cheatsheet I found after spending about 15 seconds on google (I searched for &#8220;vi basics&#8221;).</p>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/mac-configuration/'>Mac Configuration</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=13&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/02/23/adding-to-the-path-environment-variable-in-mac-snow-leopard-10-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Disabling Spotlight in Mac Snow Leopard (10.6)</title>
		<link>http://sysexplorer.wordpress.com/2010/02/23/disabling-spotlight-in-mac-snow-leopard-10-6/</link>
		<comments>http://sysexplorer.wordpress.com/2010/02/23/disabling-spotlight-in-mac-snow-leopard-10-6/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 03:16:00 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Mac GUI]]></category>

		<guid isPermaLink="false">http://sysexplorer.wordpress.com/2010/02/23/disabling-spotlight-in-mac-snow-leopard-10-6</guid>
		<description><![CDATA[Since I don&#8217;t use spotlight on my macs, it does nothing but take up valuable real-estate in the upper right corner. If I really wanted indexing, I&#8217;d probably use quicksilver, but even that isn&#8217;t really useful for me. I know where the stuff I want is. The reason I want that real-estate in the upper [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=12&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#333333;line-height:21px;font-family:'Lucida Grande', sans-serif;font-size:14px;"><br />
</span></p>
<p style="margin:0 0 10px;">Since I don&#8217;t use spotlight on my macs, it does nothing but take up valuable real-estate in the upper right corner.  If I really wanted indexing, I&#8217;d probably use quicksilver, but even that isn&#8217;t really useful for me.  I know where the stuff I want is.</p>
<p style="margin:0 0 10px;">The reason I want that real-estate in the upper right corner of my screen?  I have recently purchased a 13&#8243; macbook pro, and I found that with all the nifty toys I load, there are so many icons at the top of my screen that they start to conflict with the menu to the left.  And no, I don&#8217;t want to upgrade to a larger screen: 13&#8243; is the perfect size, given the clutter on my desk and the size of my lap.</p>
<p style="margin:0 0 10px;">Here are the commands, which should be entered in a terminal window (the dollar sign isn&#8217;t typed; that&#8217;s the prompt):</p>
<p style="margin:0 0 10px;">$ sudo mdutil -a -i off    # this turns off indexing<br />
$ cd /System/Library/CoreServices/Search.bundle/Contents/MacOS<br />
$ sudo chmod 600 Search    # this disables spotlight in the menu bar<br />
$ killall SystemUIServer<br />
reboot the machine</p>
<p style="margin:0 0 10px;">
<p style="margin:0 0 10px;">Note that the original permissions, in case you want to re-enable it, are 755.  Also, to reverse the indexer, just do the first command (mdutil) with&#8221;on&#8221; as the parameter instead.</p>
<p style="margin:0 0 10px;">The reason why 600 are the permissions is that it allows the system to perform any system updates to Spotlight without problems, yet disables it from running.  The only <em>possible</em> downside is if there is some starter process that keeps trying to start Spotlight and logs its failures.  I haven&#8217;t read anything about this, but you never know &#8211; I&#8217;ll have to keep an eye on my hard drive space.</p>
<br />Filed under: <a href='http://sysexplorer.wordpress.com/category/mac-gui/'>Mac GUI</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=12&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2010/02/23/disabling-spotlight-in-mac-snow-leopard-10-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Designing an enterprise LAMP application: The code</title>
		<link>http://sysexplorer.wordpress.com/2009/06/21/designing-an-enterprise-lamp-application-the-code/</link>
		<comments>http://sysexplorer.wordpress.com/2009/06/21/designing-an-enterprise-lamp-application-the-code/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 02:49:35 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://coreydulecki.wordpress.com/?p=10</guid>
		<description><![CDATA[One of the main things that an application architect has to consider when creating an enterprise applicatino is the fact that there is going to be a lot of code.  When you have a lot of code, long term maintenance becomes a major hassle if things aren&#8217;t done right.  I&#8217;m going to describe the though [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=10&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the main things that an application architect has to consider when creating an enterprise applicatino is the fact that there is going to be a lot of code.  When you have a lot of code, long term maintenance becomes a major hassle if things aren&#8217;t done right.  I&#8217;m going to describe the though process I went through when laying things out.</p>
<p>First of all, I defined an application root directory &#8211; this would be something stored as an environment variable or some other mechanism so that every piece of code in this application was aware of it.  With certain exceptions, all codeknows about what happens from the application root directory down &#8211; anything outside of this master directory does not exist as far as the app is concerned.</p>
<p>The main reason for this is portability.  On my linux and FreeBSD installs, I use /usr1/myapp as the root directory, but on my windows dev box, I use C:\myApp.  When I develop using cygwin on windows, then my app root is C:\cygwin\home\corey\myApp.  The fact that all code works in relationship to this means that I can simply copy over all of my source, and everything is seamless.</p>
<p>Next, I decided to divide the responsibilities of my application with regards to boxes.  I imagined one or more boxes to house my web servers, one or more boxes for my databases, one or more for batch processing, and so on.  This is what makes it scalable; instead of starting small with everyhing on one machine and then going through headaches later trying to split them out, I started with them split out in the beginning &#8211; although with proper design, I can still run them all on one box if I want.  It&#8217;s simply a matter of configuration.</p>
<p>In its final form, the high level directory structure in my application root looked like this.  Notice that the directories start with &#8220;b_&#8221;; this is to indicate these are &#8220;box&#8221; directories.</p>
<ul>
<li><strong>myApp/b_www</strong> &#8211; application specific code that is related to the http server.</li>
<li><strong>myApp/b_db</strong> &#8211; scripts, backup directories, and other items related to the database server</li>
<li><strong>myApp/b_batch</strong> &#8211; items related to back-office or batch processing; i.e., non-time critical operations like sending emails</li>
<li><strong>myApp/b_ftp</strong> &#8211; things related to the ftp or file operations.</li>
<li><strong>myApp/b_ms</strong> &#8211; Programs and support structure for the part of the system that can only run on a Microsoft platform</li>
<li><strong>myApp/b_common</strong> &#8211; scripts, programs, and configuration files that are common to all boxes</li>
</ul>
<p>All code goes on all boxes.  This enables the code to have access to practically any functionality while allowing me to find the code in its logical place.  For example, the scripts I wrote for accessing Amazon S3 file storage &#8211; upload files, downloading files, getting listings, and so on &#8211; are located in b_ftp because they are related to file operations.  However, many of my batch programs need to access the S3 functionality for backing up databases and such.</p>
<p>It requires long term discipline; when adding a new script or program to the system, I will first consider what the code is doing.  If it&#8217;s doing things that relate to both batch and ftp, for example, then perhaps it&#8217;s best to split it out &#8211; a library-type API for the lower level stuff and a high level script for the rest.  It&#8217;s very easy to put the wrong script in the wrong place.</p>
<p>Once the high level directories are defined, their contents can vary quite a bit.  For example, my b_www directory contains an htdocs and logs subdirectory, and in other respects looks very similar to any other web server&#8217;s area.  However, my b_ftp directory contains dozens of jailed user directories for the various user accounts that need ftp access.</p>
<p>By splitting the application into gross logical sections, maintance becomes much easier, and understanding the directory structure helps to understand the overall application architecture.</p>
<br />Posted in Architecture, Design  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=10&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2009/06/21/designing-an-enterprise-lamp-application-the-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
		<item>
		<title>Why doesn&#039;t SSH work on my newly bundled instance?</title>
		<link>http://sysexplorer.wordpress.com/2009/06/10/why-doesnt-ssh-work-on-my-newly-bundled-instance/</link>
		<comments>http://sysexplorer.wordpress.com/2009/06/10/why-doesnt-ssh-work-on-my-newly-bundled-instance/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 21:45:19 +0000</pubDate>
		<dc:creator>The System Explorer</dc:creator>
				<category><![CDATA[Annoyances]]></category>

		<guid isPermaLink="false">http://coreydulecki.wordpress.com/?p=6</guid>
		<description><![CDATA[SSHD is killed right after starting my EC2 instance - and not by me.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=6&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>I was re-acquainted today with something that I had learned previously and forgotten:  Whenever you bundle a new linux AMI, always, always, always start it up and make sure you can get in.</p>
<p>Why, do you ask?  Because sometimes, just sometimes, something kills the sshd server shortly after it is started.  I see a signal 15 (SIG_TERM) being received by sshd.  I can&#8217;t remember exactly which log, either /var/log/messages or /var/log/secure, but it&#8217;s there.  I&#8217;ve googled for a solution to this, and the best anyone has come up with is &#8220;something is killing your process, go through your startup scripts with a fine-toothed comb and put in some debug, recompile the kernel, yada yada yada.&#8221;</p>
<p>Truth be told, the entire reason why I like linux on amazon is because I DON&#8217;T have to do any of that stuff.  I just configure the system, take a snapshot, and presto-whammo, I have the ability to create identical copies of my wonderfully configured OS at a click of a button.  So to be honest about the answer to the question posed in the title of this post, why doesn&#8217;t ssh work on my newly bundled instance?  Because something killed it.  What killed it?  I don&#8217;t know, and frankly, I don&#8217;t care.  It shouldn&#8217;t have happened.</p>
<p>I&#8217;ve also determined that once an AMI exhibits this behavior, it&#8217;s a goner: I every time I start one of them, sshd is always killed, every time.  So what to do about it?</p>
<h2>Solution #1: Try again</h2>
<p>If you&#8217;re like me, you make a lot of custom AMI&#8217;s until you finally get things exactly right.  That means that you&#8217;ll have previous images that may or may not do this whole &#8220;kill the sshd&#8221; thing.  The first thing to do is locate the most recent AMI where sshd wasn&#8217;t killed on startup, and startup an instance of that.   Then, apply your changes again (hopefully you&#8217;ve documented or remember them), and create a new AMI.</p>
<h2>Solution #2: Wait a while, then try again</h2>
<p>So I tried solution #1.  I found the last working AMI, started it up, made my changes, bundled a new AMI, started an instance of the new AMI &#8211; and&#8230; same problem.  I did it again to be sure, and sure enough, the second &#8220;new&#8221; AMI still didn&#8217;t work.  Were the Amazon gods cursing me?  Was my destiny to keep this last, golden AMI and modify it no further?</p>
<p>My gut told me to wait, so I did.  I kept my &#8220;vanilla&#8221; instance running and about four hours later, I tried making another snapshot.  And that AMI worked!</p>
<h2>Solution #3: Start up the server manually</h2>
<p>The instance I use of centos comes with webmin installed &#8211; and it&#8217;s worth its weight in gold.  I use it as a backup for everything else; because it&#8217;s designed to be an administrative interface, it can do most of what I normally do on the command line.  Like starting up sshd.  This is how I figured out that sshd was getting a SIG_TERM; after I started it using webmin, I could get in normally and nobody tried to kill it again.  Who knows, maybe this problem is created because of webmin trying to be everybody&#8217;s daddy, but at least it gives me the ability to fix things.</p>
<p>I wouldn&#8217;t consider this a long term solution, because I don&#8217;t want to have to do this every time I start one of my instances.</p>
<h2>Solution #4: Start from scratch</h2>
<p>I hope no one has to do this, especially if they&#8217;ve devoted a significant number of hours customizing an AMI.  But worst case scenario, you can always abandon all your AMI&#8217;s, find the original that you started from, and try applying all your changes in one shot.  It might be that an AMI that is only one bundle-build away from the original will be more reliable than one that is 30 away &#8211; but man, I hope not!  I&#8217;m already well past 30 away, and it really shouldn&#8217;t be that way anyway.</p>
<h2>Solution #5: Figure it out</h2>
<p>This is the option I skipped, but which more gifted and/or perseverant sysadmins might be willing to tackle.  I have no guidance here, other than telling you that google is your friend.</p>
<h2>Solution #6: Abandon all hope&#8230;</h2>
<p>Find a more profession more to your liking, like dive instructor or professional beach bum.  I hear that they don&#8217;t ever have to worry about these kinds of issues.</p>
<h2>Conclusion</h2>
<p>I&#8217;m sure that an operating system using zen to run on a cloud like Amazon&#8217;s is a complex beast, and there are doubtless things that might go wrong or vary where nobody ever expected them to vary.  It&#8217;s nice having the illusion that I have my own little dedicated server out there in internet-land, but issues like this slap me in the face occaisionally to remind me that my operating system is floating on a cloud of complexity.   The operating system next to my desk is sitting on hardware I can see and hear and touch, but my operating system on the cloud&#8230; yikes!</p>
<p>It&#8217;s like one of those little cocoons in which the humans were kept in the Matrix.  The human who is experiencing life in the cocoon has absolutely no idea what other cocoons are close to him, how the cocoon works, or what kind of support structure is built around the cocoon to ensure that the whole system stays up and running.  To the human, life isn&#8217;t about the cocoon.</p>
<p>And so it is with Amazon&#8217;s cloud.  I don&#8217;t know what other servers are close to my instance &#8211; for all I know, I&#8217;m on the same box as those people working on the successor to the genome project.  I don&#8217;t know how Amazon does its magic &#8211; other than in the abstract sense of understanding what virtual machines are all about &#8211; and I don&#8217;t know anything about what kind of resources they put into making sure everything works all the time.  But I sure appreciate that they do.</p>
<br />Posted in Annoyances  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sysexplorer.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sysexplorer.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sysexplorer.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sysexplorer.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sysexplorer.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sysexplorer.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sysexplorer.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sysexplorer.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sysexplorer.wordpress.com&amp;blog=12234646&amp;post=6&amp;subd=sysexplorer&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sysexplorer.wordpress.com/2009/06/10/why-doesnt-ssh-work-on-my-newly-bundled-instance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2bad43cfac8d42689c713a36784f6ba8?s=96&#38;d=http%3A%2F%2Fs0.wp.com%2Fi%2Fmu.gif&#38;r=G" medium="image">
			<media:title type="html">The System Explorer</media:title>
		</media:content>
	</item>
	</channel>
</rss>
