Live data from Hacker News

GWSL: Run graphical Linux apps in WSL

github.com

1–10 of 132 posts

Re: GWSL: Run graphical Linux apps in WSL

#2
VcXsrv and a bashrc to set DISPLAY= automatically did it for me

export DISPLAY=$(route -n | grep UG | head -n1 | awk '{print $2}'):0

and on the Windows side, start VcXsrv with the 'Disable Access Control' combo box checked. this will enable X clients from other hosts (WSL is another host, basically) to connect to the server without too much hassle. that's it.

Re: GWSL: Run graphical Linux apps in WSL

#7
post #2

VcXsrv and a bashrc to set DISPLAY= automatically did it for me export DISPLAY=$(route -n | grep UG | head -n1 | awk '{print $2}'):0 and on the Windows side, start VcXsrv with the 'Disable Access Control' combo box checked. this will enable X clients from other hosts (WSL is another host, basically) to connect to the server without too much hassle. that's it.

The first line was enough for me to make it work.Microsoft supports it officially in the latest version I think.

Re: GWSL: Run graphical Linux apps in WSL

#8
post #2

VcXsrv and a bashrc to set DISPLAY= automatically did it for me export DISPLAY=$(route -n | grep UG | head -n1 | awk '{print $2}'):0 and on the Windows side, start VcXsrv with the 'Disable Access Control' combo box checked. this will enable X clients from other hosts (WSL is another host, basically) to connect to the server without too much hassle. that's it.

Yip, been doing it this way for years. Here is guide I originally followed. https://medium.com/@pck/how-to-use-sublime-text-3-from-comma...

Re: GWSL: Run graphical Linux apps in WSL

#10
I recently migrated to Windows from MacOS and have found the following paid apps really helpful:

1. [Pengwin](https://www.whitewaterfoundry.com/) - a customized Debian distribution with helpful scripts for setting up a dev environment

2. [X410](https://x410.dev/) - a customized X11 Server

They made all the setup really easy. I reuse some of the scripts from Penguin in the Ubuntu distribution.

One caveat for those who want to try WSL2, which is available if you subscribe to Windows Insider program, is the instability.

Some times, after an update, your WSL will not start. After some restarts everything is back to normal.

Post reply on HN