From ee6aa13c956dff289d1abc0dab4bd048caa17864 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek <pavel.jirasek@vsb.cz> Date: Wed, 27 Jun 2018 11:37:09 +0200 Subject: [PATCH] VNC WSL --- .../graphical-user-interface/vnc.md | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) 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 12f0743a3..e785feab9 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 @@ -44,7 +44,7 @@ Based on this **we have choosen display number 61** for us, so this number you c !!! note Your situation may be different so also choose of your number may be different. **Please choose and use your own display number accordingly!** -Start your VNC server on choosen display port (61): +Start your VNC server on choosen display number (61): ```console [username@login2 ~]$ vncserver :61 -geometry 1600x900 -depth 16 @@ -55,7 +55,7 @@ Starting applications specified in /home/username/.vnc/xstartup Log file is /home/username/.vnc/login2:1.log ``` -Check whether VNC server is running on choosen port (61): +Check whether VNC server is running on choosen display number (61): ```console [username@login2 .vnc]$ vncserver -list @@ -123,7 +123,7 @@ kill 2022 ## Windows Example of Creating a Tunnel -Use PuTTY to log in on cluster. +### Use PuTTY to log in on cluster Start vncserver using command vncserver described above. @@ -142,15 +142,23 @@ Fill the Source port and Destination fields. **Do not forget to click the Add bu  +### Use Windows Subsystem for Linux ([WSL](http://docs.microsoft.com/en-us/windows/wsl)) to log in on cluster + +At your machine, create the tunnel: + +```console +local $ ssh username@login2.cluster-name.it4i.cz -L 5961:localhost:5961 +``` + Run the VNC client of your choice, select VNC server 127.0.0.1, port 5961 and connect using VNC password. -## Example of Starting TigerVNC Viewer +### Example of Starting TigerVNC Viewer  In this example, we connect to VNC server on port 5961, via the ssh tunnel, using TigerVNC viewer. The connection is encrypted and secured. The VNC server listening on port 5961 provides screen of 1600x900 pixels. -## Example of Starting TightVNC Viewer +### Example of Starting TightVNC Viewer Use your VNC password to log using TightVNC Viewer and start a Gnome Session on the login node. -- GitLab