From ebc56effb0c99102bc5f21a22dd175ba0b498cb0 Mon Sep 17 00:00:00 2001 From: Pavel Jirasek <pavel.jirasek@vsb.cz> Date: Thu, 28 Jun 2018 12:22:40 +0200 Subject: [PATCH] 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 fd2409955..58a827ce8 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