I just bought a Garmin etrex vista hcx (phew!) handheld GPS unit, in order to use for geocaching.
This post aims to address how to send geocaching information to the Garmin GPS device over USB. We will use the excellent GPSBabel tool to perform this task.
Use either apt-get or synaptic to install gps-babel on your Ubuntu box.
sudo apt-get install gpsbabel
You might need to fix usb permissions on Ubuntu. After doing this, connect your garmin GPS device to your USB port. Check permissions by using the
You will need to get geocaching information by signing up at geocaching.com. Once you have signed in, you should be able to save cache information in either .loc format, or .gpx format (paid members only). Save all the loc files or gpx files you download to a directory on your desktop (recommended, not required).
Test if your gps device actually works with gpsbabel. Do this by
gpsbabel -i geo -f geocaching.loc -o garmin -F usb:
If you have a bunch of loc waypoint files to transfer, do this
for GPSFILE in *.loc;
do gpsbabel -i geo -f $GPSFILE -o garmin -F usb:;
If you have a bunch of gpx exchange files to transfer, do this
for GPSFILE in *.gpx;
do gpsbabel -i gpx -f $GPSFILE -o garmin -F usb:;