Member-only story

Run X-Display from WSL

Ripon Banik
2 min readApr 10, 2021

--

Launch GUI App from WSL

Overview

I wanted to run an login app (aws-azure-login) from WSL which display GUI, but it could not run showing the following error — Unable to Open X-Display

Since WSL distro does not come with GUI, we need to install a X-Server on our Windows Host and Connect to it from WSL.

Install and configure

Follow the steps below to install and configure X-Server.

  1. Download and Install VcXsrv Windows X Server which is available from https://sourceforge.net/projects/vcxsrv/
  2. Configure according to screenshots below:

3. Enable Outgoing Connection from Windows Firewall -

Windows Security -> Firewall & network protection -> Allow an app through firewall -> make sure VcXsrv has both public and private checked.

--

--

Ripon Banik
Ripon Banik

Written by Ripon Banik

A Cloud and DevSecOps Engineer and Consultant, passionate about simplification of technology and make it consumable. https://www.linkedin.com/in/riponbanik/

Responses (2)