blob: 4b92b61174d37649ed34dba47b148a0e8329f4be [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 ]
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
DRCe66060d2011-06-25 03:02:10 +000084.SH OPTIONS (PARAMETERS)
85You can get a list of parameters by giving \fB\-h\fP as a command-line option
86to vncviewer. Parameters can be turned on with -\fIparam\fP or off with
87-\fIparam\fP=0. Parameters which take a value can be specified as
88-\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP
89-\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are
90case-insensitive.
91
92Many of the parameters can also be set graphically via the options dialog box.
93This can be accessed from the popup menu or from the "Connection details"
94dialog box.
95
96.TP
97.B \-display \fIXdisplay\fP
98Specifies the X display on which the VNC viewer window should appear.
Pierre Ossman23f67c32014-09-17 16:28:56 +020099.
DRCe66060d2011-06-25 03:02:10 +0000100.TP
101.B \-geometry \fIgeometry\fP
102Standard X position and sizing specification.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200103.
DRCe66060d2011-06-25 03:02:10 +0000104.TP
105.B \-listen \fI[port]\fP
106Causes vncviewer to listen on the given port (default 5500) for reverse
107connections from a VNC server. WinVNC supports reverse connections initiated
108using the 'Add New Client' menu option or the '\-connect' command-line option.
109Xvnc supports reverse connections with a helper program called
110.B vncconfig.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200111.
DRCe66060d2011-06-25 03:02:10 +0000112.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200113.B \-SecurityTypes \fIsec-types\fP
114Specify which security schemes to attempt to use when authenticating with
115the server. Valid values are a comma separated list of \fBNone\fP,
116\fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP,
117\fBX509None\fP, \fBX509Vnc\fP and \fBX509Plain\fP. Default is to attempt
118every supported scheme.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200119.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200120.TP
121.B \-passwd, \-PasswordFile \fIpassword-file\fP
DRCe66060d2011-06-25 03:02:10 +0000122If you are on a filesystem which gives you access to the password file used by
123the server, you can specify it here to avoid typing it in. It will usually be
124"~/.vnc/passwd".
Pierre Ossman23f67c32014-09-17 16:28:56 +0200125.
DRCe66060d2011-06-25 03:02:10 +0000126.TP
Pierre Ossman1ec45312014-09-17 16:55:25 +0200127.B \-X509CA \fIpath\fP
128Path to CA certificate to use when authenticating remote servers using any
129of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM
130format. Default is \fB$HOME/.vnc/x509_ca.pem\fP, if it exists.
131.
132.TP
133.B \-X509CRL \fIpath\fP
134Path to certificate revocation list to use in conjunction with
135\fB-X509CA\fP. Must also be in PEM format. Default is
136\fB$HOME/.vnc/x509_crl.pem\fP, if it exists.
137.
138.TP
DRCe66060d2011-06-25 03:02:10 +0000139.B \-Shared
140When you make a connection to a VNC server, all other existing connections are
141normally closed. This option requests that they be left open, allowing you to
142share the desktop with someone already using it.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200143.
DRCe66060d2011-06-25 03:02:10 +0000144.TP
145.B \-ViewOnly
146Specifies that no keyboard or mouse events should be sent to the server.
147Useful if you want to view a desktop without interfering; often needs to be
148combined with
149.B \-Shared.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200150.
DRCe66060d2011-06-25 03:02:10 +0000151.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200152.B \-AcceptClipboard
153Accept clipboard changes from the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200154.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200155.TP
Pierre Ossmanf862c2e2016-03-29 14:15:38 +0200156.B \-SetPrimary
157Set the primary selection as well as the clipboard selection.
158Default is on.
159.
160.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200161.B \-SendClipboard
162Send clipboard changes to the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200163.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200164.TP
165.B \-SendPrimary
166Send the primary selection and cut buffer to the server as well as the
167clipboard selection. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200168.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200169.TP
Peter Ã…strand49b11572012-08-01 08:09:09 +0000170.B \-Maximize
171Maximize viewer window.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200172.
Peter Ã…strand49b11572012-08-01 08:09:09 +0000173.TP
DRCe66060d2011-06-25 03:02:10 +0000174.B \-FullScreen
175Start in full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200176.
DRCe66060d2011-06-25 03:02:10 +0000177.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200178.B \-FullScreenAllMonitors
179Use all local monitors and not just the current one when switching to
180full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200181.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200182.TP
183.B \-FullscreenSystemKeys
184Pass special keys (like Alt+Tab) directly to the server when in full-screen
185mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200186.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200187.TP
DRCe66060d2011-06-25 03:02:10 +0000188.B \-DesktopSize \fIwidth\fPx\fIheight\fP
189Instead of keeping the existing remote screen size, the client will attempt to
190switch to the specified since when connecting. If the server does not support
191the SetDesktopSize message then the screen will retain the original size.
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 \-RemoteResize
195Dynamically resize the remote desktop size as the size of the local client
196window changes. Note that this may not work with all VNC servers.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200197.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200198.TP
DRCe66060d2011-06-25 03:02:10 +0000199.B \-AutoSelect
200Use automatic selection of encoding and pixel format (default is on). Normally
201the viewer tests the speed of the connection to the server and chooses the
202encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200203.
DRCe66060d2011-06-25 03:02:10 +0000204.TP
205.B \-FullColor, \-FullColour
206Tells the VNC server to send full-color pixels in the best format for this
207display. This is default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200208.
DRCe66060d2011-06-25 03:02:10 +0000209.TP
210.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
211Selects the reduced color level to use on slow links. \fIlevel\fP can range
212from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
213256 colors. Note that decision if reduced color level is used is made by
214vncviewer. If you would like to force vncviewer to use reduced color level
215use \fB-AutoSelect=0\fP parameter.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200216.
DRCe66060d2011-06-25 03:02:10 +0000217.TP
218.B \-PreferredEncoding \fIencoding\fP
219This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
220"hextile" or "raw".
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 \-NoJpeg
224Disable lossy JPEG compression in Tight encoding. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200225.
DRCe66060d2011-06-25 03:02:10 +0000226.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200227.B \-QualityLevel \fIlevel\fP
228JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
229\fB-AutoSelect\fP is turned on. Default is 8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200230.
DRCe66060d2011-06-25 03:02:10 +0000231.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200232.B \-CompressLevel \fIlevel\fP
233Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200234.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200235.TP
236.B \-CustomCompressLevel
237Use custom compression level. Default if \fBCompressLevel\fP is specified.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200238.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200239.TP
240.B \-DotWhenNoCursor
241Show the dot cursor when the server sends an invisible cursor. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200242.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200243.TP
244.B \-PointerEventInterval \fItime\fP
245Time in milliseconds to rate-limit successive pointer events. Default is
246to send events immediately.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200247.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200248.TP
249.B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
DRCe66060d2011-06-25 03:02:10 +0000250Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
251\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
252output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
253specific source file if you know the name of its "LogWriter". Default is
254\fB*:stderr:30\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200255.
DRCe66060d2011-06-25 03:02:10 +0000256.TP
257.B \-MenuKey \fIkeysym-name\fP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200258This option specifies the key which brings up the popup menu. The currently
259supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
Martin Koeglerb2ccdf12011-09-04 07:12:15 +0000260Print, Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down).
261Default is F8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200262.
DRCe66060d2011-06-25 03:02:10 +0000263.TP
264\fB\-via\fR \fIgateway\fR
265Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
266before connection, connect to the \fIhost\fR through that tunnel
267(TigerVNC\-specific). By default, this option invokes SSH local port
268forwarding, assuming that SSH client binary can be accessed as
269/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
270machine name should be specified as known to the gateway machine, e.g.
271"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
272was launched. The environment variable \fIVNC_VIA_CMD\fR can override
273the default tunnel command of
274\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
275command is executed with the environment variables \fIL\fR, \fIH\fR,
276\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
277host, the port number on the remote host, and the gateway machine
278respectively.
279
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200280.SH FILES
281.TP
282$HOME/.vnc/default.tigervnc
283Default configuration options.
Pierre Ossman1ec45312014-09-17 16:55:25 +0200284.TP
285$HOME/.vnc/x509_ca.pem
286Default CA certificate for authenticating servers.
287.TP
288$HOME/.vnc/x509_crl.pem
289Default certificate revocation list.
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200290
DRCe66060d2011-06-25 03:02:10 +0000291.SH SEE ALSO
292.BR Xvnc (1),
293.BR vncpasswd (1),
294.BR vncconfig (1),
295.BR vncserver (1)
296.br
297http://www.tigervnc.org
298
299.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200300Tristan Richardson, RealVNC Ltd. and others.
DRCe66060d2011-06-25 03:02:10 +0000301
302VNC was originally developed by the RealVNC team while at Olivetti
303Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200304implemented by Constantin Kaplinsky. Many other people have since
305participated in development, testing and support. This manual is part
306of the TigerVNC software suite.