Difference between revisions of "JOSM"
From wiki
(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...") |
(No difference)
|
Revision as of 17:11, 12 March 2016
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