FgFuse: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
No edit summary
m (Bolding the article title in first section; Copyediting; Some rephrasing)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Image:Fgfuse.jpg|thumb|300px|A screenshot of a running FlightGear and nautilus browsing the prop radix]]
[[File:Fgfuse.jpg|thumb|300px|A screenshot of a running FlightGear and nautilus browsing the prop radix]]


FgFuse is a fuse filesystem for linux that lets you browse, read and write the properties of FligthGear from a mount point.
'''FgFuse''' is a fuse file system for Linux that lets you browse, read and write the properties of FlightGear from a mount point.
Communication between FgFuse and FlightGear is done via a socket connection.


It is written in python and needs the '''python-fuse''' package installed.
Communication between FgFuse and [[FlightGear]] is done via a socket connection.


=Downlaod=
{{note|FgFuse is written in Python and needs the '''python-fuse''' package installed.}}
You can downlaod the script from [http://brisa.homelinux.net/fgfs/fgFuse.py here]
 
== Download ==
You can download the script from [http://brisa.homelinux.net/fgfs/fgFuse.py here]
 
== Usage ==
First of all you need to launch FlightGear with the <code>--telnet</code> option:
 
fgfs --telnet=10000
 
where <code>10000</code> is the telnet port to listen to. After launching FlightGear, launch FgFuse for example like this:
 
python fgFuse.py 127.0.0.1 10000 /tmp/fg/


=Usage=
First of all you need to launch FlightGear with the --telnet option. i.e.
<pre>
fgfs --telnet=10000
</pre>
where 10000 is the telnet port to listen to. After launched flightgear, launch fgfuse like this example:
<pre>
python fgFuse.py 127.0.0.1 10000 /tmp/fg/
</pre>
where
where
* 127.0.0.1 is the address of the pc running FlightGear
* <code>127.0.0.1</code> is the address of the PC running FlightGear
* 10000 is the telent port which FlightGear session is listening to.
* <code>10000</code> is the telnet port which FlightGear session is listening to
* /tmp/fg/ is the empty directory that will be mounted
* <code>/tmp/fg/</code> is the empty directory that will be mounted
 
When finished unmount the folder with this command:
 
fusermount -u /tmp/fg/
 
== Troubleshooting ==
* The script needs to connect to FlightGear via telnet.  If you launch the script too soon, it could be possible that FlightGear has not opened the socket yet.
* The script is at an early development stage, so expect errors to occur.


when finished unmount the folder with this command:
[[Category:Software]]
<pre>
fusermount -u /tmp/fg/
</pre>

Latest revision as of 11:38, 14 July 2015

A screenshot of a running FlightGear and nautilus browsing the prop radix

FgFuse is a fuse file system for Linux that lets you browse, read and write the properties of FlightGear from a mount point.

Communication between FgFuse and FlightGear is done via a socket connection.

Note  FgFuse is written in Python and needs the python-fuse package installed.

Download

You can download the script from here

Usage

First of all you need to launch FlightGear with the --telnet option:

fgfs --telnet=10000

where 10000 is the telnet port to listen to. After launching FlightGear, launch FgFuse for example like this:

python fgFuse.py 127.0.0.1 10000 /tmp/fg/

where

  • 127.0.0.1 is the address of the PC running FlightGear
  • 10000 is the telnet port which FlightGear session is listening to
  • /tmp/fg/ is the empty directory that will be mounted

When finished unmount the folder with this command:

fusermount -u /tmp/fg/

Troubleshooting

  • The script needs to connect to FlightGear via telnet. If you launch the script too soon, it could be possible that FlightGear has not opened the socket yet.
  • The script is at an early development stage, so expect errors to occur.