From 1051c22c7d71e4b6767f25c0b6482b1d728e0fc6 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 12:10:05 +0200 Subject: [PATCH 1/9] Display number 102 --- .../accessing-the-clusters/graphical-user-interface/vnc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md index ce7e0a84..986502bd 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/vnc.md @@ -76,7 +76,7 @@ username :102 ``` !!! note - The VNC server runs on port 59xx, where xx is the display number. So, you get your port number simply as 5900 + display number, in our example 5900 + 61 = 5961. Another example for display number 102 is calculation of TCP port 5900 + 102 = 6002. **Please, calculate your own port number and use it instead of 5961 from examples below!** + The VNC server runs on port 59xx, where xx is the display number. So, you get your port number simply as 5900 + display number, in our example 5900 + 61 = 5961. Another example for display number 102 is calculation of TCP port 5900 + 102 = 6002 but be aware, that TCP ports above 6000 are often used by X11. **Please, calculate your own port number and use it instead of 5961 from examples below!** To access the VNC server you have to create a tunnel between the login node using TCP port 5961 and your machine using a free TCP port (for simplicity the very same) in next step. See examples for [Linux/Mac OS](#linuxmac-os-example-of-creating-a-tunnel) and [Windows](#windows-example-of-creating-a-tunnel). -- GitLab From ebc56effb0c99102bc5f21a22dd175ba0b498cb0 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 12:22:40 +0200 Subject: [PATCH 2/9] X11 using WSL --- .../graphical-user-interface/x-window-system.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index fd240995..58a827ce 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -7,13 +7,15 @@ The X Window system is a principal way to get GUI access to the clusters. The ** ## X Display +### Linux Example + In order to display graphical user interface GUI of various software tools, you need to enable the X display forwarding. On Linux and Mac, log in using the -X option tho ssh client: ```console local $ ssh -X username@cluster-name.it4i.cz ``` -## X Display Forwarding on Windows +### PuTTY on Windows On Windows use the PuTTY client to enable X11 forwarding. In PuTTY menu, go to Connection-SSH-X11, mark the Enable X11 forwarding checkbox before logging in. @@ -21,6 +23,15 @@ On Windows use the PuTTY client to enable X11 forwarding. In PuTTY menu, go to C Then log in as usual. +### WSL (Bash on Windows) + +```console + local $ export DISPLAY=localhost:0.0 + local $ ssh -X username@cluster-name.it4i.cz +``` + +## Verify the Forwarding + To verify the forwarding, type ```console @@ -39,11 +50,11 @@ then the X11 forwarding is enabled. In order to display graphical user interface GUI of various software tools, you need running X server on your desktop computer. For Linux users, no action is required as the X server is the default GUI environment on most Linux distributions. Mac and Windows users need to install and run the X server on their workstations. -## X Server on OS X +### X Server on OS X Mac OS users need to install [XQuartz server](https://www.xquartz.org). -## X Server on Windows +### X Server on Windows There are variety of X servers available for Windows environment. The commercial Xwin32 is very stable and rich featured. The Cygwin environment provides fully featured open-source XWin X server. For simplicity, we recommend open-source X server by the [Xming project](http://sourceforge.net/projects/xming/). For stability and full features we recommend the [XWin](http://x.cygwin.com/) X server by Cygwin -- GitLab From f08243253dbf48a9d18e1edb6afd719565dd7243 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 13:27:18 +0200 Subject: [PATCH 3/9] h3 --- .../graphical-user-interface/x-window-system.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index 58a827ce..9ea347d8 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -105,7 +105,7 @@ In this example, we log in on the r24u35n680 compute node, with the X11 forwardi The Gnome 2.28 GUI environment is available on the clusters. We recommend to use separate X server window for displaying the Gnome environment. -## Gnome on Linux and OS X +### Gnome on Linux and OS X To run the remote Gnome session in a window on Linux/OS X computer, you need to install Xephyr. Ubuntu package is xserver-xephyr, on OS X it is part of [XQuartz](http://xquartz.macosforge.org/landing/). First, launch Xephyr on local machine: @@ -131,11 +131,11 @@ xinit /usr/bin/ssh -XT -i .ssh/path_to_your_key yourname@cluster-namen.it4i.cz g However this method does not seem to work with recent Linux distributions and you will need to manually source /etc/profile to properly set environment variables for PBS. -## Gnome on Windows +### Gnome on Windows Use XLaunch to start the Xming server or run the XWin.exe. Select the "One window" mode. -Log in to the cluster, using PuTTY. On the cluster, run the gnome-session command. +Log in to the cluster, using [PuTTY](#putty-on-windows) or [Bash on Windows](#wsl-bash-on-windows). On the cluster, run the gnome-session command. ```console $ gnome-session & -- GitLab From 3f0897296e1a8a94083c227c2fae2752992e236c Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 13:30:56 +0200 Subject: [PATCH 4/9] Fix --- .../graphical-user-interface/x-window-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index 9ea347d8..fce05864 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -9,7 +9,7 @@ The X Window system is a principal way to get GUI access to the clusters. The ** ### Linux Example -In order to display graphical user interface GUI of various software tools, you need to enable the X display forwarding. On Linux and Mac, log in using the -X option tho ssh client: +In order to display graphical user interface GUI of various software tools, you need to enable the X display forwarding. On Linux and Mac, log in using the -X option in ssh client: ```console local $ ssh -X username@cluster-name.it4i.cz -- GitLab From ee4737a5160f62dfee42f32c1c6729cfca01e586 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 13:41:26 +0200 Subject: [PATCH 5/9] Descr --- .../graphical-user-interface/x-window-system.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index fce05864..e6f4756b 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -25,6 +25,8 @@ Then log in as usual. ### WSL (Bash on Windows) +In order to display graphical user interface GUI of various software tools, you need to enable the X display forwarding. Log in using the -X option in ssh client: + ```console local $ export DISPLAY=localhost:0.0 local $ ssh -X username@cluster-name.it4i.cz -- GitLab From b15cb324ab9e3f292bf079fc9b5d3ec4a27e8f70 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 13:53:23 +0200 Subject: [PATCH 6/9] Tip --- .../graphical-user-interface/x-window-system.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index e6f4756b..2b3809ad 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -28,10 +28,15 @@ Then log in as usual. In order to display graphical user interface GUI of various software tools, you need to enable the X display forwarding. Log in using the -X option in ssh client: ```console - local $ export DISPLAY=localhost:0.0 local $ ssh -X username@cluster-name.it4i.cz ``` +!!! tip + If unable to execute graphical sofware showing error message "cannot open display" then try export DISPLAY variable before log in using the -X option in ssh client: +```console + local $ export DISPLAY=localhost:0.0 +``` + ## Verify the Forwarding To verify the forwarding, type -- GitLab From 83367be45fae6a1a6874f51acd1b23034518b48e Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 13:54:38 +0200 Subject: [PATCH 7/9] Fix --- .../graphical-user-interface/x-window-system.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index 2b3809ad..8dc0576a 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -33,6 +33,7 @@ In order to display graphical user interface GUI of various software tools, you !!! tip If unable to execute graphical sofware showing error message "cannot open display" then try export DISPLAY variable before log in using the -X option in ssh client: + ```console local $ export DISPLAY=localhost:0.0 ``` -- GitLab From aaf2250fe035d330479666534dea65188f8fe9cf Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 13:58:59 +0200 Subject: [PATCH 8/9] Fix --- .../graphical-user-interface/x-window-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index 8dc0576a..8fc72fe3 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -32,7 +32,7 @@ In order to display graphical user interface GUI of various software tools, you ``` !!! tip - If unable to execute graphical sofware showing error message "cannot open display" then try export DISPLAY variable before log in using the -X option in ssh client: + If getting error message "cannot open display" then try to export DISPLAY variable before attempt to log in: ```console local $ export DISPLAY=localhost:0.0 -- GitLab From f1b7f28ddae3948ab505e2532b59c45fc168bd18 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek Date: Thu, 28 Jun 2018 15:13:34 +0200 Subject: [PATCH 9/9] Fix --- .../graphical-user-interface/x-window-system.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md index 8fc72fe3..1f87d62a 100644 --- a/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md +++ b/docs.it4i/general/accessing-the-clusters/graphical-user-interface/x-window-system.md @@ -32,7 +32,7 @@ In order to display graphical user interface GUI of various software tools, you ``` !!! tip - If getting error message "cannot open display" then try to export DISPLAY variable before attempt to log in: + If you are getting error message "cannot open display", then try to export DISPLAY variable, before attempting to log in: ```console local $ export DISPLAY=localhost:0.0 -- GitLab