VNC: Difference between revisions

Jump to navigation Jump to search
91 bytes added ,  4 years ago
Marked this version for translation
mNo edit summary
(Marked this version for translation)
Line 92: Line 92:
1) Start a VNC server (for 3600sec or more as required) and determine the listening port:
1) Start a VNC server (for 3600sec or more as required) and determine the listening port:


<!--T:163-->
<source lang="bash">
<source lang="bash">
[laptop:~] ssh graham.computecanada.ca
[laptop:~] ssh graham.computecanada.ca


<!--T:164-->
[gra-login1:~] vncserver -MaxConnectionTime 3600
[gra-login1:~] vncserver -MaxConnectionTime 3600
   Log file is /home/username/.vnc/gra-login1:3.log
   Log file is /home/username/.vnc/gra-login1:3.log


<!--T:165-->
[gra-login1:~] grep port /home/username/.vnc/gra-login1:3.log
[gra-login1:~] grep port /home/username/.vnc/gra-login1:3.log
   vncext: Listening for VNC connections on all interface(s), port 5903
   vncext: Listening for VNC connections on all interface(s), port 5903


<!--T:166-->
[gra-login1:~] exit
[gra-login1:~] exit
</source>
</source>
Line 107: Line 111:
2) Setup up a SSH tunnel to the VNC server:
2) Setup up a SSH tunnel to the VNC server:


  [laptop:~] ssh graham.computecanada.ca -L 5901:gra-login1:5903
  <!--T:167-->
[laptop:~] ssh graham.computecanada.ca -L 5901:gra-login1:5903


<!--T:48-->
<!--T:48-->
3) Connect to the VNC Server from your desktop
3) Connect to the VNC Server from your desktop


<!--T:168-->
If you are on a Linux desktop open a terminal and run:
If you are on a Linux desktop open a terminal and run:


  [laptop:~] vncviewer localhost:5901
  <!--T:169-->
[laptop:~] vncviewer localhost:5901


<!--T:52-->
<!--T:52-->
cc_staff
1,857

edits

Navigation menu