VNC connectivity

Run your vnc server (as needed)

As needed.

The session will continue to run until you -kill it, or until SCCS does.
Warning – tokens, kerberos tickets, vpn, and ssh tunnelling can all conspire to prevent you from reconnecting to an existing vncserver session. See troubleshooting section below. The safest thing is to re-start a vncserver for every use, and -kill it when done.

Use VNC Viewer to connect from Windows (every time you connect)

Every time you need a new session.

  • Invoke a command window on your PC:
    • click the Start Button in the lower lefthand corner of your screen
    • enter Command in the search box
    • select “Command line tools” from the list
  • In the command window, use putty to create a secure scp tunnel to the vncserver host and vncserver port:
    • putty -ssh -L pcport:localhost:59displaynum vncserverhost.slac.stanford.edu
      • pcport = port on your pc, e.g. 5902
      • displaynum = vncserver session as noted when you started the vncserver
      • vncserverhost = host where vncserver is running
    • for example
      putty -ssh -L 5902:localhost:5903 iris01.slac.stanford.edu
      or
      putty -ssh -L 5902:localhost:5912 iris02.slac.stanford.edu
      **Enter your unix username and password.
  • Now run the VNC Viewer (click the shortcut)
    • In the Server box, enter localhost:pcport
      for example localhost:5902
    • click OK
    • The vnc viewer authentication popup will appear; this can take some time.
    • Enter your vnc server password (you don’t need to enter username in the popup).
  • Your linux desktop should appear.
  • When you’re ready to close the vnc client, simply click the window close icon, “X”, at the upper righthand corner of the display.

===================================

http://www.howtoforge.com/vnc-server-installation-centos-6.5