VNC is a lightweight protocol for accessing graphical applications
remotely. The protocol allows one or more clients to connect to
a server. While connected, clients display the frame buffer presented
by the server and can send mouse events, keyboard events, and
exchange snarf buffers. The server persists across
viewer sessions, so that the virtual application can be accessed
from various locations as its owner moves around.

VNC displays have names of the form host:n, where host is the
machine's network name and n is a small integer identifier; display
n is served on TCP port 5900+n.

Vncs starts a new virtual frame buffer in memory, simulating a
Plan 9 terminal running cmd args, by default an interactive shell.
As viewers connect, each is authenticated using a (rather breakable)
challenge–response protocol using the user's Inferno/POP password.

The options are:
–ccert start TLS on each viewer connection using the certificate
in the file cert. The corresponding private key must be loaded
into the server's factotum(4). When serving TLS connections, the
base port is 35729 rather than 5900.
–d :n run on display n ; without this option, the server searches
for an unused display.
–gwidthxheight

set the virtual frame buffer to be widthxheight (default 1024x768)
pixels.
–

Vncv provides access to remote display host:n. It resizes its
window to be the smaller of the remote frame buffer size and the
local screen.

The options are:
–c when connecting to 8–bit displays, request r4g4b4 pixels rather
than r3g3b2 pixels. This takes up more bandwidth but usually gives
significantly better matching to the Plan 9 color map.
–eencodings

set the ordered list of allowed frame buffer update encodings.
The default (and full) set is copyrect corre hextile rre raw.
The encodings should be given as a single space–separated argument
(quoted when using the shell).
–

lcharset

sets the character set (see tcs(1)) used by the server to encode
clipboard text. The default is utf–8.
–

kkeypattern

add keypattern to the pattern used to select a key from factotum(4).
–

s share the display with extant viewers; by default extant viewers
are closed when a new viewer connects.
–t start TLS on the connection.
–v print verbose output to standard error.

SOURCE

/sys/src/cmd/vnc

SEE ALSO

http://www.uk.research.att.com/vnc

BUGS

If the remote frame buffer is larger than the local screen, only
the upper left corner can be accessed.

Vncv does no verification of the TLS certificate presented by
the server.