blob: 729c01d6542e8c975bce60baa8de6b1d8fb9ffe0 [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
14.RI [ options ]
15.B \-listen
16.RI [ port ]
Mathias Jonsson50439d72018-04-22 19:10:30 +020017.br
18.B vncviewer
19.RI [ options ]
20.RI [ .tigervnc file ]
DRCe66060d2011-06-25 03:02:10 +000021.SH DESCRIPTION
22.B vncviewer
23is a viewer (client) for Virtual Network Computing. This manual page documents
24version 4 for the X window system.
25
26If you run the viewer with no arguments it will prompt you for a VNC server to
27connect to. Alternatively, specify the VNC server as an argument, e.g.:
28
29.RS
30vncviewer snoopy:2
31.RE
32
33where 'snoopy' is the name of the machine, and '2' is the display number of the
34VNC server on that machine. Either the machine name or display number can be
35omitted. So for example ":1" means display number 1 on the same machine, and
36"snoopy" means "snoopy:0" i.e. display 0 on machine "snoopy".
37
Mathias Jonsson50439d72018-04-22 19:10:30 +020038As another quick way to start a connection to a VNC server, specify a .tigervnc
39configuration file as an argument to the viewer, e.g.:
40
41.RS
42vncviewer ./some.tigervnc
43.RE
44
45where './some.tigervnc' is an existing and valid TigerVNC configuration file.
46The file name needs to include a path separator. Additional options may be
47given too, but the given configuration file will overwrite any conflicting
48parameters.
49
DRCe66060d2011-06-25 03:02:10 +000050If the VNC server is successfully contacted, you will be prompted for a
51password to authenticate you. If the password is correct, a window will appear
52showing the desktop of the VNC server.
53
54.SH AUTOMATIC PROTOCOL SELECTION
55
56The viewer tests the speed of the connection to the server and chooses the
57encoding and pixel format (color level) appropriately. This makes it much
58easier to use than previous versions where the user had to specify arcane
59command line arguments.
60
61The viewer normally starts out assuming the link is slow, using the
62encoding with the best compression. If it turns out that the link is
63fast enough it switches to an encoding which compresses less but is
64faster to generate, thus improving the interactive feel.
65
66The viewer normally starts in full-color mode, but switches to
67low-color mode if the bandwidth is insufficient. However, this only
68occurs when communicating with servers supporting protocol 3.8 or
69newer, since many old servers does not support color mode changes
70safely.
71
72Automatic selection can be turned off by setting the
73\fBAutoSelect\fP parameter to false, or from the options dialog.
74
75.SH POPUP MENU
76The viewer has a popup menu containing entries which perform various actions.
77It is usually brought up by pressing F8, but this can be configured with the
78MenuKey parameter. Actions which the popup menu can perform include:
79.RS 2
80.IP * 2
81switching in and out of full-screen mode
82.IP *
83quitting the viewer
84.IP *
85generating key events, e.g. sending ctrl-alt-del
86.IP *
87accessing the options dialog and various other dialogs
88.RE
89.PP
90By default, key presses in the popup menu get sent to the VNC server and
91dismiss the popup. So to get an F8 through to the VNC server simply press it
92twice.
93
94.SH FULL SCREEN MODE
95A full-screen mode is supported. This is particularly useful when connecting
96to a remote screen which is the same size as your local one. If the remote
97screen is bigger, you can scroll by bumping the mouse against the edge of the
98screen.
99
DRCe66060d2011-06-25 03:02:10 +0000100.SH OPTIONS (PARAMETERS)
101You can get a list of parameters by giving \fB\-h\fP as a command-line option
102to vncviewer. Parameters can be turned on with -\fIparam\fP or off with
103-\fIparam\fP=0. Parameters which take a value can be specified as
104-\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP
105-\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are
106case-insensitive.
107
108Many of the parameters can also be set graphically via the options dialog box.
109This can be accessed from the popup menu or from the "Connection details"
110dialog box.
111
112.TP
113.B \-display \fIXdisplay\fP
114Specifies the X display on which the VNC viewer window should appear.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200115.
DRCe66060d2011-06-25 03:02:10 +0000116.TP
117.B \-geometry \fIgeometry\fP
118Standard X position and sizing specification.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200119.
DRCe66060d2011-06-25 03:02:10 +0000120.TP
121.B \-listen \fI[port]\fP
122Causes vncviewer to listen on the given port (default 5500) for reverse
123connections from a VNC server. WinVNC supports reverse connections initiated
124using the 'Add New Client' menu option or the '\-connect' command-line option.
125Xvnc supports reverse connections with a helper program called
126.B vncconfig.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200127.
DRCe66060d2011-06-25 03:02:10 +0000128.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200129.B \-SecurityTypes \fIsec-types\fP
130Specify which security schemes to attempt to use when authenticating with
131the server. Valid values are a comma separated list of \fBNone\fP,
132\fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP,
133\fBX509None\fP, \fBX509Vnc\fP and \fBX509Plain\fP. Default is to attempt
134every supported scheme.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200135.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200136.TP
137.B \-passwd, \-PasswordFile \fIpassword-file\fP
DRCe66060d2011-06-25 03:02:10 +0000138If you are on a filesystem which gives you access to the password file used by
139the server, you can specify it here to avoid typing it in. It will usually be
140"~/.vnc/passwd".
Pierre Ossman23f67c32014-09-17 16:28:56 +0200141.
DRCe66060d2011-06-25 03:02:10 +0000142.TP
Pierre Ossman1ec45312014-09-17 16:55:25 +0200143.B \-X509CA \fIpath\fP
144Path to CA certificate to use when authenticating remote servers using any
145of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM
146format. Default is \fB$HOME/.vnc/x509_ca.pem\fP, if it exists.
147.
148.TP
149.B \-X509CRL \fIpath\fP
150Path to certificate revocation list to use in conjunction with
151\fB-X509CA\fP. Must also be in PEM format. Default is
152\fB$HOME/.vnc/x509_crl.pem\fP, if it exists.
153.
154.TP
DRCe66060d2011-06-25 03:02:10 +0000155.B \-Shared
156When you make a connection to a VNC server, all other existing connections are
157normally closed. This option requests that they be left open, allowing you to
158share the desktop with someone already using it.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200159.
DRCe66060d2011-06-25 03:02:10 +0000160.TP
161.B \-ViewOnly
162Specifies that no keyboard or mouse events should be sent to the server.
163Useful if you want to view a desktop without interfering; often needs to be
164combined with
165.B \-Shared.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200166.
DRCe66060d2011-06-25 03:02:10 +0000167.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200168.B \-AcceptClipboard
169Accept clipboard changes from the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200170.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200171.TP
Pierre Ossmanf862c2e2016-03-29 14:15:38 +0200172.B \-SetPrimary
173Set the primary selection as well as the clipboard selection.
174Default is on.
175.
176.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200177.B \-SendClipboard
178Send clipboard changes to the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200179.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200180.TP
181.B \-SendPrimary
Pierre Ossman57cadc12016-03-29 14:18:36 +0200182Send the primary selection to the server as well as the clipboard
183selection. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200184.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200185.TP
Peter Ã…strand49b11572012-08-01 08:09:09 +0000186.B \-Maximize
187Maximize viewer window.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200188.
Peter Ã…strand49b11572012-08-01 08:09:09 +0000189.TP
DRCe66060d2011-06-25 03:02:10 +0000190.B \-FullScreen
191Start in full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200192.
DRCe66060d2011-06-25 03:02:10 +0000193.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200194.B \-FullScreenAllMonitors
195Use all local monitors and not just the current one when switching to
196full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200197.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200198.TP
199.B \-FullscreenSystemKeys
200Pass special keys (like Alt+Tab) directly to the server when in full-screen
201mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200202.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200203.TP
DRCe66060d2011-06-25 03:02:10 +0000204.B \-DesktopSize \fIwidth\fPx\fIheight\fP
205Instead of keeping the existing remote screen size, the client will attempt to
206switch to the specified since when connecting. If the server does not support
207the SetDesktopSize message then the screen will retain the original size.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200208.
DRCe66060d2011-06-25 03:02:10 +0000209.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200210.B \-RemoteResize
211Dynamically resize the remote desktop size as the size of the local client
212window changes. Note that this may not work with all VNC servers.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200213.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200214.TP
DRCe66060d2011-06-25 03:02:10 +0000215.B \-AutoSelect
216Use automatic selection of encoding and pixel format (default is on). Normally
217the viewer tests the speed of the connection to the server and chooses the
218encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200219.
DRCe66060d2011-06-25 03:02:10 +0000220.TP
221.B \-FullColor, \-FullColour
222Tells the VNC server to send full-color pixels in the best format for this
223display. This is default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200224.
DRCe66060d2011-06-25 03:02:10 +0000225.TP
226.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
227Selects the reduced color level to use on slow links. \fIlevel\fP can range
228from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
229256 colors. Note that decision if reduced color level is used is made by
230vncviewer. If you would like to force vncviewer to use reduced color level
231use \fB-AutoSelect=0\fP parameter.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200232.
DRCe66060d2011-06-25 03:02:10 +0000233.TP
234.B \-PreferredEncoding \fIencoding\fP
235This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
236"hextile" or "raw".
Pierre Ossman23f67c32014-09-17 16:28:56 +0200237.
DRCe66060d2011-06-25 03:02:10 +0000238.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200239.B \-NoJpeg
240Disable lossy JPEG compression in Tight encoding. Default is off.
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 \-QualityLevel \fIlevel\fP
244JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
245\fB-AutoSelect\fP is turned on. Default is 8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200246.
DRCe66060d2011-06-25 03:02:10 +0000247.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200248.B \-CompressLevel \fIlevel\fP
249Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200250.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200251.TP
252.B \-CustomCompressLevel
253Use custom compression level. Default if \fBCompressLevel\fP is specified.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200254.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200255.TP
256.B \-DotWhenNoCursor
257Show the dot cursor when the server sends an invisible cursor. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200258.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200259.TP
260.B \-PointerEventInterval \fItime\fP
261Time in milliseconds to rate-limit successive pointer events. Default is
Pierre Ossman157f5422017-07-19 11:20:53 +020026217 ms (60 Hz).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200263.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200264.TP
265.B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
DRCe66060d2011-06-25 03:02:10 +0000266Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
267\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
268output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
269specific source file if you know the name of its "LogWriter". Default is
270\fB*:stderr:30\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200271.
DRCe66060d2011-06-25 03:02:10 +0000272.TP
273.B \-MenuKey \fIkeysym-name\fP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200274This option specifies the key which brings up the popup menu. The currently
275supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
Samuel Mannehed31e75ce2017-06-02 11:18:35 +0200276Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). Default is F8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200277.
DRCe66060d2011-06-25 03:02:10 +0000278.TP
279\fB\-via\fR \fIgateway\fR
280Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
281before connection, connect to the \fIhost\fR through that tunnel
282(TigerVNC\-specific). By default, this option invokes SSH local port
283forwarding, assuming that SSH client binary can be accessed as
284/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
285machine name should be specified as known to the gateway machine, e.g.
286"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
287was launched. The environment variable \fIVNC_VIA_CMD\fR can override
288the default tunnel command of
289\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
290command is executed with the environment variables \fIL\fR, \fIH\fR,
291\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
292host, the port number on the remote host, and the gateway machine
293respectively.
Dr. David Alan Gilbertf4d1d892017-07-11 12:11:50 +0100294.
295.TP
296.B \-AlertOnFatalError
297Display a dialog with any fatal error before exiting. Default is on.
DRCe66060d2011-06-25 03:02:10 +0000298
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200299.SH FILES
300.TP
301$HOME/.vnc/default.tigervnc
Jeff Blainea518efd2016-05-23 22:07:58 -0400302Default configuration options. This file must have a "magic" first line of
303"TigerVNC Configuration file Version 1.0" (without quotes), followed by simple
304<setting>=<value> pairs of your choosing. The available settings are those
305shown in this man page.
Pierre Ossman1ec45312014-09-17 16:55:25 +0200306.TP
307$HOME/.vnc/x509_ca.pem
308Default CA certificate for authenticating servers.
309.TP
310$HOME/.vnc/x509_crl.pem
311Default certificate revocation list.
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200312
DRCe66060d2011-06-25 03:02:10 +0000313.SH SEE ALSO
314.BR Xvnc (1),
315.BR vncpasswd (1),
316.BR vncconfig (1),
317.BR vncserver (1)
318.br
319http://www.tigervnc.org
320
321.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200322Tristan Richardson, RealVNC Ltd. and others.
DRCe66060d2011-06-25 03:02:10 +0000323
324VNC was originally developed by the RealVNC team while at Olivetti
325Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200326implemented by Constantin Kaplinsky. Many other people have since
327participated in development, testing and support. This manual is part
328of the TigerVNC software suite.