xxxxxxxxxx
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
enabling virtulization
xxxxxxxxxx
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
xxxxxxxxxx
# Step 1: Open PowerShell as Administrator
# Press Windows key, type "PowerShell", right-click on "Windows PowerShell" and select "Run as administrator"
# Step 2: Enable WSL feature
# Execute the following command in the PowerShell window and restart your computer when prompted
wsl --install
# Step 3: Install a Linux distribution
# After your computer is restarted, open the Microsoft Store and search for your preferred Linux distribution (e.g., Ubuntu, Debian, Fedora). Select one and click on the "Install" button.
# Step 4: Launch and set up the Linux distribution
# Open the installed Linux distribution from the Start menu. The first launch will take a few moments to set up the environment. You will then be prompted to create a new user and set a password for your Linux environment.
# That's it! You have successfully installed WSL on Windows 11 and a Linux distribution of your choice.
xxxxxxxxxx
The Windows Subsystem for Linux (WSL) lets developers install a Linux
distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and
use Linux applications, utilities, and Bash command-line tools directly
on Windows, unmodified, without the overhead of a traditional virtual machine or
dualboot setup.