|
Installing and Using VNCPrepared by
|
Step 1:
Download
Putty (if you don't have it already)
Note: Putty it is available at the labs in Dowling.
Go to: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Scroll down to: "For Windows 95, 98, ME, NT, 2000 and XP on Intel x86" and
Click on putty.exe to start downloading it.
Step 2: Dowload Pscp (if you don't have it already)
Note:I don't think that PSCP is available at the labs in Dowling.
In order to upload or download files securely you need to download something
extra called PSCP
Go to:
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
Scroll down to: "For Windows 95, 98, ME, NT, 2000 and XP on Intel x86"
Click on pscp.exe
to start downloading it. Save it in the same dircetory as Putty.
Step 3: Download VNC both for Linux and for Windows
Note: VNC Viewer is already installed in the labs at Dowling. In this case download
the Linux version only.
Go to:
http://www.uk.research.att.com/vnc/download.html .
Fill out your name, email and organization then select the following packages
for download: (by checking the boxes next to them)
Step 4: Download free version of SSH for Windows
Note: Not available in the lab.
Go to:
http://akson.sgh.waw.pl/~chopin/ssh/index_en.html and download ssh-win32.zip
Step 5: Upload the Linux package that you downloaded in step 3 to your Linux
Account using PSCP
PSCP is a command line application. This means that you cannot just double-click
on its icon to run it and instead you have to bring up a console window. With
Windows 95, 98, and ME, this is called an "MS-DOS Prompt" and with Windows NT
and 2000 it is called a "Command Prompt". It should be available from the Programs
section of your Start Menu. To start PSCP it will need either to be on your
PATH or in your current directory. So make the directory where you saved Pscp,
when you downloaded it above you current directory by using the cd command.
For example: If you current directory is c:/WINDOWS
and the directory where Pcsp is c:/putty you would type: cd.. to go up one level
and then cd putty to go to putty directory..
PSCP Usage
Once you've got a console window to type into, you can just type pscp on its
own to bring up a usage message. This tells you the version of PSCP you're using,
and gives you a brief summary of how to use PSCP:
(PSCP's interface is much like the Unix scp command, if you're familiar with
that.)
To receive (a) file(s) from a remote server:
pscp [options] [user@]host:source target
So to copy the file /etc/hosts from our server 149.72.28.28 as
user fred to the file c:\temp\example-hosts.txt, you would type:
pscp fred@149.72.29.28:/etc/hosts c:\temp\example-hosts.txt
To send (a) file(s) to a remote server:
pscp [options] source [source...] [user@]host:target
So to copy the local file c:\documents\csh-whynot.txt to the server 149.72.28.28
as user fred to the file /tmp/csh-whynot you would type:
pscp c:\documents\csh-whynot.txt fred@149.72.28.28:/tmp/csh-whynot
You can use wildcards to transfer multiple files in either direction, like this:
pscp c:\documents\*.doc fred@149.72.28.28.com:docfiles
pscp fred@149.72.28.28:source/*.c c:\source
So here is how I uploaded the compresses Linux package downloaded in step 3
above from c:\temp at the local machine to the directory vnc on the remote machine.
This assumes that the dirctory vnc is prevously created by typing md vnc in
putty.:
c:\temp\pscp *.tgz username@149.72.28.28:vnc
After that I had to type y and at then it asked for my password which I cheerfully
provided.
step 6: Unzipping the file and running the VNC server
Log in to your account using Putty and type cd vnc to go to the vnc directory.
Type: gunzip *.tgz to unzip the file. after that you will have one .tar file
Type: tar -xf *.tar to extract the files.
Then type vncserver :your_number and you are all set.
Important note:In order to run an 8-bit pseudocolor display (e.g. for RasMol in 8-bit mode), instead of typing vncserver :n, type vncserver -cc 3 :n
step 7: Installing and running the the ssh windows client.
Locate the ssh-win32.zip that you downloaded in step 4 above and double click
on it.
Your disarchiving software (assuming you have one) will open up. Usually you
click on
Extract and choose a directory where the ssh-client files will be extracted
to.
Go to that directory and start Ssh32.exe by double clicking on it. Hit OK on
the screen that
comes up. If you are being asked, where's crypt library, browse to "crypt32.dll".
Simple usage:
Field "Host Name" should be filled with "149.72.28.28" (or whatever host you
want to connect to)
Port is 22
Field "User ID" should be filled with your username.
Be sure to select 3des in the cipher type field.
Click on Local forward:
Type in local port 5954
Host: 149.72.28.28
Port: 59yournumberhere
Click new and then OK
then press "OK" again and after a while enter your password.
type finger yourusername and note the IP address that shows up somewhere at
the next to the last line. In my case: 149.72.5.82
step 8: Installing and Running the VNC Viewer
Note: VNC Viewer is already installed in the labs at Dowling.
Go to start programs and select VNC viewer from the list.
If it is not installed go to the folder where you downloaded the files from
step 3 above locate the file vnc-3.3.3r9_x86_win32.zip and double click on it.
Your disarchiving software (assuming you have one) will open up. Usually you
click on Extract and choose a directory where the vnc-viewer will be extracted
to.
Go to that directory and start vncviewer.exe by double clicking on it. In the
box enter the IP of the local machine that you noted after the finger command
followed by the local port number (5954) such as: 149.72.5.82:5954
Type your password and you are up and running an X Window Terminal.
Updated 1 Mar 02, HJB