The Mac Observer

Skip navigational links

Featured Article: Podcast - Mac Geek Gab #178: Batch Permission Changes, Encrypting Follow-up, Re-Enabling AirPort, and GigE speeds

Unix To OS X - Take To The Sky In Mac OS X With FlightGear Flight Sim

by , 11:00 AM EDT, May 28th, 2003

The view from 3,000 feet is breathtaking; huge white clouds like islands of Cool Whip are so substantial they look as if I could take a stroll on them. Below, the Earth is a patchwork of greens, browns, and yellows crisscrossed by thin black ribbons. I could stay up here all day.

If only this damned plane would let me! This aircraft seems to have a mind of its own. It is always veering to the left, seeming to want to crash as it edges towards the ground whenever I bank a turn. If anyone else were with me, they'd be depositing the contents of their stomachs into a barf-bag, but it's not my fault. Not all my fault anyway.

I mean, it's tough to pilot a plane using a keyboard instead of a joystick.

I Believe I Can Fly

When many of us were kids, we dreamed of being pilots. One of the attractions of early personal computing was the use of what would now be considered crude flight simulation programs. Macs have always had several flight sims available. In OS X, one of the best flight sims is X-Plane, which has been used to train test pilots on new aircraft. X-Plane is still in beta, with a release pending. It will cost US$99, cheap considering what you get. You should go to the site and check out some of the photos of the experimental aircraft that have been modeled and pre-flown with X-Plane. Impressive.

If you are the adventurous type, are low of funds, and have some time on your hands, there is another flight sim available to you, but you'll have to work at it to get it running.

Ready for takeoff.
(Click the thumbnail for the full-sized image)

FlightGear is an open-source flight sim designed to run on multiple platforms. There's a version for Windows, Linux, UNIX, OS 9, and OS X. Like many open-source applications, FlightGear requires that you not be afraid of the command line to get it installed and running. Also, while there is joystick support, you will still have to fiddle with configuration files to get your stick to work properly.

The instructions for installing FlightGear in OS X are generally useful, but those not used to poking around will throw up their hands in frustration because the instruction are not very clear in some areas, and nonexistent in others. Even so, there is lots of documentation, as well as a basic tutorial. For the more experienced, there's a flying tutorial that, once FlightGear is installed and running, should have you dancing in the clouds in no time.

Since getting FlightGear installed can be a bit daunting, I decided to include installation instructions with this piece. I suggest that you follow these instructions rather than the ones you find with the documentation. I am also assuming that you have some command line experience, but is not entirely necessary; just type in the commands where I tell you, and you should be OK.

As with most flight sims, the hardware you run it on will determine how smooth the sim runs. On a G4 450MHZ Cube with 512MB of RAM FlightGear ran smoothly when there was nothing else running. We suspect that FlightGear will run well on any Mac purchased within the last two years, as long as you have enough RAM.

Wing And A Prayer

The horizon lurched upward as the number on the altimeter was decrementing faster than a shuttle launch countdown. I overcompensated, causing the horizon and sky to swap places several times. Anyone standing on the virtual ground may have believed I was a stunt pilot, up until the instant I buried my Cessna in a corn field.

Rough landing ahead
(Click the thumbnail for the full-sized image)

I think it's time to figure out how to configure the joysticks.

Installation Instruction for FlightGear

