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

Scanning & OCRring to PDF: Simple Scan, gimagereader and gscan2pdf v NAPS2 for Windows

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 scanning paper documents to PDF and digitising the scanned text via optical character recognition. Environment & required functionality The scan-and-OCR function needs to run on the following machines: The Linux Mint Xfce 18.3 laptop " Gandalf "; A Linux Mint Xfce 18.3 virtual machine " Gimli "; The Windows 10 laptop " Legolas ". In any modern office - whether at home or at work - some transactional documents and documents from public authorities still arrive by snail-mail. This requires the ability to scan all documents, optionally with the digitisation of scanned text (typically via optical character recognition). The hardware is an old HP OfficeJet Pro 276dw, connected to the LAN instead of directly to a workstation. Alternatives There are two strategies: To use the software pr...

Status report: wholesale migration from Windows to Linux is not functionally possible

As at mid-May2019 , it was clear that the path to migration from Windows to Linux was obstructed by a lack of apps that are fit-for-purpose being available in the Linux environment. Since May2019, there has been no change to the apps/functionalities then listed in the section, "Path to migration is obstructed by apps which are incompatible or otherwise unusable."  Developments in the interim have merely confirmed that the apps available for the Linux environment are not fit-for-purpose, and are unlikely to be fit-for-purpose for the foreseeable future . So, it's time for a change of tack.  The time is right to deploy Occam's Razor. In short, the Linux Mint offers a perfect solution to the jaded Windows user.  The only problem with Linux Mint is not of Linux Mint's making.  The problem is a lack of apps that are fit-for-purpose in the Linux environment.  By fit-for-purpose, I mean apps that meet the hygiene requirements of office-based, corporate lackeys wh...

An attempt at full-disk encryption: Vera Crypt

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 testing full-disk encryption using VeraCrypt . Environment & required functionality Full-disk encryption needs to run on the following machines: The Linux Mint Xfce 18.3 laptop " Gandalf "; The Windows 10 laptop " Legolas ". The objective requirement is to protect user data from the physical theft of the physical machine, to provide an additional line of defence against data loss. This is probably more important for Windows than for Linux Mint.   Even so, in both cases, the operating system is likely to log activity which can reveal personal data and user (meta)data. Full-disk encryption does not mitigate against Microsoft’s sinister telemetry functionality, for which the main solutions seem to be: Either to use tools whose developers are constantly on the prowl, hunting for t...