JOSM

From wiki
Revision as of 17:11, 12 March 2016 by Vincent (talk | contribs) (Created page with "[https://josm.openstreetmap.de JOSM] is an editor for [http://www.openstreetmap.org OpenStreetMap]. == Install == === Linux === Create file <code>/etc/apt/sources.list.d/jos...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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- | apt-key add -

and finally install JOSM

# apt update
# 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

# chmod +x /usr/local/bin/josm