Skip to content

Instantly share code, notes, and snippets.

@ZeProgFactory
Last active October 17, 2020 08:55
Show Gist options
  • Save ZeProgFactory/cd2419542e0904e99b38459d91321b5a to your computer and use it in GitHub Desktop.
Save ZeProgFactory/cd2419542e0904e99b38459d91321b5a to your computer and use it in GitHub Desktop.
WSL - Windows Subsystem for Linux (UNO platform)

WSL - Windows Subsystem for Linux

If you wish to build some WASM configs, especially with Platform UNO and SkiaSharp ou need the WSL (Windows Subsystem for Linux).

Install from scratch on W10

Run 'Terminal' as Administrator

on PowerShell:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart  

Update to WSL 2 ( Windows 10, running version 2004, Build 19041 or higher. )

on PowerShell:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart  

Install Ubuntu 18.04 LTS
The version seams to be important (no more, no less).

Launch to create user and so on ...

on PowerShell:

wsl --list --verbose  

for UNO command line open an Ubunto WSH shell and run:

bash -c `wslpath "C:\Users\zepro\.nuget\packages\uno.wasm.bootstrap\1.4.0-dev.16\build\scripts\dotnet-setup.sh"`  

Links

https://docs.microsoft.com/fr-fr/windows/wsl/install-win10
https://aka.ms/wsl2kernel Ubuntu 18.04 LTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment