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:
```console
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`:
```code
user@nb-user:/$ echo $DISPLAY
172.26.240.1:0
```
To enable the X display forwarding, log in using the `-X` option in the SSH client:
```console
......@@ -152,6 +177,7 @@ Use System-Log Out to close the gnome-session.
[2]: #putty-on-windows
[3]: #wsl-bash-on-windows
[a]: https://sourceforge.net/projects/vcxsrv/
[d]: https://www.xquartz.org
[e]: http://sourceforge.net/projects/xming/
[f]: http://x.cygwin.com/
......
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