get wsl version
wsl -l -vwsl -l -v
# If version 2 is installed properly, you will see the version number.
# If you don't see a version number, or if you see an error message
# you have version 1#enable wsl
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
#make sure windows version is >=2004
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
#restart
wsl --set-default-version 2
#if kernal error https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestartdism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Also in C++:
- Title
- ohmyzsh
- Category
- C++
- Title
- how to I list powershell functions
- Category
- C++
- Title
- install vue cli
- Category
- C++
- Title
- ubuntu record video change time
- Category
- C++
- Title
- not digitally signed powershell
- Category
- C++
- Title
- git won't ignore .env
- Category
- C++
- Title
- kivy install ubuntu 20
- Category
- C++
- Title
- install spotify ubuntu
- Category
- C++
- Title
- open realm studio ubuntu
- Category
- C++
- Title
- adb shell grep command
- Category
- C++
- Title
- centos install specific kernel headers
- Category
- C++
- Title
- git config
- Category
- C++
- Title
- pyenv install ubuntu
- Category
- C++
- Title
- brew install rosetta
- Category
- C++
- Title
- Install Lumen CSV Reader package from Nuget Package Manager in Visual Studio
- Category
- C++
- Title
- react native reactotron bug
- Category
- C++
- Title
- git add -A ignore large files
- Category
- C++
- Title
- how to upgrade pip
- Category
- C++
- Title
- how to extract rar file in ubuntu
- Category
- C++
- Title
- show internet password
- Category
- C++
- Title
- how to create symlink in linux
- Category
- C++
- Title
- linux show file line size
- Category
- C++
- Title
- uninstall certbot ubuntu 16 nginx
- Category
- C++
- Title
- No module named 'numpy'
- Category
- C++