blob: f93e096a54f83156c19ae898b2a6cf26b6dc223d [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
Pierre Ossman26cd3322019-03-26 10:29:29 +0100122Initial position of the main VNC viewer window. The format is
123.B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
124, where `+' signs can be replaced with `\-' signs to specify offsets from the
125right and/or from the bottom of the screen. Offsets are optional and the
126window will be placed by the window manager by default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200127.
DRCe66060d2011-06-25 03:02:10 +0000128.TP
129.B \-listen \fI[port]\fP
130Causes vncviewer to listen on the given port (default 5500) for reverse
131connections from a VNC server. WinVNC supports reverse connections initiated
132using the 'Add New Client' menu option or the '\-connect' command-line option.
133Xvnc supports reverse connections with a helper program called
134.B vncconfig.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200135.
DRCe66060d2011-06-25 03:02:10 +0000136.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200137.B \-SecurityTypes \fIsec-types\fP
138Specify which security schemes to attempt to use when authenticating with
139the server. Valid values are a comma separated list of \fBNone\fP,
140\fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP,
141\fBX509None\fP, \fBX509Vnc\fP and \fBX509Plain\fP. Default is to attempt
142every supported scheme.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200143.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200144.TP
145.B \-passwd, \-PasswordFile \fIpassword-file\fP
DRCe66060d2011-06-25 03:02:10 +0000146If you are on a filesystem which gives you access to the password file used by
147the server, you can specify it here to avoid typing it in. It will usually be
148"~/.vnc/passwd".
Pierre Ossman23f67c32014-09-17 16:28:56 +0200149.
DRCe66060d2011-06-25 03:02:10 +0000150.TP
Pierre Ossman1ec45312014-09-17 16:55:25 +0200151.B \-X509CA \fIpath\fP
152Path to CA certificate to use when authenticating remote servers using any
153of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM
154format. Default is \fB$HOME/.vnc/x509_ca.pem\fP, if it exists.
155.
156.TP
157.B \-X509CRL \fIpath\fP
158Path to certificate revocation list to use in conjunction with
159\fB-X509CA\fP. Must also be in PEM format. Default is
160\fB$HOME/.vnc/x509_crl.pem\fP, if it exists.
161.
162.TP
DRCe66060d2011-06-25 03:02:10 +0000163.B \-Shared
164When you make a connection to a VNC server, all other existing connections are
165normally closed. This option requests that they be left open, allowing you to
166share the desktop with someone already using it.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200167.
DRCe66060d2011-06-25 03:02:10 +0000168.TP
169.B \-ViewOnly
170Specifies that no keyboard or mouse events should be sent to the server.
171Useful if you want to view a desktop without interfering; often needs to be
172combined with
173.B \-Shared.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200174.
DRCe66060d2011-06-25 03:02:10 +0000175.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200176.B \-AcceptClipboard
177Accept clipboard changes from the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200178.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200179.TP
Pierre Ossmanf862c2e2016-03-29 14:15:38 +0200180.B \-SetPrimary
181Set the primary selection as well as the clipboard selection.
182Default is on.
183.
184.TP
Pierre Ossman0ff26552016-02-05 10:26:56 +0100185.B \-MaxCutText \fIbytes\fP
186The maximum size of a clipboard update that will be accepted from a server.
187Default is \fB262144\fP.
188.
189.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200190.B \-SendClipboard
191Send clipboard changes to the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200192.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200193.TP
194.B \-SendPrimary
Pierre Ossman57cadc12016-03-29 14:18:36 +0200195Send the primary selection to the server as well as the clipboard
196selection. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200197.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200198.TP
Peter Ã…strand49b11572012-08-01 08:09:09 +0000199.B \-Maximize
200Maximize viewer window.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200201.
Peter Ã…strand49b11572012-08-01 08:09:09 +0000202.TP
DRCe66060d2011-06-25 03:02:10 +0000203.B \-FullScreen
204Start in full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200205.
DRCe66060d2011-06-25 03:02:10 +0000206.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200207.B \-FullScreenAllMonitors
208Use all local monitors and not just the current one when switching to
209full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200210.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200211.TP
212.B \-FullscreenSystemKeys
213Pass special keys (like Alt+Tab) directly to the server when in full-screen
214mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200215.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200216.TP
DRCe66060d2011-06-25 03:02:10 +0000217.B \-DesktopSize \fIwidth\fPx\fIheight\fP
218Instead of keeping the existing remote screen size, the client will attempt to
219switch to the specified since when connecting. If the server does not support
220the SetDesktopSize message then the screen will retain the original size.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200221.
DRCe66060d2011-06-25 03:02:10 +0000222.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200223.B \-RemoteResize
224Dynamically resize the remote desktop size as the size of the local client
225window changes. Note that this may not work with all VNC servers.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200226.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200227.TP
DRCe66060d2011-06-25 03:02:10 +0000228.B \-AutoSelect
229Use automatic selection of encoding and pixel format (default is on). Normally
230the viewer tests the speed of the connection to the server and chooses the
231encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200232.
DRCe66060d2011-06-25 03:02:10 +0000233.TP
234.B \-FullColor, \-FullColour
235Tells the VNC server to send full-color pixels in the best format for this
236display. This is default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200237.
DRCe66060d2011-06-25 03:02:10 +0000238.TP
239.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
240Selects the reduced color level to use on slow links. \fIlevel\fP can range
241from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
242256 colors. Note that decision if reduced color level is used is made by
243vncviewer. If you would like to force vncviewer to use reduced color level
244use \fB-AutoSelect=0\fP parameter.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200245.
DRCe66060d2011-06-25 03:02:10 +0000246.TP
247.B \-PreferredEncoding \fIencoding\fP
248This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
249"hextile" or "raw".
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 \-NoJpeg
253Disable lossy JPEG compression in Tight encoding. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200254.
DRCe66060d2011-06-25 03:02:10 +0000255.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200256.B \-QualityLevel \fIlevel\fP
257JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
258\fB-AutoSelect\fP is turned on. Default is 8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200259.
DRCe66060d2011-06-25 03:02:10 +0000260.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200261.B \-CompressLevel \fIlevel\fP
262Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200263.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200264.TP
265.B \-CustomCompressLevel
266Use custom compression level. Default if \fBCompressLevel\fP is specified.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200267.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200268.TP
269.B \-DotWhenNoCursor
270Show the dot cursor when the server sends an invisible cursor. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200271.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200272.TP
273.B \-PointerEventInterval \fItime\fP
274Time in milliseconds to rate-limit successive pointer events. Default is
Pierre Ossman157f5422017-07-19 11:20:53 +020027517 ms (60 Hz).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200276.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200277.TP
278.B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
DRCe66060d2011-06-25 03:02:10 +0000279Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
280\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
281output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
282specific source file if you know the name of its "LogWriter". Default is
283\fB*:stderr:30\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200284.
DRCe66060d2011-06-25 03:02:10 +0000285.TP
286.B \-MenuKey \fIkeysym-name\fP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200287This option specifies the key which brings up the popup menu. The currently
288supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
Samuel Mannehed31e75ce2017-06-02 11:18:35 +0200289Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). Default is F8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200290.
DRCe66060d2011-06-25 03:02:10 +0000291.TP
292\fB\-via\fR \fIgateway\fR
293Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
294before connection, connect to the \fIhost\fR through that tunnel
295(TigerVNC\-specific). By default, this option invokes SSH local port
296forwarding, assuming that SSH client binary can be accessed as
297/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
298machine name should be specified as known to the gateway machine, e.g.
299"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
300was launched. The environment variable \fIVNC_VIA_CMD\fR can override
301the default tunnel command of
302\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
303command is executed with the environment variables \fIL\fR, \fIH\fR,
304\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
305host, the port number on the remote host, and the gateway machine
306respectively.
Dr. David Alan Gilbertf4d1d892017-07-11 12:11:50 +0100307.
308.TP
309.B \-AlertOnFatalError
310Display a dialog with any fatal error before exiting. Default is on.
DRCe66060d2011-06-25 03:02:10 +0000311
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200312.SH FILES
313.TP
314$HOME/.vnc/default.tigervnc
Jeff Blainea518efd2016-05-23 22:07:58 -0400315Default configuration options. This file must have a "magic" first line of
316"TigerVNC Configuration file Version 1.0" (without quotes), followed by simple
317<setting>=<value> pairs of your choosing. The available settings are those
318shown in this man page.
Pierre Ossman1ec45312014-09-17 16:55:25 +0200319.TP
320$HOME/.vnc/x509_ca.pem
321Default CA certificate for authenticating servers.
322.TP
323$HOME/.vnc/x509_crl.pem
324Default certificate revocation list.
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200325
DRCe66060d2011-06-25 03:02:10 +0000326.SH SEE ALSO
327.BR Xvnc (1),
328.BR vncpasswd (1),
329.BR vncconfig (1),
330.BR vncserver (1)
331.br
Pierre Ossman32b96ff2018-10-19 14:56:53 +0200332https://www.tigervnc.org
DRCe66060d2011-06-25 03:02:10 +0000333
334.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200335Tristan Richardson, RealVNC Ltd. and others.
DRCe66060d2011-06-25 03:02:10 +0000336
337VNC was originally developed by the RealVNC team while at Olivetti
338Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200339implemented by Constantin Kaplinsky. Many other people have since
340participated in development, testing and support. This manual is part
341of the TigerVNC software suite.