1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
|
<html>
<head>
<title>Getting Started with VNC</title>
<link REL="stylesheet" HREF="styles.css" TYPE="text/css">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<meta name="keywords" content="VNC, ORL, Virtual Network Computing, thin-client">
<meta name="Microsoft Theme" content="none, default"><meta name="Microsoft Border" content="none, default"></head>
<body bgcolor="#FFFFFF" vlink="#000080">
<!--webbot bot="Include" U-Include="_private/header.html" TAG="BODY" startspan -->
<table border="0" width="100%" cellpadding="2">
<tr>
<td width="130"><p align="center"><img src="images/vnc.gif" alt="VNC logo" align="center" WIDTH="120" HEIGHT="105"></td>
<td width="20" valign="bottom"></td>
<td width="100%"><h1 align="center"><em>Virtual Network Computing</em><br>
<small><em>from ORL</em></small></h1>
</td>
<td width="75"><a href="http://www.orl.co.uk/"><img src="images/newlogosmall2.gif" alt="ORL" align="right" border="0" WIDTH="70" HEIGHT="47"></a></td>
</tr>
</table>
<hr color="#000080">
<!--webbot bot="Include" endspan i-checksum="5938" -->
<div align="left">
<table border="0" width="100%" cellspacing="0" callpadding="0">
<tr>
<td width="130" valign="top" align="center" bgcolor="#DCD9BE" background="images/sidebarbg.gif"><!--webbot bot="Include" U-Include="_private/sidebar.html" TAG="BODY" startspan -->
<p align="center"><a href="index.html"><img src="images/homebutton.gif" alt="[Home]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="screenshots.html"><img src="images/screenbutton.gif" alt="[screenshots]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="free.html"><img src="images/freebutton.gif" alt="[free?]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="start.html"><img src="images/startbutton.gif" alt="[getting started]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="docs.html"><img src="images/docbutton.gif" alt="[documentation]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="download.htm"><img src="images/downloadbutton.gif" alt="[download]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="intouch.html"><img src="images/intouchbutton.gif" alt="[keep in touch]" border="0" WIDTH="120" HEIGHT="33"></a><br>
<a href="http://www.orl.co.uk/"><img src="images/orlbutton.gif" alt="[ORL]" border="0" WIDTH="120" HEIGHT="33"></a></p>
<!--webbot bot="Include" endspan i-checksum="44984" -->
</td>
<td width="5%" valign="top"><img src="images/spacer.gif" hspace="8" vspace="0" WIDTH="1" HEIGHT="1"></td>
<td valign="top"><h2>Getting Started with VNC</h2>
<p>VNC consists of two types of component. A <em>server</em>, which generates a
display, and a <em>viewer</em>, which actually draws the display on your screen.
There are two important features of VNC:<ul>
<li>The server and the viewer may be on different machines and on different
architectures. We expect the most common use to be the display of a Unix X desktop
on a PC, for example. The protocol which connects the server and viewer is simple,
open, and platform- independent.</li>
<li>No state is stored at the viewer. Breaking the viewer's connection to the server and
then reconnecting will not result in any loss of data. Because the connection can be
remade from somewhere else, you have easy mobility.</li>
</ul>
<p>So, to get started with VNC you need to run a server, and then connect to it with a
viewer. There is a Windows server, WinVNC, but for the purposes of this introduction
we will use the X-based server, Xvnc, so you will need access to a Unix machine. WinVNC is
actually simpler - you just run it on one machine and then tell the viewer to
connect to this machine - but it has some limitations, so we'll start with X. The
current VNC software requires a TCP/IP connection between the server and the viewer,
though there is no reason why the software couldn't be modified to use, for example, RS232
or Firewire. We have internal versions that use other network transport layers.</p>
<h3>Running a server</h3>
<p>A VNC server appears to Unix applications to be a standard X display. You can
start a new server by typing:</p>
<blockquote>
<p align="left"><tt>vncserver</tt></p>
</blockquote>
<p align="left">on a Unix machine. (On a PC you may need to telnet to the Unix
machine to get a command shell into which you can type this.) The <tt>vncserver</tt>
program is a Perl script which you may need to edit to set up the directories appropriate
for your local installation.</p>
<p align="left">If you haven't run a VNC server before you will be prompted for a
password, which you will need to use when connecting to this server. All your servers will
use the same password, and you can change it using </p>
<blockquote>
<p align="left"><tt>vncpasswd</tt></p>
</blockquote>
<p>With a normal X system, the main display of a workstation <em>snoopy</em> is usually <strong>snoopy:0.</strong>
You can run as many VNC servers on a machine as you like, and they will appear as <strong>snoopy:1</strong>,
<strong>snoopy:2</strong> etc. You can cause applications to use them by setting the
DISPLAY environment variable to the VNC server you want, or by starting the application
with the <tt>-display</tt> option. For example:</p>
<blockquote>
<p align="left"><tt>xterm -display snoopy:2 &</tt></p>
</blockquote>
<p>Normally <tt>vncserver</tt> will choose the first available display number and tell you
what it is, but you can specify a display number if you always wish to use the same one:</p>
<blockquote>
<p align="left"><tt>vncserver :2</tt></p>
</blockquote>
<p>Nothing will appear immediately as a result of starting a server. To see anything you
need to connect a viewer to the server.</p>
<h3>Running a viewer</h3>
<p>If you have started a server as display 2 on machine snoopy, you can start a viewer for
it by typing:</p>
<blockquote>
<p align="left"><tt>vncviewer snoopy:2</tt></p>
</blockquote>
<p>With the Windows viewer, if you don't specify the server on the command line, you will
be prompted for the host name and display number:</p>
<p align="center"><img src="images/conndlg.gif" alt="Connection dialog" align="center" WIDTH="396" HEIGHT="127"></p>
<p>Click OK, and you will be prompted for your password, after which you should see
the display.</p>
<h3>Using Java</h3>
<p>The VNC servers also contain a small web server, which can serve the Java classes
needed for a browser to connect back to the server. You can then see your desktop
from any Java-capable browser. For some servers you will need to specify the location of
the class files when starting the VNC server. The server listens for HTTP connections on
port 5800+display number. So to view server 2 on machine snoopy, you would point
your web browser at:</p>
<blockquote>
<p align="left"><tt>http://snoopy:5802/</tt></p>
</blockquote>
<p>The applet will prompt you for your password before displaying the desktop.</p>
<p> </p>
<p align="right"><em>That's it! For more technical details see <a href="docs.html">the
documentation</a></em></p>
<p> </td>
<td width="5%"></td>
</tr>
<tr>
<td width="128%" valign="top" align="center" colspan="4"><!--webbot bot="Include" U-Include="_private/footer.html" TAG="BODY" startspan -->
<hr color="#000080">
<p align="center"><em><small>Copyright 1998 - The Olivetti & Oracle Research Lab</small></em></p>
<!--webbot bot="Include" endspan i-checksum="3896" -->
</td>
</tr>
</table>
</div>
</body>
</html>
|