Okay, I might be wrong about whpthomas's gpx not having install. If you've run
it, you should have a /usr/local/bin/gpx. I suggest removing it and just using
the Debian package (the one that comes in via apt-get).
The basic usage of gpx looks like: "gpx blah.gcode", and it should spit out
blah.x3g. For more options, look at the manpage (man gpx) or the help message
(gpx --help).