Skip to content

Instantly share code, notes, and snippets.

View alextsil's full-sized avatar

Alex Tsilingiris alextsil

View GitHub Profile
@alextsil
alextsil / steps_gui_wsl2_xserver.txt
Last active November 14, 2023 16:39
Steps on how to run GUI apps from WSL2 - Xserver
Steps to setup the server-side on windows:
- Download VcXsrv Windows X Server [https://sourceforge.net/projects/vcxsrv/].
- Run VcXsrv following this [https://github.com/microsoft/WSL/issues/4106#issuecomment-502920377].
- Go to windows firewall -> Allow an app through firewall -> click change settings -> select BOTH entries of "VcXsrv windows server" -> OK.
- (Optional): Add inbound rules to un-expose the public X server: https://x410.dev/cookbook/wsl/protecting-x410-public-access-for-wsl2-via-windows-defender-firewall/
At this point the server-side is ready. Now it's time to configure the client:
###################################################################################
# .screenrc -- configuration file for [screen](http://www.gnu.org/software/screen/)
# ___ ___ _ __ ___ ___ _ __ _ __ ___
# / __|/ __| '__/ _ \/ _ \ '_ \| '__/ __|
# _\__ \ (__| | | __/ __/ | | | | | (__
# (_)___/\___|_| \___|\___|_| |_|_| \___|
#
###################################################################################
# Resources:
# * gyaresu's .screenrc: http://delicious.com/search?p=screenrc