Install wsl2 on Windows

 

Installation on windows 11


open powershell --- install ubuntu 24.0

$ wsl --update
$ wsl --list --online

NAME                            FRIENDLY NAME
Ubuntu                          Ubuntu
Debian                          Debian GNU/Linux
kali-linux                      Kali Linux Rolling
Ubuntu-18.04                    Ubuntu 18.04 LTS
Ubuntu-20.04                    Ubuntu 20.04 LTS
Ubuntu-22.04                    Ubuntu 22.04 LTS
Ubuntu-24.04                    Ubuntu 24.04 LTS
OracleLinux_7_9                 Oracle Linux 7.9
OracleLinux_8_7                 Oracle Linux 8.7
OracleLinux_9_1                 Oracle Linux 9.1
openSUSE-Leap-15.6              openSUSE Leap 15.6
SUSE-Linux-Enterprise-15-SP5    SUSE Linux Enterprise 15 SP5
SUSE-Linux-Enterprise-15-SP6    SUSE Linux Enterprise 15 SP6
openSUSE-Tumbleweed             openSUSE Tumbleweed

$ wsl --install -d Ubuntu-24.04

inside wsl

$ sudo apt update && sudo apt full-upgrade

# you may want to enable systemd --- update the following config if you need
$ cat /etc/wsl.conf
[boot]
systemd=true

## you need to shutdown wsl in powershell
$ wsl --shutdown
# you need just need to relaunch the wsl

# test x11
$ sudo apt-get install x11-apps

Installation on windows 10

 

Reference:

[1]: TroubleChute. (2023, April 24). Ubuntu Desktop/GUI Apps on WSL | Updated Guide [Video]. YouTube. https://www.youtube.com/watch?v=7Sym3uL6YWo


Comments