An Appetite for Discovery

Looking at the skies for stars and aliens can both be done on Linux systems.

Ah, it is a beautiful night, non? Welcome, mes amis. Sit down and François will get you a glass of wine. I must tell you, mes amis, that this month's special issue on Science and Engineering has your chef feeling rather pensive this evening.

Some say that science has become rather dry lately. I find this idea difficult to understand as we stand on the threshold of unraveling the human genetic code, as new extra-solar planets are discovered on an almost daily basis, as human spacecraft orbit distant asteroids or gather cometary dust. If science has become boring, then I would suggest it is the presentation of science that has become dry. It's time to put some excitement back into the study of life, the universe and everything else for that matter. You are running Linux on your computer, non? Then it is time for you, mes amis, to join the search for knowledge.

Linux's scalable nature and multi-user UNIX roots make it an ideal platform for scientific work. Now everyone can have a workstation for data collection and analysis, mathematical and statistical modeling, and magnifique visualizations and simulations. Even better, Linux's open source means that scientists and engineers don't have to wait for some company to create the tools they need. Add to that Linux's network-ready and network friendly design, and you have the best environment not only for research, but for collaboration with your peers. Scientists have been using UNIX machines for years precisely for these reasons. With Linux, things have gotten even better. When the going gets tough and more horsepower is needed than can be generated by a single machine, Linux is still the answer with low-cost Beowulf clusters.

No longer do we, the general public, have to watch science take place in the shadowy temples of distant laboratories. With the power of Linux, everyone can be a participant. Proof of Linux's prowess in the scientific world is as easy to find as a trip to the SAL web site (Scientific Applications on Linux) at

For instance, you could start a collection of meteorological data for your area. Using a program like Kweather, you can monitor daily weather events in your area such as temperature highs and lows or precipitation. Kweather lets you graph the results so you can track patterns over time. Are we truly experiencing a warming trend? Memory is fragile, as I am often reminded when I comment on the 14-foot-high snowbanks of my childhood. With Kweather and disciplined observation, you can know for sure. For your copy of Kweather, pay a visit to J<\#252>rgen Hochwald's web site at

But why, mes amis, would we want to concern ourselves merely with the world around us when an infinite number of other worlds seek to capture our curious imaginations, yet another click of the mouse away? Besides being an aficionado of wine, good food and heavenly sauces, your humble chef is also an amateur astronomer. Ah, the mysteries of the universe! François! More wine, please.

And so, the next item on our menu comes to us courtesy of Aaron Worley, who brings us Hitchhiker 2000 (HH2000). This wonderful program is a solar system simulator, a digital orrery (Marcel's Collins defines it as a “mechanical model of the solar system in which the planets can be moved at the correct relative velocities around the sun”). Aaron calls his site “The Hitchhiker's Guide to the Solar System”.

HH2000 is educational, surely; but mostly, the program is just plain fun. The idea is that you have a camera mounted on your celestial body of choice, any planet or any moon in the solar system. You can choose comets and asteroids as well. HH2000 comes with a healthy database of objects and the means to add more by way of .CSV-format files (comma-separated values). The effects are great, too. Depending on your angle of view, which you can change by dragging your mouse around the view screen, you'll notice the planets' night side is realistically in shadow. Using the center mouse button (with my two-button mouse, the right button did the job), you can zoom in or out by dragging the mouse pointer up or down. With a single click, you can flip the viewing from local orbit to deep space to an orbital view.

This eye on the sky uses OpenGL or Mesa libraries (I used Mesa) for 3-D effects, both of which can be a little resource-hungry at times. For maximum effect, you might want something punchier than my 150MHz Pentium notebook. Still, even under this environment, I found Hitchhiker to be plenty acceptable, which brings us to requirements. HH2000 is built on GNOME libraries, so you'll either need to be running GNOME or have the libraries loaded. If you are like François and me, you probably have both desktop environments loaded already. Before you can start exploring, you will likely need one other piece of software (aside from OpenGL or Mesa). Download the gtkglarea libraries as well, and compile them. You will find links to all these pieces on the Hitchhiker 2000 web site (see Resources). Finally, pick up the HH2000 code. Binaries for glibc2.0 systems are available, as is source code. With my Red Hat 6.2 system, I compiled the program from source. The steps are simple:

tar -xvfz hh2000-0.3-0.tar.gz
cd hh2000-0.3-0
make install

Running the program is done by typing hh2000. Now, sit back and enjoy the ride. Careful on that gas pedal.

For the truly serious astronomer, Elwood Downey brings us our next item, and what a masterpiece this is. XEphem is a star-charting package that pretty much does it all. You start by identifying your location (in my case, Toronto, Ontario) and clicking “Update”. XEphem loads the appropriate latitude and longitude information for your chosen city. If you need to be more accurate than “next door is okay”, it is possible to enter that information manually as well. Want to see what portion of the moon will be visible April 30, 2007? You can change the date through the calendar interface, click “Update” once again, then select “View” and “Moon”. The major planets are available at a click, as is a solar system view, which can be animated and its angle of viewing changed.

Every program like XEphem needs a star chart. For many amateur astronomers like myself, the planets are there as a warmup to the real meat of observing, namely the stars and deep sky objects. XEphem comes through with a fantastic star chart that allows you to define many viewing options. For instance, you can activate constellation lines, labels, define the types of objects you would like to see (galaxies, open clusters, double stars, etc.) or the minimum display brightness for these objects. XEphem also lets you center in on an object and zoom in with a simple slide control.

Exploring with XEphem is almost too much fun (as your humble chef discovered while trying to finish this article). Mais, qu'est-ce que c'est? That open cluster just below Cepheus looks interesting. Would you like to see what it looks like through a very powerful telescope? Center the object, click on “View Image” and let the Space Telescope Science Institute and the Hubble Space Telescope give you a close-up! Quite honestly, mes amis, the features are just too numerous to mention. Here's another bonus. Next time your friends who run that other operating system tell you about all the great software you can't run on Linux, show them XEphem. Then watch their faces when you tell them they can't have it for the other OS.

Figure 1. M31—A XEphem Celestial Close-up

XEphem is a commercial product, but it is also available as a free download. I will tell you that the download version is still fairly spectacular. The CD-ROM (commercial version), however, comes with much more, including the full Hubble Guide Star Catalog (not included in the download), a huge number of additional deep sky objects, a full printed manual, and pre-built binaries for various platforms. While you can connect to the Internet when you want additional information such as a close-up (as in the previous paragraph), you may find it well worth the price.

If you want to build XEphem yourself, you will also need either Motif or the freeware LessTif from the Hungry Programmers (do they know Chez Marcel is open, I wonder?). It is available at for download. Building LessTif is a matter of downloading lesstif-current.tar.gz from the web site and following these now-familiar steps:

tar -xvfz lesstif-current.tar.gz
cd lesstif-current
make install

Next, you need to download your copy of XEphem. At the time of this writing, the latest version was xephem-3.2.3.tar.gz. Building XEphem is a little different than the usual “configure” and “make”. Here are the steps:

tar -xzvf xephem-3.2.3.tar.gz
cd xephem-3.2.3/libastro
cd ../GUI/xephem
make install


Geek Guide
The DevOps Toolbox

Tools and Technologies for Scale and Reliability
by Linux Journal Editor Bill Childers

Get your free copy today

Sponsored by IBM

Upcoming Webinar
8 Signs You're Beyond Cron

Scheduling Crontabs With an Enterprise Scheduler
11am CDT, April 29th
Moderated by Linux Journal Contributor Mike Diehl

Sign up now

Sponsored by Skybot