blob: a0db43695da1081610e4ee723e6abb0efcf2150c [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001.TH vncviewer 1 "18 May 2004" "RealVNC Ltd" "Virtual Network Computing"
2.SH NAME
3vncviewer \- VNC viewer for X
4.SH SYNOPSIS
5.B vncviewer
6.RI [ options ]
7.RI [ host ][: display# ]
8.br
9.B vncviewer
10.RI [ options ]
11.B \-listen
12.RI [ port ]
13.SH DESCRIPTION
14.B vncviewer
15is a viewer (client) for Virtual Network Computing. This manual page documents
16version 4 for the X window system.
17
18If you run the viewer with no arguments it will prompt you for a VNC server to
19connect to. Alternatively, specify the VNC server as an argument, e.g.:
20
21.RS
22vncviewer snoopy:2
23.RE
24
25where 'snoopy' is the name of the machine, and '2' is the display number of the
26VNC server on that machine. Either the machine name or display number can be
27omitted. So for example ":1" means display number 1 on the same machine, and
28"snoopy" means "snoopy:0" i.e. display 0 on machine "snoopy".
29
30If the VNC server is successfully contacted, you will be prompted for a
31password to authenticate you. If the password is correct, a window will appear
32showing the desktop of the VNC server.
33
34.SH AUTOMATIC PROTOCOL SELECTION
35
36The viewer tests the speed of the connection to the server and chooses the
37encoding and pixel format (colour level) appropriately. This makes it much
38easier to use than previous versions where the user had to specify arcane
39command line arguments.
40
41The viewer normally starts out assuming the link is slow, using a low colour
42level and using the encoding with the best compression. If it turns out that
43the link is fast enough it switches to full-colour mode and will use an
44encoding which compresses less but is faster to generate, thus improving the
45interactive feel. Automatic selection can be turned off by setting the
46\fBAutoSelect\fP parameter to false, or from the options dialog.
47
48.SH POPUP MENU
49The viewer has a popup menu containing entries which perform various actions.
50It is usually brought up by pressing F8, but this can be configured with the
51MenuKey parameter. Actions which the popup menu can perform include:
52.RS 2
53.IP * 2
54switching in and out of full-screen mode
55.IP *
56quitting the viewer
57.IP *
58generating key events, e.g. sending ctrl-alt-del
59.IP *
60accessing the options dialog and various other dialogs
61.RE
62.PP
63By default, key presses in the popup menu get sent to the VNC server and
64dismiss the popup. So to get an F8 through to the VNC server simply press it
65twice.
66
67.SH FULL SCREEN MODE
68A full-screen mode is supported. This is particularly useful when connecting
69to a remote screen which is the same size as your local one. If the remote
70screen is bigger, you can scroll by bumping the mouse against the edge of the
71screen.
72
73Unfortunately this mode doesn't work completely with all window managers, since
74it breaks the X window management conventions.
75
76.SH OPTIONS (PARAMETERS)
77You can get a list of parameters by giving \fB\-h\fP as a command-line option
78to vncviewer. Parameters can be turned on with -\fIparam\fP or off with
79-\fIparam\fP=0. Parameters which take a value can be specified as
80-\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP
81-\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are
82case-insensitive.
83
84Many of the parameters can also be set graphically via the options dialog box.
85This can be accessed from the popup menu or from the "Connection details"
86dialog box.
87
88.TP
89.B \-display \fIXdisplay\fP
90Specifies the X display on which the VNC viewer window should appear.
91
92.TP
93.B \-geometry \fIgeometry\fP
94Standard X position and sizing specification.
95
96.TP
97.B \-listen \fI[port]\fP
98Causes vncviewer to listen on the given port (default 5500) for reverse
99connections from a VNC server. WinVNC supports reverse connections initiated
100using the 'Add New Client' menu option or the '\-connect' command-line option.
101Xvnc supports reverse connections with a helper program called
102.B vncconfig.
103
104.TP
105.B \-passwd \fIpassword-file\fP
106If you are on a filesystem which gives you access to the password file used by
107the server, you can specify it here to avoid typing it in. It will usually be
108"~/.vnc/passwd".
109
110.TP
111.B \-Shared
112When you make a connection to a VNC server, all other existing connections are
113normally closed. This option requests that they be left open, allowing you to
114share the desktop with someone already using it.
115
116.TP
117.B \-ViewOnly
118Specifies that no keyboard or mouse events should be sent to the server.
119Useful if you want to view a desktop without interfering; often needs to be
120combined with
121.B \-Shared.
122
123.TP
124.B \-FullScreen
125Start in full-screen mode.
126
127.TP
128.B \-AutoSelect
129Use automatic selection of encoding and pixel format (default is on). Normally
130the viewer tests the speed of the connection to the server and chooses the
131encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
132
133.TP
134.B \-FullColour, \-FullColor
135Tells the VNC server to send full-colour pixels in the best format for this
136display. By default a low colour mode is used until AutoSelect decides the
137link is fast enough. However if the server's native pixel format is
138colourmapped (as opposed to truecolour) then the server's format is used by
139default.
140
141.TP
142.B \-LowColourLevel \fIlevel\fP
143Selects the reduced colour level to use on slow links. \fIlevel\fP can range
144from 0 to 2, 0 meaning 8 colours, 1 meaning 64 colours (the default), 2 meaning
145256 colours.
146
147.TP
148.B \-PreferredEncoding \fIencoding\fP
149This option specifies the preferred encoding to use from one of "ZRLE",
150"hextile" or "raw".
151
152.TP
153.B -UseLocalCursor
154Render the mouse cursor locally if the server supports it (default is on).
155This can make the interactive performance feel much better over slow links.
156
157.TP
158.B \-WMDecorationWidth \fIw\fP, \-WMDecorationHeight \fIh\fP
159The total width and height taken up by window manager decorations. This is
160used to calculate the maximum size of the VNC viewer window. Default is
161width 6, height 24.
162
163.TP
164.B \-log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
165Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
166\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
167output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
168specific source file if you know the name of its "LogWriter". Default is
169\fB*:stderr:30\fP.
170
171.TP
172.B \-MenuKey \fIkeysym-name\fP
173This option specifies the key which brings up the popup menu. The key is
174specified as an X11 keysym name (these can be obtained by removing the XK_
175prefix from the entries in "/usr/include/X11/keysymdef.h"). Default is F8.
176
177.SH SEE ALSO
178.BR Xvnc (1)
179.BR vncconfig (1),
180.BR vncserver (1),
181.br
182http://www.realvnc.com
183
184.SH AUTHOR
185Tristan Richardson, RealVNC Ltd.
186
187VNC was originally developed by the RealVNC team while at Olivetti Research Ltd
188/ AT&T Laboratories Cambridge. It is now being maintained by RealVNC Ltd. See
189http://www.realvnc.com for details.