Windows Configurations
Here goes a list of quick tips and tutorials documented for every clean Windows 7-10 installation. This helps to remember details and some things needed for a good to go and clean Windows installation from scratch. List is unattended and might contain outdated links and configuration.
Windows Subsystem for Linux (Windows 10)
For Windows 10 (build 16215) or later. If you just clean installed Windows 10 or 11, you may need to enable "Windows Subsystem For Linux" optional feature in order to use WSL1 and some additional steps for WSL 2.
Step 1. Enable Optional Feature
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Once the feature is enabled, you can restart the PC.
Now, follow the steps for the desired WSL version:
Configuration for WSL 1
There is no further configuration for WSL 1 for Windows 10, just install any of the following distros and you're ready to go:
Step 2. Intalling Distribution
It's now possible to install the applications available on the Windows Store directly from the command line. Useful for Windows 10 installation without Microsoft Store (Slimdown10?).
Open a PowerShell window and run wsl --list --online
to see all available distros.
To install Ubuntu 20.04, run:
wsl --install -d Ubuntu-20.04
To use WSL1 in Windows 11, you will need to set it as your default version for new instances:
wsl --set-default-version 1
Get more info about WSL configuration in Microsoft Documentation: Install Linux on Windows with WSL.
Configuration for WSL 2
Step 2. Checking requirements for WSL 2
To update to WSL 2, you must be running Windows 10+.
- For x64 systems: Version 1903 or higher, with build 18362 or higher.
- For ARM64 systems: Version 2004 or higher, with Build 19041 or higher.
To check your build number, use winver.
Step 3. Enable Virtual Machine feature
Before installing WSL 2, you must enable the Virtual Machine Platform optional feature. Your machine will require virtualization capabilities
Open PowerShell as Administrator and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart