blob: 850f1d7ba1e49fe9fde4886186b26a059155484d [file] [log] [blame]
Constantin Kaplinsky82f7b012008-05-30 10:03:30 +00001.TH X0VNCSERVER 1 "May 30, 2008" "TightVNC" "TightVNC Manual"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002.SH NAME
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +00003x0vncserver \- TightVNC Server for real 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 Kaplinskyb30ae7f2006-05-25 05:04:46 +00007.SH DESCRIPTION
8.B x0vncserver
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +00009is a TightVNC Server which makes any X display remotely accessible via VNC,
Constantin Kaplinsky59740082008-01-08 10:42:22 +000010TightVNC or compatible viewers. Unlike \fBXvnc\fP(1), it does not create a
11virtual display. Instead, it just shares an existing X server (typically,
12that one connected to the physical screen).
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000013.SH OPTIONS
14.B x0vncserver
15interprets the command line as a list of parameters with optional values.
16Running \fBx0vncserver -h\fP will show a list of all valid parameters with
Constantin Kaplinsky59740082008-01-08 10:42:22 +000017short descriptions. All parameters are optional, but normally you would have
Constantin Kaplinskycef45772008-01-07 14:52:51 +000018to use the \fBPasswordFile\fP parameter (see its description below).
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000019.PP
20There are several forms of specifying parameters in the command line (here we
21use `\fISomeParameter\fP' as an example parameter name):
22.TP
23.B -\fISomeParameter\fP
Constantin Kaplinsky59740082008-01-08 10:42:22 +000024Enable the parameter, turn the feature on. This form can be used with
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000025parameters that simply enable or disable some feature.
26.TP
27.B -\fISomeParameter\fP=0
28Disable the parameter, turn the feature off.
29.TP
30.B -\fISomeParameter\fP=\fIvalue\fP
Constantin Kaplinsky59740082008-01-08 10:42:22 +000031Assign the specified \fIvalue\fP to the parameter. The leading dash can be
32omitted, or it can be doubled if desired (like in GNU-style long options).
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +000033.PP
34Parameter names are case-insensitive, their order in the command line can be
35arbitrary.
Constantin Kaplinskycef45772008-01-07 14:52:51 +000036.SH PARAMETERS
37.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000038.B display
Constantin Kaplinsky59740082008-01-08 10:42:22 +000039The X display name. If not specified, it defaults to the value of the
40DISPLAY environment variable.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000041.TP
42.B rfbport
Constantin Kaplinsky59740082008-01-08 10:42:22 +000043TCP port to listen for incoming VNC connections (RFB protocol). The default
44port is 5900.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000045.TP
46.B Log
47Specifies which log output should be directed to which target logger, and the
Constantin Kaplinsky59740082008-01-08 10:42:22 +000048level of output to log. Format is \fIlog\fP:\fItarget\fP:\fIlevel\fP.
49Default is \fB*:stderr:30\fP (log everything to stderr, set log level to 30).
50Log level should be a value between 0 and 100, higher levels produce more
51output.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000052.TP
53.B HostsFile
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +000054This parameter allows to specify a file name with IP access control rules.
55The file should include one rule per line, and the rule format is one of the
56following: +\fIaddress\fP/\fInetmask\fP (accept connections from the
57specified address group), -\fIaddress\fP/\fInetmask\fP (reject connections)
58or ?\fIaddress\fP/\fInetmask\fP (query the local user). The first rule
59matching the IP address determines the action to be performed. Rules that
60include only an action sign (+, - or ?) will match any IP address.
61\fINetmask\fP is optional and can be specified either in dotted format
62(e.g. /255.255.255.0), or as a single number of bits (e.g. /24). Default is
63to accept connections from any IP address.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000064.TP
65.B SecurityTypes
Constantin Kaplinsky59740082008-01-08 10:42:22 +000066Specify which security scheme to use for incoming connections. Valid values
67are \fBNone\fP and \fBVncAuth\fP. Default is \fBVncAuth\fP.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000068.TP
69.B PasswordFile
Constantin Kaplinsky59740082008-01-08 10:42:22 +000070Password file for VNC authentication. There is no default, you should
71specify the password file explicitly. Password file should be created with
72the \fBvncpasswd\fP(1) utility.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000073.TP
74.B Password
75Obfuscated binary encoding of the password which clients must supply to
Constantin Kaplinsky59740082008-01-08 10:42:22 +000076access the server. Using this parameter is insecure, use \fBPasswordFile\fP
77parameter instead.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000078.TP
79.B BlacklistThreshold
80The number of unauthenticated connection attempts allowed from any individual
Constantin Kaplinsky59740082008-01-08 10:42:22 +000081host before that host is black-listed. Default is 5.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000082.TP
83.B BlacklistTimeout
Constantin Kaplinsky59740082008-01-08 10:42:22 +000084The initial timeout applied when a host is first black-listed. The host
85cannot re-attempt a connection until the timeout expires. Default is 10.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000086.TP
87.B QueryConnect
Constantin Kaplinsky59740082008-01-08 10:42:22 +000088Prompt the local user to accept or reject incoming connections. Default is
89off.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000090.TP
91.B QueryConnectTimeout
92Number of seconds to show the Accept Connection dialog before rejecting the
Constantin Kaplinsky59740082008-01-08 10:42:22 +000093connection. Default is 10.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000094.TP
95.B AlwaysShared
96Always treat incoming connections as shared, regardless of the
Constantin Kaplinsky59740082008-01-08 10:42:22 +000097client-specified setting. Default is off.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +000098.TP
99.B NeverShared
100Never treat incoming connections as shared, regardless of the
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000101client-specified setting. Default is off.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000102.TP
103.B DisconnectClients
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000104Disconnect existing clients if an incoming connection is non-shared. If
105combined with \fBNeverShared\fP then new connections will be refused while
106there is a client active. Default is on.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000107.TP
108.B AcceptKeyEvents
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000109Accept key press and release events from clients. Default is on.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000110.TP
111.B AcceptPointerEvents
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000112Accept pointer events from clients. Default is on.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000113.TP
114.B RemapKeys
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000115Comma-separated list of incoming keysyms to remap. Mappings are expressed as
116two hex values, prefixed by \fB0x\fP, and separated by \fB->\fP (`dash' and
117`greater than' characters).
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000118.TP
119.B Protocol3.3
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000120Always use RFB protocol version 3.3 for backwards compatibility with
121badly-behaved clients. Default is off.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000122.TP
123.B Geometry
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000124This option specifies the screen area that will be shown to VNC clients. The
125format is
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000126.B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000127, where `+' signs can be replaced with `-' signs to specify offsets from the
128right and/or from the bottom of the screen. Offsets are optional, +0+0 is
129assumed by default (top left corner). If the argument is empty, full screen
130is shown to VNC clients (this is the default).
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000131.TP
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000132.B MaxProcessorUsage
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000133Maximum percentage of CPU time to be consumed when polling the
134screen. Default is 35.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000135.TP
136.B PollingCycle
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000137Milliseconds per one polling cycle. Actual interval may be dynamically
138adjusted to satisfy \fBMaxProcessorUsage\fP setting. Default is 30.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000139.TP
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000140.B CompareFB
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000141Perform pixel comparison on framebuffer to reduce unnecessary updates.
142Default is on.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000143.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000144.B UseSHM
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000145Use MIT-SHM extension if available. Using that extension accelerates reading
146the screen. Default is on.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000147.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000148.B OverlayMode
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000149Use overlay mode in IRIX or Solaris (does not have effect in other systems).
150This enables system-specific access to complete full-color version of the
151screen (the default X visual often provides 256 colors). Also, in overlay
152mode, \fBx0vncserver\fP can show correct mouse cursor. Default is on.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000153.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000154.B UseHardwareJPEG
Constantin Kaplinskyb8363be2008-01-08 13:48:19 +0000155Use hardware-accelerated JPEG compressor for video if available.
156\fBx0vncserver\fP can detect video areas on the screen and handle them
157separately from the rest of the screen, for better performance. If the
158client supports Tight encoding and JPEG compression, such video areas will be
159sent as JPEG-encoded rectangles. And if this option is on, compression will
160be hardware-accelerated (currently, supported only in SGI/IRIX equipped with
161appropriate hardware). Default is on.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000162.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000163.B ZlibLevel
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000164Zlib compression level for ZRLE encoding (it does not affect Tight encoding).
165Acceptable values are between 0 and 9. Default is to use the standard
166compression level provided by the \fBzlib\fP(3) compression library.
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000167.TP
168.B ImprovedHextile
169Use improved compression algorithm for Hextile encoding which achieves better
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000170compression ratios by the cost of using slightly more CPU time. Default is
171on.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000172.TP
173.B IdleTimeout
174The number of seconds after which an idle VNC connection will be dropped
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000175(zero means no timeout). Default is 0.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000176.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000177.B MaxDisconnectionTime
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000178Terminate when no client has been connected for \fIN\fP seconds. Default is
1790.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000180.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000181.B MaxConnectionTime
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000182Terminate when a client has been connected for \fIN\fP seconds. Default is
1830.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000184.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000185.B MaxIdleTime
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000186Terminate after \fIN\fP seconds of user inactivity. Default is 0.
Constantin Kaplinskycef45772008-01-07 14:52:51 +0000187.TP
Constantin Kaplinsky8d61d0d2008-01-07 16:10:37 +0000188.B ClientWaitTimeMillis
Constantin Kaplinsky59740082008-01-08 10:42:22 +0000189The number of milliseconds to wait for a client which is no longer
190responding. Default is 20000.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000191.SH SEE ALSO
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +0000192.BR Xvnc (1),
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000193.BR vncpasswd (1),
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000194.br
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +0000195http://www.tightvnc.com/
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000196.SH AUTHOR
Constantin Kaplinskya9ec0e82008-01-07 13:57:01 +0000197This manual page was written by Constantin Kaplinsky.