Skip to content

Latest commit

 

History

History
78 lines (55 loc) · 3.01 KB

week1_wsl.md

File metadata and controls

78 lines (55 loc) · 3.01 KB

🢀 Back to Previous Page

Install Linux on Windows with WSL

What is the Windows Subsystem for Linux [WSL] ?

The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.

<iframe width="500" height="260" src="https://www.youtube.com/embed/MrZolfGm8Zk" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

What is WSL 2?

WSL 2 is a new version of the Windows Subsystem for Linux architecture that powers the Windows Subsystem for Linux to run ELF64 Linux binaries on Windows. Its primary goals are to increase file system performance, as well as adding full system call compatibility.

Reference : What is the Windows Subsystem for Linux?


How did I Install Ubuntu on WSL2

Part 1 : Install WSL2

Before Start

You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11.

  1. Runs Windows PowerShell as administrator
  2. Run the command below to start install WSL
wsl --install

image

  1. Check version of your WSL with this command
wsl -l -v

image

  1. To set the default version to WSL 1 or WSL 2 , Using the command below ( Replace with number of version you prefer Ex: 2 )
 wsl --set-default-version <Version>

image

Part 2 : Install Ubuntu on WSL ( Ubuntu 22.04 LTS )

  1. After you installed WSL2, You can choose a version of Ubuntu to install on Microsft Store. For me, I'm choosing Ubuntu 22.04 LTS image

  2. Do the installation. image

  3. Once you done an installation, Run following commands to get the latest version of the software

$ sudo apt update 
$ sudo apt upgrade 

Now restart your software once, DONE! YOUR LINUX IS READY!

image


🢀 Back to Previous Page