Changes between Version 8 and Version 9 of Hu:Download
- Timestamp:
- 2024-12-06T13:54:29+01:00 (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Hu:Download
v8 v9 67 67 68 68 69 Az alább leírt szokásos me net mellett a régebbi DEB fájlok letölthetőek az [/apt/pool/universe/j/ archívumból].69 Az alább leírt szokásos mellett a régebbi DEB fájlok letölthetőek az [/apt/pool/universe/j/ archívumból]. 70 70 71 71 ==== Telepítés ==== 72 73 72 Szerkeszd a `/etc/apt/sources.list.d/josm.list` csomagforrás-listát: 74 73 … … 90 89 deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt focal universe 91 90 deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt bionic universe 91 92 92 # Más Debian alapú disztribúciók esetében add hozzá ezt: 93 93 deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt alldist universe 94 94 }}} 95 95 96 Másféleképpen az alábbi egysoros paranccsal tudod ugyanezt megtenni Ubuntun (nem működik Ubuntu-alapú rendszereken, pl. Linux Minten):96 Egyszerűbben az alábbi egy soros paranccsal tudod ugyanezt megtenni Ubuntun (nem működik Ubuntu-alapú rendszereken, pl. Linux Minten): 97 97 {{{#!sh 98 98 echo "deb [signed-by=/usr/local/share/keyrings/josm-apt.gpg] https://josm.openstreetmap.de/apt $(lsb_release -sc) universe" | sudo tee /etc/apt/sources.list.d/josm.list > /dev/null … … 103 103 }}} 104 104 105 {{{#!comment 105 106 ### az alábbi nem minden rendszeren működik 106 107 és add hozzá a következő sort: … … 109 110 }}} 110 111 }}} 112 111 113 Töltsd le a [/josm-apt.key publikus kulcsot]: 112 114 {{{#!sh 113 # Ho d létre kézzel a letöltött kulcsok könyvtárát, ha még nem volt létrehozva115 # Hozd létre kézzel a letöltött kulcsok könyvtárát, ha még nem volt létrehozva 114 116 sudo mkdir -p /usr/local/share/keyrings 115 117 # Download the key 116 118 wget -q https://josm.openstreetmap.de/josm-apt.key -O- | sudo gpg --dearmor -o /usr/local/share/keyrings/josm-apt.gpg 117 119 }}} 118 A korábbi utasítások `apt-key`-t használtak. Ha a kulcs hozzá lett adva a rendszer kulcstartójához, a következő sor eltávolítja azt:120 A korábbi útmutató `apt-key`-t használt. Ha a kulcs hozzá lett adva a rendszer kulcstartójához, a következő sor eltávolítja azt: 119 121 {{{#!sh 120 122 sudo apt-key del $(apt-key list | grep -B1 "<josm-dev@openstreetmap.org>" | sed '$d' | cut -b 48-51,53-57) 121 123 }}} 124 122 125 Most frissítsd a forrásokat: 123 126 {{{#!sh … … 127 130 sudo apt-get update 128 131 }}} 132 129 133 és telepítsd: 130 134 {{{#!sh … … 140 144 === GNU Debian ===#GNUDebian 141 145 A saját [#Ubuntu fent látható] Ubuntu csomagjaink Debian-on is működnek, ezek használatát javasoljuk. A `sudo` telepítésétől függően néhány utasítás nem fog működni „normál” felhasználóként, csak `root`-ként. 146 142 147 A [https://packages.debian.org/stable/josm JOSM stabil verziója] elérhető **''main''** **''utils''** szakaszában, de ez a verzió általában elég régi. \\ 143 148 A sokkal naprakészebb verziókat a [https://backports.debian.org backports tárolóban] találod, lásd [https://backports.debian.org/Instructions Utasítások]. Még ez a verzió is régebbi lehet a mi saját csomagjainkánl. 149 144 150 Debian 11 (bullseye) óta a [https://packages.debian.org/stable/josm-installer josm-installer] elérhető a **''main''** **''utils''** szakaszában. Ez letölti az aktuális .jar fájlt erről az oldalról, és szükség esetén frissít. 145 151 … … 159 165 === Java ===#Java 160 166 Ha duplán kattintasz egy jar fájlra és nem történik semmi, az általában azt jelenti hogy a Java nincs telepítve. 167 161 168 A JOSM jelenleg az [https://www.azul.com/downloads/?version=java-21-lts&package=jdk-fx#zulu Azul] vagy [https://bell-sw.com/pages/downloads/?package=jre-full#mn Bellsoft Liberica] JDK-at javasolja. Általánosságban az aktuális Java LTS a javasolt (a cikk írásakor ez a Java 17), de a Java 11-nek is működnie kell. Az aktuális ajánlásokat lásd a [source:/trunk/README README]-ben. De először tegyél egy próbát az operációs rendszereddel érkező Javával, például az [https://en.wikipedia.org/wiki/OpenJDK OpenJDK-val]. 162 169 163 170 When choosing a download keep in mind: 164 171 * A Java Plug-in for web browsers is **not** needed to run JOSM. Therefore results from pages like www.java.com/en/download/installed8.jsp are not relevant. 172 * A Java variant with 64 bit is recommended for JOSM. The operating systems architecture is important for deciding between 32 bit Java or 64 bit Java. Because JOSM is **not** affected by the web browsers architecture most recommendations on this page www.java.com/en/download/faq/java_win64bit.xml are not relevant. 173 * Avoid pages like www.java.com/en/download which intent to place Java Plug-ins in web browsers. And this is **not** important for JOSM. 174 175 For further information visit the [InstallNotes Installation Notes] and [https://www.java.com/en/download/help/troubleshoot_java.xml troubleshooting] pages. 165 176 ''Java'' in this section means a JRE (Java Runtime Engine) which provides a JVM (Java Virtual Machine) to run JOSM, a Java program that is developed using JDK (Java Development Kit) and sometimes launched with the JNLP (Java Network Launch Protocol aka Web Start and successor of Java Plug-ins). 166 ==== Testing Java ====#JavaTest 177 178 ==== Testing Java ====#JavaTest 167 179 [=#Troubleshootingjarfile] Checks if Java is installed and why JOSM does not start (example mainly for MS Windows). 168 180 1. Download [/josm-tested.jar josm-tested.jar] to your desktop. 169 181 1. Open a Command Prompt aka Terminal 182 1. Type `cd %homepath%`⏎ and type `cd Desktop`⏎ 183 1. Type `java -version `⏎ Three lines with the version data should appear. If you see something else then Java is not properly installed. 184 1. Type `java -jar josm-tested.jar`⏎. Now JOSM should run, started from the [wikitr:/Help/CommandLineOptions Command Line]. 185 1. Quit JOSM. 186 1. Type `josm-tested.jar`⏎. If JOSM starts again, the Windows Explorer is ready for double clicks on jar files. 187 188 170 189 === Web Start ===#Webstart 171 190 [=#Troubleshootingjhlplink] 172 191 You need to install [https://openwebstart.com/ OpenWebStart] first. It will download and run Java by itself. Please use the 64 bit (`x64`) version of OpenWebStart if you are on Microsoft Windows. The transition from Oracle WebStart to OpenWebStart is still in progress, so in case of issue please create a [/newticket new ticket] or post a comment to #17858. 192 173 193 You may need to update the default application for opening JNLP files if you previously used Oracle WebStart. See [https://openwebstart.com/docs/OWSGuide.html#_jnlp_file_association jnlp file association] for instructions on setting OpenWebStart as the default program for jnlp files. 194 174 195 ==== Testing Web Start ====#Webstarttest 175 196 1. Download [/download/josm.jnlp josm.jnlp] to your desktop. 197 1. Open a Terminal and move to the Desktop as above 198 1. Type `javaws josm.jnlp`⏎. This should initially download JOSM, show a security dialog and then launch JOSM. 199 1. If that fails, then type `javaws -verbose josm.jnlp`⏎. This should first show a dialog with information about the JVM and then launch JOSM. 200 201 176 202 === Virtual Machine ===#Troubleshootingjvm 177 203 ==== Out of memory ==== 178 Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown. 179 Wrongly chosen values can decrease JOSM performance. 180 For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure a memory size that supports more plugins and features. On the other hand can slow machines be stabilized by restricting Javas memory use. 204 Nowadays manually controlling Javas memory is seldom needed because available RAM on computers has grown. 205 Wrongly chosen values can decrease JOSM performance. 206 207 For some tasks, JOSM has a large appetite for memory. On the one hand, it may be necessary to configure a memory size that supports more plugins and features. On the other hand can slow machines be stabilized by restricting Javas memory use. 181 208 If needed, use the [wikitr:/Help/CommandLineOptions command line] to set the [https://docs.oracle.com/en/java/javase/11/tools/java.html#GUID-3B1CE181-CD30-4178-9602-230B800D4FAE__BABHDABI Java Option] -Xmx…m, for example `-Xmx512m` or `-Xmx1536m`. In Debian/Ubuntu you can edit the file `/etc/default/josm` respectively `/etc/default/josm-latest`. \\ 182 209 Formerly older java programs accepted `-Xmx=512m` or even `-Xmx 512m`. Now those malformed arguments throw error messages. 210 183 211 ==== VM selection ====#VMselectiononWindowsx64 184 212 On current versions of MS Windows by default Java is installed mainly in the `C:\Program Files\Java\` directory. Additional parts are placed in `C:\Program Files\Oracle\Java\`. There is a `.\javapath\` directory as target for the PATH environment variable. It is the home for the three virtual files `java.exe`, `javaw.exe` and `javaws.exe`. This files are symbolic links form the current Java installations. 213 185 214 On older versions of 64 bit Windows sometimes the 32 bit mode JRE was additionally installed. Also some browsers brought their own JVM with limited capabilities. In those cases a Web Start from the browser would not use your Java installation but that from the browser. 215 186 216 Check that there's no other javawebstart in `\Windows\SysWow64`. The Java control panel will not detect it and you can safely delete it. Perform cleanup and only keep the latest versions of each JRE (One or the 32-bit mode, another one for the 64-bit mode). 217 187 218 For shortcuts created on the desktop for JNLP and running the Javawebstart launcher , make sure to pass VM parameters prefixed with -J and no intermediate space before the VM option. If you have installed both the 32-bit and 64-bit version, you should pass the option "`-d64`" if you want to select the preferred 64-bit VM. Note that some Oracle documentation pages indicate the option "-D64" with the incorrect capitalization!) 188 Example of an edited command line for a shortcut on the windows desktop: 189 190 }}} 219 220 Example of an edited command line for a shortcut on the windows desktop: 221 {{{ 222 #!sh 223 javaws.exe -J-d64 -J-Xmx2048m josm.jnlp 224 }}} 225 191 226 === Microsoft Windows ===#MSWindows 192 227 ==== josm.exe ====#Mswindowswrapper 193 Using josm-setup.exe for installation on Microsoft Windows does the following: 228 Using josm-setup.exe for installation on Microsoft Windows does the following: 194 229 * Puts two executable files `JOSM.exe` and `HWConsole.exe` in directory `%LOCALAPPDATA%\JOSM` 195 230 * Registers JOSM.exe as target for the file extensions `*.osm`, `*.geojson`, `*.gpx`, `*.jos` and `*.joz`. 196 231 * Places JOSM shortcut icons on the Desktop and in the Start Menu. 197 232 * Adds uninstall data at the appropriate places. 198 When starting, JOSM.exe starts JOSM with an embedded version of Java maintained by JOSM developers, based on Azul Zulu. 233 234 When starting, JOSM.exe starts JOSM with an embedded version of Java maintained by JOSM developers, based on Azul Zulu. 199 235 JOSM.exe acts as a ''wrapper'' and is [wikitr:/USB_Stick portable]. 236 200 237 HWConsole.exe is similar to JOSM.exe but start JOSM while keeping open a Windows console displaying JOSM standard output (logs). 238 201 239 JOSM.exe accepts all usual [wikitr:/Help/CommandLineOptions#Programarguments JOSM Program arguments]. See example: 240 202 241 {{{ 203 242 #!sh … … 205 244 josm.exe https://www.osm.org/way/476702262 206 245 }}} 246 207 247 For giving [wikitr:/Help/CommandLineOptions#Javaoptions Java options] to the Java VM, JOSM.exe uses the configuration file `JOSM.cfg` in its app sub-directory. In this file, each option must be on a separate line. 248 208 249 For example, to change memory allocation, open `%LOCALAPPDATA%\JOSM\app\JOSM.cfg` and add `java-options=-Xmx8192m` (for 8 GB) to a new line under the `[JavaOptions]` header. 250 209 251 ==== Graphics ====#MicrosoftWindowsGraphics 210 252 Some Windows installations have graphics driver issues (see #23784 for an example). This may exhibit symptoms such as: … … 212 254 * Flickering 213 255 * Other unexpected user interface issues 256 214 257 1. Download and install Display Driver Uninstaller (DDU, [https://github.com/Wagnard/display-drivers-uninstaller source]) from the official mirror => https://www.wagnardsoft.com/display-driver-uninstaller-DDU- 215 258 2. From the "Device Type" drop-down on the right, select "GPU". DDU will automatically detect the GPU you're using. 216 259 3. Click on "Clean and Restart" at the top. This will uninstall the graphics drivers and restart your PC. 217 260 4. Reinstall the drivers. 218 //**WARNING: Create a backup of your PC before using DDU. Although it creates a recovery point by itself, it's ideal to make one yourself just in case.**// 261 262 //**WARNING: Create a backup of your PC before using DDU. Although it creates a recovery point by itself, it's ideal to make one yourself just in case.**// 263 219 264 === macOS ===#macOS 220 265 [=#MacOSErrors][=#MacOSXMountainLionErrors][=#Macoserrors] 221 266 {{{ 222 267 #!comment 223 224 }}} 268 old section title, keeping as anchor for old links 269 }}} 270 225 271 ==== Using brew ====#brew 226 272 macOS users may use the [https://brew.sh/ homebrew] package manager to install and update their JOSM instance. 273 227 274 In Terminal, run the `brew install --cask josm` to install or `brew upgrade --cask josm` to upgrade to the current tested version of JOSM. 275 228 276 === Linux ===#linux 229 277 ==== Arch Linux ==== 230 278 Using AUR you can install [https://aur.archlinux.org/packages/openwebstart-bin openwebstart-bin]. 231 If you use [https://archlinux.org/packages/extra/x86_64/icedtea-web/ icedtea-web] instead of the recommended openwebstart you will get an error with the newest java. java-17-openjdk is known to work, but java-22-openjdk do not. 279 280 If you use [https://archlinux.org/packages/extra/x86_64/icedtea-web/ icedtea-web] instead of the recommended openwebstart you will get an error with the newest java. java-17-openjdk is known to work, but java-22-openjdk do not. 281 282 232 283 === Known issues === 233 284 Not closed issues about …: