Advertisement
efxtv

Install WSL in windows 11 / 10

Dec 3rd, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | Cybersecurity | 0 0
  1. Setting Up Windows Subsystem for Linux (WSL) on Windows 11 and 10
  2.  
  3. Step 1: Enable Required Features
  4. Run PowerShell as an administrator and execute the commands based on your system architecture.
  5.  
  6. For x64 architecture:
  7. $ dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
  8. $ Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
  9.  
  10.  
  11. For ARM64 architecture:
  12. $ dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
  13.  
  14.  
  15. Step 2: Install Ubuntu from Microsoft Store
  16. 1. Open the Microsoft Store, search for **Ubuntu**, and install it.
  17. 2. Restart your machine after installation.
  18.  
  19. Step 3: Update WSL
  20. To use WSL 2 on Windows 10 (64-bit):
  21. 1. Download and install the WSL 2 update package from the following link:
  22. WSL Update for x64 https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi
  23.  
  24. Step 4: Convert WSL 1 to WSL 2
  25. 1. Check the current version of installed WSL distributions:
  26. $ wsl -l -v
  27.  
  28. 2. Set the default WSL version for Ubuntu to WSL 2:
  29. $ wsl.exe --set-version Ubuntu 2
  30.  
  31. 3. Verify the change:
  32. wsl -l -v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement