TUI is the user interface for the APO 3.5m telescope. It is written in Python (a free cross-platform language) and runs on unix, MacOS X and Windows. This document describes how to install TUI on your computer.
That's it; you are done. However, if you want to build from source then read on...
If you prefer, you may install TUI from source and even build your own double-clickable version. See Building TUI from Source On MacOS X for details.
If you have a fairly uniform set of unix machines to support (i.e. most users running the same flavor of unix), I recommend installing everything (tcl/tk, python, etc.) on a network mountable disk and have people run tui from there. This saves you the trouble of individually installing extra packages to each machine's existing installation of tcl/tk and python. It also gives you the chance of running current versions of tcl/tk and python (preinstalled versions tend to be quite out of date). This is not very difficult; the installers for tcl/tk and python are both trivial to use and include excellent documentation.
Requirements:
Installation instructions:
If you are in doubt as to which python packages you already have installed, try the following test. If any step fails, the corresponding package is not installed (or is mis-installed):
% python Python ??? # must be at least 2.4; the current 2.x release is recommended ... >>> import Tkinter >>> root = Tkinter.Tk() >>> import numpy >>> import astropy # or pyfits >>> import Image >>> import pygame.mixer >>> pygame.mixer.init()
% python Python ??? # is this the new version you just installed? If not, did you specify environment variable PATH correction? >>>import Tkinter # if this and the next step both work then Tkinter is properly installed >>>root = Tkinter.Tk() # you should see a new empty window
#!/bin/bash python path_to_runtui/runtui.py # the path depends on where you unpacked TUI
python
/usr/local/bin/python
chmod +x tui
Notes: If you get a complaint about MFC71.DLL missing, get a copy from here and install in your system directory; on American systems this defaults to: C:\Windows\System32 for Windows XP; C:\WINNT\System32 for Windows NT or 2000; C:\Windows\System for Windows 95, 98 and Me. If you need software to unpack zip files, one simple option is JustZipIt (simple, free, zips and unzips). A fancier solution is WinZip.
Notes:
You may install xpa's executables in the same directory as ds9.exe if you prefer, i.e. tell the installer to use ...\xpa\ instead of ...\ds9\. This will allow you to command ds9 via xpa from the command line. Another way to accomplish the same thing is to add xpa's directory to the system PATH.
TUI.exe
TUI
If you prefer, you may install TUI from source and even build your own double-clickable version. See Building TUI from Source On Windows for details.
TUI is kept in a git repository at github. Feel free to clone that if you want to work on the code.