Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Connect from Windows (everytime you need to)

  • Create a connection to SLAC using vpn (see vpn link above)
  • 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 your vncserver port:
    • putty -ssh -L pcport:localhost:59displaynum vncserverhost.slac.stanford.edu
      • pcport = port on your pc, 590anything, e.g. 5901
      • displaynum = 2-digit vncserver session i, as noted when you started the vncserver, use 2 digits with leading 0 if needed, see above
      • 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 client.
  • In the Server box, enter localhost:pcport
    for example localhost:590125902
  • click OK
  • The vnc viewer authentication popup will appear; this could take some time, perhaps up to 30 seconds or a minute.
  • 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.

...

  • no vnc ps configured – get exact message here
  • this means that your session has lost the ability to read the vnc password file, or can't find the pw file. Here are some things to try:
    • Verify you are still connected to SLAC via vpn
    • Verify you're putty-ed into the right host and port for your vncserver, and you've specified the right pc port in the vnc client popup.
    • log into the vncserver host with normal ports, and verify your vncserver session:
      putty -ssh iris01
      ps -ef | grep vnc | grep yourusername
    • If the process is not running, then restart it , and make sure to note the displaynumas detailed above.
    • You can try to refresh the vnc password (use vncpasswd command, as detailed above)  You can use the same password, or a different one - the goal is to touch the password file.
    • Close your putty ssh sessions.
    • Re-establish the tunnel to the vncserver port.
  • If none of these steps are successful, then you will have to kill the vncserver, restart it, and then reconnect. See above for instructions.

...