Commit 7c901cff authored by Jan Siwiec's avatar Jan Siwiec
Browse files

added vcxsrv config to WSL section

parent 51b1953f
Pipeline #23128 passed with stages
in 49 seconds
......@@ -23,6 +23,31 @@ On Windows, use the PuTTY client to enable X11 forwarding. In PuTTY menu, go to
### WSL (Bash on Windows)
To run Linux GuI on WSL, download, for example, [VcXsrv][a].
1. After installation, run XLaunch and during the initial setup, check the `Disable access control`.
!!! tip
Save the configuration and launch VcXsrv using the `config.xlaunch` file, so you won't have to check the option on every run.
1. Allow VcXsrv in your firewall to communicate on private and public networks.
1. Set the `DISPLAY` environment variable, using the following command:
export DISPLAY="`grep nameserver /etc/resolv.conf | sed 's/nameserver //'`:0"
!!! tip
Include the command at the end of the `/etc/bash.bashrc`, so you don't have to run it every time you run WSL.
1. Test the configuration by running `echo $DISPLAY`:
user@nb-user:/$ echo $DISPLAY
To enable the X display forwarding, log in using the `-X` option in the SSH client:
......@@ -152,6 +177,7 @@ Use System-Log Out to close the gnome-session.
[2]: #putty-on-windows
[3]: #wsl-bash-on-windows
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment