blob: 8646e02760322c473cb6b237b3add19b268fcf04 [file] [log] [blame]
Peter Åstrand4eacc022009-02-27 10:12:14 +00001.TH vncviewer 1 "05 May 2004" "TigerVNC" "Virtual Network Computing"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002.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 ]
Adam Tkac8bb83bf2008-10-23 12:04:14 +000011.RI [ host ][:: port ]
12.br
13.B vncviewer
14.RI [ options ]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000015.B \-listen
16.RI [ port ]
17.SH DESCRIPTION
18.B vncviewer
19is a viewer (client) for Virtual Network Computing. This manual page documents
20version 4 for the X window system.
21
22If you run the viewer with no arguments it will prompt you for a VNC server to
23connect to. Alternatively, specify the VNC server as an argument, e.g.:
24
25.RS
26vncviewer snoopy:2
27.RE
28
29where 'snoopy' is the name of the machine, and '2' is the display number of the
30VNC server on that machine. Either the machine name or display number can be
31omitted. So for example ":1" means display number 1 on the same machine, and
32"snoopy" means "snoopy:0" i.e. display 0 on machine "snoopy".
33
34If the VNC server is successfully contacted, you will be prompted for a
35password to authenticate you. If the password is correct, a window will appear
36showing the desktop of the VNC server.
37
38.SH AUTOMATIC PROTOCOL SELECTION
39
40The viewer tests the speed of the connection to the server and chooses the
41encoding and pixel format (color level) appropriately. This makes it much
42easier to use than previous versions where the user had to specify arcane
43command line arguments.
44
45The viewer normally starts out assuming the link is slow, using the
46encoding with the best compression. If it turns out that the link is
47fast enough it switches to an encoding which compresses less but is
48faster to generate, thus improving the interactive feel.
49
50The viewer normally starts in full-color mode, but switches to
51low-color mode if the bandwidth is insufficient. However, this only
52occurs when communicating with servers supporting protocol 3.8 or
53newer, since many old servers does not support color mode changes
54safely.
55
56Automatic selection can be turned off by setting the
57\fBAutoSelect\fP parameter to false, or from the options dialog.
58
59.SH POPUP MENU
60The viewer has a popup menu containing entries which perform various actions.
61It is usually brought up by pressing F8, but this can be configured with the
62MenuKey parameter. Actions which the popup menu can perform include:
63.RS 2
64.IP * 2
65switching in and out of full-screen mode
66.IP *
67quitting the viewer
68.IP *
69generating key events, e.g. sending ctrl-alt-del
70.IP *
71accessing the options dialog and various other dialogs
72.RE
73.PP
74By default, key presses in the popup menu get sent to the VNC server and
75dismiss the popup. So to get an F8 through to the VNC server simply press it
76twice.
77
78.SH FULL SCREEN MODE
79A full-screen mode is supported. This is particularly useful when connecting
80to a remote screen which is the same size as your local one. If the remote
81screen is bigger, you can scroll by bumping the mouse against the edge of the
82screen.
83
84Unfortunately this mode doesn't work completely with all window managers, since
85it breaks the X window management conventions.
86
87.SH OPTIONS (PARAMETERS)
88You can get a list of parameters by giving \fB\-h\fP as a command-line option
89to vncviewer. Parameters can be turned on with -\fIparam\fP or off with
90-\fIparam\fP=0. Parameters which take a value can be specified as
91-\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP
92-\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are
93case-insensitive.
94
95Many of the parameters can also be set graphically via the options dialog box.
96This can be accessed from the popup menu or from the "Connection details"
97dialog box.
98
99.TP
100.B \-display \fIXdisplay\fP
101Specifies the X display on which the VNC viewer window should appear.
102
103.TP
104.B \-geometry \fIgeometry\fP
105Standard X position and sizing specification.
106
107.TP
108.B \-listen \fI[port]\fP
109Causes vncviewer to listen on the given port (default 5500) for reverse
110connections from a VNC server. WinVNC supports reverse connections initiated
111using the 'Add New Client' menu option or the '\-connect' command-line option.
112Xvnc supports reverse connections with a helper program called
113.B vncconfig.
114
115.TP
116.B \-passwd \fIpassword-file\fP
117If you are on a filesystem which gives you access to the password file used by
118the server, you can specify it here to avoid typing it in. It will usually be
119"~/.vnc/passwd".
120
121.TP
122.B \-Shared
123When you make a connection to a VNC server, all other existing connections are
124normally closed. This option requests that they be left open, allowing you to
125share the desktop with someone already using it.
126
127.TP
128.B \-ViewOnly
129Specifies that no keyboard or mouse events should be sent to the server.
130Useful if you want to view a desktop without interfering; often needs to be
131combined with
132.B \-Shared.
133
134.TP
135.B \-FullScreen
136Start in full-screen mode.
137
138.TP
Pierre Ossmanb7c034a2009-03-24 10:31:37 +0000139.B \-DesktopSize \fIwidth\fPx\fIheight\fP
140Instead of keeping the existing remote screen size, the client will attempt to
141switch to the specified since when connecting. If the server does not support
142the SetDesktopSize message then the screen will retain the original size.
143
144.TP
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000145.B \-AutoSelect
146Use automatic selection of encoding and pixel format (default is on). Normally
147the viewer tests the speed of the connection to the server and chooses the
148encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
149
150.TP
151.B \-FullColor, \-FullColour
152Tells the VNC server to send full-color pixels in the best format for this
153display. This is default.
154
155.TP
156.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
157Selects the reduced color level to use on slow links. \fIlevel\fP can range
158from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
Adam Tkac4227fd92009-10-07 15:13:00 +0000159256 colors. Note that decision if reduced color level is used is made by
160vncviewer. If you would like to force vncviewer to use reduced color level
161use \fB-AutoSelect=0\fP parameter.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000162
163.TP
164.B \-PreferredEncoding \fIencoding\fP
165This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
166"hextile" or "raw".
167
168.TP
169.B -UseLocalCursor
170Render the mouse cursor locally if the server supports it (default is on).
171This can make the interactive performance feel much better over slow links.
172
173.TP
174.B \-WMDecorationWidth \fIw\fP, \-WMDecorationHeight \fIh\fP
175The total width and height taken up by window manager decorations. This is
176used to calculate the maximum size of the VNC viewer window. Default is
177width 6, height 24.
178
179.TP
180.B \-log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
181Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
182\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
183output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
184specific source file if you know the name of its "LogWriter". Default is
185\fB*:stderr:30\fP.
186
187.TP
188.B \-MenuKey \fIkeysym-name\fP
189This option specifies the key which brings up the popup menu. The key is
190specified as an X11 keysym name (these can be obtained by removing the XK_
191prefix from the entries in "/usr/include/X11/keysymdef.h"). Default is F8.
192
193.TP
194\fB\-via\fR \fIgateway\fR
195Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
196before connection, connect to the \fIhost\fR through that tunnel
Peter Åstrand4eacc022009-02-27 10:12:14 +0000197(TigerVNC\-specific). By default, this option invokes SSH local port
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000198forwarding, assuming that SSH client binary can be accessed as
199/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
200machine name should be specified as known to the gateway machine, e.g.
201"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
202was launched. The environment variable \fIVNC_VIA_CMD\fR can override
203the default tunnel command of
204\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
205command is executed with the environment variables \fIL\fR, \fIH\fR,
206\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
207host, the port number on the remote host, and the gateway machine
208respectively.
209
210.SH SEE ALSO
211.BR Xvnc (1),
212.BR vncpasswd (1),
213.BR vncconfig (1),
214.BR vncserver (1)
215.br
Peter Åstrand4eacc022009-02-27 10:12:14 +0000216http://www.tigervnc.org
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000217
218.SH AUTHOR
219Tristan Richardson, RealVNC Ltd.
220
221VNC was originally developed by the RealVNC team while at Olivetti
Constantin Kaplinskybe1bda82006-06-02 04:43:52 +0000222Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000223implemented by Constantin Kaplinsky. Many other people participated in
224development, testing and support.