Calc has the ability to provide you with a virtual desktop on the Calc login node, complete with GUI and GPU acceleration. This is accomplished with the use of Virtual Network Computing, or VNC, and VirtualGL on top of our NVIDIA GRID infrastructure.
Connecting to a VNC session in a secure manner is a non-trivial process, requiring the use of multiple programs and protocols simultaneously. This is in part due to the minimal security provided by VNC itself, and thus the need to "wrap" VNC in a more secure protocol: SSH. VNC has distinct advantages over traditional X11 forwarding:
- Lightweight: VNC uses the remote CPUs and GPU for display rendering (X11 forwarding uses the client's hardware)
- Latency Tolerance: Since draw routines and "output" happen remotely, client latency has no effect on drawing (just how long it takes to get the resulting output to you)
- Persistent: The VNC session persists even if you lose connection (X11 forwarded codes die when the X11 server, which is actually your client, disconnects).
- An SSH Client (PuTTY *HIGHLY* recommended)
- A Compatible VNC Client (TurboVNC's Java Viewer *HIGHLY* recommended. TigerVNC will work, but slower. RealVNC, UltraVNC, and the native TurboVNC clients all lack necessary protocol and/or encryption support)
Task 1 - Start a VNC Session on Calc
Open PuTTY, connect to Calc at either calc.dge.carengiescience.edu or calc.dpb.carnegiescience.edu
Login with your Carnegie credentials
Create a new VNC session with the command: vncserver
Take note of the "display" number (the number after the colon). We'll use this number in the next step.
- You can close this SSH session if you wish. The VNC server will persist until you shut it down or Calc is rebooted.
Task 2 - Create an SSH Tunnel (if necessary)
- If you are on DPB/DGE's ethernet network, or are connected to the DPB/DGE VPN, skip to task 3
- If not, follow our instructions on SSH tunneling, using the following information
• "Target" Server: localhost
• "Target Port": 5900 + the "display" number noted above. If you can't remember your display number, you can look it up on Calc with the following command: vncserver -list
• "SSH Gateway": calc.dge.carnegiescience.edu or calc.dpb.carnegiescience.edu
- Take note of the "high port" you use when creating the tunnel to Calc
Task 3 - Connect to Your VNC Session
- Open the TurboVNC Java Viewer
If this is the first time you've opened the app, click on "Options"
Otherwise, skip to step 4
- Set the encoding to "Tight + Medium". This setting proved to be the best ballance in quality vs bandwidth vs load in our testing.
Once set, you can save this as the default under the Global tab.
- Connect to either:
• Ethernet and VPN: either
(where # is your "display" number from task 1)
• SSH Tunneling: localhost:##### (where ###### is the local "high" port for the SSH tunnel established in task 2)
- Login with your Carnegie credentials
You are now connected to Calc, graphically
Step 4 - Close Your VNC Session
- If you would like to close your remote desktop, you can issue the command: vncserver -kill :#
where # is the display number of your remote desktop session. If you can't remember it, you can find it with the command: vncserver -list