blob: 5dd3b45341505c0cb1c1ed388a18559a9879aeee [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
156.B \-SendClipboard
157Send clipboard changes to the server. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200158.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200159.TP
160.B \-SendPrimary
161Send the primary selection and cut buffer to the server as well as the
162clipboard selection. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200163.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200164.TP
Peter Ã…strand49b11572012-08-01 08:09:09 +0000165.B \-Maximize
166Maximize viewer window.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200167.
Peter Ã…strand49b11572012-08-01 08:09:09 +0000168.TP
DRCe66060d2011-06-25 03:02:10 +0000169.B \-FullScreen
170Start in full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200171.
DRCe66060d2011-06-25 03:02:10 +0000172.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200173.B \-FullScreenAllMonitors
174Use all local monitors and not just the current one when switching to
175full-screen mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200176.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200177.TP
178.B \-FullscreenSystemKeys
179Pass special keys (like Alt+Tab) directly to the server when in full-screen
180mode.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200181.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200182.TP
DRCe66060d2011-06-25 03:02:10 +0000183.B \-DesktopSize \fIwidth\fPx\fIheight\fP
184Instead of keeping the existing remote screen size, the client will attempt to
185switch to the specified since when connecting. If the server does not support
186the SetDesktopSize message then the screen will retain the original size.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200187.
DRCe66060d2011-06-25 03:02:10 +0000188.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200189.B \-RemoteResize
190Dynamically resize the remote desktop size as the size of the local client
191window changes. Note that this may not work with all VNC servers.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200192.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200193.TP
DRCe66060d2011-06-25 03:02:10 +0000194.B \-AutoSelect
195Use automatic selection of encoding and pixel format (default is on). Normally
196the viewer tests the speed of the connection to the server and chooses the
197encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200198.
DRCe66060d2011-06-25 03:02:10 +0000199.TP
200.B \-FullColor, \-FullColour
201Tells the VNC server to send full-color pixels in the best format for this
202display. This is default.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200203.
DRCe66060d2011-06-25 03:02:10 +0000204.TP
205.B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
206Selects the reduced color level to use on slow links. \fIlevel\fP can range
207from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
208256 colors. Note that decision if reduced color level is used is made by
209vncviewer. If you would like to force vncviewer to use reduced color level
210use \fB-AutoSelect=0\fP parameter.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200211.
DRCe66060d2011-06-25 03:02:10 +0000212.TP
213.B \-PreferredEncoding \fIencoding\fP
214This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
215"hextile" or "raw".
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 \-NoJpeg
219Disable lossy JPEG compression in Tight encoding. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200220.
DRCe66060d2011-06-25 03:02:10 +0000221.TP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200222.B \-QualityLevel \fIlevel\fP
223JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
224\fB-AutoSelect\fP is turned on. Default is 8.
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 \-CompressLevel \fIlevel\fP
228Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200229.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200230.TP
231.B \-CustomCompressLevel
232Use custom compression level. Default if \fBCompressLevel\fP is specified.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200233.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200234.TP
235.B \-DotWhenNoCursor
236Show the dot cursor when the server sends an invisible cursor. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200237.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200238.TP
239.B \-PointerEventInterval \fItime\fP
240Time in milliseconds to rate-limit successive pointer events. Default is
241to send events immediately.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200242.
Pierre Ossman3e156d62014-09-17 16:16:10 +0200243.TP
244.B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
DRCe66060d2011-06-25 03:02:10 +0000245Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
246\fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
247output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
248specific source file if you know the name of its "LogWriter". Default is
249\fB*:stderr:30\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200250.
DRCe66060d2011-06-25 03:02:10 +0000251.TP
252.B \-MenuKey \fIkeysym-name\fP
Pierre Ossman3e156d62014-09-17 16:16:10 +0200253This option specifies the key which brings up the popup menu. The currently
254supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
Martin Koeglerb2ccdf12011-09-04 07:12:15 +0000255Print, Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down).
256Default is F8.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200257.
DRCe66060d2011-06-25 03:02:10 +0000258.TP
259\fB\-via\fR \fIgateway\fR
260Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
261before connection, connect to the \fIhost\fR through that tunnel
262(TigerVNC\-specific). By default, this option invokes SSH local port
263forwarding, assuming that SSH client binary can be accessed as
264/usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
265machine name should be specified as known to the gateway machine, e.g.
266"localhost" denotes the \fIgateway\fR, not the machine where vncviewer
267was launched. The environment variable \fIVNC_VIA_CMD\fR can override
268the default tunnel command of
269\fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
270command is executed with the environment variables \fIL\fR, \fIH\fR,
271\fIR\fR, and \fIG\fR taken the values of the local port number, the remote
272host, the port number on the remote host, and the gateway machine
273respectively.
274
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200275.SH FILES
276.TP
277$HOME/.vnc/default.tigervnc
278Default configuration options.
Pierre Ossman1ec45312014-09-17 16:55:25 +0200279.TP
280$HOME/.vnc/x509_ca.pem
281Default CA certificate for authenticating servers.
282.TP
283$HOME/.vnc/x509_crl.pem
284Default certificate revocation list.
Pierre Ossman591c7bf2014-09-17 16:20:43 +0200285
DRCe66060d2011-06-25 03:02:10 +0000286.SH SEE ALSO
287.BR Xvnc (1),
288.BR vncpasswd (1),
289.BR vncconfig (1),
290.BR vncserver (1)
291.br
292http://www.tigervnc.org
293
294.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200295Tristan Richardson, RealVNC Ltd. and others.
DRCe66060d2011-06-25 03:02:10 +0000296
297VNC was originally developed by the RealVNC team while at Olivetti
298Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200299implemented by Constantin Kaplinsky. Many other people have since
300participated in development, testing and support. This manual is part
301of the TigerVNC software suite.