Desktop access with VNC

One can also connect to the HPC cluster via a graphical desktop environment on one of the access nodes. This is done by using a VNC client application that supports the VNC protocol.

To setup the VNC connection, you will need to connect to the cluster using SSH first. See Terminal access with SSH for more details on how to connect to the cluster via SSH.

Set VNC password

You will need to set a VNC password to protect your VNC server from anonymous access. You only need to do it once for the first-time user. Type the following command in the terminal:

$ vncpasswd

Start new VNC server

Firstly, start the VNC server by typing the following command in the terminal.

$ vncmanager

Follow the step-by-step instructions on the screen to initiate a VNC server. See the screenshots below as an example.

  1. start a new VNC server

    ../../_images/vncmanager_main_menu_startvnc.png
  2. select a host

    ../../_images/vncmanager_startvnc_chosehost.png
  3. choose resolution

    ../../_images/vncmanager_startvnc_choseresolution.png
  4. make fullscreen

    ../../_images/vncmanager_startvnc_adjustscreensize.png
  5. select windows manager

    ../../_images/vncmanager_startvnc_chosewm.png
  6. VNC server started with a display endpoint

    ../../_images/vncmanager_startvnc_success.png

Connect VNC server

In the screenshots above, we have started a VNC server associated with a display endpoint mentat002.dccn.nl:56. To connect to it, we use a VNC client called TigerVNC Viewer. Follow the steps below to make the connection:

Note

The display endpoint mentat002.dccn.nl:56 is just an example. In reality, you should replace it with a different endpoint given by the vncmanager.

  1. open the TigerVNC Viewer (double-click the icon on the desktop)

    ../../_images/start_tigerVNC.png
  2. enter the display endpoint (mentat002.dccn.nl:56) as the VNC server

    ../../_images/tigerVNC_connect.png
  3. enter the authentication password you set via the vncpasswd command

    ../../_images/tigerVNC_auth.png
  4. get the graphical desktop of the access node

    ../../_images/tigerVNC_success.png

Disconnect VNC server

To disconnect the VNC server, simply close the TigerVNC-viewer window in which the graphical desktop is displayed. The VNC server will remain available, and can be reused (re-connected) when you need to use the graphical desktop again in the future.

Warning

DO NOT logout the graphical desktop as it causes the VNC server become unaccessible afterwards.

Terminate VNC server

Since the graphical windows manager takes significant amount of resources from the system, it is strongly recommended to terminate the VNC server if you are not actively using it. Terminating a VNC server can be done via the vncmanager command. The steps are shown in the screenshots below:

  1. stop a VNC server

    ../../_images/vncmanager_stopvnc.png
  2. choose a server to be stopped

    ../../_images/vncmanager_stopvnc_selectvnc.png
  3. confirm and stop the server

    ../../_images/vncmanager_stopvnc_confirm.png