Photo by Joshua Rondeau on Unsplash

Setup X11 for Window Sub System Linux 2 for GUI

Linux Distro | Ubuntu | X11 | WSL | Development | Windows 11/10

βš— Kevin Summersill πŸ”‹
2 min readFeb 7, 2022

--

I've never been a Graphical User Interface (GUI) guy with Linux but there is sometimes a need. Of course, if you are working with Windows and you like Linux distros as much as I do then you probably utilize Windows Subsystem Linux (WSL). So the goal of this article is to make it very simplistic on setting up X11 forwarding between WSL2 and the X11 Server. Let’s begin.

The first issue that needs to be resolved is the ssh server. I did not know the ssh server setup by default does not have everything on it. So let's remove it and then re-add it.

Remove the openssh server

You can do this by running the following:

Install the openssh server

You can do this by running:

Restart SSH

Now run a full restart of the openssh server and its services by running:

Download the Windows X Server

--

--

βš— Kevin Summersill πŸ”‹
βš— Kevin Summersill πŸ”‹

Written by βš— Kevin Summersill πŸ”‹

Enterprise Solution Architect | Certified K8s Administrator/Developer βš“ | SAFe SPC | Cert Terraform | AWS Solutions Architect | Dev*Ops/GitOps Engineer πŸ”₯

No responses yet