X11 Forwarding allows any graphical user interface to open on your client machine while the software itself is being run on a CARC cluster compute node. This QuickByte will show you how to do X11 forwarding yourself.
Before getting started, make sure you have XQuartz downloaded and installed. This allows the X11 forwarding.
Before getting started, download MobaXterm and install. This has a built in xserver, that will connect your computer to CARC.
- In terminal sign into the CARC system using secure system connection. However, use a -X flag to enable X11 forwarding.
$ ssh -X [email protected]
- Start an interactive session using qsub, but again include the -X flag.
$ qsub -IX -l nodes=1:ppn=1
Note that the equivalent command using slurm would be as follows:
srun --x11 --nodes=1 --ntasks=1 xterm
- Once you have been assigned a node, load the MATLAB module. Then start MATLAB. You should automatically get a MATLAB GUI poping us on your computer.
$ module load matlab
$ matlab
-
Use the MATLAB GUI to load your add-on as you usually would.
-
When you are finished loading your add-on, click the x to close the GUI. Lastly, exit the interactive session to release the node for other users.
-
One can find a CARC quickbyte video on x forwarding by accessing the link below:
https://www.youtube.com/watch?v=-5ic9JWHuqI&list=PLvr5gRBLi7VAzEB_t5aXOLHLfdIu2s1hZ&index=12
If you have any trouble at any point please reach out to us at [email protected]