<?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>Urania &#187; X11</title>
	<atom:link href="http://iparrizar.mnstate.edu/~juan/urania/category/software/x11/feed/" rel="self" type="application/rss+xml" />
	<link>http://iparrizar.mnstate.edu/~juan/urania</link>
	<description>A blog named for the muse of Astronomy containing musings by an astronomer</description>
	<lastBuildDate>Fri, 06 Nov 2009 01:44:27 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>XQuartz on MacOS X for the Astronomer</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2009/05/28/xquartz-on-macos-x-for-the-astronomer/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2009/05/28/xquartz-on-macos-x-for-the-astronomer/#comments</comments>
		<pubDate>Thu, 28 May 2009 22:10:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2009/05/28/xquartz-on-macos-x-for-the-astronomer/</guid>
		<description><![CDATA[When I first started this blog, I was using Apple&#8217;s built-in X11, but then with the transition to MacOS 10.5, there were some serious issues with Apple&#8217;s X11 implementation having to do with the transition from X11R6 to X.org. One of Apple&#8217;s programmers started putting out bleeding-edge updates to Apple&#8217;s X11 called XQuartz that fixed [...]]]></description>
			<content:encoded><![CDATA[<p>When I first started this blog, I was using Apple&#8217;s built-in X11, but then with the transition to MacOS 10.5, there were some serious issues with Apple&#8217;s X11 implementation having to do with the transition from X11R6 to X.org. One of Apple&#8217;s programmers started putting out bleeding-edge updates to Apple&#8217;s X11 called <a href="http://xquartz.macosforge.org/">XQuartz</a> that fixed a lot of the programs and I have kept using it ever since.</p>
<p>Two years ago, I wrote a blog entry with <a href="http://iparrizar.mnstate.edu/~juan/urania/2007/08/01/some-x11-on-macos-x-hints/">hints for setting up X11 for the astronomer.</a> The problem is that while the hints in that writeup are still valid, they don&#8217;t work if you are using Xquartz because the preferences are stored in a different location for <a href="http://xquartz.macosforge.org/">XQuartz</a> versus the built-in <a href="http://developer.apple.com/opensource/tools/X11.html">X11</a>. As such, I am reproducing those X11 hints here, but with the edits necessary for use with <a href="http://xquartz.macosforge.org/">XQuartz</a>.</p>
<p>Once you have installed XQuartz, the <code>X11.app</code> should automatically launch when a program that needs X11 is executed (If you are an old hand at X11, you probably discovered since moving to Leopard that <a href="http://iparrizar.mnstate.edu/~juan/urania/2007/11/25/leopard-issues-for-the-astronomer-aka-im-not-sure-x11-is-better/">you should NOT set the <code>DISPLAY</code> variable to :0</a> to display an Xwindow on your primary display, just leave <code>DISPLAY</code> undefined.):</p>
<ol>
<li>There are many hidden preferences in XQuartz just like in many Mac Applications. You can see a list of the hidden (and not hidden) preferences using the command line tool <code>defaults</code>. To see the available XQuartz preferences, type:<code>defaults read org.X.x11</code><strong>NOTE:</strong> If you are still using Apple&#8217;s built-in X11 implementation (or if you are using MacOS 10.4), just replace &#8216;<code>org.x.X11</code>&#8217; with &#8216;<code>com.apple.x11</code>&#8217; in all the following hints.</li>
<li>In addition to “reading” the preferences, you can write to them. From the command line you can type:
<ul>
<li><code>defaults write org.X.x11 no_quit_alert true</code><br />
This allows X11 to quit without an alert box. Useful if you find it irritating like I do that X11 will prevent me from logging out or the computer from restarting due to that dialog box. However, this does mean you can accidentally quit <code>X11.app</code> pretty easily if you hit cmd-Q at the wrong time.</li>
<li><code>defaults write org.X.x11 wm_ffm true</code><br />
Allows which X11 window is selected to follow the mouse, which is the way X11 behaves under most *nix systems by default.</li>
<li><code>defaults write org.X.x11 wm_click_through -bool true</code><br />
This activates click_thorough events in the Quartz window manager, which allows clicks to pinned windows, another behavior common to *nix X11 installations.</li>
</ul>
</li>
<li>You can control which window manager is launched (if you prefer something other than the quartz-wm used by default). If you don&#8217;t have a <code>~/.xinitrc</code> file, copy the default one:<br />
<pre>cp /private/etc/X11/xinit/xinitrc ~/.xinitc</pre><br />
and then manipulate it with any text editor.</li>
<li><strong>BIG LAPTOP USER HINT:</strong> Because XQuartz on the Macintosh uses authentication to prevent connections from unauthorized sources to the X11 client, something interesting happens when you change IP address, you will discover you can&#8217;t use <code>X11.app</code> from the MacOS X Terminal until you quite and relaunch <code>X11.app</code>. This happens to me all the time on my laptop when I travel and the IP address changes. I recommend either using the Xterm as your terminal or just get used to restarting X11 if you have problems connecting to the terminal.</li>
<li>You can run X11 remotely on your Mac, if you can ssh into your Mac, then just use<br />
<pre>ssh -Y youraccount@yourcomputer.com</pre><br />
, the -Y flag should allow you to run X11 remotely as long as <code>X11.app</code> is running on your machine before the connection is made. If your ssh on the remote machine doesn&#8217;t support X11 connections and you have admin access, you can edit the file <code>/etc/sshd_config</code> on the remote machine and make sure X11 Forwarding is turned on by looking for the following lines and making sure they are uncommented and that all “no”&#8217;s are set to “yes”:<br />
<pre><pre>X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes</pre></pre>
</li>
</ol>
<p>And that is it for the hints for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2009/05/28/xquartz-on-macos-x-for-the-astronomer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X11 Updated, but requires unavailable OS X release!</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2009/04/24/x11-updated-but-requires-unavailable-os-x-release/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2009/04/24/x11-updated-but-requires-unavailable-os-x-release/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 14:18:24 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2009/04/24/x11-updated-but-requires-unavailable-os-x-release/</guid>
		<description><![CDATA[I just noticed that the XQuartz folks released X11 2.3.3, but when I attempted to install it, it said I needed Mac OS 10.5.7 installed, which hasn&#8217;t been released yet. I have confirmed this on the release notes page. The full release notes seem to describe to major changes, updated support for OpenGL and some [...]]]></description>
			<content:encoded><![CDATA[<p>I just noticed that the <a href="http://xquartz.macosforge.org/">XQuartz</a> folks released <a href="http://static.macosforge.org/xquartz/downloads/X11-2.3.3.dmg">X11 2.3.3</a>, but when I attempted to install it, it said I needed Mac OS 10.5.7 installed, which hasn&#8217;t been released yet. I have confirmed this on the <a href="http://xquartz.macosforge.org/trac/wiki/X112.3.3">release notes page</a>. The full release notes seem to describe to major changes, updated support for OpenGL and some bug fixes regarding Caps Lock and mouse tracking.</p>
<p>Interestingly, the XQuartz wiki notes that</p>
<blockquote>
<p>[MacOS] 10.5.7 updates the X11 server to match what shipped with 2.3.2. Most of the userland, however, only saw security updates. The version reported by X11 in 10.5.7 is 2.1.6 to distinguish it from the 2.3.x series which contains a much newer userland.</p>
</blockquote>
<p>I have the feeling that the update to MacOS 10.5.7 will be released very soon now.</p>
<blockquote><p>[<strong>UPDATE:</strong> In fact, it took almost two weeks, but MacOS 10.5.7 was released on Tuesday, May 12, 2009.]</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2009/04/24/x11-updated-but-requires-unavailable-os-x-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X11 for Leopard now supporting Full Screen</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2009/03/30/x11-for-leopard-now-supporting-full-screen/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2009/03/30/x11-for-leopard-now-supporting-full-screen/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 23:21:14 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2009/03/30/x11-for-leopard-now-supporting-full-screen/</guid>
		<description><![CDATA[There are some older school astronomers on Macs who cut their teeth on Linux and as such really prefer the full-screen X-Windows display for running astronomical data reductions. This way of running X11 has been unavailable since MaxOS 10.5 (which switched from X11 code bases). Well, to quote Macros Huerta&#8217;s MacSingularity Blog:

Well, I’m way late [...]]]></description>
			<content:encoded><![CDATA[<p>There are some older school astronomers on Macs who cut their teeth on Linux and as such really prefer the full-screen X-Windows display for running astronomical data reductions. This way of running X11 has been unavailable since MaxOS 10.5 (which switched from X11 code bases). Well, to quote <a href="http://macsingularity.org/2009/03/27/x11-supports-full-screen/">Macros Huerta&#8217;s MacSingularity Blog</a>:</p>
<blockquote>
<p>Well, I’m way late to the game on this, but our long national nightmare is over &#8211; Xquartz for Leopard support full screen!</p>
</blockquote>
<p>The <a href="http://xquartz.macosforge.org/trac/wiki">Xquartz</a> folks latest edition of Xquartz (<a href="http://xquartz.macosforge.org/trac/wiki/X112.3.2.1">version 2.3.2.1</a>) includes full-screen support. Now, personally, I like the way X11 integrates with Aqua, but for those who prefer to use only one windowing system at a time, you can now do it on MacOS X Leopard. You can <a href="http://xquartz.macosforge.org/downloads/X11-2.3.2.1.dmg">download it here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2009/03/30/x11-for-leopard-now-supporting-full-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Two Astronomically Interesting Mac Software Updates Today</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/07/19/two-astronomically-interesting-mac-software-updates-today/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/07/19/two-astronomically-interesting-mac-software-updates-today/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 20:48:11 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/07/19/two-astronomically-interesting-mac-software-updates-today/</guid>
		<description><![CDATA[Today I noticeed two interesting software updates for Mac-based professional astronomers.
The first one I noticed was the updating of Xquartz to version 2.3.0. Xquartz is the updated version of X11 for the Mac OS (even ahead of Apple&#8217;s own installed versions) that I prefer to use, largely because bug-fixes get rolled in here before they [...]]]></description>
			<content:encoded><![CDATA[<p>Today I noticeed two interesting software updates for Mac-based professional astronomers.</p>
<p>The first one I noticed was the updating of <a href="http://xquartz.macosforge.org/trac/wiki">Xquartz</a> to <a href="http://xquartz.macosforge.org/trac/wiki/X112.3.0">version 2.3.0</a>. <a href="http://xquartz.macosforge.org/trac/wiki">Xquartz</a> is the updated version of X11 for the Mac OS (even ahead of Apple&#8217;s own installed versions) that I prefer to use, largely because bug-fixes get rolled in here before they appear in Mac OS. This version requires <a href="http://www.apple.com/macosx/">Mac OS</a> 10.5.4 and has a couple of caveats attached to it for programmers, notably:</p>
<blockquote><p>
  The software supporting the deprecated imake build system is not provided in this package. If you need imake and xmkmf, please install the X11 package that came with your Leopard DVD before installing this version. Alternatively, you can compile these packages on your own or get them from a third party such as Fink or MacPorts. The darwin configuration files used by the imake build system are outdated and not supported. Developers using this build system are advised to migrate to autoconf.
</p></blockquote>
<p>[<strong>Added July 24, 2008: Apparently, this version of Xquartz changed the X11.app Icon so it now X11 looks like this<br /></strong></p>
<div style="text-align: center;">
  <strong><img src="http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/newx11icon.jpg" width="85" height="143" alt="New X11 Icon" /><br /></strong>
</div>
<p><strong>when it is on the Dock. Interesting, but it threw me for a second. The only documentation I found of this change is <a href="http://xquartz.macosforge.org/trac/ticket/110">in a Ticket filed</a> with XQuartz's bug reporting system. Still, I think this is a good idea, as it gives a visual cue that you are using XQuartz as opposed to the default X11 installation.]</strong></p>
<p>Along with a bunch of library changes, the key update appears to be having the Xserver updated to the 1.4 branch of Xorg. There is also &#8220;support for adding new <code>$DISPLAY</code> sockets after the server is running&#8221; (which I think means using the DISPLAY variable will not break things) and &#8220;<code>/usr/X11/bin/Xquartz</code> is just a stub that will &#8216;do the right thing&#8217;,&#8221; whatever that means. I have upgraded to it and as a reminder, if you upgrade <a href="http://www.apple.com/macosx/">MacOS</a> after installing Xquartz, you will need to reinstall Xquartz to get it back.</p>
<p>The other interesting software release for Mac-based astronomers I noticed today was <a href="http://hea-www.harvard.edu/RD/ds9/">SAOImage DS9</a> which has released version <a href="http://hea-www.harvard.edu/RD/ds9/beta.html">5.3beta</a>, which appears to be, based on the statement on their homepage that &#8220;MacOSX 10.5 users with firewall enabled, please use version 5.3 beta&#8221;, geared toward addressing the issue I noticed this April with version 5.2 where <a href="http://iparrizar.mnstate.edu/~juan/urania/2008/04/22/saoimage-ds9-versus-leopard-firewall/">launching SAOimage DS9 with a certain firewall setting on the Mac could result in the the application becoming irreparably damaged at launch</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/07/19/two-astronomically-interesting-mac-software-updates-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xquartz 2.2.3 released</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/06/26/xquartz-223-released/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/06/26/xquartz-223-released/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 21:30:18 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/06/26/xquartz-223-released/</guid>
		<description><![CDATA[I was trying to upgrade wine within MacPorts when I realized I had forgotten to upgrade Xquartz after my upgrade to MacOS 10.5.3 on my Mac Pro. So I checked, Xquartz has been upgraded to version 2.2.3. Since version 2.2.1 (which I talked about in my blog here).

Upgraded the freetype library to version 2.3.6, which [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to upgrade <a href="http://www.winehq.org/">wine</a> within <a href="http://www.macports.org/" title="MacPorts homepage">MacPorts</a> when I realized I had forgotten to upgrade Xquartz after my upgrade to <a href="http://www.apple.com/macosx/">MacOS</a> 10.5.3 on my Mac Pro. So I checked, <a href="http://xquartz.macosforge.org/trac/wiki">Xquartz</a> has been upgraded to <a href="http://xquartz.macosforge.org/trac/wiki/X112.2.3">version 2.2.3</a>. Since version 2.2.1 (<a href="http://iparrizar.mnstate.edu/~juan/urania/2008/05/06/xquarz-goes-to-version-221/">which I talked about in my blog here</a>).</p>
<ul>
<li>Upgraded the freetype library to version 2.3.6, which fixes &#8220;A bunch of potential security problems have been found [and fixed in this release&#8221;</li>
<li>Upgraded to pixman library to version 0.11.4.</li>
<li>Xquartz fixes from xorg-server-1.3.0-apple21, the key fix being support for monitor hotplugging, although several security fixes also occurred.</li>
</ul>
<p>Again, if you upgrade <a href="http://www.apple.com/macosx/">MacOS</a> (say to version 10.5.4, which is supposed to be released soon in order to support <a href="http://www.apple.com/iphone/">iPhone G3</a> and <a href="http://www.apple.com/mobileme/">MobileMe</a>), you will likely need to reinstall Xquartz (unless Apple has upgraded their X11 installation to match Xquartz).</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/06/26/xquartz-223-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xquartz goes to version 2.2.1</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/05/06/xquarz-goes-to-version-221/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/05/06/xquarz-goes-to-version-221/#comments</comments>
		<pubDate>Tue, 06 May 2008 20:04:00 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/05/06/xquarz-goes-to-version-221/</guid>
		<description><![CDATA[The Xquartz project is a useful one for Leopard users of astronomical applications because of the dependence of most astronomical applications on X11. A few days ago (what can I say, its finals and I am swamped with exam writing and grading) they released version 2.2.1. It contains all the tweaks that made it into [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://trac.macosforge.org/projects/xquartz/wiki">Xquartz</a> project is a useful one for Leopard users of astronomical applications because of the dependence of most astronomical applications on X11. A few days ago (what can I say, its finals and I am swamped with exam writing and grading) they released <a href="http://xquartz.macosforge.org/downloads/X11-2.2.1.pkg">version 2.2.1</a>. It contains all the tweaks that made it into the <a href="http://iparrizar.mnstate.edu/~juan/urania/2008/04/14/xquartz-updated/">previous version</a> and also includes</p>
<ul>
<li>All packages updated to versions intended to ship as part of X11R7.4 (as of 2008.04.21).</li>
<li>Fixed multiple crash-causing bugs in the server.</li>
<li>Fixed cmd-tab to properly move all windows forward when entering X11.app.</li>
<li>Cleaned up multi-monitor support (still not completely bulletproof) [I have 2 monitors, so this is a big one for me].</li>
</ul>
<p>As I have noted before, Apple includes some of the work done in this project in OSX updates, so it is suggested that you install the latest XQuartz release after updating to 10.5.2 (and any future 10.5.x or security updates).</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/05/06/xquarz-goes-to-version-221/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAOImage DS9 versus Leopard Firewall</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/04/22/saoimage-ds9-versus-leopard-firewall/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/04/22/saoimage-ds9-versus-leopard-firewall/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 02:15:56 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[IRAF]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/04/22/saoimage-ds9-versus-leopard-firewall/</guid>
		<description><![CDATA[Immediately after installing SAOImage DS9 5.2, I had a major failure of the application and initially I just thought it was some sort of build bug. This is what I posted at that time:
[HOLD OFF ON THIS UPDATE! I have discovered that at least on one of my systems, this version of ds9 is refusing [...]]]></description>
			<content:encoded><![CDATA[<p>Immediately after installing <a href="http://hea-www.harvard.edu/RD/ds9/">SAOImage DS9 5.2</a>, I had a major failure of the application and initially I just thought it was some sort of build bug. This is what I posted at that time:</p>
<blockquote><p><strong>[HOLD OFF ON THIS UPDATE! I have discovered that at least on one of my systems, this version of ds9 is refusing to run properly. It launched once, but when I attempted to check the “About SAOImage DS9”, it triggered the following error:</strong></p>
<blockquote><p> <strong>“An internal error has been detected local header mismatch couldn't open “zvfsmntpt/doc/sun.gif”: no such file.</strong></p></blockquote>
<p><strong>(this occurred in both Aqua and <span class="caps">X11</span> versions). Furthermore, all future attempts to launch ds9 (again, either Aqua or <span class="caps">X11</span>) fail with the following error:</strong></p>
<blockquote><p><strong>Error in startup script: couldn't read file “./zvfsmntpt/src/ds9.tcl”: no such file or directory</strong>  </p></blockquote>
<p><strong>Even removing the preferences file at <code>~/.ds9.prf</code> didn&#8217;t help.</strong><strong>]</strong></p></blockquote>
<p>Apparently, my problems with SAOImage DS9 in Leopard are a <a href="http://hea-www.harvard.edu/RD/ds9/issue.html">known issue.</a> If you configure the built-in Firewall to &#8220;Set access for specific services and applications&#8221; so that you can approve &#8220;holes&#8221; in your firewall on an Application by Application basis, your first launch of SAOImage DS9 will irreparably damage the application!  Unfortunately, Apple implements the <a href="http://docs.info.apple.com/article.html?artnum=306938">application firewall</a> in part by <strong>modifying the Application package of the Application you are running by digitally signing it if it was not digitally signed by the developer </strong>(adding a file called <code>CodeResources</code> to the Application package). According the <a href="http://docs.info.apple.com/article.html?artnum=306938">Apple&#8217;s documentation</a> on this:</p>
<blockquote><p>If you run an unsigned application not in the Application Firewall list, you will be presented with a dialog with options to Allow or Deny connections for the application. If you choose Allow, Mac OS X 10.5 will sign the application and automatically add it to the Application Firewall list. If you choose Deny, Mac OS X 10.5 will sign the application, automatically add it to the Application Firewall list and deny the connection.</p></blockquote>
<p>So basically,Apple doesn&#8217;t warn you in the dialog box that comes up that it has whatever decision you make, it will modify the application by digitally signing it and it doesn&#8217;t give you a way to avoid this. <strong>This is, in my opinion, is an incredibly boneheaded move on Apple&#8217;s programmer&#8217;s part.</strong> They readily admit that</p>
<blockquote><p>  Some applications check their own integrity when they are run without using code signing.</p></blockquote>
<p>They suggest the application firewall will try to automatically detect these and avoid modifying them, but they should give you, the user, the option instead of making the decision via some internal algorithm.  <strong>MacOS X shouldn&#8217;t assume its OK to change an application</strong>. In the case of SAOImage DS9, they are irreparably damaging the application without leaving you a way to avoid the damage once you trigger the application firewall. <strong>Shame on you Apple. The only way to fix it is to reinstall the application!</strong></p>
<p>So when I figured this out (a tip of the hat to <a href="http://iraf.net/phpBB2/viewtopic.php?p=139427#139427">this post</a> on <a href="http://www.iraf.net/">IRAF.net</a>). I reinstalled the SAOImage DS9 executables (both Aqua and X11 versions) and before launching them, I set the Firewall (via the Security Pane of the System Preferences) to &#8220;Allow all incoming connections&#8221; (<a href="http://docs.info.apple.com/article.html?artnum=306938">this is the default mode</a>, so it is as secure as MacOS Tiger was). Everything now appears to work just fine.</p>
<p>Personally, I believe an application that fails its checksum should present a message indicating that is the problem instead of just crapping out, but in this case, the fault lies mostly with Apple. <strong>Apple is damaging applications by making this critical decision in the background, without user intervention!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/04/22/saoimage-ds9-versus-leopard-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DS9 version 5.2 released</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/04/19/ds9-version-52-released/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/04/19/ds9-version-52-released/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 16:29:42 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[IRAF]]></category>
		<category><![CDATA[SciSoft OSX]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/04/19/ds9-version-52-released/</guid>
		<description><![CDATA[[See my more recent post warning about MacOS X Firewall settings and how they can destroy the SAOImage DS9 executable during its first launch! This problem is avoidable by tweaking the Firewall settings, but once you have launched SAOImage DS9 with the bad settings, the application is damaged can can't be relaunched again. A reinstallation [...]]]></description>
			<content:encoded><![CDATA[<p><strong>[See my more</strong> <a href="http://iparrizar.mnstate.edu/~juan/urania/2008/04/22/saoimage-ds9-versus-leopard-firewall/"><strong>recent post warning about MacOS X Firewall settings</strong></a> <strong>and how they can destroy the SAOImage DS9 executable during its first launch! This problem is avoidable by tweaking the Firewall settings, but once you have launched SAOImage DS9 with the bad settings, the application is damaged can can't be relaunched again. A reinstallation is the only solution, so it is a good idea to avoid this problem.]</strong></p>
<p>The folks in Cambridge have kept busy. They have released <a href="http://hea-www.harvard.edu/RD/ds9/"><span class="caps">SAOI</span>mage <span class="caps">DS9</span> version 5.2</a>. The versions for MacOS X include the following:</p>
<ul>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">Aqua 10.4 Tiger (Universal)</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">Aqua 10.5 Leopard (Universal)</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/"><span class="caps">X11</span> 10.4 Tiger (Universal)</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/"><span class="caps">X11</span> 10.5 Leopard (Universal)</a></li>
</ul>
<p>The rather extensive changes are detailed in the <a href="http://hea-www.harvard.edu/RD/ds9/release/r5.0.html">release notes here,</a> but the notable ones to me include:</p>
<ul>
<li><strong><span class="caps">ANALYSIS</span>:</strong> for MacOSX tiger, wrap cmds with shell and <span class="caps">PATH.</span></li>
<li><strong><span class="caps">GUI</span>:</strong> change default directory for standard dialog to $HOME.</li>
<li><strong><span class="caps">ANALYSIS</span>:</strong> add <code>/sw/bin</code> to default path for MacOSX. <span style="font-style: italic;">While unstated in the release notes, this is clearly an attempt to support <a href="http://fink.sf.net/">Fink</a>, which places its installation in the</span> <span style="font-style: italic;"><code>/sw</code> directory.</span></li>
<li><strong><span class="caps">GUI</span>:</strong> ds9 will now start in the users home directory for MacOSX Aqua users when invoked from a double click and the default dialog box is Motif or Windows.</li>
<li><strong><span class="caps">MACOSX</span>:</strong> fixed a problem with printing non standard colors.</li>
<li><strong><span class="caps">MACOSX</span>:</strong> restore postscript printing.</li>
<li><strong><span class="caps">REGIONS</span>:</strong> apply <span class="caps">WCS</span> to fits regions if present.</li>
<li><strong><span class="caps">GUI</span>:</strong> add support for user configured button bar.</li>
<li><strong><span class="caps">CATALOGS</span>:</strong> add support for <a href="http://simbad.u-strasbg.fr/">simbad</a>.</li>
<li><strong><span class="caps">IMEXAMINE</span>:</strong> added support for key stroke events.</li>
<li>Although unstated in their release notes, they are now apparently providing universal binaries instead of <span class="caps">PPC</span> and Intel binaries for MacOS X.</li>
</ul>
<p>I have previously posted notes for <a href="http://iparrizar.mnstate.edu/~juan/urania/2008/04/06/scisoft-osx-200831-installation-notes/">integrating upgrades of <span class="caps">DS9</span> into the Scisoft OS X installation</a> and they still work just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/04/19/ds9-version-52-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XQuartz updated to version 2.2.0.1</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/04/14/xquartz-updated/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/04/14/xquartz-updated/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 19:37:54 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/04/14/xquartz-updated/</guid>
		<description><![CDATA[[This originally linked to version 2.2.0, but there was a security related bug in version 2.2.0, so this release has appeared to replace it.]
The Xquartz folks have updated Xquartz to version 2.2.0.1. Xquartz is an effort to provide a better X11 server for Leopard than Apple provides, being proactive in providing fixes Apple will likely [...]]]></description>
			<content:encoded><![CDATA[<p><strong><span style="font-style: italic;">[This originally linked to version 2.2.0, but there was a security related bug in version 2.2.0, so this release has appeared to replace it.]</span></strong></p>
<p>The <a href="http://trac.macosforge.org/projects/xquartz/wiki">Xquartz</a> folks have updated Xquartz to <a href="http://xquartz.macosforge.org/downloads/X11-2.2.0.1.pkg">version 2.2.0.1</a>. Xquartz is an effort to provide a better X11 server for Leopard than Apple provides, being proactive in providing fixes Apple will likely include later. The release notes are long and cover a bunch of updates to various items, including:</p>
<ul>
<li style="list-style: none"></li>
<li>Added informational output when falling through to failsafe startup in X11.app</li>
<li>Unsetenv(DISPLAY) when falling through to failsafe startup in X11.app</li>
<li><a href="http://en.wikipedia.org/wiki/Expos%C3%A9_(Mac_OS_X)">Exposé</a> now works as expected</li>
<li>X11 works better with <a href="http://www.apple.com/macosx/features/spaces.html">spaces</a></li>
</ul>
<p>I suspect the discussion of &#8216;failsafe&#8217; startups is to provide a more informational failure than what was happening before for people like myself who transitioned from previous MacOS X installations and had been manually forcing the DISPLAY variable to point to :0.0, which is somewhat standard in the Unix world.</p>
<p>I&#8217;d recommend grabbing this Xquartz update and applying it if you use Leopard and astronomical software. Its a double-click install. Apple does watch this project (one of the developers is Apple&#8217;s X11 developer), and as noted on the Xquartz site:</p>
<blockquote><p>
  Apple included some of the work done in this project in their 10.5.2 update and will likely include further changes in possible future updates of 10.5.x. It is suggested that you install the latest XQuartz release after updating to 10.5.2 (and any future 10.5.x or security updates).
</p></blockquote>
<p>In other words, while some of these fixes will likely end up in the official MacOS released by Apple, if you want them now, use Xquartz. Furthermore, since Xquartz does over-write Apple&#8217;s default X11 install, this means that if Apple upgrades X11 in a future patch, you could end up with a broken install if you used Xquartz. Personally, I haven&#8217;t had a problem, but I suggest you keep the Xquartz package around, and re-install it after any future MacOS X updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/04/14/xquartz-updated/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site upgrade to Leopard</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/site-upgrade-to-leopard/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/site-upgrade-to-leopard/#comments</comments>
		<pubDate>Tue, 04 Mar 2008 16:07:39 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/site-upgrade-to-leopard/</guid>
		<description><![CDATA[I have taken part of my day to get my main web server upgraded to MacOS X 10.5 (aka Leopard). I spent quite a bit of time waiting, removing programs I knew were incompatible, and so on. Still, this upgrade was not without a few bumps:

Check Hardware Compatibility: My Sonnet Tempo SATA X4P card (which [...]]]></description>
			<content:encoded><![CDATA[<p>I have taken part of my day to get my main web server upgraded to MacOS X 10.5 (aka Leopard). I spent quite a bit of time waiting, removing programs I knew were incompatible, and so on. Still, this upgrade was not without a few bumps:</p>
<ul>
<li><strong>Check Hardware Compatibility:</strong> My <a href="http://www.sonnettech.com/">Sonnet</a> <a href="http://www.sonnettech.com/product/tempo_sata_x4p.html">Tempo SATA X4P</a> card (which I use to provide an external SATA [eSATA] interface for my RAID of data drives) was incompatible with Leopard and would cause the installer to hang. I finally discovered a <a href="http://www.sonnettech.com/support/downloads/computercards.html#temposatafamilymac">firmware upgrade</a> was available that fixed this. This was a stupid rookie mistake. <strong>Rule of Thumb:</strong> Always check the non-Apple hardware for updates before making a major OS X upgrade.</li>
<li><strong>Watch out for /home:</strong> I had been using a symbolic link from <code>/home</code> to <code>/Users</code> because in my old Unix days, I hardcoded a lot of my software to look for my home directory in <code>/home</code>. Leopard expects <code>/home</code> to be available as mount point for the automount service, so getting with the modern era and not relying on <code>/home</code> to point to <code>/User</code> is required if you adopt Leopard.</li>
<li><strong>Rebuild Web Server Configuration:</strong> One problem I was prepared for is that the web server was updated to <a href="http://www.apache.org/">Apache2</a>. This in itself was not bad, but the configuration files for Apache (version 1) were stored in <span style="font-style: italic;">/etc/httpd</span> and the new configuration files for Apache2 are in <span style="font-style: italic;">/etc/apache2</span> and they were NOT migrated. I don&#8217;t fault Apple for not migrating the files, but I kicked this around on my laptop quite a bit in order to tweak the configuration files back to something I liked. One thing I immediately did was that this MacOS comes with <a href="http://www.php.net/.net/">PHP</a> 5.2.4 preinstalled, but not enabled in Apache2. I enabled it by editting the <code>/etc/apache2/httpd.conf</code> file (which you might have to create) and uncommenting the line with <code># LoadModule php5_module</code> (by removing the &#8216;#&#8217; symbol from the beginning of the line). Once that was done, I restarted the Apache2 server and all my PHP code (including this blog) was running again.</li>
<li>
    <strong>Tweak MySQL for Leopard:</strong> The <a href="http://www.php.net/">PHP</a> 5.2.4 included with MacOS X is compiled with support for <a href="http://www.mysql.com.com/">MySQL</a>. This is nice in that you can just download the MySQL package installer and quickly get a <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)">LAMP</a> server running. However, it was set up with the MacOS X Server version of MySQL in mind, which means it expects the socket to be in a different location than the vanilla MySQL. This can be solved by either tweaking the MySQL configuration (as outlined in the MySQL section of the blog post at <a href="http://remysharp.com/2007/10/27/lamp-in-leopard-osx-105-php5-and-apache-22/">http://remysharp.com/2007/10/27/lamp-in-leopard-osx-105-php5-and-apache-22/</a> ) or by tweaking the PHP configuration by editing the <code>/etc/php.ini</code> file (if it doesn&#8217;t exist, first copy <code>/etc/php.ini.default</code> to <code>/etc/php.ini</code>) and search for the line containing <code>mysqli.default_socket =</code> to read<br />
    <pre><pre>
mysqli.default_socket = /private/tmp/mysql.sock
</pre></pre>This solution seemed more straight forward, so I did this.
  </li>
<li><strong>Reinstall MacPorts:</strong> Since I am aficionado of <a href="http://www.macports.org/" title="MacPorts homepage">MacPorts</a>, I reinstalled it and rebuilt all the ports. Some of the issues <a href="http://iparrizar.mnstate.edu/~juan/urania/2007/12/05/macports-failures-under-leopard/">I had before with MacPorts on Leopard</a> on my MacBook Pro cropped up again on my PowerMac G5, notably</li>
<li style="list-style: none">
<ul>
<li><strong>gv</strong> still needs to be patched as I noted <a href="http://iparrizar.mnstate.edu/~juan/urania/page/3/">here</a>.</li>
<li><strong>sqlite3</strong> still does know about its dependence on <strong>nawk</strong>.</li>
<li><strong>xterm</strong> doesn&#8217;t install unless you update your X11 installation using the latest version of Xquartz (currently at version 2.1.4).</li>
</ul>
</li>
<li><strong>Update to latest version of Xquartz:</strong> Since I don&#8217;t like X11 headaches, I updated to the latest version of Xquartz (currently at version 2.1.4).</li>
</ul>
<p>So the adventure continues. Back to research, I have invested about 5 hours of my spring break into this upgrade, that is enough for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/03/04/site-upgrade-to-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SAOImage DS9 5.1 released</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2008/01/14/saoimage-ds9-51-released/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2008/01/14/saoimage-ds9-51-released/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 17:32:26 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[SciSoft OSX]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2008/01/14/saoimage-ds9-51-released/</guid>
		<description><![CDATA[The folks behind SAOImage DS9 have now released version 5.1. The big change I&#8217;ve noticed since the last version is that version 5.1 works without issues under Leopard&#8217;s new X11 implementation. Of course, the disadvantage is you now must download a version compatible with your OS version as well as your CPU.

If you want the Aqua (MacOS [...]]]></description>
			<content:encoded><![CDATA[<p>The folks behind <a href="http://hea-www.harvard.edu/RD/ds9/">SAOImage DS9</a> have now released version 5.1. The big change I&#8217;ve noticed since the last version is that version 5.1 works without issues under <a href="http://iparrizar.mnstate.edu/~juan/urania/2007/11/25/leopard-issues-for-the-astronomer-aka-im-not-sure-x11-is-better/">Leopard&#8217;s new X11 implementation</a>. Of course, the disadvantage is you now must download a version compatible with your OS version as well as your CPU.
<ul>
<li>If you want the Aqua (MacOS X native version, download the appropriate one of the following files. If you want to use the Aqua-native version from <span style="font-style: italic">IRAF</span>, you will need to access the command-line binary within the SAOImage DS9.app application bundle as &#8220;<span style="font-style: italic">SAOImage\ DS9.app/Contents/MacOS/ds9</span>&#8220;.
<ul>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">MacOSX 10.4 Tiger Aqua Interface, Universal (PPC and Intel)</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">MacOSX 10.5 Leopard Aqua Interface, Universal (PPC and Intel)</a></li>
</ul>
</li>
<li>If you want the X11-based command line driven version
<ul>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">Darwin PPC 10.4 Tiger version</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">Darwin Intel 10.4 Tiger version</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">Darwin PPC 10.5 Leopard version</a></li>
<li><a href="http://hea-www.harvard.edu/saord/ds9/">Darwin Intel 10.5 Leopard version</a></li>
</ul>
</li>
</ul>
<p>More detailed release notes <a href="http://hea-www.harvard.edu/RD/ds9/release/r5.0.html">are available here</a>. See my previous post on <a href="http://iparrizar.mnstate.edu/~juan/urania/2007/10/16/ds9-version-50/">SAOImage DS9 5.0</a> to see how it is possible to upgrade the binaries included with SciSoft OSX.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2008/01/14/saoimage-ds9-51-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>X11 without an xterm on Leopard</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/12/15/x11-without-an-xterm-on-leopard/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/12/15/x11-without-an-xterm-on-leopard/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 15:30:38 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/12/15/x11-without-an-xterm-on-leopard/</guid>
		<description><![CDATA[The latest XQuartz release (2.1.1) finally fixes one of the major annoyances I was having with X11 under Leopard. Because the X11.app program under Leopard is really an xterm launcher, starting X11 always started an xterm window. This has now been fixed. All you need to do is install the new XQuartz package (WARNING: Because [...]]]></description>
			<content:encoded><![CDATA[<p>The latest <a href="http://trac.macosforge.org/projects/xquartz/wiki/X112.1.1">XQuartz release (2.1.1)</a> finally fixes one of the major annoyances I was having with X11 under Leopard. Because the X11.app program under Leopard is really an xterm launcher, starting X11 <strong>always</strong> started an xterm window. This has now been fixed. All you need to do is install the new XQuartz package (<strong>WARNING:</strong> Because this changes the launch daemon settings, you will need to restart the computer afterwards) and then once you have rebooted, type the following command into the terminal:</p>
<p><code>defaults write org.x.X11 app_to_run /usr/bin/true</code></p>
<p>And you have xterm-free X11 again. Furthermore, this updates xterm as well, so even though I don&#8217;t want xterm to launch automatically with X11, I am happy to have it updated.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/12/15/x11-without-an-xterm-on-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacPorts failures under Leopard</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/12/05/macports-failures-under-leopard/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/12/05/macports-failures-under-leopard/#comments</comments>
		<pubDate>Wed, 05 Dec 2007 23:05:15 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Command Line Tricks]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/12/07/macports-failures-under-leopard/</guid>
		<description><![CDATA[I decided I should clean up my laptop&#8217;s left over digital crap, so I went through my /usr/local directories cleaning out ancient libraries installed two OSes ago (after making a backup first). I decided I would try reinstalling MacPorts under Leopard, if only to build it clean and remove the old source code siting around [...]]]></description>
			<content:encoded><![CDATA[I decided I should clean up my laptop&#8217;s left over digital crap, so I went through my <span style="font-style: italic">/usr/local</span> directories cleaning out ancient libraries installed two OSes ago (after making a backup first). I decided I would try reinstalling <a title="MacPorts homepage" href="http://www.macports.org/">MacPorts</a> under Leopard, if only to build it clean and remove the old source code siting around from various revisions to the packages over time.First, I installed MacPorts from the disk image for Leopard. Then I attempted to install my usual suspects:

<code>sudo port install aquaterm chmdump contacts coreutils curl file findutils g95 ghostscript gv ImageMagick ksh93 latex2rtf lynx macutil osxutils plotutils subversion teTeX tidy vim wget wine xterm xephem</code>

Long story short, almost everything works but there were a few key packages that failed to build under MacOS X 10.5.1. This also reminded me that when a package fails to build, you should &#8220;port clean&#8221; the package (see examples below) before attempting to rebuild it:
<ul>
	<li>I discovered that <strong>teTeX</strong> failed to build. This appears to be due to an undeclared dependancy on <strong>openmotif</strong>. So after the failed install, I just did an<code>sudo port clean --work teTeX; sudo port install openmotif teTeX</code>and teTeX installed just fine.</li>
	<li>In attempting to build <strong>subversion</strong> I discovered that one of the packages subversion needs, sqlite3, fails to install on Leopard. This appears to be due to an undeclared dependancy on <strong>nawk</strong> (MacPorts Report Ticket #13500). So again, all I had to do was:<code>sudo port clean --work sqlite3; sudo port install nawk subversion</code>and it worked. I should note that a fairly recent version of subversion now comes with Leopard, version 1.4.4 (as opposed to 1.4.5 with MacPorts).</li>
	<li><strong>gv</strong> fails to install unless you patch it. This was reported to MacPorts (Bug Report Ticket #13095). <strong>[If</strong> <strong>you check that bug ticket, you will find a new <em>patch-setenv.c</em> file is available there. If you download that file and replace <em>/opt/local/var/macports/sources/rsync.macports.org/release/ports/print/gv/files/patch-setenv.c</em> with it, gv will compile and install just fine.]</strong></li>
	<li><strong>osxutils</strong> fails almost immediately with a series of errors about conflicting types. Since <strong>osxutils</strong> did a lot of meta-data manipulation, I am not completely surprised it is broken under Leopard. I have submitted a bug report to MacPorts.</li>
	<li><strong><span style="text-decoration: line-through;">xterm</span></strong> <span style="text-decoration: line-through;">fails to build</span>. This is irritating because I haven&#8217;t had time to confirm is the old <a href="http://iparrizar.mnstate.edu/~juan/urania/2007/07/19/xterm-tektronix-emulation-broken-on-macos/">xterm Tektronix emulation bug present in the Tiger version of xterm</a> is still present. <strong>[This appears to have been cleared up with MacPorts 1.6 if you install Xquartz over the Apple installed X11 server. Doing this is a good idea anyway.]</strong></li>
	<li><strong><span style="text-decoration: line-through;">wine</span></strong> <span style="text-decoration: line-through;">fails to build</span> (<a href="http://www.nabble.com/build-of-wine-0.9.50-failed-t4938590.html">already reported elsewhere</a>). This has already been reported in <a href="http://trac.macosforge.org/projects/macports/ticket/13488">MacPorts Bug Report Ticket #13488</a>. I wonder if this is related to the possibility being mentioned of <a href="http://www.winehq.org/pipermail/wine-devel/2007-November/060846.html">Leopard having unreported support for Windows binary execution.</a> <strong>[Wine version 0.9.51 DOES compile under Leopard just fine.]</strong></li>
	<li><span style="text-decoration: line-through;">I can&#8217;t build <strong>g95</strong> because <strong>odcctools</strong> fails to compile.</span> This has been reported in <a href="http://trac.macosforge.org/projects/macports/ticket/13148">MacPorts Bug Report Ticket #13148</a>. <strong>[This appears to have been fixed as of January 24, 2008.]</strong></li>
	<li><span style="text-decoration: line-through;"><strong>xephem</strong> fails to build because <strong>lesstif</strong> builds but fails to install. Actually <strong>lesstif</strong> installed fine once I moved <em>/usr/share/aclocal/ac_find_motif.m4</em> out of the way. I don&#8217;t know if that file was there from my previous install of <strong>lesstif</strong>. Once <strong>lesstif</strong> was out of the way, <strong>xephem</strong> failed to build.</span> Interestingly, MacPorts has version 3.7, I downloaded the source for xephem 3.7.2 from the <a href="http://www.clearskyinstitute.com/xephem/">Clear Sky Institute website</a>, compiled it following the installation instructions without a hitch. I submitted a bug report as MacPorts Bug Report Ticket #13524 (turned out my bug report was a duplicate of MacPorts Bug Report Ticket #13498). This has been fixed, <a href="http://iparrizar.mnstate.edu/~juan/urania/2008/03/02/xephem-vis-macports-fixed/">see this post.</a> <strong>[<a href="http://iparrizar.mnstate.edu/~juan/urania/2008/03/02/xephem-vis-macports-fixed/">This appears to have been fixed</a> as of March 3, 2008.]</strong></li>
</ul>
I&#8217;m actually surprised the number of packages that failed to compile seems pretty small.]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/12/05/macports-failures-under-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Leopard and X11: A blog and an X11 update</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/12/02/leopard-and-x11/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/12/02/leopard-and-x11/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 16:34:18 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/12/03/leopard-and-x11/</guid>
		<description><![CDATA[Found this nice blog documenting Leopard and X11 issues. On there I found a note that the updated XQuartz package [link now points to page for newer packages] with various fixes for Leopard has been released. I&#8217;ll be trying it out shortly.
]]></description>
			<content:encoded><![CDATA[<p>Found this nice blog documenting <a href="http://homepage.mac.com/sao1/X11/index.html">Leopard and X11</a> issues. On there I found a note that the updated <a href="http://trac.macosforge.org/projects/xquartz/attachment/wiki/Releases/">XQuartz package</a> [link now points to page for newer packages] with various fixes for Leopard has been released. I&#8217;ll be trying it out shortly.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/12/02/leopard-and-x11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>X11 Issues under Leopard&#8230; some additional information</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/12/01/x11-issues-under-leopard-some-additional-information/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/12/01/x11-issues-under-leopard-some-additional-information/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 17:36:31 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/12/01/x11-issues-under-leopard-some-additional-information/</guid>
		<description><![CDATA[Well, I think I have ironed out most of my issues with X11 and I am actually very happy with it. But if you are not as happy, check out the X11-Users FAQ. It contains information about how to tackle the following:

If you really hate the new way X11 uses a custom DISPLAY environmental variable [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I think I have ironed out most of my issues with X11 and I am actually very happy with it. But if you are not as happy, check out the <a href="http://trac.macosforge.org/projects/xquartz/wiki/X11-UsersFAQ">X11-Users FAQ.</a> It contains information about how to tackle the following:</p>
<ul>
<li>If you really hate the new way X11 uses a custom DISPLAY environmental variable to trigger <em>launchd</em> to launch X11.app, the FAQ contains information on how to disable the <em>launchd</em> trigger and then revert to the Tigerish behavior of manually launching <em>X11.app</em> (HINT: Don&#8217;t use /Applications/Utilities/X11.app, use <em>/usr/X11/X11.app</em> instead.</li>
<li>Information on installing Tiger&#8217;s X11 on Leopard. Apparently, it can be done without clobbering Leopard&#8217;s X11 install.</li>
</ul>
<p>Really, very useful, even if you don&#8217;t mind the new X11, since it illuminates a bit about how this X11 has bee changed. Oh, and it looks like <a href="http://trac.macosforge.org/projects/xquartz/wiki/Releases">future X11 updates will be made available at a new MacForge website</a>. I hope a nicer set of packages for X11 is available soon, the only big irritation has been my X11 windows slipping under the menubar!</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/12/01/x11-issues-under-leopard-some-additional-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Leopard Issues for the Astronomer (a.k.a. I&#8217;m not sure X11 is better)</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/11/25/leopard-issues-for-the-astronomer-aka-im-not-sure-x11-is-better/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/11/25/leopard-issues-for-the-astronomer-aka-im-not-sure-x11-is-better/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 23:19:08 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/11/26/leopard-issues-for-the-astronomer-aka-im-not-sure-x11-is-better/</guid>
		<description><![CDATA[So this weekend I decided to take advantage of the long weekend and between bites of turkey with the family, I decided to upgrade my laptop to Leopard (MacOS 10.5). I had been reading about the various issues with Leopard before the upgrade, so among the things I did in anticipation of Leopard was

I uninstalled [...]]]></description>
			<content:encoded><![CDATA[<p>So this weekend I decided to take advantage of the long weekend and between bites of turkey with the family, I decided to upgrade my laptop to Leopard (MacOS 10.5). I had been reading about the various issues with Leopard before the upgrade, so among the things I did in anticipation of Leopard was
<ul>
<li>I <a href="http://arstechnica.com/journals/apple.ars/2007/10/29/unsanity-warns-customers-to-update-ape-before-upgrading-to-leopard">uninstalled</a> Unsanity&#8217;s Application Enhancer.</li>
<li>I removed X11.app from my automatic launch items in the Accounts Preferences Pane Login Items. X11 is extensively refreshed under MacOS 10.5, <a href="http://lists.apple.com/archives/x11-users/2007/Oct/msg00065.html">so you don&#8217;t want to autolaunch X11.app any more.</a></li>
<li>I upgraded Cisco&#8217;s VPN software to the latest version distributed by my campus (you want Cisco VPN Client 4.9.01 (0090)).</li>
<li>I did a quick search of the various applications I run and looked for &#8220;Leopard&#8221; upgrades via <a href="http://www.macupdate.com/">MacUpdate</a>.</li>
<li>Finally, I researched the incompatibility of <a href="http://www.macworld.com/news/2007/10/26/adobelopard/index.php">Adobe Acrobat with MacOS X 10.5</a>. I discovered that while the AdobePDF printer driver broken under the new OS, you can use Apple&#8217;s built in PDF capability (specifically &#8220;Save as PDF-X&#8221;) capability to create the PDF, which can then import and edit just fine in Acrobat.</li>
</ul>
<p>Having done all that, I decided to bite the bullet and install the upgrade. First thing I did was back up the entire internal drive to an external drive (which I had formatted with Disk Utility to make sure it was capable of booting an Intel Mac) using <a href="http://www.bombich.com/software/ccc.html">Carbon Copy Cloner</a>. Once the drive was cloned, I ignored the overhyped warnings from MacFixIt.com (who I won&#8217;t link to, because they were bought out, they definitely sold out as a source of accurate help) and instead followed the Apple recommended procedure of just doing an upgrade to my previous Tiger installation. I figured if worst came to worse, I would recover from the backup drive (in my mind, the backup is the critical step, not how you choose to upgrade). So approximately 80 minutes later my laptop finished its upgrade and rebooted. Some notes on my initial issues with the new OS.
<ul>
<li>The new dock doesn&#8217;t bug me as much as some (John Siracusa does the best analysis of the <a href="http://arstechnica.com/reviews/os/mac-os-x-10-5.ars/4">problems with the new Dock</a> in his extensive <a href="http://arstechnica.com/apple/reviews/2007/10/mac-os-x-10-5.ars">ArsTechnica review of Leopard</a>), but maybe its because I thought the old dock was broken enough as a launcher that I use <a href="http://blacktree.com/?quicksilver">QuickSilver</a> instead (which works fine under Leopard).</li>
<li>Leopard finally handles virtual memory use nicely, removing old files in the <strong><span style="font-style: italic">/var/vm</span></strong> directory once the memory has been released.</li>
<li>I don&#8217;t like the translucent menubar, but <a href="http://www.macupdate.com/search.php?arch=all&amp;keywords=Leopard+Menubar&amp;os=macosx">there exist various free applications</a> to get rid of those and the changed dock.</li>
<li>The new OS nuked all my installed printers. Not a huge deal, but I have to re-install all my printers again. I kind of understand why this might of happened, but it was a pain.</li>
<li>I had to use Disk Utility to Repair Permissions before my Widgets behaved properly, but now, they actually seem to run better than before (less delay in accessing them).</li>
<li><a href="http://macsingularity.org/2007/11/09/idl-641-patch-for-leopard-compatibility/">I patched IDL to version 6.4.1, seems to work now.</a></li>
<li>I knew from Ben Bayer&#8217;s (Apple&#8217;s X11 guy) <a href="http://lists.apple.com/archives/x11-users/2007/Oct/msg00065.html">postings</a> on the matter that<br />
<blockquote>       Biggest architectural change in Leopard for X11: Switched from XFree86 codebase (based on, IIRC, X11R6.8) to X.org codebase (X11R7.2)</p></blockquote>
<blockquote><p>       Biggest user-visible change: launchd support for X11. The only situation where you should need to manually start X11.app is if you are only running remote X11 applications.</p></blockquote>
<blockquote><p>       The way that this is accomplished is by some slight-of-hand with the $DISPLAY variable — if you look, it should be something like “/tmp/ launch-vbXRyu/:0″. If an X client connects to this, it will actually connect to launchd, which will start Xquartz if needed and pass the client’s socket to the server.</p></blockquote>
<blockquote><p>       All of that should be invisible to you; the X client library (libX11.dylib) was modified to support this, and all X11 applications link against this library. “DISPLAY=:0″ would still work if X11.app is already running, but it will not trigger X11 to launch.</p></blockquote>
<p>So in other words, we are not supposed to set the shell environmental variable <strong>DISPLAY</strong> to &#8220;:0&#8243;. Well, I removed all the times I set it from .tcshrc, .bashrc, .login, etc and it still remained stubbornly set until I remembered trying to get Carbon Emacs working a few months back required my setting environmental variables to my entire session using the <span style="font-style: italic"><strong>~/.MacOSX/environment.plist</strong></span> file. I opened it, removed the <strong>DISPLAY</strong> variable from the list of those set for the entire session, and viola. Almost everything worked as advertised except:</li>
<li>     <a href="http://hea-www.harvard.edu/RD/ds9/beta.html">SAOImage DS9</a> refused to launch because of the non-standard DISPLAY variable. I initially hacked around this by launching an xgterm (from IRAF) and setting the DISPLAY variable in it to &#8220;:0&#8243; then launching ds9 within that xgterm session. I did this all in one line via: <pre>xgterm -geometry 80x45+40+30 -sb -e &#039;setenv DISPLAY :0; ds9 -fifo ~/iraf/dev/imt1 -geometry 800x800+600+30 &amp;amp;&#039;</pre>where I was connecting to my IRAF pipes (thus the &#8216;fifo&#8217; command line entry). However, I emailed the SAOImage DS9 folks on Thanksgiving and they replied same day to tell me about the new <a href="http://hea-www.harvard.edu/RD/ds9/beta.html">ds9 darwin 5.1beta</a>. That fixed the launch issues with ds9. Apparently getting the Aqua version updated is a bit trickier, so its not done yet.</li>
<li>I had to uninstall the MacPorts version of <a href="http://www.clearskyinstitute.com/xephem/">xephem</a>, but installing it manually from the source worked just fine.</li>
<li>I installed the unofficial updates to X11 from Xdarwin (see <a href="http://macsingularity.org/2007/11/07/some-unofficial-improvements-to-x11-on-leopard/">MacSingularity for some notes</a>). The biggest issues this fixes are (1) the focusing problem of X11 windows behind Aqua windows not always being &#8220;focusable&#8221; and a (b) bug in X11 that caused several programs using the Gimp Toolkit (aka gtk) to crash. <span style="font-weight: bold">NOTE: These updates have been superceeded by those on the <a href="http://trac.macosforge.org/projects/xquartz/wiki/Releases">MacForce XQuartz updates site</a>.</span></li>
</ul>
<p>All in all, I like the new upgrade, the most useful feature for me being the <a href="http://www.apple.com/macosx/features/quicklook.html">QuickLook</a> interface and the just generally better networking behavior. I also think there has been a lot of thought put into nips and tucks (such as where the Firewall controls are now, in the &#8220;security&#8221; prefpane instead of &#8220;sharing&#8221;). More reports from the field as my usage of <a href="http://www.iraf.net/">IRAF</a> and ds9 under Leopard continues.</p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/11/25/leopard-issues-for-the-astronomer-aka-im-not-sure-x11-is-better/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Scisoft OSX 2007.11.1 Released</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/11/01/scisoft-osx-2007111-released/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/11/01/scisoft-osx-2007111-released/#comments</comments>
		<pubDate>Thu, 01 Nov 2007 12:28:56 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[SciSoft OSX]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/11/01/scisoft-osx-2007111-released/</guid>
		<description><![CDATA[Wow, Nor Pirzkal and Francesco Pierfederici have kept quite busy making small updates to Scisoft OSX for Intel. They released another new version today (available for download here). Here’s the entire description of the changes in this version of Scisoft OSX from the release notes:
This version updated Python to version 2.5.1 and correct some minor [...]]]></description>
			<content:encoded><![CDATA[Wow, Nor Pirzkal and Francesco Pierfederici have kept quite busy making small updates to <a href="http://web.mac.com/npirzkal/Scisoft/News/Entries/2007/11/1_Scisoft_2007.11.1_Released.html">Scisoft OSX for Intel.</a> They released another new version today (available for <a href="http://www.versiontracker.com/dyn/moreinfo/macosx/20126">download here</a>). Here’s the entire description of the changes in this version of Scisoft OSX from the release notes:
<blockquote>This version updated Python to version 2.5.1 and correct some minor issue with the bash version of the irafuser.bash script when running under OSX 10.5 Leopard. Missing GCC runtime fortran libraries are also now included.

This version was test under OSX 10.5 and seems to run fine. Note that 10.5 does deal with X11 applications slightly differently. Once the Setup.bash script has been source[d], you should add the following line to your <em>.bash_profile</em>:

<code>export DISPLAY=127.0.0.1:0.0</code>

This will enable all Scisoft X11 applications to start from Terminal.app</blockquote>
I am not running Leopard (and probably will not switch until the winter break, when I have time to deal with all the X11 issues it creates), so I can’t confirm the ability to run under Leopard, but its great to know they are keeping SciSoft OS X up to date.<br /><br />

<strong>Issues with this Release of Scisoft OSX</strong>
<ul>
	<li>I did notice this new version of Scisoft OSX doesn’t appear to link its IRAF install with the rvsao IRAF package (used for radial velocity computations). Doesn’t matter to me to much since I compiled the newer version and linked to it, but it is funny they include the <a href="http://tdc-www.harvard.edu/iraf/rvsao/">rvsao</a> package at <em>/scisoft/all/packages/iraf/extern/rvsao</em> but don’t link to it in the <em>$hlib/extern.pkg</em> file, which I do believe they did in the older versions.</li>
	<li>I may not have noticed this earlier, but in the libraries directory <em>/scisoft/i386/lib</em>, some of the symbolic links are broken. Specifically:
<ul>
	<li>All the items in this directory linking to the OpenMotif library items are not linked, it appears <em>/scisoft/i386/Packages/OpenMotif-2.3.0/lib</em> doesn’t exist. However, <em>/scisoft/i386/Packages/OpenMotif-2.3.0/lib.org</em> does. So I symbolically linked lib to lib.org via:<pre><code>cd /scisoft/i386/Packages/OpenMotif-2.3.0/
ln -s lib.org/ lib</code></pre>

And now all the links to the OpenMotif libraries within <em>/scisoft/i386/lib</em> work.</li>
	<li>The <a href="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html">CFITSIO</a> library is mis-linked to an older version which no longer is installed. So I needed to:<pre><code>cd /scisoft/i386/lib/
rm libcfitsio.a
ln -s ../Packages/cfitsio-3.040/lib/libcfitsio.a libcfitsio.a</code></pre>

and the <a href="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html">CFITSIO</a> library was properly linked again.</li>
	<li>libpng.so was apparently not compiled within /scisoft/i386/Packages/libpng-1.2.10/lib, so there is no quick fix for that broken link.</li>
	<li>I removed a link to python2.4 in <em>/scisoft/i386/lib</em> and replaced it with a link to python 2.5:<pre><code>cd /scisoft/i386/lib/
rm python2.4
ln -s ../Packages/pygtk-2.8.6/lib/python2.5/ python2.5</code></pre></li>
</ul>
</li>
	<li>All the <a href="http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html">CFITSIO</a> headers in <em>/scisoft/i386/include/</em> are linking to an older version (3.006) instead of the current installed version (3.040). Fixed via:<code></code></li>
	<li>There are symbolic links in the <em>/scisoft/i386/bin</em> directory to a variety of executables from the <a href="http://www.astro.princeton.edu/~rhl/sm/sm.html">sm</a> plotting package which doesn’t appear to have been installed as part of the Scisoft OSX distribution.</li>
	<li>Not really a bug, but the version of <a href="http://hea-www.harvard.edu/RD/ds9/">SAOImage DS9</a> is version 4.1.3 and not the current version 5.0.0. Of course, given the long history of dangerous version X.0.0 software, this maybe safer that way.</li>
</ul>]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/11/01/scisoft-osx-2007111-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SAOImage ds9 version 5.0 released</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/10/16/ds9-version-50/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/10/16/ds9-version-50/#comments</comments>
		<pubDate>Tue, 16 Oct 2007 12:13:30 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[IRAF]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[SciSoft OSX]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/10/16/ds9-version-50/</guid>
		<description><![CDATA[On October 15, the folks behind SAOImage released SAOImage DS9 version 5.0. The big change I noticed is they now have a completely MacOS X native (read &#8220;Aqua&#8221;) version of ds9 (but only if you use the application package version of ds9, the command line versions remain X11)!  I downloaded the following three versions:

	MacOSX [...]]]></description>
			<content:encoded><![CDATA[On October 15, the folks behind SAOImage released <a href="http://hea-www.harvard.edu/RD/ds9/">SAOImage DS9 version 5.0</a>. The big change I noticed is they now have a completely MacOS X native (read &#8220;Aqua&#8221;) version of ds9 (but only if you use the application package version of ds9, the command line versions remain X11)!  I downloaded the following three versions:
<ul>
	<li><a href="http://hea-www.harvard.edu/saord/ds9/">MacOSX 10.4.x (Universal)</a></li>
	<li><a href="http://hea-www.harvard.edu/saord/ds9/">Darwin PPC 10.4.x</a></li>
	<li><a href="http://hea-www.harvard.edu/saord/ds9/">Darwin Intel</a></li>
</ul>
The <a href="http://hea-www.harvard.edu/RD/ds9/new.html">new features lists page</a> tells us that this release includes:
<ul>
	<li><strong>MacOSX Aqua Support: </strong>DS9 has been ported to MacOSX Aqua and is an universal application which no longer requires X11.</li>
	<li><strong>Compressed FITS Support: </strong>DS9 supports compressed FITS images using RICE compression.</li>
	<li><strong>Mask Support: </strong>DS9 supports overlay masks. A mask is defined as a valid FITS image, in which a non zero value indicates that the selected mask color is to be displayed instead of the data value color.</li>
	<li><strong>SkyView Support: </strong>DS9 provides support for HEASARC&#8217;s image cutout service, SkyView. This site provides image cutout service for a number of image surveys, including SDSS.</li>
	<li><strong>Multi-Language Support: </strong>DS9 provides multi-language support. By default, the language used for menus and dialog boxes is based on the value of the operating system locale variable. The user may override the default value by selecting the desired language in the preferences or by the -language command line option.</li>
	<li><strong>Preferences: </strong>Preferences are automatically saved when a user changes an option. Selecting the saving preferences menu item is no longer needed.</li>
</ul>
More detailed release notes <a href="http://hea-www.harvard.edu/RD/ds9/release/r5.0.html">are available here</a>.

I was able to get this version of ds9 integrated with SciSoft OSX by doing the following:
<ol>
	<li>Decompress the command line version of  ds9 via the terminal using<em> </em><em>tar xzvf ds9.darwinppc.5.0.tar.gz</em>    (PPC version) or <em>tar xzvf ds9.darwinintel.5.0.tar.gz </em> (Intel version).  When the decompression is done, all you have is an executable called <em>ds9</em>.</li>
	<li>Next, from the terminal, go to the <em>/scisoft/bin</em> directory (on PPC) or <em>/scisoft/i386/bin/ </em>directory (on Intel) and rename the old <em>ds9</em> executable to something like <em>ds9_old</em> (using something like<em> mv ds9 ds9_old</em>).</li>
	<li>Copy your newly decompressed <em>ds9</em> executable into the SciSoft OSX binary directory.  I should note the command line version of <em>ds9 </em>still requires X11.</li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/10/16/ds9-version-50/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HINT: Resolving xgterm problems calling ecl scripts</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/08/09/hint-resolving-xgterm-problems-outside-of-iraf/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/08/09/hint-resolving-xgterm-problems-outside-of-iraf/#comments</comments>
		<pubDate>Thu, 09 Aug 2007 11:35:23 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Hectospec]]></category>
		<category><![CDATA[IRAF]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/08/09/hint-resolving-xgterm-problems-outside-of-iraf/</guid>
		<description><![CDATA[I am posting here an annotated version of one of my headaches for the last few days, which has been a persistent xgterm crash. I have been working on getting the Hectospec reduction scripts known as specroad running on my Macintosh (something I will fully document and provide binaries for when I am done). Having [...]]]></description>
			<content:encoded><![CDATA[<p>I am posting here an annotated version of one of my headaches for the last few days, which has been a persistent <em>xgterm</em> crash. I have been working on getting the <a href="http://www.cfa.harvard.edu/mmti/hectospec.html">Hectospec</a> reduction scripts known as <a href="http://tdc-www.harvard.edu/instruments/hectospec/specroad.html"><em>specroad</em></a> running on my Macintosh (something I will fully document and provide binaries for when I am done). Having never done spectroscopy before, it seemed like a safer bet to learn by working my way through their scripts than trying to invent this as I go. Some magic done by the <a href="http://tdc-www.harvard.edu/instruments/hectospec/specroad.html"><em>specroad</em></a> scripts comes from the fact that they call IRAF routines in the form of <em>ecl</em> scripts, allowing two or more separate simultaneous IRAF processes. On a multi-processor system like mine, this parallelization can help cut down on the running time. More specifically, the <a href="http://tdc-www.harvard.edu/instruments/hectospec/specroad.html"><em>specroad</em></a> package contains a script called &#8216;<em>callhectospec</em>&#8216;. This script calls <em>ecl</em>, the enhanced IRAF command line environment, and then sets up the environment by loading the hectospec package in IRAF. It then issues the IRAF command you requested. I was having a problem running the command:<br />
<pre><pre>
xterm -e callhectospec hcal comp.ms
</pre></pre>to calibrate the pixel to wavelength mapping because it would bring up a Tektronix window (via xterm&#8217;s Tektronix emulation), but I wasn&#8217;t able to type out the proper commands within that window. I suspected that I was triggering some sort of internal Tektronix commands, and so I tried switching the call spawn an <em>xterm</em> witha call to X11IRAF&#8217;s <em>xgterm</em>. <em>xgterm</em> is a <em>xterm</em> clone that offers more advanced plotting capabilities and interactions. The <em>callhectospec</em> script immediately crashed with the following error:<br />
<pre><pre>
 Error in message to server, line 6: send: could not find object gterm
&nbsp;&nbsp;&nbsp;&nbsp;while executing
&quot;send gterm setGterm&quot;
xgterm Xt error: Shell widget gterm-iraf has zero width and/or height
</pre></pre>I spent a few hours searching for solutions in Google. All the previous instances of this error seemed related to running old versions of X11. This didn&#8217;t match my situation. I tried upgrading xgterm to the current version, which didn&#8217;t change things. It was a bit irritating because I knew IRAF worked with xgterm just fine. Clearly I was triggering this error message for a reason that didn&#8217;t match the previous cases. I finally relented and posted about my problem on <a href="http://iraf.net">IRAF.net</a>&#8217;s forums. Thankfully, <a href="http://iraf.net/phpBB2/viewtopic.php?p=137967">the solution</a>, pointed out by Fitz, was simple, the <em>callhectospec</em> script was setting up the IRAF environment for <em>xterm</em>, not <em>xgterm</em>. All I needed to do was edit <em>callhectospec</em> to replace<br />
<pre><pre>
else if (envget(&quot;TERM&quot;) == &quot;xterm&quot;) {
 stty xterm
}
</pre></pre>with<br />
<pre><pre>
else if (envget(&quot;TERM&quot;) == &quot;xterm&quot;) {
&nbsp;&nbsp;stty xgterm
}
</pre></pre>My IRAF <em>login.cl</em> script does exactly this, which is why it worked when I entered <em>ecl</em> by hand. Once that was fixed, everything worked like a dream.</p>
<p><span id="more-22"></span></p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/08/09/hint-resolving-xgterm-problems-outside-of-iraf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Annoyance: Xterm Tektronix emulation broken on MacOS</title>
		<link>http://iparrizar.mnstate.edu/~juan/urania/2007/07/19/xterm-tektronix-emulation-broken-on-macos/</link>
		<comments>http://iparrizar.mnstate.edu/~juan/urania/2007/07/19/xterm-tektronix-emulation-broken-on-macos/#comments</comments>
		<pubDate>Thu, 19 Jul 2007 17:55:22 +0000</pubDate>
		<dc:creator>Juan</dc:creator>
				<category><![CDATA[Astronomical Software]]></category>
		<category><![CDATA[MacOS X]]></category>
		<category><![CDATA[MacOS X Annoyances]]></category>
		<category><![CDATA[MacPorts]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://iparrizar.mnstate.edu/~juan/urania/2007/07/19/xterm-tektronix-emulation-broken-on-macos/</guid>
		<description><![CDATA[Another piece of a fundamental unix installation that is broken in MacOS X Tiger is xterm.  Specifically, the Tektronix 4014 emulation in xterm on the macintosh generations 'empty boxes' instead of actual characters for text.
]]></description>
			<content:encoded><![CDATA[<p>Another piece of a fundamental *nix installation that is broken in MacOS X Tiger is <span style="font-family: monospace; font-size: 9pt">xterm</span>.  Specifically, the Tektronix 4014 emulation in <span style="font-family: monospace; font-size: 9pt">xterm</span> on the Mac generates &#8216;empty boxes&#8217; instead of actual characters for text as shown below:</p>
<p><a href="http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/2007/07/xterm-badfont.jpg" onclick="window.open('http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/2007/07/xterm-badfont.jpg','popup','width=754,height=591,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/2007/07/xterm-badfont-tm.jpg" alt="Xterm Broken Display" title="Xterm Broken Display" longdesc="Tektronix emulation is broken on default xterm on MacOS X Tiger" border="1" height="313" hspace="4" vspace="4" width="400" /></a></p>
<p>I found that this problem had been reported on Apple&#8217;s X11-users mailing list <a href="http://lists.apple.com/archives/x11-users/2005/Aug/msg00063.html">here</a>, but no solution had been determined.  I spent a bit of time looking for &#8220;missing&#8221; fonts as suggested in the posting, then decided this had to be a problem with the <span style="font-family: monospace; font-size: 9pt">xterm</span> executable and tried my previous solution of installing the program from MacPorts via<br />
<pre>sudo port install xterm</pre><br />
Since that doesn&#8217;t over-ride the default xterm, I then over-rode the default installed <span style="font-family: monospace; font-size: 9pt">xterm</span> using<br />
<pre><pre>sudo mv /usr/X11R6/bin/xterm /usr/X11R6/bin/xterm.disabled
sudo ln -s /opt/local/bin/xterm /usr/X11R6/bin/xterm</pre></pre><br />
Now Tektronix emulation works and I get a screen like the one below:</p>
<p><a href="http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/2007/07/xterm-fixed.jpg" onclick="window.open('http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/2007/07/xterm-fixed.jpg','popup','width=754,height=591,scrollbars=no,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=yes,left=0,top=0');return false"><img src="http://iparrizar.mnstate.edu/~juan/urania/wp-content/media/2007/07/xterm-fixed-tm.jpg" alt="Fixed Tektronix display on xterm" title="Fixed Tektronix display on xterm" border="1" height="313" hspace="4" vspace="4" width="400" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://iparrizar.mnstate.edu/~juan/urania/2007/07/19/xterm-tektronix-emulation-broken-on-macos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
