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

From Hall A Wiki
Jump to: navigation, search
(Move vncsession to d2n.jlab.org)
Line 2: Line 2:
 
   Open a terminal window on your local computer and run:
 
   Open a terminal window on your local computer and run:
 
   % ssh <your-jlab-username>@login.jlab.org -L 2222:d2n.jlab.org:22
 
   % 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):
 
2) Now tunnel the vnc port through the tunnel from (1):
Line 22: Line 24:
 
     Display/Port  = 7
 
     Display/Port  = 7
 
     -!-> Be sure to check the 'Shared Display' box
 
     -!-> 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:
 
Windows:
 
   This can be done by using a couple of instances of PuTTY to handle the ssh
 
   This can be done by using a couple of instances of PuTTY to handle the ssh
   tunnels and then using UltraVNC to connect to the VNC session.
+
   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
 
   - 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... ;-)
 
     just switch to using a fully functional OS like linux.  (I kid, I kid... ;-)

Revision as of 18:12, 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... ;-)