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…

--

--

Ripon Banik

A Cloud and DevSecOps Engineer passionate about simplification of technology and make it consumable.