LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Howto find installation directory for FlightGear -- can't be too hard, surely? (https://www.linuxquestions.org/questions/linux-newbie-8/howto-find-installation-directory-for-flightgear-can%27t-be-too-hard-surely-910672/)

pierssnell 10-28-2011 01:12 PM

Howto find installation directory for FlightGear -- can't be too hard, surely?
 
Just installed FlightGear via Synaptic in Ubuntu 11.04.

Program seems to start up ok, takes quite a while to load scenery files and that sort of stuff, and then sits there sulking; I'm sure that's only because it's not fully installed...

FlightGear manual tells me that to complete my setup, I need to (among other things) set some environment variables, for example to point at the "data" directory where things like aircraft type and scenery are stored.

Apparently, the FlightGear/data directory, for example, is to be expected at /usr/local/share/ (or presumably some comparable location) -- in other words, wherever I chose to install it.

Trouble is, I didn't install it, Synaptic did, and I just can't find the installation. Having done "Search for files..." and ls as thoroughly as I can. Am I being really stupid? (Don't answer that!)

Hope someone can help!

The following extract from the manual would make sense to me, if only I could find the FlightGear directory!

>Before you can run FlightGear, you need to set a couple of environment variables:
>
> You must add /usr/local/share/FlightGear/lib to your LD_LIBRARY_PATH
> FG_ROOT must be set to the data directory of your FlightGear installation. >e.g. /usr/local/share/FlightGear/data.
> FG_SCENERY should be a list of scenery directories, separated by ”:”. This >works like PATH when searching for scenery.
>
> e.g. $FG_ROOT/Scenery:$FG_ROOT/WorldScenery.

fukawi1 10-28-2011 05:09 PM

Is it /usr/local/share/FlightGear/ ?

If not, try:
Code:

# updatedb && locate *FlightGear*

knudfl 10-28-2011 05:46 PM

Ubuntu 11.04, Package: flightgear
http://packages.ubuntu.com/natty/flightgear
File list http://packages.ubuntu.com/natty/i38...tgear/filelist


Data are in "Recommended packages"
1) fgfs-aircraft-base
http://packages.ubuntu.com/natty/all...-base/filelist
/usr/share/games/FlightGear/Aircraft/*

2) fgfs-models-base
http://packages.ubuntu.com/natty/all...-base/filelist
/usr/share/games/FlightGear/Models/*


And : Listing files for an installed package with 'dpkg' :
$ dpkg -L <package-name>

.

pierssnell 10-28-2011 06:32 PM

Thanks folks,

I believe I've taken a step forward; at least I can find the directory now, it is indeed in /usr/share/games

Not sure if it was there before, but it's there now. I did a "Reinstall" in Synaptic, so that part of the problem is solved. Now I need to do battle with the environment variables and command-line options, and tomorrow seems like a better idea...

Thanks again!


All times are GMT -5. The time now is 06:19 AM.