Windows Subsystem for Linux (WSL)

Developers can access the power of both Windows and Linux at the same time on a Windows machine. The Windows Subsystem for Linux (WSL) lets developers install a Linux distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.

Image may contain: Bird, Beak, Terrestrial animal, Font, Electric blue.

Installation:

Start a CMD or PowerShell as Administrator.

PS C:\> wsl --list --online
The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.

NAME               FRIENDLY NAME
Ubuntu             Ubuntu
Debian             Debian GNU/Linux
kali-linux         Kali Linux Rolling
SLES-12            SUSE Linux Enterprise Server v12
SLES-15            SUSE Linux Enterprise Server v15
Ubuntu-18.04       Ubuntu 18.04 LTS
Ubuntu-20.04       Ubuntu 20.04 LTS
Ubuntu-22.04       Ubuntu 22.04 LTS
OracleLinux_8_5    Oracle Linux 8.5
OracleLinux_7_9    Oracle Linux 7.9

Install your preferred distro.

PS C:\> wsl --install -d Ubuntu-20.04
Installing: Ubuntu 20.04 LTS
[===================       33,0%                           ]        

After a reboot you will find a shortcut on your start menu. At first startup you will have to create a username and password. Your C:\ drive is mounted under /mnt.

Windows Subsystem for Linux (WSL) now supports running Linux GUI applications (X11 and Wayland) on Windows in a fully integrated desktop experience.

Run Linux GUI apps on the Windows Subsystem for Linux

This means you can use x-forwarding to start GUI applications on mimi:

kjetba@UIO-Win-Laptop$ ssh -X mimi.uio.no

[kjetba@mimi ~]$ module load ParaView/5.11.1-foss-2022a-mpi 
[kjetba@mimi ~]$ paraview

 

Some other useful links:

How to install Linux on Windows with WSL

GPU in Windows Subsystem for Linux (WSL) | NVIDIA Developer

Win-KeX | Kali Linux Documentation

Jupyter Notebook in Windows Subsystem for Linux |WSL

Tags: WSL, Subsystem for Linux, Ubuntu By Kjetil Bakke
Published Mar. 6, 2024 9:29 AM - Last modified Mar. 6, 2024 12:37 PM