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...

Deployment of Wine

The project is to build a Linux Mint machine to have the identical functionality and ergonomics as the existing Windows 10 machine. Having established that there is no way to migrate fully from Windows to Linux , the project now needs to consider running Windows apps in Linux.   This is a big change to the strategy of the project.   This is a big change to the deployment of a Linux workstation, a crushing admission of failure, and the opening of a whole new world of risks to an otherwise secure operating system. Environment & required functionality For this blog post, Wine was tested on: The Linux Mint Xfce 19 virtual machine " Bilbo ", on host Windows 10 laptop " Saruman " The Linux Mint Xfce 18.3 virtual machine " Gimli ", on host Windows 10 host " Legolas ". Alternatives There are alternatives to Wine/PlayOnLinux, notably the paid software Crossover. Software selection Wine and PlayOnLinux are present in L...

The Big Bang: Microsoft Windows goes for good, positive adaptations required

On 27Mar2021, Linux Mint ate Microsoft Windows 10 on Legolas. Three months on, I conclude beyond any doubt that wiping out Windows was the best decision I ever made. The second best decision I ever made was to test Linux Mint in Virtual Box five years ago. The third best decision I ever made was to take ownership of the learning curve that migrating in Windows really entails. A quick reminder: what’s Microsoft Windows like nowadays? I still need to use Windows at work. I cannot easily describe how painful it now is to use Windows. So I’ll try to describe it difficultly. My work machine is a powerful beast, but it exhibits constant latency. For a keyboard-orientated power user, this means that some keystrokes go walkabouts when other services on the Windows machine go to nuclear war with each other, scrambling to feed their narcissistic self-importance for besieged system resources wholly at the user’s expense. Something on Windows tends to clear the keyboard buffer randomly, resulting ...