VNC Tutorial

From ScorecWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:49, 28 August 2010
Delalf (Talk | contribs)
(Step by step tutorial (tested on Mac))
← Previous diff
Revision as of 17:45, 28 August 2010
Weisse (Talk | contribs)
(To do before following the step by step tutorial - vnc not svn)
Next diff →
Line 11: Line 11:
* On mac machine: * On mac machine:
-** Get an svn client installed: http://www.realvnc.com/products/download.html+** Get an vnc client installed: http://www.realvnc.com/products/download.html
* On windows machine: * On windows machine:
** Get Cygwin installed (to be able to open a terminal): http://www.cygwin.com/ ** Get Cygwin installed (to be able to open a terminal): http://www.cygwin.com/
-** Get an svn client installed: To be completed by a in windows user+** Get an vnc client installed: To be completed by a in windows user
==Step by step tutorial (tested on Mac)== ==Step by step tutorial (tested on Mac)==

Revision as of 17:45, 28 August 2010


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:
    • Get Cygwin installed (to be able to open a terminal): http://www.cygwin.com/
    • Get an vnc client installed: To be completed by a in windows user

Step by step tutorial (tested on Mac)

1) Connect to scorec machine that supports vnc

Open a terminal on your mac

ssh YourLogin@jumpgate.scorec.rpi

Type your scorec password

ssh portal1


2) Start a vnc session on SCOREC machine

source /etc/profile

/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 mac

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

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

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 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 mac)
  • Encryption: Let VNC Server choose (you can choose another option)

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:

source /etc/profile

/opt/vnc_script/stop_vnc.sh

  • If you have any trouble, send an email to help@scorec.rpi.edu
Personal tools