blob: ebfe77257adb54b397067252a13c4ac705858af7 [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 Ossman3e156d62014-09-17 16:16:10 +0200185.B \-SendClipboard
186Send clipboard changes to the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200187.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200188.TP
189.B \-SendPrimary
Pierre Ossman57cadc12016-03-29 14:18:36 +0200190Send the primary selection to the server as well as the clipboard
191selection. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200192.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200193.TP
Peter Ã…strand49b11572012-08-01 08:09:09 +0000194.B \-Maximize
195Maximize viewer window.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200196.
Peter Ã…strand49b11572012-08-01 08:09:09 +0000197.TP
DRCe66060d2011-06-25 03:02:10 +0000198.B \-FullScreen
199Start in full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200200.
DRCe66060d2011-06-25 03:02:10 +0000201.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200202.B \-FullScreenAllMonitors
203Use all local monitors and not just the current one when switching to
204full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200205.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200206.TP
207.B \-FullscreenSystemKeys
208Pass special keys (like Alt+Tab) directly to the server when in full-screen
209mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200210.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200211.TP
DRCe66060d2011-06-25 03:02:10 +0000212.B \-DesktopSize \fIwidth\fPx\fIheight\fP
213Instead of keeping the existing remote screen size, the client will attempt to
214switch to the specified since when connecting. If the server does not support
215the SetDesktopSize message then the screen will retain the original size.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200216.
DRCe66060d2011-06-25 03:02:10 +0000217.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200218.B \-RemoteResize
219Dynamically resize the remote desktop size as the size of the local client
220window changes. Note that this may not work with all VNC servers.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200221.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200222.TP
DRCe66060d2011-06-25 03:02:10 +0000223.B \-AutoSelect
224Use automatic selection of encoding and pixel format (default is on). Normally
225the viewer tests the speed of the connection to the server and chooses the
226encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200227.
DRCe66060d2011-06-25 03:02:10 +0000228.TP
229.B \-FullColor, \-FullColour
230Tells the VNC server to send full-color pixels in the best format for this
231display. This is default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200232.
DRCe66060d2011-06-25 03:02:10 +0000233.TP
234.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
235Selects the reduced color level to use on slow links. \fIlevel\fP can range
236from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
237256 colors. Note that decision if reduced color level is used is made by
238vncviewer. If you would like to force vncviewer to use reduced color level
239use \fB-AutoSelect=0\fP parameter.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200240.
DRCe66060d2011-06-25 03:02:10 +0000241.TP
242.B \-PreferredEncoding \fIencoding\fP
243This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
244"hextile" or "raw".
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 \-NoJpeg
248Disable lossy JPEG compression in Tight encoding. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200249.
DRCe66060d2011-06-25 03:02:10 +0000250.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200251.B \-QualityLevel \fIlevel\fP
252JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
253\fB-AutoSelect\fP is turned on. Default is 8.
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 \-CompressLevel \fIlevel\fP
257Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200258.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200259.TP
260.B \-CustomCompressLevel
261Use custom compression level. Default if \fBCompressLevel\fP is specified.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200262.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200263.TP
264.B \-DotWhenNoCursor
265Show the dot cursor when the server sends an invisible cursor. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200266.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200267.TP
268.B \-PointerEventInterval \fItime\fP
269Time in milliseconds to rate-limit successive pointer events. Default is
Pierre Ossman157f5422017-07-19 11:20:53 +020027017 ms (60 Hz).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200271.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200272.TP
273.B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
DRCe66060d2011-06-25 03:02:10 +0000274Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
275\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
276output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
277specific source file if you know the name of its "LogWriter". Default is
278\fB*:stderr:30\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200279.
DRCe66060d2011-06-25 03:02:10 +0000280.TP
281.B \-MenuKey \fIkeysym-name\fP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200282This option specifies the key which brings up the popup menu. The currently
283supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
Samuel Mannehed31e75ce2017-06-02 11:18:35 +0200284Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). Default is F8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200285.
DRCe66060d2011-06-25 03:02:10 +0000286.TP
287\fB\-via\fR \fIgateway\fR
288Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
289before connection, connect to the \fIhost\fR through that tunnel
290(TigerVNC\-specific). By default, this option invokes SSH local port
291forwarding, assuming that SSH client binary can be accessed as
292/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
293machine name should be specified as known to the gateway machine, e.g.
294"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
295was launched. The environment variable \fIVNC_VIA_CMD\fR can override
296the default tunnel command of
297\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
298command is executed with the environment variables \fIL\fR, \fIH\fR,
299\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
300host, the port number on the remote host, and the gateway machine
301respectively.
Dr. David Alan Gilbertf4d1d892017-07-11 12:11:50 +0100302.
303.TP
304.B \-AlertOnFatalError
305Display a dialog with any fatal error before exiting. Default is on.
DRCe66060d2011-06-25 03:02:10 +0000306
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200307.SH FILES
308.TP
309$HOME/.vnc/default.tigervnc
Jeff Blainea518efd2016-05-23 22:07:58 -0400310Default configuration options. This file must have a "magic" first line of
311"TigerVNC Configuration file Version 1.0" (without quotes), followed by simple
312<setting>=<value> pairs of your choosing. The available settings are those
313shown in this man page.
Pierre Ossman1ec45312014-09-17 16:55:25 +0200314.TP
315$HOME/.vnc/x509_ca.pem
316Default CA certificate for authenticating servers.
317.TP
318$HOME/.vnc/x509_crl.pem
319Default certificate revocation list.
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200320
DRCe66060d2011-06-25 03:02:10 +0000321.SH SEE ALSO
322.BR Xvnc (1),
323.BR vncpasswd (1),
324.BR vncconfig (1),
325.BR vncserver (1)
326.br
Pierre Ossman32b96ff2018-10-19 14:56:53 +0200327https://www.tigervnc.org
DRCe66060d2011-06-25 03:02:10 +0000328
329.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200330Tristan Richardson, RealVNC Ltd. and others.
DRCe66060d2011-06-25 03:02:10 +0000331
332VNC was originally developed by the RealVNC team while at Olivetti
333Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200334implemented by Constantin Kaplinsky. Many other people have since
335participated in development, testing and support. This manual is part
336of the TigerVNC software suite.