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

https://sourceforge.net/projects/vcxsrv/



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

display.

Now after we got everything we need, let's start the session

$ startxfce4



Done

Comments

Popular posts from this blog

Check MySQL query history from command line

Installing chocolatey on Windows