From wiki
Revision as of 07:17, 28 February 2017 by Vincent (talk | contribs) (sudo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

JOSM is an editor for OpenStreetMap.



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

deb alldist universe

Then download the repository key

$ wget -q -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


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