Skip to content

WSL2 Ubuntu GUI



Install a graphical user interface (GUI) with Ubuntu 20.04 running within WSL 2 on a Windows 10 computer. Microsoft have announced that an RDP based GUI will be added to WSL2, but it’s not currently available. I’ll show you how to get a GUI installed and how to connect to the GUI using remote desktop so you can start using that today.

Menu:
Overview: 0:00
Prerequisites: 1:20
Install WSL: 1:46
Install Ubuntu 20.04: 4:45
Install Ubuntu GUI: 7:25
Test RDP connection to the Ubuntu VM: 10:35

WSL commands:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl –set-default-version 2

Ubuntu GUI commands:
See pinned comment as YouTube doesn’t allow all the commands. Otherwise use my github link:

Good links:
Microsoft GUI announcement:…

Send this to a friend