Compiled through the very scientific process of pain, suffering, Google, and friends.

Posted online for the benefit of mankind.

If you're here, it might be because you've purchased a fantastic Apple Computer and would like to start using it for astronomical purposes. Odds are your professors/TAs have made reference to the ease of doing research on these plucky machines... while they certainly are a joy to use and own, this does not mean you're hashing out the mysteries of the cosmos right out of the box! Much of this setup is simple installations (Apple has made installing most programs a snap, unlike Windows), but some of it is more hands-on.


It’s really quite simple, just do all of these things:

  1.     Xcode Tools: This is a sizable package available from your OS X DVD. These allow you to do things like compile programs, use the unix command "make", etc. It might also be available online somewhere...

  2.     X11: Personally, this is the most important thing on my Mac. However, I do know several people who have X11 installed but still use Terminal, saving X11 only for graphical purposes.

  3.   NOTE: When using SSH in X11, to securely connect (used when you need to display graphics, new windows, etc on the remote computer) call ssh -Y bob@work.computer.net, rather than SSH -X... it is also useful to turn on Port Forwarding for X11.

  4.     Carbon EMACS: This is a distribution of emacs available from Apple's open-source website. The installer is easy and the version is stable and new. The version of emacs that ships with OS X is crappy, and does not include a stand-alone window version that one might be used to from LINUX. There is many other open-source programs (GIMP, Open Office, etc) available for free in Mac-Friendly form on Apple's website:  Unix and Open-Source

  5.         Note: I have also heard good things about AQUA Emacs...

  6.      .bashrc: My Mac didn't come with a .bashrc, .cshrc, or .profile file. So I created one and X11 now looks at it! I use the .bashrc for X11, and .profile for Terminal. Here is a copy of my .bashrc file. The last part includes the commands to make the ls command in color like Linux.


  7. export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH

  8. SHELL=/bin/bash


  9. if [ "$PS1" ]; then

  10. alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs

  11. alias wget=/sw/bin/wget

  12. alias work='ssh -Y username@work.edu'

  13. alias myip='ifconfig | grep "inet " | grep -v 127.0.0.1 | cut -d\  -f2'


  14. PS1='[$LOGNAME@yourcomputersname: \W]$ '


  15. export DISPLAY=:0

  16. export CLICOLOR=1

  17. export TERM=xterm

  18. export LSCOLORS=exfxcxdxbxegedabagacad

  19. export CLICOLOR LSCOLORS


  20. . /Applications/rsi/idl_6.3/bin/idl_setup.bash 

  21. fi


  22.     .Xdefaults: This file makes things look sexy, here’s a copy of mine. It’s pretty self explanatory, and the file belongs in your home directory with your .bashrc file (above)

  23.   xterm*SaveLines:                2000

  24.   xterm*Background:               Black

  25.   xterm*Foreground:               White

  26.   xterm*borderWidth:              5

  27.   xterm*cursorColor:              White

  28.   xterm*Curses:                   True

  29.   xterm*scrollbar*thickness:      10

  30.   xterm*scrollbar*color:          red

  31.   xterm*ScrollBar:                True

  32.   xterm*scrollBar:                on

  33.   xterm*pointerColor:             white

  34.   xterm*VisualBell:               False


  35.     Fugu: A friendly, easy, 3rd party SSH client. This allows you to graphically "drag-and-drop" between other machines, much friendlier than doing it on command line. Useful if you’re not familiar with SSH & SCP

  36.     LockTight: Allows you a hot-key to put your computer to sleep. Why there still isn’t a solution for this built by Apple is totally beyond me... Super useful for me.

  37.    GCC: This is a compiler package which is needed if you’d like to code with C++, Fortran, and others. Note that you need to have XCODE Tools installed to use this

  38.    Firefox & Thunderbird: Honestly, any computer you buy should have these on it. If you don't use them, at least have them. (A web browser and email client)

  39.    IRAF: It might be old and spiteful, but it's still very useful, and there's a whole website devoted to IRAF on Mac. Aptly named: The Macintosh IRAF Web Page. Look no further, want no further. This is your IRAF home. (Includes DS9 and all that jazz. Does not include STScI packages, etc.). However, I do believe there is a version of pyraf for OS X, but I have yet to install it.

  40.    IDL: If you have a serial #, or use a networked serial number like the SDSU Astro department, you can install a working full version of IDL on your mac. The new IDL 7 installer is pretty straight forward. I don’t use any of the IDLDE stuff (graphical environment) but it looks pretty dope. I don’t like the new way the Help browser loads, I still prefer to use the online help. Downloading IDL is still free, although you need an email address & to register (as of Sept 2008), pretty painless really. NASA has hosted a great library of IDL routines that you need, period.

  41.    LaTeX: I probably don’t need to convince you to use and love LaTeX. I like the TeXShop distribution for my mac, this link has lots of info... if you’re a real stud you’ll download MacTeX


  1. Ghostview (gv) is a bit of a trick, I have a whole separate write-up for it HERE... I think it’s worth your time! It sure is an asset to me in my research.


Astronomy for OS X