Installing WSL with GUI using VcXsrv

VcXsrv is a Windows X-server based on the xorg git sources (like xming
or cygwin's xwin). You can download it from

After installing VcXsrv, start XLaunch and do some setup.

First you can choose whether you like One Large Window or Fullscreen
option, then choose Start no client, and then check Disable access
control. When finished, you will see big window blank screen appear.

Now install Desktop Environment for your WSL.

XFCE4 is lightweight therefore a good choice.

$ sudo apt install xfce4

After the installation finished, make sure you're in your home
directory. Edit .bashrc for some configuration.
$ cd ~
$ nano .bashrc
Go to the last line and write this :
export DISPLAY=:0.0
Exit your WSL and run it again.

The format of this command is actually [host]:<display>.[screen] where
[host] refers to a network host name. Since we left it blank, we're
going to use our local machine instead. Each host can have multiple
Now after we got everything we need, let's start the session
$ startxfce4



Popular posts from this blog

How to delete / clear queue of PowerMTA