This is my WSL setup, and it's for run linux terminal while running Windows. “Out of 130 tests in total, Windows 11 WSL2 Ubuntu 20.04 LTS managed to run at 94% the speed of bare metal Ubuntu 20.04 LTS on the same system.
- Verison record.
- See how to get cool and productive Windows Terminal.
- Inspiration, list of modules and solution from craftzdog/dotfiles-public.
- Windows
- Install Windows Subsystem for Linux Preview
- Install vGPU driver 3. Run powershell as Administrator
- Install WSL and Linux
1.1 Install Windows Subsystem for Linux Preview For (Windows 11 (build 22000.*) or Windows 11 Insider Preview (builds 21362+) only
Download and install here.
It is recommended to run WSLg on a system with virtual GPU (vGPU) enabled for WSL so that you can benefit from hardware accelerated OpenGL rendering. You can find preview drivers supporting WSL from each of our partners below.
- Press "Windows" button on keyboard.
- Type "Powershell".
- At the right pane of search window press Run as Administrator.
Important
If it asks you to reboot your device, you have to reboot.
- enable WSL.
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all
- enable VirtualMachinePlatform.
dism /online /enable-feature /featurename:VirtualMachinePlatform /all
-
Download and install WSL2 Linux kernel update package for x64 machines Note.
-
Set WSL to version 2.
wsl --set-default-version 2
- Restart your computer.
- Install Kali Linux.
- Open with ubuntu app: Press "Windows" button, type "Kali Linux", then press "Enter", and wait for installing.
There are 2 ways to run Linux on WSL,
- Run with Ubuntu app.
- Run at powershell by type "wsl".
Type this command in your Linux.
sudo apt update && sudo apt upgrade