Difference between revisions of "How to connect to a d2n VNC Session"

From Hall A Wiki
Jump to: navigation, search
Line 14: Line 14:
 
   -!-> Make sure you include the '-Shared' option or you kick everyone else off.
 
   -!-> Make sure you include the '-Shared' option or you kick everyone else off.
 
   ---> Get the session password from the person running the meeting.
 
   ---> Get the session password from the person running the meeting.
 
  
 
Mac OS X VNC client:
 
Mac OS X VNC client:
Line 29: Line 28:
 
   localhost:7, or
 
   localhost:7, or
 
   127.0.0.1:7
 
   127.0.0.1:7
 
  
 
Windows:
 
Windows:

Revision as of 19:14, 25 June 2015

1) Build a tunnel from your machine through to d2n.jlab.org (where the vncserver is running)

 Open a terminal window on your local computer and run:
 % ssh <your-jlab-username>@login.jlab.org -L 2222:d2n.jlab.org:22

Note: If your vncserver is running on a different machine, then replace 'd2n' with that computer’s name (ie. 'jlabl4')

2) Now tunnel the vnc port through the tunnel from (1):

 Open another terminal window on your local computer and run:
 % ssh <your-jlab-username>@localhost -p 2222 -L 5907:localhost:5907

3) Now run your vncviewer and connect to the vnc session

 Open another terminal window on your local computer and run:
 % vncviewer -Shared :7
 -!-> Make sure you include the '-Shared' option or you kick everyone else off.
 ---> Get the session password from the person running the meeting.

Mac OS X VNC client:

 'Chicken of the VNC' works well. It can be found here:
   http://sourceforge.net/projects/cotvnc/
 ---> First set up the tunnel chain as above in some terminal windows.
 In the VNC login window:
   Host           = localhost
   Display/Port   = 7
   -!-> Be sure to check the 'Shared Display' box

RealVNC client (https://www.realvnc.com/download/)

Connect to:
  localhost:7, or
  127.0.0.1:7

Windows:

 This can be done by using a couple of instances of PuTTY to handle the ssh
 tunnels and then using RealVNC or UltraVNC to connect to the VNC session.
 - I can write a walkthrough for this if there is demand but I'd prefer everyone
   just switch to using a fully functional OS like linux.  (I kid, I kid... ;-)