Use pre-built OpenStreetMaps image running on WSL

A Windows 11 x64 bit Ubuntu distribution with a pre-installed OpenStreetMaps server is available.

  1. Download the tar file to a temporary folder, such as c:\temp\UbuntuOSM-UK.tar

  2. Import the tar file.

    wsl --import OpenStreetMaps %LOCALAPPDATA%\Packages\OpenStreetMaps C:\temp\UbuntuOSM-UK.tar
  3. Wait for the import to complete.

  4. Check that the import was successful by running the following command:

    wsl -l -v
  5. Start the OpenStreetMaps image.

    wsl -d OpenStreetMaps

    You will be prompted for the super user password. The default password is cyclone.

  6. Check for correct operation using a browser.

     http://localhost:8080/sample_leaflet.html
  7. OPTIONAL: Change the password for the osm username. The default password for the osm username is cyclone. Ensure you are logged in as the osm username, and choose a new password.

    passwd

    You will see the following prompts:

    Changing password for [username]
    (current) UNIX password:
    Enter new UNIX password:
    Retype new UNIX password:
    passwd: password updated successfully