blob: 804a70fc746d4bfee1e68919f9d4112a1c65493a [file] [log] [blame]
Pierre Ossmanf256a1a2014-09-17 14:09:58 +02001.TH X0VNCSERVER 1 "" "TigerVNC" "TigerVNC Manual"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002.SH NAME
Peter Åstrand4eacc022009-02-27 10:12:14 +00003x0vncserver \- TigerVNC Server for X displays
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004.SH SYNOPSIS
5.B x0vncserver
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +00006.RI [ options ]
Constantin Kaplinsky2039d7b2008-06-04 10:43:10 +00007.br
8.B x0vncserver -version
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009.SH DESCRIPTION
10.B x0vncserver
Peter Åstrand4eacc022009-02-27 10:12:14 +000011is a TigerVNC Server which makes any X display remotely accessible via VNC,
12TigerVNC or compatible viewers. Unlike \fBXvnc\fP(1), it does not create a
Constantin Kaplinsky59740082008-01-08 10:42:22 +000013virtual display. Instead, it just shares an existing X server (typically,
14that one connected to the physical screen).
Pierre Ossmande0f8322014-09-17 15:43:14 +020015
16XDamage will be used if the existing X server supports it. Otherwise
17.B x0vncserver
18will fall back to polling the screen for changes.
Pierre Ossman23f67c32014-09-17 16:28:56 +020019
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000020.SH OPTIONS
21.B x0vncserver
22interprets the command line as a list of parameters with optional values.
23Running \fBx0vncserver -h\fP will show a list of all valid parameters with
Constantin Kaplinsky59740082008-01-08 10:42:22 +000024short descriptions. All parameters are optional, but normally you would have
Constantin Kaplinskycef45772008-01-07 14:52:51 +000025to use the \fBPasswordFile\fP parameter (see its description below).
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000026.PP
27There are several forms of specifying parameters in the command line (here we
28use `\fISomeParameter\fP' as an example parameter name):
Pierre Ossman23f67c32014-09-17 16:28:56 +020029
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000030.TP
31.B -\fISomeParameter\fP
Constantin Kaplinsky59740082008-01-08 10:42:22 +000032Enable the parameter, turn the feature on. This form can be used with
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000033parameters that simply enable or disable some feature.
Pierre Ossman23f67c32014-09-17 16:28:56 +020034.
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000035.TP
36.B -\fISomeParameter\fP=0
37Disable the parameter, turn the feature off.
Pierre Ossman23f67c32014-09-17 16:28:56 +020038.
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000039.TP
40.B -\fISomeParameter\fP=\fIvalue\fP
Constantin Kaplinsky59740082008-01-08 10:42:22 +000041Assign the specified \fIvalue\fP to the parameter. The leading dash can be
42omitted, or it can be doubled if desired (like in GNU-style long options).
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000043.PP
44Parameter names are case-insensitive, their order in the command line can be
45arbitrary.
Pierre Ossman23f67c32014-09-17 16:28:56 +020046
Constantin Kaplinskycef45772008-01-07 14:52:51 +000047.SH PARAMETERS
Pierre Ossman23f67c32014-09-17 16:28:56 +020048
Constantin Kaplinskycef45772008-01-07 14:52:51 +000049.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000050.B display
Constantin Kaplinsky59740082008-01-08 10:42:22 +000051The X display name. If not specified, it defaults to the value of the
52DISPLAY environment variable.
Pierre Ossman23f67c32014-09-17 16:28:56 +020053.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000054.TP
55.B rfbport
Constantin Kaplinsky59740082008-01-08 10:42:22 +000056TCP port to listen for incoming VNC connections (RFB protocol). The default
57port is 5900.
Pierre Ossman23f67c32014-09-17 16:28:56 +020058.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000059.TP
60.B Log
61Specifies which log output should be directed to which target logger, and the
Constantin Kaplinsky59740082008-01-08 10:42:22 +000062level of output to log. Format is \fIlog\fP:\fItarget\fP:\fIlevel\fP.
63Default is \fB*:stderr:30\fP (log everything to stderr, set log level to 30).
64Log level should be a value between 0 and 100, higher levels produce more
65output.
Pierre Ossman23f67c32014-09-17 16:28:56 +020066.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000067.TP
68.B HostsFile
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +000069This parameter allows to specify a file name with IP access control rules.
70The file should include one rule per line, and the rule format is one of the
Pierre Ossman14e214f2015-08-10 11:31:14 +020071following: +\fIaddress\fP/\fIprefix\fP (accept connections from the
72specified address group), -\fIaddress\fP/\fIprefix\fP (reject connections)
73or ?\fIaddress\fP/\fIprefix\fP (query the local user). The first rule
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +000074matching the IP address determines the action to be performed. Rules that
75include only an action sign (+, - or ?) will match any IP address.
Pierre Ossman14e214f2015-08-10 11:31:14 +020076\fIPrefix\fP is optional and is specified as a number of bits (e.g. /24).
77Default is to accept connections from any IP address.
Pierre Ossman23f67c32014-09-17 16:28:56 +020078.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000079.TP
80.B SecurityTypes
Constantin Kaplinsky59740082008-01-08 10:42:22 +000081Specify which security scheme to use for incoming connections. Valid values
Pierre Ossmande0f8322014-09-17 15:43:14 +020082are a comma separated list of \fBNone\fP, \fBVncAuth\fP, \fBPlain\fP,
83\fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP, \fBX509None\fP, \fBX509Vnc\fP
84and \fBX509Plain\fP. Default is \fBVncAuth,TLSVnc\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +020085.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000086.TP
Pierre Ossmande0f8322014-09-17 15:43:14 +020087.B rfbauth, PasswordFile
Constantin Kaplinsky59740082008-01-08 10:42:22 +000088Password file for VNC authentication. There is no default, you should
89specify the password file explicitly. Password file should be created with
90the \fBvncpasswd\fP(1) utility.
Pierre Ossman23f67c32014-09-17 16:28:56 +020091.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000092.TP
93.B Password
94Obfuscated binary encoding of the password which clients must supply to
Constantin Kaplinsky59740082008-01-08 10:42:22 +000095access the server. Using this parameter is insecure, use \fBPasswordFile\fP
96parameter instead.
Pierre Ossman23f67c32014-09-17 16:28:56 +020097.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000098.TP
Pierre Ossmande0f8322014-09-17 15:43:14 +020099.B PlainUsers
100A comma separated list of user names that are allowed to authenticate via
101any of the "Plain" security types (Plain, TLSPlain, etc.). Specify \fB*\fP
102to allow any user to authenticate using this security type. Default is to
103deny all users.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200104.
Pierre Ossmande0f8322014-09-17 15:43:14 +0200105.TP
Pierre Ossman3d2a84b2014-09-17 16:45:35 +0200106.B pam_service, PAMService
Pierre Ossmande0f8322014-09-17 15:43:14 +0200107PAM service name to use when authentication users using any of the "Plain"
108security types. Default is \fBvnc\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200109.
Pierre Ossmande0f8322014-09-17 15:43:14 +0200110.TP
Pierre Ossman3d2a84b2014-09-17 16:45:35 +0200111.B X509Cert
Pierre Ossmande0f8322014-09-17 15:43:14 +0200112Path to a X509 certificate in PEM format to be used for all X509 based
113security types (X509None, X509Vnc, etc.).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200114.
Pierre Ossmande0f8322014-09-17 15:43:14 +0200115.TP
Pierre Ossman3d2a84b2014-09-17 16:45:35 +0200116.B X509Key
117Private key counter part to the certificate given in \fBX509Cert\fP. Must
Pierre Ossmande0f8322014-09-17 15:43:14 +0200118also be in PEM format.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200119.
Pierre Ossmande0f8322014-09-17 15:43:14 +0200120.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000121.B BlacklistThreshold
122The number of unauthenticated connection attempts allowed from any individual
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000123host before that host is black-listed. Default is 5.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200124.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000125.TP
126.B BlacklistTimeout
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000127The initial timeout applied when a host is first black-listed. The host
128cannot re-attempt a connection until the timeout expires. Default is 10.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200129.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000130.TP
131.B QueryConnect
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000132Prompt the local user to accept or reject incoming connections. Default is
133off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200134.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000135.TP
136.B QueryConnectTimeout
137Number of seconds to show the Accept Connection dialog before rejecting the
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000138connection. Default is 10.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200139.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000140.TP
141.B AlwaysShared
142Always treat incoming connections as shared, regardless of the
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000143client-specified setting. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200144.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000145.TP
146.B NeverShared
147Never treat incoming connections as shared, regardless of the
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000148client-specified setting. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200149.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000150.TP
151.B DisconnectClients
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000152Disconnect existing clients if an incoming connection is non-shared. If
153combined with \fBNeverShared\fP then new connections will be refused while
154there is a client active. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200155.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000156.TP
157.B AcceptKeyEvents
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000158Accept key press and release events from clients. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200159.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000160.TP
161.B AcceptPointerEvents
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000162Accept pointer events from clients. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200163.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000164.TP
165.B RemapKeys
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000166Comma-separated list of incoming keysyms to remap. Mappings are expressed as
167two hex values, prefixed by \fB0x\fP, and separated by \fB->\fP (`dash' and
168`greater than' characters).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200169.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000170.TP
Peter Korsgaard8fe50902017-07-13 00:35:57 +0200171.B RawKeyboard
172Send keyboard events straight through and avoid mapping them to the current
173keyboard layout. This effectively makes the keyboard behave according to the
174layout configured on the server instead of the layout configured on the
175client. Default is off.
176.
177.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000178.B Protocol3.3
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000179Always use RFB protocol version 3.3 for backwards compatibility with
180badly-behaved clients. Default is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200181.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000182.TP
183.B Geometry
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000184This option specifies the screen area that will be shown to VNC clients. The
185format is
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000186.B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
Constantin Kaplinskyf32f8852008-12-23 07:44:39 +0000187, where `+' signs can be replaced with `\-' signs to specify offsets from the
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000188right and/or from the bottom of the screen. Offsets are optional, +0+0 is
189assumed by default (top left corner). If the argument is empty, full screen
190is shown to VNC clients (this is the default).
Pierre Ossman23f67c32014-09-17 16:28:56 +0200191.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000192.TP
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000193.B MaxProcessorUsage
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000194Maximum percentage of CPU time to be consumed when polling the
195screen. Default is 35.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200196.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000197.TP
198.B PollingCycle
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000199Milliseconds per one polling cycle. Actual interval may be dynamically
200adjusted to satisfy \fBMaxProcessorUsage\fP setting. Default is 30.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200201.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000202.TP
Pierre Ossmande0f8322014-09-17 15:43:14 +0200203.B DeferUpdate
204x0vncserver uses a "deferred update" mechanism which enhances performance in
205many cases. After any change to the framebuffer, x0vncserver waits for this
206number of milliseconds (default 1) before sending an update to any waiting
207clients. This means that more changes tend to get coalesced together in a
208single update. Setting it to 0 results in the same behaviour as earlier
209versions of x0vncserver, where the first change to the framebuffer causes an
210immediate update to any waiting clients.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200211.
Pierre Ossmande0f8322014-09-17 15:43:14 +0200212.TP
213.B AlwaysSetDeferUpdateTimer
214Keep delaying sending the screen update to the client(s) each time the
215screen is updated. Otherwise the delay is from the first update. Default
216is off.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200217.
Constantin Kaplinsky3fed47c2008-12-23 07:21:02 +0000218.TP
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000219.B CompareFB
Pierre Ossmande0f8322014-09-17 15:43:14 +0200220Perform pixel comparison on framebuffer to reduce unnecessary updates. Can
221be either \fB0\fP (off), \fB1\fP (always) or \fB2\fP (auto). Default is
222\fB2\fP.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200223.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000224.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000225.B UseSHM
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000226Use MIT-SHM extension if available. Using that extension accelerates reading
227the screen. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200228.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000229.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000230.B OverlayMode
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000231Use overlay mode in IRIX or Solaris (does not have effect in other systems).
232This enables system-specific access to complete full-color version of the
233screen (the default X visual often provides 256 colors). Also, in overlay
234mode, \fBx0vncserver\fP can show correct mouse cursor. Default is on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200235.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000236.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000237.B ZlibLevel
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000238Zlib compression level for ZRLE encoding (it does not affect Tight encoding).
239Acceptable values are between 0 and 9. Default is to use the standard
240compression level provided by the \fBzlib\fP(3) compression library.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200241.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000242.TP
243.B ImprovedHextile
244Use improved compression algorithm for Hextile encoding which achieves better
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000245compression ratios by the cost of using slightly more CPU time. Default is
246on.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200247.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000248.TP
249.B IdleTimeout
250The number of seconds after which an idle VNC connection will be dropped
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000251(zero means no timeout). Default is 0.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200252.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000253.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000254.B MaxDisconnectionTime
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000255Terminate when no client has been connected for \fIN\fP seconds. Default is
2560.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200257.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000258.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000259.B MaxConnectionTime
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000260Terminate when a client has been connected for \fIN\fP seconds. Default is
2610.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200262.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000263.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000264.B MaxIdleTime
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000265Terminate after \fIN\fP seconds of user inactivity. Default is 0.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200266.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000267.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000268.B ClientWaitTimeMillis
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000269The number of milliseconds to wait for a client which is no longer
270responding. Default is 20000.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200271.
Pierre Ossmande0f8322014-09-17 15:43:14 +0200272.TP
273.B AcceptCutText
274.TQ
275.B SendCutText
276.TQ
277.B MaxCutText
278Currently unused.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200279
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000280.SH SEE ALSO
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +0000281.BR Xvnc (1),
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000282.BR vncpasswd (1),
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000283.br
Peter Åstrand4eacc022009-02-27 10:12:14 +0000284http://www.tigervnc.org/
Pierre Ossman23f67c32014-09-17 16:28:56 +0200285
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000286.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200287Constantin Kaplinsky and others.
288
289VNC was originally developed by the RealVNC team while at Olivetti
290Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
291implemented by Constantin Kaplinsky. Many other people have since
292participated in development, testing and support. This manual is part
293of the TigerVNC software suite.