...
This document contains instructions for setting up a connection from a Windows PC to a VNC linux session.
Set up your PC
...
One time
...
.
- Install vpn if you don't have it already. Instructions from SCCS are here: https://confluence.slac.stanford.edu/display/NetMan/How+to+Connect+to+SLAC+VPN
- Download and install the vnc for windows viewer client software executable from here: http://www.realvnc.com/products/free/4.1/winvncviewer.html; (make a shortcut on your desktop)
- Download and install putty, if you don't have it already. Once you install and run vpn, you can get putty from the SLAC xweb: https://xweb.slac.stanford.edu
Configure your vncserver
...
One time
...
.
- vpn into the SLAC network, see https://confluence.slac.stanford.edu/display/NetMan/How+to+Connect+to+SLAC+VPN
- Using putty (or XWin-32 if you prefer) log into iris01.slac.stanford.edu, providing your unix username and password
- Create your vnc password:
- > vncpasswd
Provide a password following the usual SLAC password guidelines.
The password will be stored in ~/.vnc/passwd
To reset the password, run vncpasswd again.
- > vncpasswd
...
- Edit your vnc xstartup file to invoke kde at startup:
- > emacs ~/.vnc/xstartup
change last line from "twm" & to "startkde&", save and close
- > emacs ~/.vnc/xstartup
Run your vnc server
...
As needed
...
.
- > vncserver -localhost -nolisten tcp -geometry 1440x900
(or use desired display parameters, see.....)
Again, make note of the displaynum - you'll need to use it to connect from Windows.
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
...
Every time you need
...
a new session.
- 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 vncserver port:
- putty -ssh -L pcport:localhost:59displaynum vncserverhost.slac.stanford.edu
- pcport = port on your pc, 590anything, e.g. 5901
- displaynum = vncserver session 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
- putty -ssh -L pcport:localhost:59displaynum vncserverhost.slac.stanford.edu
- Enter your unix username and password.
...