You will first need to create a password for VNC connection on both login nodes by running vncpasswd
command:
[me@login01 ~]$ mkdir ~/.vnc
[me@login01 ~]$ /opt/TurboVNC/bin/vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n): n
A view-only password is not used
This is the password you would need to establish the connection via VNC client installed on your local computer.
In order to run a VNC remote desktop on the login node, request that an administrator assign you a displayport.
The displayport will have a corresponding port number, which is 5900 + displayport, so if you are assigned “91” the port number to forward would be “5991”. You should note the port exclusively assigned to you and use that to connect.
Once you have an assigned VNC displayport on the login node, you can establish the connection to the login node using SSH port-forwarding.
You will need to open a terminal on your local machine. An example of forwarding the port via the terminal is shown below, and please remember to replace both port numbers before and after “localhost” with your exclusively assigned port number.
Note: the RCIF VNC server only runs on login01
, so make sure to use the “login3-01” url, e.g.:
[other_me@my_local_machine ~]$ ssh -L 5902:localhost:5902 me@login3-01.chpc.wustl.edu
(replacing “02” in this example with your assigned port)
Next, you will need a VNC client to connect to that port. There are several options, but we detail two popular options (MacOS VNC client and RealVNC) below.
Once the port is forwarded, if you are on MacOS you can use the simple and effective VNC viewer that is built in.
Open the “Finder” application, then select from the top menu “Go” -> “Connect to Server”:
Enter “vnc://0.0.0.0:5902” (replace “02” with your assigned display port) in the drop-down and click the “Connect” button. You may be prompted for a password; enter the one you used in the vncpasswd
step at the beginning. Done!
If you are not on MacOS or want a different client, the Virtual Network Computing (VNC) is a popular option. You can download and install a version of the VNC client that fits your computer OS from https://www.realvnc.com/en/connect/download/viewer/.
vncpasswd
.If you need to access your /scratch folder, you can first click on “Files” icon within the left panel (similar to what’s shown in the above image) after clicking “Activities” icon. It would bring up a new window. Then, click on “Other Locations”, it would show a folder named “Computer”.
Click on the folder named “Computer”, it would show all folders mounted on the login node, among which you can find a folder named “scratch”.
Click on the folder named “scratch”, it would show all user folders, find your own and click on it, you would be able to see all files in your scratch space.