Skip to main content

GPSPrune, a java applet

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. This stage relates to GPS Prune (a Java applet).

Environment & required functionality

GPS Prune (a Java applet) needs to be used on the following machines:
  • The Linux Mint Xfce 18.3 laptop "Gandalf";
  • The Windows 10 laptop "Legolas".
The synchronisation agent is Google Drive in Windows 10, and grive2 in Linux Mint.

Alternatives

There are no known alternatives to GPS Prune.

GPS Prune's primary objective is, as the website says:
Basically it's a tool to let you play with your GPS data after you get home from your trip.
This is fundamental to the process of recording walking trips.  When a GPS machine is stationery, it cannot accurately log its location, so the raw data contains ludicrous points, which contaminate the data and result in garbage.  GPS machines typically compress the GPS data in real-time, but this comes at a considerable cost: the data required to geotag photographs, for example, is the first causality of such compression.

So the only viable way to use a GPS machine is to take the raw data off the GPS machine, and then have a competent program - like GPS Prune - post-process the data and geotag any photographs.

GPS Prune is written in Java, so needs Java runtime libraries pre-installed on the host machine.

Installation experience

GPS Prune is already a data file (*.jar) in Google Drive, so no further download is required.

Gandalf's non-admin grived the jar file onto Gandalf on the first successful run of grive2.  But although Gandalf can recognise it as a jar file, it cannot yet run the file because it doesn't have the permissions to do so, i.e.

Thunar File Manager > RC > "Open with OpenJDK Java 8 Runtime" > Error (screenshot below):


The executable bit is explained here.  This is all about file permissions, for which an excellent guide about Linux is here.

There is no way of changing the file's permissions in Thunar File Manager (not in Linux Mint Xfce, anyway), so the CLI needs to do it.  The command was one of the following:

Either
chmod u+x "linux modified gpsprune_18.6.jar"
Or
chmod 700 "linux modified gpsprune_18.6.jar"

Because this file originated on Gandalf via grive, the owner is the user who grives.   In this case, it's the non-admin user who ran the CLI command.

The effect of the command was to change the settings from:
-rw------- 1 martin martin 1165767 Jan 21 10:47 linux modified gpsprune_18.6.jar

to:
-rwx------ 1 martin martin 1165767 Jan 21 10:47 linux modified gpsprune_18.6.jar

A Windows user would typically cope with downloading the software, but would not expect to have to change file permissions, even though it makes perfect sense for user to think twice about running an executable on a machine without specific anti-malware software!

User experience

After changing the file's permissions, the applet runs normally.  Linux Mint Xfce 18.3 comes pre-packed with the required Java runtime libraries.

Thunar File Manager > RC > "Open with OpenJDK Java 8 Runtime" > runs!

Although the Windows version of the applet can see related tool exiftool.exe in the same grived directory and therefore can run it, Gandalf is not yet so configured.  There are alternatives methods available to Gandalf to run exiftool.exe, either via Wine or via the installation of exiftool for Linux/Unix (source, source).  The exiftool is essential for saving photographs with metadata, so should be a different blog post.

Conclusion

GPS Prune works normally.  Success.


Completed May 2018.

Comments

Popular posts from this blog

Downgrading of the project: Calc has a fatal bug - it cannot reliably link workbooks

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. This stage relates to on-going work to make LibreOffice Calc workable. Unfortunately, it turns out that LibreOffice isn't fit for purpose.  Specifically, it cannot reliably link workbooks, even in its own native workbooks. As a consequence, the project is now downgraded.  My time is now better spent doing other, more productive things, with a greater chance of success. Background On 29Jul2018, I complied a detailed test using fresh, sample data created specifically for the purpose, in Excel on Windows 10, then had a virtual machine running LibreCalc on Linux Mint to import it. The basic spreadsheet functionality of linked workbooks failed haphazardly. I logged the test results on 29Jul2018 on AskLibreOffice  and, to date, have yet to see any evidence of anybody taking ownership of recognising the issue and thus fixing it. The s...

Networking using OpenSSH

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine.  This stage relates to networking the Windows 10 machine to the Linux Mint machine. Environment & required functionality The network should be a local network - to share files and folders - between the following machines: The Linux Mint Xfce 18.3 laptop " Gandalf "; The Windows 10 laptop " Legolas ". The network is a local area network from a domestic router, the usual 192.168.x.x thing. This is the second attempt to share files and folders between Windows and Linux Mint. Thankfully, this attempt met the core objectives. Alternatives As with the first (failed) attempt , peer-to-peer networking (file sharing, simple two-way server-and-client relationship) is the most efficient way for bulk data transfers, so if the network doesn’t work, then the test has failed. Software selection Both machines needed to have ne...

Project definition: to build a Linux Mint machine functionally identical to a Windows 10 machine

The aim of my project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. Software The functional list of requirements, listed as software available on Windows, are: Google Chrome ; Google Earth ; Microsoft Office (but not Office 365); Foxit PDF Reader ; Google Backup & Sync for Google Drive ; Password vault ( Keepass) ; Picasa ; GPS Prune (a Java applet); XN Convert ; XN View ; a VPN client; SatSync ; ProRealTime (a Java applet); 7-ZIP ; MP3tag ; PDFill Free Tools ; device driver for an HP OfficeJet Pro 276dw , used mainly for scanning; Duplicati 2 ; a standalone media player; Treesize . Ergonomics The basic ergonomics is that keyboard access must be at least as good as Windows, if not better.  Keyboard accelerators and keyboard shortcuts must be clearly marked and traceable, without being hidden (if they are hidden, then hidden no more so than in Windows). Network To join t...