Use pre-built OpenStreetMaps image running on WSL
A Windows 11 x64 bit Ubuntu distribution with a pre-installed OpenStreetMaps server is available.
Download the tar file to a temporary folder, such as c:\temp\UbuntuOSM-UK.tar
Import the tar file.
wsl --import OpenStreetMaps %LOCALAPPDATA%\Packages\OpenStreetMaps C:\temp\UbuntuOSM-UK.tar
Wait for the import to complete.
Check that the import was successful by running the following command:
wsl -l -v
Start the OpenStreetMaps image.
wsl -d OpenStreetMaps
You will be prompted for the super user password. The default password is cyclone.
Check for correct operation using a browser.
http://localhost:8080/sample_leaflet.html
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