VNC Tutorial

From ScorecWiki

Jump to: navigation, search


Note that if you believe that this tutorial can be improved or some of the provided information are not accurate/complete, please get it improved as needed.

Contents

Basic information

To do before following the step by step tutorial

  • On windows machine:
    • Install Cygwin, Putty, or Secure-CRT to be able to open a terminal
    • Install a VNC client such as TightVNC or RealVNC.

Step by step tutorial (tested on Mac & Ubuntu)

1) Connect to scorec machine that supports vnc

Open a terminal on your machine

   ssh YourLogin@jumpgate.scorec.rpi.edu

Type your SCOREC password

   ssh portal1


2) Start a vnc session on SCOREC machine

   /opt/vnc_script/start_vnc.sh

if the following message is prompted: "About to edit your VNC settings (without backing them up Is this ok? (enter "Y" or "n")", enter Y

At this point a, two important information are displayed:

  • Port number you should connect on to portal 1: "you can use ssh -Ln:localhost:5934 on portal1" In this example, the port number is 5934
  • Your vnc password: "Your password is ler@jam"

You can change your password by executing the following command: /opt/tigervnc/bin/vncpasswd

Be careful, this password is not encoded.


3) Forward scorec vnc connection to the outside world

Open another terminal on your machine

Type:

  ssh -L5905:portal1:5934 YourLogin@jumpgate.scorec.rpi.edu

where 5905 corresponds to the port (number 5) you ll open on your system

and 5934 is the port (34) you have open on scorec machine (step 2)

Enter your scorec password to login


4) Start a vnc session on your machine

Mac:

Run vnc

Enter the following information in the VNC window:

  • VNC Server: localhost:5 (5 being the port you will be using on your machine)
  • Encryption: Let VNC Server choose (you can choose another option) (not for Ubuntu)


Click connect

Use the password you have defined at step 2


Ubuntu:

Run Applications> Internet> Remote Desktop Viewer Push connect

Enter the following information in the VNC window:

  • Change Protocol to VNC
  • Host: localhost:5 (5 being the port you will be using on your machine)


Click connect

Use the password you have defined at step 2


5) Open scorec session

A window should open, asking for your scorec password

Use your scorec password to login

A Linux desktop should appear in that window

Additional information

  • Once you are done with your session, you need to close your vnc session:

In the terminal you used at step 2, type:

   /opt/vnc_script/stop_vnc.sh
  • If you have any trouble, send an email to help@scorec.rpi.edu
Personal tools