<?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>nnutter.com &#187; mac</title>
	<atom:link href="http://nnutter.com/tagged/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://nnutter.com</link>
	<description>opinons and links by nathan nutter</description>
	<lastBuildDate>Mon, 06 Feb 2012 05:12:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Print Using Half the Paper</title>
		<link>http://nnutter.com/2009/03/print-using-half-the-paper/</link>
		<comments>http://nnutter.com/2009/03/print-using-half-the-paper/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 04:07:38 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.com/?p=646</guid>
		<description><![CDATA[If you&#8217;re like me at all you haven&#8217;t given up completely on that old thing we call paper. Whether that article is just too long to read on the screen or maybe you just want to read it elsewhere printing &#8230; <a href="http://nnutter.com/2009/03/print-using-half-the-paper/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me at all you haven&#8217;t given up completely on that old thing we call paper. Whether that article is just too long to read on the screen or maybe you just want to read it elsewhere printing articles is still quite useful. Here&#8217;s how to setup your computer to print your articles using half the paper. It&#8217;s really easy&#8230;</p>

<p>Here&#8217;s what the output looks like:</p>

<p><center><a href="http://nnutter.com/wordpress/wp-content/uploads/2009/03/output.png"><img src="http://nnutter.com/wordpress/wp-content/uploads/2009/03/output-300x232.png" alt="output" title="Compressed Output" width="300" height="232" class="alignnone size-medium wp-image-663" /></a></center></p>

<p>This is a full 8.5&#8243; x 11&#8243; scan, as you can see it simply prints each &#8220;page&#8221; using 1/2 the sheet.</p>

<h2>Mac OS X</h2>

<ol>
<li>Open the print dialog.</li>
<li>Expand the print dialog into advanced mode. (see figure <a href="http://nnutter.com/wordpress/wp-content/uploads/2009/03/macosx-expand.png">macosx-expand</a>)</li>
<li>Switch to Layout settings. (see figure <a href="http://nnutter.com/wordpress/wp-content/uploads/2009/03/macosx-layout.png">macosx-layout</a>)</li>
<li>Apply the setting, Pages per Sheet: 2. (see figure <a href="http://nnutter.com/wordpress/wp-content/uploads/2009/03/macosx-print.png">macosx-print</a>)</li>
<li>Save as a Preset. (see figure <a href="http://nnutter.com/wordpress/wp-content/uploads/2009/03/macosx-preset.png">macosx-preset</a>)</li>
</ol>

<p>That&#8217;s it. All the other settings remain how they originally were, you do not need to adjust anything else.</p>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2009/03/print-using-half-the-paper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automate Bit.ly with AppleScript</title>
		<link>http://nnutter.com/2009/03/automate-bitly-with-applescript/</link>
		<comments>http://nnutter.com/2009/03/automate-bitly-with-applescript/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 20:43:36 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.com/?p=480</guid>
		<description><![CDATA[A couple more AppleScripts, these help you turn a long URL into a short one using bit.ly. For even more usefulness use Quicksilver triggers or similar to bind these to a hotkey. Grabs URL from Safai: tell application "Safari" set &#8230; <a href="http://nnutter.com/2009/03/automate-bitly-with-applescript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>A couple more AppleScripts, these help you turn a long URL into a short one using <a href="http://bit.ly/">bit.ly</a>. For even more usefulness use Quicksilver <a href="http://docs.blacktree.com/quicksilver/triggers">triggers</a> or similar to bind these to a hotkey.</p>

<p>Grabs URL from Safai:</p>

<pre><code>tell application "Safari"
    set longURL to (get URL of front document)
end tell

do shell script "curl http://bit.ly/api?url=" &amp; longURL
set shortURL to the result

set the clipboard to (shortURL as text)
</code></pre>

<p>Grabs URL from the clipboard:</p>

<pre><code>set longURL to (the clipboard as text)

do shell script "curl http://bit.ly/api?url=" &amp; longURL
set shortURL to the result

set the clipboard to (shortURL as text)
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2009/03/automate-bitly-with-applescript/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Sync iPhone/iPod when New Podcasts Arrive on Your Mac</title>
		<link>http://nnutter.com/2009/03/sync-iphoneipod-when-new-podcasts-arrive-on-your-mac/</link>
		<comments>http://nnutter.com/2009/03/sync-iphoneipod-when-new-podcasts-arrive-on-your-mac/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 05:31:27 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.com/?p=476</guid>
		<description><![CDATA[Use Script Editor to create a new AppleScript in ~/Library/Scripts/Folder Action Scripts/, I&#8217;d name it add &#8211; new item sync iPod.scpt. Script text is below. Then right-click (control-click) on any folder in Finder, go to More, and then to Configure &#8230; <a href="http://nnutter.com/2009/03/sync-iphoneipod-when-new-podcasts-arrive-on-your-mac/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Use Script Editor to create a new AppleScript in <i>~/Library/Scripts/Folder Action Scripts/</i>, I&#8217;d name it <i>add &#8211; new item sync iPod.scpt</i>. Script text is below.</p>

<p>Then right-click (control-click) on any folder in Finder, go to <i>More</i>, and then to <i>Configure Folder Actions&#8230;</i></p>

<p>Make sure you check <i>Enable Folder Actions</i>, then click the <i>+</i> button under the <i>Folder with Actions</i> column.</p>

<p>Select a folder in the Podcasts folder (of your iTunes library), press <i>Open</i>.</p>

<p>Select the action, <i>add &#8211; new item sync iPod</i>, press <i>Attach</i>.</p>

<p>You should see something like this:</p>

<p><center><img src="http://nnutter.com/wordpress/wp-content/uploads/2009/03/configuefolderactions.png" alt="Configure Folder Actions" title="Configure Folder Actions" width="400" height="330" class="alignnone size-full wp-image-487" /></center></p>

<p>Script text:</p>

<pre><code>(*
add - new item sync iPod

When a new item is added to the folder it triggers iTunes to do
an iPod sync.

Useful when you manually manage but want to be sure to have
fresh podcasts on your iPod. Unfortunately you have to setup
this folder action for each folder in the Podcast folder.
*)

on adding folder items to this_folder after receiving added_items
    try
        tell application "iTunes"
            repeat with s in sources
                if (kind of s is iPod) then update s
            end repeat
        end tell
    end try
end adding folder items to
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2009/03/sync-iphoneipod-when-new-podcasts-arrive-on-your-mac/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stress Test Your MacBook&#8217;s Heat Sink</title>
		<link>http://nnutter.com/2006/10/stress-test-your-macbooks-heat-sink/</link>
		<comments>http://nnutter.com/2006/10/stress-test-your-macbooks-heat-sink/#comments</comments>
		<pubDate>Wed, 25 Oct 2006 01:28:33 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/10/24/stress-test-your-macbooks-heat-sink/</guid>
		<description><![CDATA[Second time around dealing with my MacBook randomly shutting down I wrote this script so I could test my MacBook. Hopefully, this time Apple will be able to fix it. Since they won&#8217;t let me change it in for a &#8230; <a href="http://nnutter.com/2006/10/stress-test-your-macbooks-heat-sink/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Second time around dealing with my MacBook randomly shutting down I wrote this script so I could test my MacBook. Hopefully, this time Apple will be able to fix it. Since they won&#8217;t let me change it in for a MacBook Pro (I am more than willing to pay the difference to get a machine that will be usable) I am becoming more and more upset with Apple. The big problem with these shutdowns is that it seems to take two or three weeks for the laptop to get to a point where it will reliably shutdown when stressed. Which means that for the 4.5 months I have owned this laptop 1.5 of them were spent in a state where I couldn&#8217;t actually do any work.</p>

<p>Here&#8217;s to a new heatsink!</p>

<pre><code>#!/bin/bash
function burn {
    echo "Starting burn-in test"
    yes &gt; /dev/null &amp;
    yes &gt; /dev/null &amp;
    echo "Press enter to stop"
    read
    echo "Killing processes"
    killall yes
}
time burn
</code></pre>

<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/10/stress-test-your-macbooks-heat-sink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improved Hide Others</title>
		<link>http://nnutter.com/2006/09/script-improved-hide-others/</link>
		<comments>http://nnutter.com/2006/09/script-improved-hide-others/#comments</comments>
		<pubDate>Fri, 15 Sep 2006 04:15:36 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/09/14/script-improved-hide-others/</guid>
		<description><![CDATA[Here is another in my scripts series. This one hides all applications except your frontmost application and Finder. I don&#8217;t like hiding Finder because I don&#8217;t like being stuck with an application that won&#8217;t hide. This one is AppleScript only. &#8230; <a href="http://nnutter.com/2006/09/script-improved-hide-others/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is another in my scripts series. This one hides all applications except your frontmost application and Finder. I don&#8217;t like hiding Finder because I don&#8217;t like being stuck with an application that won&#8217;t hide. This one is AppleScript only.</p>

<pre><code>tell application "System Events"
    set visible of ¬
        (every process whose visible is true ¬
            and frontmost is false ¬
            and name does not start with "Finder") to false
end tell
</code></pre>

<p>Alternate method:</p>

<pre><code>tell application "Finder" to activate
tell application "System Events"
    click menu item "Hide Others" of ¬
        ((process "Finder")'s (menu bar 1)'s ¬
            (menu bar item "Finder")'s (menu "Finder"))
end tell
tell application "Finder" to close window 1
</code></pre>

<p>As usual I highly recommend binding this to a <a href="http://quicksilver.blacktree.com/">Quicksilver</a> <a href="http://docs.blacktree.com/quicksilver/qstriggersprefpane">trigger</a>.</p>

<p>Related previous entries:</p>

<ol>
<li><a href="http://nnutter.com/2006/06/howto-eject-all-quicksilver-trigger/">Eject All Quicksilver Trigger</a></li>
<li><a href="http://nnutter.com/2006/09/script-lock-your-macs-screen/">Lock your Mac&#8217;s Screen</a></li>
</ol>

<!-- Links -->
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/09/script-improved-hide-others/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script: Lock your Mac’s Screen</title>
		<link>http://nnutter.com/2006/09/script-lock-your-macs-screen/</link>
		<comments>http://nnutter.com/2006/09/script-lock-your-macs-screen/#comments</comments>
		<pubDate>Sat, 09 Sep 2006 16:55:09 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/09/09/script-lock-your-macs-screen/</guid>
		<description><![CDATA[I thought I&#8217;d start sharing some of the other various scripts I have written. This one locks your Mac&#8217;s screen, great for laptops and lab computers! I use +&#8217;s to show where I have entered a new line, if you &#8230; <a href="http://nnutter.com/2006/09/script-lock-your-macs-screen/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d start sharing some of the other various scripts I have written. This one locks your Mac&#8217;s screen, great for laptops and lab computers!</p>

<p>I use +&#8217;s to show where I have entered a new line, if you copy and paste then remove the +&#8217;s and reconnect the text.</p>

<p>In AppleScript form:</p>

<pre><code>try
    do shell script "/System/Library/CoreServices/Menu\ Extras/+
        +User.menu/Contents/Resources/CGSession -suspend"
end try
</code></pre>

<p>In Bash form:</p>

<pre><code>#!/bin/bash
/System/Library/CoreServices/Menu Extras/
User.menu/Contents/Resources/CGSession -suspend
</code></pre>

<p>I recommend the AppleScript way, it is just easier and I believe supported out-of-the-box with <a href="http://quicksilver.blacktree.com/">Quicksilver</a>. To use the Bash version you would have to install the Terminal plug-in for <a href="http://quicksilver.blacktree.com/">Quicksilver</a>.</p>

<p>Create a file, or download either of mine (<a href="http://files.nnutter.com/public/scripts/System%20-%20Lock%20Computer.scpt">AppleScript</a> or <a href="http://files.nnutter.com/public/scripts/System%20-%20Lock%20Computer.sh">Bash</a>). Don&#8217;t forget to add execute permission if you choose the bash form.</p>

<pre><code>chmod +x lockscreen.sh
</code></pre>

<p>As usual <a href="http://quicksilver.blacktree.com/">Quicksilver</a> <a href="http://docs.blacktree.com/quicksilver/qstriggersprefpane">triggers</a> can make any script even more powerful, i.e., lock your screen at the touch of a button.</p>

<p>Related previous entries:</p>

<ol>
<li><a href="http://nnutter.com/2006/06/25/howto-eject-all-quicksilver-trigger/">HOWTO: Eject All Quicksilver Trigger</a></li>
</ol>

<!-- Links -->
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/09/script-lock-your-macs-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Andrew’s Cool Bash Prompt</title>
		<link>http://nnutter.com/2006/08/andrews-cool-bash-prompt/</link>
		<comments>http://nnutter.com/2006/08/andrews-cool-bash-prompt/#comments</comments>
		<pubDate>Mon, 28 Aug 2006 03:03:28 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/08/27/andrews-cool-bash-prompt/</guid>
		<description><![CDATA[Andrew wrote a tip today to have your bash prompt show the last &#8216;n&#8217; folders of your current directory. His original suggestions is on his website, [Readable Path for Terminal][1]. His code gave me several errors, which I am pretty &#8230; <a href="http://nnutter.com/2006/08/andrews-cool-bash-prompt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Andrew wrote a tip today to have your bash prompt show the last &#8216;n&#8217; folders of your current directory. His original suggestions is on his website, [Readable Path for Terminal][1].</p>

<p>His code gave me several errors, which I am pretty sure at least one was because of the bash to HTML conversion. So I wanted to get it working so I played around with it and got it to do what Andrew said it should do. Then I modified it to use the same idea as absolute vs relative paths. If it is a truncated path it will not have a preceding / (or ~). It extends on my previous suggestion, [Better Terminal Prompt][2], so show the username in green (as opposed to red for root).</p>

<p>My profile is available as a [text file][file] and shown below:</p>

<pre><code># Function that returns the last n path components of the specified
# path after replacing $HOME with ~.  Call like:
#     breadcrumbs path n
function breadcrumbs
{
    echo $1 | sed "s|^$HOME|~|" | awk -v n=$2 '{
        # Split the path into components
        count = split($0, components, "/");

        # If there are less than n components, print the whole path
        if (count = n) {
            for (i = count - n + 1; i
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/08/andrews-cool-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips For Installing Mexnc on Intel Macs</title>
		<link>http://nnutter.com/2006/08/tips-for-installing-mexnc-on-intel-macs/</link>
		<comments>http://nnutter.com/2006/08/tips-for-installing-mexnc-on-intel-macs/#comments</comments>
		<pubDate>Tue, 01 Aug 2006 21:32:27 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/08/01/tips-for-installing-mexnc-on-intel-macs/</guid>
		<description><![CDATA[You will need a PPC version of NetCDF which you can download from Unidata&#8217;s FTP server. Unpack the NetCDF package to a location on your hard drive. Visit the MEXNC website to download the source. Unpack MEXNC to a location &#8230; <a href="http://nnutter.com/2006/08/tips-for-installing-mexnc-on-intel-macs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You will need a PPC version of <a href="http://ftp.unidata.ucar.edu/software/netcdf/">NetCDF</a> which you can download from  <a href="ftp://ftp.unidata.ucar.edu/pub/binary/darwin_8.2-power_macintosh/">Unidata&#8217;s FTP server</a>. Unpack the NetCDF package to a location on your hard drive. Visit the <a href="http://mexcdf.sourceforge.net/downloads/source.html">MEXNC</a> website to download the <a href="http://sourceforge.net/project/showfiles.php?group_id=119464&amp;package_id=139428&amp;release_id=419844">source</a>. Unpack MEXNC to a location on your hardrive and follow the direction in the INSTALL file. The important changes you need to make are in the mexopt.sh file.</p>

<p>In the section you copied from the INSTALL file you need to add &#8220;-arch ppc&#8221; to the CFLAGS.</p>

<pre><code>...
EXTRA_CLIBS="-L${NETCDF}/lib -lnetcdf "
CFLAGS="-arch ppc -g $CFLAGS ${EXTRA_CFLAGS}"
CLIBS="$CLIBS ${EXTRA_CLIBS} "
</code></pre>

<p>Then you must edit the existing mexopts.sh&#8217;s Mac section. For each of the compiler&#8217;s debug flags add &#8220;-arch ppc&#8221;.</p>

<pre><code>xDEBUGFLAGS='-arch ppc -g'
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/08/tips-for-installing-mexnc-on-intel-macs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change Mail.app’s Default IMAP Folder Names</title>
		<link>http://nnutter.com/2006/07/change-mailapps-default-imap-folder-names/</link>
		<comments>http://nnutter.com/2006/07/change-mailapps-default-imap-folder-names/#comments</comments>
		<pubDate>Sat, 15 Jul 2006 20:36:50 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/07/15/change-mailapps-default-imap-folder-names/</guid>
		<description><![CDATA[I use IMAP for my email because it is more convenient but Mail.app always had one problem. It used Deleted Messages for the trash and Sent Messages for the sent items. With most other IMAP clients you can customize this &#8230; <a href="http://nnutter.com/2006/07/change-mailapps-default-imap-folder-names/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I use IMAP for my email because it is more convenient but Mail.app always had one problem. It used Deleted Messages for the trash and Sent Messages for the sent items. With most other IMAP clients you can customize this and the default (at least for my IMAP server) is Sent for sent items and Trash for trash. I could change my webmail client to match Mail.app&#8217;s style with one exception. I could not delete Trash so in Mail.app I would have Mail.app&#8217;s Trash and another Trash. I finally got around to emailing DreamHost about this and they told me how to fix it! So here it is (edited for clarity):</p>

<ol>
<li>Open Mail.app.</li>
<li>Open Preferences.</li>
<li>Select the Accounts button located at the top of the window.</li>
<li>Select your IMAP account from the Accounts list.</li>
<li>Select the Special Mailboxes tab.</li>
<li>Uncheck all the checkboxes labeled &#8220;Store draft/sent/junk/trash on the server.&#8221;</li>
<li>Close the Accounts window and when prompted save your changes.</li>
<li>Now select the Drafts/Sent/Junk/Trash folder and from the Mailbox menu select Use This Mailbox For Drafts/Sent/Junk/Trash.</li>
<li>The selected folder will disappear from your mailbox list, and will now
appear as the corresponding Mail.app special folder.</li>
</ol>

<p>Note: I had to quit Mail.app to be able to see some of the Mail.app&#8217;s special folders. Until I restarted Mail.app they just disappeared.</p>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/07/change-mailapps-default-imap-folder-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DarwinPorts Installed Where You Want</title>
		<link>http://nnutter.com/2006/07/darwinports-installed-where-you-want/</link>
		<comments>http://nnutter.com/2006/07/darwinports-installed-where-you-want/#comments</comments>
		<pubDate>Fri, 14 Jul 2006 20:10:14 +0000</pubDate>
		<dc:creator>nnutter</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://nnutter.wordpress.com/2006/07/14/darwinports-installed-where-you-want/</guid>
		<description><![CDATA[DarwinPorts is great project, it brings most of what you will ever need from the Linux world to Mac OS X. It is by no means perfect, bugs can take forever to get worked out and communication with developers is &#8230; <a href="http://nnutter.com/2006/07/darwinports-installed-where-you-want/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://darwinports.opendarwin.org">DarwinPorts</a> is great project, it brings most of what you will ever need from the Linux world to Mac OS X. It is by no means perfect, bugs can take forever to get worked out and communication with developers is pretty much nil as far as I can tell but it is nonetheless a great project. <em>Another option is <a href="http://fink.sf.net">Fink</a> but I don&#8217;t like the way it works. I like the ports system, maybe because I use to use <a href="http://www.gentoo.org">Gentoo Linux</a> I don&#8217;t know.</em></p>

<p>Anyways if you want to install DarwinPorts somewhere other than /opt/local you have to download the <a href="http://darwinports.opendarwin.org/getdp/">source</a> and do the standard ./configure &amp;&amp; make &amp;&amp; sudo make install. There are a couple options that are useful for the configure script:</p>

<pre><code>--prefix=/Users/nnutter/Applications/DarwinPorts/Tree
Default: /opt/local

--with-tclpackage=/Users/nnutter/Library/Tcl
Default: /Library/Tcl

./configure --prefix=whereever --with-tclpackage=wherever
</code></pre>

<p>I like to keep stuff in my home folder because it makes backups, upgrading, etc. easier. So I have Tcl and DarwinPorts residing in my home folder. Note that DarwinPorts depends on Tcl. If you hose your system you need Tcl installed in order for DarwinPorts to work which is why I moved its default location as well.</p>

<p>One more tip. If you build any Aqua programs, DarwinPorts will install them in /Applications/DarwinPorts. To make this work with my home folder issue just link that folder to your home folder.</p>

<pre><code>sudo ln -s /Users/nnutter/Applications/DarwinPorts 
/Applications/DarwinPorts
</code></pre>

<p>I am also looking into another topic, the possibility of building DarwinPorts and its ports as fat binaries, i.e. i386 and PPC. I have my reasons&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://nnutter.com/2006/07/darwinports-installed-where-you-want/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

