Skip to content

achinhchin/WSL-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

My Windows Subsystem for Linux setup

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.

Image Preview

  • Example command screenshot

Go to

Credits

OS support

  • Windows

Contents

  1. Install Windows Subsystem for Linux Preview
  2. Install vGPU driver 3. Run powershell as Administrator
  3. Install WSL and Linux
  1. Download Linux
  2. Install Linux on WSL
  1. Running Linux on WSL
  2. Setup Linux on WSL

1. Prepare to install 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.

1.2 Install vGPU driver

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.

1.3 Run powershell as Administrator

  1. Press "Windows" button on keyboard.
  2. Type "Powershell".
  3. At the right pane of search window press Run as Administrator.

1.4 Prepare to install Linux

Important

If it asks you to reboot your device, you have to reboot.

  1. enable WSL.
dism /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all 
  1. enable VirtualMachinePlatform.
dism /online /enable-feature /featurename:VirtualMachinePlatform /all
  1. Download and install WSL2 Linux kernel update package for x64 machines Note.

  2. Set WSL to version 2.

wsl --set-default-version 2
  1. Restart your computer.

2 Download and install Linux

2.1 Download Linux (You can use other distro of linux, see more in Microsoft Store)

  1. Install Kali Linux.

2.2 Install Linux on WSL

  1. Open with ubuntu app: Press "Windows" button, type "Kali Linux", then press "Enter", and wait for installing.

3. Running and setup Linux on WSL

3.1 Running Linux on WSL

There are 2 ways to run Linux on WSL,

  1. Run with Ubuntu app.
  2. Run at powershell by type "wsl".

3.2 Setup Linux on WSL

Type this command in your Linux.

sudo apt update && sudo apt upgrade

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published