blob: 8762dfbd2b64f12d1ad5953b163ba71e9a3af390 [file] [log] [blame]
Pierre Ossmanf256a1a2014-09-17 14:09:58 +02001.TH vncviewer 1 "" "TigerVNC" "Virtual Network Computing"
DRCe66060d2011-06-25 03:02:10 +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 ]
11.RI [ host ][:: port ]
12.br
13.B vncviewer
Pierre Ossman2b69d382018-09-28 15:31:14 +020014.RI [ options ]
15.RI [ unix\ socket ]
16.br
17.B vncviewer
DRCe66060d2011-06-25 03:02:10 +000018.RI [ options ]
19.B \-listen
20.RI [ port ]
Mathias Jonsson50439d72018-04-22 19:10:30 +020021.br
22.B vncviewer
23.RI [ options ]
Pierre Ossman2b69d382018-09-28 15:31:14 +020024.RI [ .tigervnc\ file ]
DRCe66060d2011-06-25 03:02:10 +000025.SH DESCRIPTION
26.B vncviewer
27is a viewer (client) for Virtual Network Computing. This manual page documents
28version 4 for the X window system.
29
30If you run the viewer with no arguments it will prompt you for a VNC server to
31connect to. Alternatively, specify the VNC server as an argument, e.g.:
32
33.RS
34vncviewer snoopy:2
35.RE
36
37where 'snoopy' is the name of the machine, and '2' is the display number of the
38VNC server on that machine. Either the machine name or display number can be
39omitted. So for example ":1" means display number 1 on the same machine, and
40"snoopy" means "snoopy:0" i.e. display 0 on machine "snoopy".
41
Mathias Jonsson50439d72018-04-22 19:10:30 +020042As another quick way to start a connection to a VNC server, specify a .tigervnc
43configuration file as an argument to the viewer, e.g.:
44
45.RS
46vncviewer ./some.tigervnc
47.RE
48
49where './some.tigervnc' is an existing and valid TigerVNC configuration file.
50The file name needs to include a path separator. Additional options may be
51given too, but the given configuration file will overwrite any conflicting
52parameters.
53
DRCe66060d2011-06-25 03:02:10 +000054If the VNC server is successfully contacted, you will be prompted for a
55password to authenticate you. If the password is correct, a window will appear
56showing the desktop of the VNC server.
57
58.SH AUTOMATIC PROTOCOL SELECTION
59
60The viewer tests the speed of the connection to the server and chooses the
61encoding and pixel format (color level) appropriately. This makes it much
62easier to use than previous versions where the user had to specify arcane
63command line arguments.
64
65The viewer normally starts out assuming the link is slow, using the
66encoding with the best compression. If it turns out that the link is
67fast enough it switches to an encoding which compresses less but is
68faster to generate, thus improving the interactive feel.
69
70The viewer normally starts in full-color mode, but switches to
71low-color mode if the bandwidth is insufficient. However, this only
72occurs when communicating with servers supporting protocol 3.8 or
73newer, since many old servers does not support color mode changes
74safely.
75
76Automatic selection can be turned off by setting the
77\fBAutoSelect\fP parameter to false, or from the options dialog.
78
79.SH POPUP MENU
80The viewer has a popup menu containing entries which perform various actions.
81It is usually brought up by pressing F8, but this can be configured with the
82MenuKey parameter. Actions which the popup menu can perform include:
83.RS 2
84.IP * 2
85switching in and out of full-screen mode
86.IP *
87quitting the viewer
88.IP *
89generating key events, e.g. sending ctrl-alt-del
90.IP *
91accessing the options dialog and various other dialogs
92.RE
93.PP
94By default, key presses in the popup menu get sent to the VNC server and
95dismiss the popup. So to get an F8 through to the VNC server simply press it
96twice.
97
98.SH FULL SCREEN MODE
99A full-screen mode is supported. This is particularly useful when connecting
100to a remote screen which is the same size as your local one. If the remote
101screen is bigger, you can scroll by bumping the mouse against the edge of the
102screen.
103
DRCe66060d2011-06-25 03:02:10 +0000104.SH OPTIONS (PARAMETERS)
105You can get a list of parameters by giving \fB\-h\fP as a command-line option
106to vncviewer. Parameters can be turned on with -\fIparam\fP or off with
107-\fIparam\fP=0. Parameters which take a value can be specified as
108-\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP
109-\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are
110case-insensitive.
111
112Many of the parameters can also be set graphically via the options dialog box.
113This can be accessed from the popup menu or from the "Connection details"
114dialog box.
115
116.TP
117.B \-display \fIXdisplay\fP
118Specifies the X display on which the VNC viewer window should appear.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200119.
DRCe66060d2011-06-25 03:02:10 +0000120.TP
121.B \-geometry \fIgeometry\fP
122Standard X position and sizing specification.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200123.
DRCe66060d2011-06-25 03:02:10 +0000124.TP
125.B \-listen \fI[port]\fP
126Causes vncviewer to listen on the given port (default 5500) for reverse
127connections from a VNC server. WinVNC supports reverse connections initiated
128using the 'Add New Client' menu option or the '\-connect' command-line option.
129Xvnc supports reverse connections with a helper program called
130.B vncconfig.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200131.
DRCe66060d2011-06-25 03:02:10 +0000132.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200133.B \-SecurityTypes \fIsec-types\fP
134Specify which security schemes to attempt to use when authenticating with
135the server. Valid values are a comma separated list of \fBNone\fP,
136\fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP,
137\fBX509None\fP, \fBX509Vnc\fP and \fBX509Plain\fP. Default is to attempt
138every supported scheme.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200139.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200140.TP
141.B \-passwd, \-PasswordFile \fIpassword-file\fP
DRCe66060d2011-06-25 03:02:10 +0000142If you are on a filesystem which gives you access to the password file used by
143the server, you can specify it here to avoid typing it in. It will usually be
144"~/.vnc/passwd".
Pierre Ossman23f67c32014-09-17 16:28:56 +0200145.
DRCe66060d2011-06-25 03:02:10 +0000146.TP
Pierre Ossman1ec45312014-09-17 16:55:25 +0200147.B \-X509CA \fIpath\fP
148Path to CA certificate to use when authenticating remote servers using any
149of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM
150format. Default is \fB$HOME/.vnc/x509_ca.pem\fP, if it exists.
151.
152.TP
153.B \-X509CRL \fIpath\fP
154Path to certificate revocation list to use in conjunction with
155\fB-X509CA\fP. Must also be in PEM format. Default is
156\fB$HOME/.vnc/x509_crl.pem\fP, if it exists.
157.
158.TP
DRCe66060d2011-06-25 03:02:10 +0000159.B \-Shared
160When you make a connection to a VNC server, all other existing connections are
161normally closed. This option requests that they be left open, allowing you to
162share the desktop with someone already using it.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200163.
DRCe66060d2011-06-25 03:02:10 +0000164.TP
165.B \-ViewOnly
166Specifies that no keyboard or mouse events should be sent to the server.
167Useful if you want to view a desktop without interfering; often needs to be
168combined with
169.B \-Shared.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200170.
DRCe66060d2011-06-25 03:02:10 +0000171.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200172.B \-AcceptClipboard
173Accept clipboard changes from the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200174.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200175.TP
Pierre Ossmanf862c2e2016-03-29 14:15:38 +0200176.B \-SetPrimary
177Set the primary selection as well as the clipboard selection.
178Default is on.
179.
180.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200181.B \-SendClipboard
182Send clipboard changes to the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200183.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200184.TP
185.B \-SendPrimary
Pierre Ossman57cadc12016-03-29 14:18:36 +0200186Send the primary selection to the server as well as the clipboard
187selection. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200188.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200189.TP
Peter Ã…strand49b11572012-08-01 08:09:09 +0000190.B \-Maximize
191Maximize viewer window.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200192.
Peter Ã…strand49b11572012-08-01 08:09:09 +0000193.TP
DRCe66060d2011-06-25 03:02:10 +0000194.B \-FullScreen
195Start in full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200196.
DRCe66060d2011-06-25 03:02:10 +0000197.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200198.B \-FullScreenAllMonitors
199Use all local monitors and not just the current one when switching to
200full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200201.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200202.TP
203.B \-FullscreenSystemKeys
204Pass special keys (like Alt+Tab) directly to the server when in full-screen
205mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200206.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200207.TP
DRCe66060d2011-06-25 03:02:10 +0000208.B \-DesktopSize \fIwidth\fPx\fIheight\fP
209Instead of keeping the existing remote screen size, the client will attempt to
210switch to the specified since when connecting. If the server does not support
211the SetDesktopSize message then the screen will retain the original size.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200212.
DRCe66060d2011-06-25 03:02:10 +0000213.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200214.B \-RemoteResize
215Dynamically resize the remote desktop size as the size of the local client
216window changes. Note that this may not work with all VNC servers.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200217.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200218.TP
DRCe66060d2011-06-25 03:02:10 +0000219.B \-AutoSelect
220Use automatic selection of encoding and pixel format (default is on). Normally
221the viewer tests the speed of the connection to the server and chooses the
222encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200223.
DRCe66060d2011-06-25 03:02:10 +0000224.TP
225.B \-FullColor, \-FullColour
226Tells the VNC server to send full-color pixels in the best format for this
227display. This is default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200228.
DRCe66060d2011-06-25 03:02:10 +0000229.TP
230.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
231Selects the reduced color level to use on slow links. \fIlevel\fP can range
232from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
233256 colors. Note that decision if reduced color level is used is made by
234vncviewer. If you would like to force vncviewer to use reduced color level
235use \fB-AutoSelect=0\fP parameter.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200236.
DRCe66060d2011-06-25 03:02:10 +0000237.TP
238.B \-PreferredEncoding \fIencoding\fP
239This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
240"hextile" or "raw".
Pierre Ossman23f67c32014-09-17 16:28:56 +0200241.
DRCe66060d2011-06-25 03:02:10 +0000242.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200243.B \-NoJpeg
244Disable lossy JPEG compression in Tight encoding. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200245.
DRCe66060d2011-06-25 03:02:10 +0000246.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200247.B \-QualityLevel \fIlevel\fP
248JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
249\fB-AutoSelect\fP is turned on. Default is 8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200250.
DRCe66060d2011-06-25 03:02:10 +0000251.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200252.B \-CompressLevel \fIlevel\fP
253Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200254.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200255.TP
256.B \-CustomCompressLevel
257Use custom compression level. Default if \fBCompressLevel\fP is specified.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200258.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200259.TP
260.B \-DotWhenNoCursor
261Show the dot cursor when the server sends an invisible cursor. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200262.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200263.TP
264.B \-PointerEventInterval \fItime\fP
265Time in milliseconds to rate-limit successive pointer events. Default is
Pierre Ossman157f5422017-07-19 11:20:53 +020026617 ms (60 Hz).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200267.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200268.TP
269.B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
DRCe66060d2011-06-25 03:02:10 +0000270Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
271\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
272output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
273specific source file if you know the name of its "LogWriter". Default is
274\fB*:stderr:30\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200275.
DRCe66060d2011-06-25 03:02:10 +0000276.TP
277.B \-MenuKey \fIkeysym-name\fP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200278This option specifies the key which brings up the popup menu. The currently
279supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
Samuel Mannehed31e75ce2017-06-02 11:18:35 +0200280Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). Default is F8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200281.
DRCe66060d2011-06-25 03:02:10 +0000282.TP
283\fB\-via\fR \fIgateway\fR
284Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
285before connection, connect to the \fIhost\fR through that tunnel
286(TigerVNC\-specific). By default, this option invokes SSH local port
287forwarding, assuming that SSH client binary can be accessed as
288/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
289machine name should be specified as known to the gateway machine, e.g.
290"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
291was launched. The environment variable \fIVNC_VIA_CMD\fR can override
292the default tunnel command of
293\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
294command is executed with the environment variables \fIL\fR, \fIH\fR,
295\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
296host, the port number on the remote host, and the gateway machine
297respectively.
Dr. David Alan Gilbertf4d1d892017-07-11 12:11:50 +0100298.
299.TP
300.B \-AlertOnFatalError
301Display a dialog with any fatal error before exiting. Default is on.
DRCe66060d2011-06-25 03:02:10 +0000302
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200303.SH FILES
304.TP
305$HOME/.vnc/default.tigervnc
Jeff Blainea518efd2016-05-23 22:07:58 -0400306Default configuration options. This file must have a "magic" first line of
307"TigerVNC Configuration file Version 1.0" (without quotes), followed by simple
308<setting>=<value> pairs of your choosing. The available settings are those
309shown in this man page.
Pierre Ossman1ec45312014-09-17 16:55:25 +0200310.TP
311$HOME/.vnc/x509_ca.pem
312Default CA certificate for authenticating servers.
313.TP
314$HOME/.vnc/x509_crl.pem
315Default certificate revocation list.
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200316
DRCe66060d2011-06-25 03:02:10 +0000317.SH SEE ALSO
318.BR Xvnc (1),
319.BR vncpasswd (1),
320.BR vncconfig (1),
321.BR vncserver (1)
322.br
Pierre Ossman32b96ff2018-10-19 14:56:53 +0200323https://www.tigervnc.org
DRCe66060d2011-06-25 03:02:10 +0000324
325.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200326Tristan Richardson, RealVNC Ltd. and others.
DRCe66060d2011-06-25 03:02:10 +0000327
328VNC was originally developed by the RealVNC team while at Olivetti
329Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200330implemented by Constantin Kaplinsky. Many other people have since
331participated in development, testing and support. This manual is part
332of the TigerVNC software suite.