If you follow these instruction exactly, you should be able to get FlightGear up and running in a few minutes.
  1. Download: Go to the Download page at the FlightGear Web site, find the Macintosh OS X (10.2) Binaries, and click on the links for 'the latest version here' and 'base package'. The base package is a 31 MB download. Note the comment about how to run FlightGear from the command line. It is almost correct. If you type it in as-is, it won't work. Don't worry, we gotcha covered.
  2. Installation: When Stuffit unpacked the base package, it should have created a FlightGear folder. You will also find a file called fgfs-0.8.0-09.24.02, which is the executable file. Move that file into your FlightGear folder and move the FlightGear folder to someplace convenient. We suggest you put it in the Applications folder. These instruction assume that you have done so.
  3. Tweaks: Open a terminal window. For those of you unfamiliar with the terminal window or command line, the goal here is to get into the FlightGear folder via the command line and change some permissions so FlightGear will run.
    • You should see a prompt in the terminal window that looks like this: vern%. Obviously where 'vern' is you should see your login name. Now you will 'cd' (change directory) to your FlightGear folder. If you did place the FlightGear folder under your /Applications folder then you can type in the following:

      cd /Applications/FlightGear
    • Now you will need to change the permissions on the fgfs file so that it will run. Type in the following:

      chmod +x fgfs-0.8.0-09.24.02
  4. Running FlightGear: OK. Now you are ready! We suggest that you make sure other applications are not running, especially if you have a slower Mac. Type in the following command and FlightGear should startup:

    ./fgfs-0.8.0-09.24.02 --fg-root=./

    If that doesn't work then try using the full path:

    ./fgfs-0.8.0-09.24.02 --fg-root=/Applications/FlightGear

There you go! Hopefully, you won't have any trouble with that. The magic that is open source is also the trouble that can be open source, at least for those not versed in the command line. That said, if you follow my instructions, you should be OK. If any command line jocks have any other advice, please leave a note in the comments below.

Vern Seward keeps a look out for those Unix apps making their way to the Mac, so you don't have to.

Observer Comments

Show: Subjects Only | Full Comments
Comment on this Article

Log in | Register | Having Problems? Reset TMO Cookies & Try Again
Username:   Password:   Log me on automatically each visit   

You are not logged in, and this post will appear as "Guest." Log in with your username and password from the TMO forums. If you do not have a username, you can register here.
Please note that guests are limited to including a maximum of two URLs per post.


Post A Comment
  Subject


  Your Comments



Please enter the word exactly as you see it in the image above. Registered users aren't prompted for this. Having trouble reading the image get a new one.


Recent Headlines - Updated Saturday, November 29th, 2008

Sat., 9:00 PM
Podcast - Apple Weekly Report #135: Apple Lawsuits, Banned iPhone Ad, Green MacBook Ad
Fri., 12:45 PM
Podcast - Mac Geek Gab #178: Batch Permission Changes, Encrypting Follow-up, Re-Enabling AirPort, and GigE speeds
Thu., 1:30 PM
iPO Review - Scosche kickBACK iPhone case
7:00 AM
Happy Thanksgiving from TMO!
Wed., 6:00 PM
TMO Appearances - Nancy Gravley Joins MacJury Gift Guide
5:15 PM
TMO Visits The Bay, a Premium Apple Reseller in New Zealand
3:25 PM
iPO Oh the Games You'll Play - iPhone: The Wii of Handheld Gaming Devices?
2:15 PM
Sonnet Releases Simply Fast FireWire 800 to 400 Adapter
1:10 PM
Mac Gaming News - Disney Plans 1st Annual PotC Online Thanksgiving Event
12:05 PM
iPodObserver - UK Shuts Down iPhone 3G Ad
11:15 AM
TMO Appearances - Jeff Gamet on MacJury Gift Guide
10:30 AM
TMO Contest - TMO Announces Macworld Expo Pass Winners
9:50 AM
PhotoCopy 1.1 Adds iPhoto Event Support
9:15 AM
Acclivity Buys MYOB US
8:30 AM
Review - Bento 2 Holiday Pack
7:50 AM
Microsoft Offers Black Friday Office Discount
7:30 AM
iPO Quick Tip - iPhone: Google Street View
 

The Mac Observer Reader Specials

Apple Stock Quote

  • AAPL: $88.93. Change Today: -3.74.
  • (Prices delayed up to 20 minutes.)
  • Discuss in our Apple Finance Board

Hot Topics

Top Deals From DealsOnTheWeb