Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Changes
Page history
DOC: VcXsrv (WSL) and RockyLinux information
authored
Dec 19, 2023
by
Mark OLESEN
REL: reference 2312 instead of 2306
Hide whitespace changes
Inline
Side-by-side
precompiled/windows.md
View page @
98364b3e
...
@@ -76,6 +76,30 @@ this will cause issues. To avoid such problems, there are two possible solutions
...
@@ -76,6 +76,30 @@ this will cause issues. To avoid such problems, there are two possible solutions
or clone the repositories within this folder. Build OpenFOAM.
or clone the repositories within this folder. Build OpenFOAM.
#### Graphical applications (X11) within WSL
To enable graphical applications such as ParaView, Gedit,
GNUPlot etc. to be launched directly from WSL2, the
following steps may be followed:
1.
Download and install
[
VcXsrv
](
https://sourceforge.net/projects/vcxsrv/files/latest/download
)
.
Make sure to disable "active access control" (set checkmark)
as well as "native OpenGL" (unset checkmark)
under "Extra Settings" in the installation wizard.
2.
Define a display variable in your file. For example, by adding the line
```
export DISPLAY=$(awk '/nameserver /{ print $2; exit }' /etc/resolv.conf 2>/dev/null):0
```
to your
`~/.bashrc`
file
3.
Run VcXsrv via XLaunch (installed with VcXsrv) or make sure an
instance of VcXsrv is running (check for icon in taskbar).
4.
Launch graphical applications from the WSL terminal. For example,
```
gedit &
```
### Native-windows
### Native-windows
<a
name=
"native"
></a>
<a
name=
"native"
></a>
...
...