Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docs.it4i.cz
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SCS
docs.it4i.cz
Commits
3fdaeb42
Commit
3fdaeb42
authored
3 years ago
by
Jan Siwiec
Browse files
Options
Downloads
Patches
Plain Diff
Vcxsrv
parent
d126bdc5
No related branches found
No related tags found
1 merge request
!344
Vcxsrv
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md
+27
-1
27 additions, 1 deletion
...-the-clusters/graphical-user-interface/x-window-system.md
with
27 additions
and
1 deletion
docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md
+
27
−
1
View file @
3fdaeb42
...
@@ -23,7 +23,32 @@ On Windows, use the PuTTY client to enable X11 forwarding. In PuTTY menu, go to
...
@@ -23,7 +23,32 @@ On Windows, use the PuTTY client to enable X11 forwarding. In PuTTY menu, go to
### WSL (Bash on Windows)
### WSL (Bash on Windows)
To enable the X display forwarding, log in using the
`-X`
option in the SSH client:
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
```
console
local $
ssh
-X
username@cluster-name.it4i.cz
local $
ssh
-X
username@cluster-name.it4i.cz
...
@@ -152,6 +177,7 @@ Use System-Log Out to close the gnome-session.
...
@@ -152,6 +177,7 @@ Use System-Log Out to close the gnome-session.
[
2
]:
#putty-on-windows
[
2
]:
#putty-on-windows
[
3
]:
#wsl-bash-on-windows
[
3
]:
#wsl-bash-on-windows
[
a
]:
https://sourceforge.net/projects/vcxsrv/
[
d
]:
https://www.xquartz.org
[
d
]:
https://www.xquartz.org
[
e
]:
http://sourceforge.net/projects/xming/
[
e
]:
http://sourceforge.net/projects/xming/
[
f
]:
http://x.cygwin.com/
[
f
]:
http://x.cygwin.com/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment