JOSM

From wiki

JOSM is an editor for OpenStreetMap.

Install

Linux

Create file /etc/apt/sources.list.d/josm.list

deb https://josm.openstreetmap.de/apt alldist universe

Then download the repository key

$ wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo apt-key add -

and finally install JOSM

$ sudo apt update
$ sudo apt install josm

We now nee to create a launcher for JOSM. This launcher as two goals:

  • Raise the memory limits
  • Move JOSM directories in XDG standard ones

Create file /usr/local/bin/josm

#!/bin/sh

JAVA_OPTS="-Xmx2048M -Djosm.pref=${XDG_CONFIG_HOME:-$HOME/.config}/josm -Djosm.userdata=${XDG_DATA_HOME:-$HOME/.local/share}/josm -Djosm.cache=${XDG_CACHE_HOME:-$HOME/.cache}/josm" /usr/bin/josm

and make it executable

$ sudo chmod +x /usr/local/bin/josm