VNC

From BrainImagingCenter
Jump to: navigation, search

Using VNC for Remote Data Analysis

  • What is VNC?

VNC is a client-server technology that enables remote stateless connections to a server.

  • How do I start a VNC Session?

Starting a VNC session requires making a remote session to one of the DBIC's Linux/UNIX systems. You will most likely want to begin with using the system named dexter. To begin with, launch a shell on dexter using either MacOS X's Terminal.app (Applications/Utilities/Terminal) or Putty on Microsoft Windows. On Linux or UNIX you may simply open a new terminal window. You will need to ssh to dexter substituting your username for username' below:

ssh username@dexter.dartmouth.edu

Once you have successfully connected run vncserver to launch the VNC server (which will run remotely on dexter):

vncserver

The output returned from vncserver will be your display number. Please remember this number as you will need it to connect from your VNC client.


Vnc 01.jpg

  • How do I connect remotely?
* MacOS X
 - Chicken of the VNC (covnc)
 1) Open 'Chicken of the VNC'
 2) Click Connection -> Open Connection and fill in server, display, and password.

Covnc-snap01.jpg

* PC
* Linux/UNIX
  • How do I identify existing sessions?

Use the lsvnc command:

[jed@dexter ~]$ lsvnc
Run Time        Display

13-20:59:52     Xvnc :7  
4-23:24:47      Xvnc :34 

Use vncserver -kill DISPLAY to terminate (example :12)


  • How do I remove dead sessions?

First, identify those sessions with lsvnc and then kill with the vncserver command as shown below:

vncserver -kill :8

If you needed to kill your session because of an expired AFS token please see the reauth page.