X Window System

The X Window System is a basic framework for a GUI enviroment which allows for drawing and moving windows on the display device. The project is maintained by the x.org foundation where you can find more documentation.

X Window supports GUI applications such as MATLAB, adding a visual component to SSHing into a node.

Pick your operating system

Windows Tutorial

MobaXTerm

  1. If you are off-campus ensure you are connected to UofSC’s VPN see connecting to an HPC
  2. Launch MobaXTerm and click on the session tab
  3. Click on the SSH tab. Then select the "Advanced SSH Settings" tab and then make sure the "X11-Forwarding" box is checked
  4. Now enter the remote host, for Hyperion this is login.rci.sc.edu, see getting started for the other systems, all ports are 222. Press open to connect.
  5. Type in your username and password and confirm Duo Multifactor Authentication as prompted
  6. Now you’re on the login node. Type “idevx_11” to launch your own session. This can take some time to process the allocation. Do not run X11 sessions on the login node.
  7. Use “xeyes &” as a test program.
  8. You should see an eyes animation window appear from MobaXTerm
  9. Exit your “idev_x11” session as soon as is practical.

PuTTY with MobaXTerm

  1. If you are off-campus ensure you are connected to UofSC’s VPN see connecting to an HPC
  2. Launch an X Server application. For this example we'll be using MobaXTerm but you can also use the vt100 application, XMing or another X11 fowarding client
  3. Launch PuTTY, ensure that the X11 forwarding is enabled. This option can be found under Connections -> SSH -> X11 and then check the “Enable X11 forwarding” box.
  4. In the "X display location" box enter localhost:0
  5. Now under the session tab in PuTTY enter the hostname, for Hyperion this is login.rci.sc.edu, see getting started for the other systems, all ports are 222. Press open to connect.
  6. Type in your username and password and confirm Duo Multifactor Authentication as prompted
  7. Now you’re on the login node. Type “idevx_11” to launch your own session. This can take some time to process the allocation. Do not run X11 sessions on the login node.
  8. Use “xeyes &” as a test program.
  9. You should see an eyes animation window appear from the X Server Application (not PuTTY/SSH terminal)
  10. Exit your “idev_x11” session as soon as is practical.

Mac OS X Catalina Tutorial

  1. If you are off-campus ensure you are connected to UofSC’s VPN see connecting to an HPC
  2. Download and install the latest version of XQuartz from https://www.xquartz.org
  3. Start XQuartz.
  4. Under the XQuartz > Preferences… > Security tab, make sure both the “Authenticate connections” and “Allow connections from network clients” check boxes are checked.
  5. I exited and restarted XQuartz, just to be sure. It is possible this step is not necessary.
  6. When connecting to the HPC, use the ssh “-Y” flag instead of the “-X” flag to force trusted connections. Use a command like ssh -Y -P <port> <username>@<host>
  7. It appears that the “Warning: No xauth data; using fake authentication data for X11 forwarding” message can be safely ignored.
  8. Use “idev_x11” from the login node to get an interactive session with X11 forwarding. Do not run X11 sessions on the login node.
  9. Use “xeyes &” as a test program.
  10. Exit your “idev_x11” session as soon as is practical.

Linux

  1. If you are off-campus ensure you are connected to UofSC’s VPN see connecting to an HPC
  2. To connect to the a server with X Window: ssh -X -P[port] [username]@[loginnode]
  3. Use “idev_x11” from the login node to get an interactive session with X11 forwarding. Do not run X11 sessions on the login node.
  4. Use “xeyes &” as a test program.
  5. Exit your “idev_x11” session as soon as is practical.