If your application does not have a command line interface, or if it has a graphical interface that you would prefer to use then you can make use of X to export this interface back to your computer.
You will need to install an X client on your computer, such as Xming for windows or Xquartz for Mac.
Before logging in you need to enable X11 forwarding in your ssh client, for example in PuTTY:
It is recommended that you save a ssh session in PuTTY with this option enabled to avoid repeating this each time you login.
You then need to run a X client on your computer, we recommend Xming which is free. This needs to be running each time you want to connect a graphical application to your computer from the cluster. Select “Multiple windows” and “Start no client”.
To do a brief test ensure that No Access Control is selected, then click Finish. For future use you will need to add all hpc nodes to the C:\Program Files (x86)\X0.hosts config file on your computer to enable secure access only. Selecting No Access Control is a security risk! To protect your computer do not run jobs with No Access Control selected.
On the cluster you will need to set an environment variable to let the application know where to stream the graphic interface to.
export DISPLAY=my.ip.addr:0.0
Note that there are no spaces around the = sign and the IP address is your computer. The 0.0 is the default display number on your computer. As this will be run from the worker nodes you must either include this in your script or set it on a worker node during an interactive session.
To do a brief test run an interactive job, export your display and type xclock. A clock should now appear on your desktop.
Below is a complete example using the HPC cluster with SLURM. The user initiates an interactive session with the sint command, exports a display to a desktop X client and launches the application, in this case CASA. The application is controlled via both the cluster’s Linux command prompt (black background) and the exported GUI windows which are X windows running on the user’s desktop and can be controlled via the mouse.
Once again you are reminded to set up the X0.hosts config file on your computer for security reasons and not to run Xming with No Access Control ticked. Create a X0.hosts file in the following format:
localhost srvcnthpc001.uct.ac.za srvcntmon001.uct.ac.za srvcnthpc100.uct.ac.za srvcnthpc101.uct.ac.za srvcnthpc102.uct.ac.za srvcnthpc103.uct.ac.za srvcnthpc104.uct.ac.za srvcnthpc105.uct.ac.za srvcnthpc106.uct.ac.za srvcnthpc107.uct.ac.za srvcnthpc108.uct.ac.za srvcnthpc109.uct.ac.za srvcnthpc110.uct.ac.za srvcnthpc111.uct.ac.za srvcnthpc112.uct.ac.za srvcnthpc113.uct.ac.za srvcnthpc114.uct.ac.za srvcnthpc115.uct.ac.za srvcnthpc116.uct.ac.za srvcnthpc117.uct.ac.za srvcnthpc118.uct.ac.za srvcnthpc119.uct.ac.za srvcnthpc120.uct.ac.za srvcnthpc121.uct.ac.za srvcnthpc122.uct.ac.za srvcnthpc123.uct.ac.za srvcnthpc124.uct.ac.za srvcnthpc125.uct.ac.za srvcnthpc126.uct.ac.za
And copy this to C:\Program Files (x86). Ensure No Access Control is not ticked when launching Xming.