You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

x0vncserver.man 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. .TH X0VNCSERVER 1 "" "TigerVNC" "TigerVNC Manual"
  2. .SH NAME
  3. x0vncserver \- TigerVNC Server for X displays
  4. .SH SYNOPSIS
  5. .B x0vncserver
  6. .RI [ options ]
  7. .br
  8. .B x0vncserver -version
  9. .SH DESCRIPTION
  10. .B x0vncserver
  11. is a TigerVNC Server which makes any X display remotely accessible via VNC,
  12. TigerVNC or compatible viewers. Unlike \fBXvnc\fP(1), it does not create a
  13. virtual display. Instead, it just shares an existing X server (typically,
  14. that one connected to the physical screen).
  15. XDamage will be used if the existing X server supports it. Otherwise
  16. .B x0vncserver
  17. will fall back to polling the screen for changes.
  18. .SH OPTIONS
  19. .B x0vncserver
  20. interprets the command line as a list of parameters with optional values.
  21. Running \fBx0vncserver -h\fP will show a list of all valid parameters with
  22. short descriptions. All parameters are optional, but normally you would have
  23. to use the \fBPasswordFile\fP parameter (see its description below).
  24. .PP
  25. There are several forms of specifying parameters in the command line (here we
  26. use `\fISomeParameter\fP' as an example parameter name):
  27. .TP
  28. .B -\fISomeParameter\fP
  29. Enable the parameter, turn the feature on. This form can be used with
  30. parameters that simply enable or disable some feature.
  31. .
  32. .TP
  33. .B -\fISomeParameter\fP=0
  34. Disable the parameter, turn the feature off.
  35. .
  36. .TP
  37. .B -\fISomeParameter\fP=\fIvalue\fP
  38. Assign the specified \fIvalue\fP to the parameter. The leading dash can be
  39. omitted, or it can be doubled if desired (like in GNU-style long options).
  40. .PP
  41. Parameter names are case-insensitive, their order in the command line can be
  42. arbitrary.
  43. .SH PARAMETERS
  44. .TP
  45. .B \-display \fIdisplay\fP
  46. The X display name. If not specified, it defaults to the value of the
  47. DISPLAY environment variable.
  48. .
  49. .TP
  50. .B \-rfbport \fIport\fP
  51. Specifies the TCP port on which x0vncserver listens for connections from
  52. viewers (the protocol used in VNC is called RFB - "remote framebuffer").
  53. The default port is 5900.
  54. .
  55. .TP
  56. .B \-UseIPv4
  57. Use IPv4 for incoming and outgoing connections. Default is on.
  58. .
  59. .TP
  60. .B \-UseIPv6
  61. Use IPv6 for incoming and outgoing connections. Default is on.
  62. .
  63. .TP
  64. .B \-rfbunixpath \fIpath\fP
  65. Specifies the path of a Unix domain socket on which x0vncserver listens for
  66. connections from viewers, instead of listening on a TCP port.
  67. .
  68. .TP
  69. .B \-rfbunixmode \fImode\fP
  70. Specifies the mode of the Unix domain socket. The default is 0600.
  71. .
  72. .TP
  73. .B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
  74. Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP,
  75. \fBstdout\fP or \fBsyslog\fP, and \fIlevel\fP is between 0 and 100, 100 meaning
  76. most verbose output. \fIlogname\fP is usually \fB*\fP meaning all, but you can
  77. target a specific source file if you know the name of its "LogWriter". Default
  78. is \fB*:stderr:30\fP.
  79. .
  80. .TP
  81. .B \-HostsFile \fIfilename\fP
  82. This parameter allows to specify a file name with IP access control rules.
  83. The file should include one rule per line, and the rule format is one of the
  84. following: +\fIaddress\fP/\fIprefix\fP (accept connections from the
  85. specified address group), -\fIaddress\fP/\fIprefix\fP (reject connections)
  86. or ?\fIaddress\fP/\fIprefix\fP (query the local user). The first rule
  87. matching the IP address determines the action to be performed. Rules that
  88. include only an action sign (+, - or ?) will match any IP address.
  89. \fIPrefix\fP is optional and is specified as a number of bits (e.g. /24).
  90. Default is to accept connections from any IP address.
  91. .
  92. .TP
  93. .B \-SecurityTypes \fIsec-types\fP
  94. Specify which security scheme to use for incoming connections. Valid values
  95. are a comma separated list of \fBNone\fP, \fBVncAuth\fP, \fBPlain\fP,
  96. \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP, \fBX509None\fP, \fBX509Vnc\fP
  97. and \fBX509Plain\fP. Default is \fBVncAuth,TLSVnc\fP.
  98. .
  99. .TP
  100. .B \-rfbauth \fIpasswd-file\fP, \-PasswordFile \fIpasswd-file\fP
  101. Password file for VNC authentication. There is no default, you should
  102. specify the password file explicitly. Password file should be created with
  103. the \fBvncpasswd\fP(1) utility. The file is accessed each time a connection
  104. comes in, so it can be changed on the fly.
  105. .
  106. .TP
  107. .B \-Password \fIpassword\fP
  108. Obfuscated binary encoding of the password which clients must supply to
  109. access the server. Using this parameter is insecure, use \fBPasswordFile\fP
  110. parameter instead.
  111. .
  112. .TP
  113. .B \-PlainUsers \fIuser-list\fP
  114. A comma separated list of user names that are allowed to authenticate via
  115. any of the "Plain" security types (Plain, TLSPlain, etc.). Specify \fB*\fP
  116. to allow any user to authenticate using this security type. Default is to
  117. deny all users.
  118. .
  119. .TP
  120. .B \-pam_service \fIname\fP, \-PAMService \fIname\fP
  121. PAM service name to use when authentication users using any of the "Plain"
  122. security types. Default is \fBvnc\fP.
  123. .
  124. .TP
  125. .B \-X509Cert \fIpath\fP
  126. Path to a X509 certificate in PEM format to be used for all X509 based
  127. security types (X509None, X509Vnc, etc.).
  128. .
  129. .TP
  130. .B \-X509Key \fIpath\fP
  131. Private key counter part to the certificate given in \fBX509Cert\fP. Must
  132. also be in PEM format.
  133. .
  134. .TP
  135. .B \-GnuTLSPriority \fIpriority\fP
  136. GnuTLS priority string that controls the TLS session’s handshake algorithms.
  137. See the GnuTLS manual for possible values. Default is \fBNORMAL\fP.
  138. .
  139. .TP
  140. .B \-BlacklistThreshold \fIcount\fP
  141. The number of unauthenticated connection attempts allowed from any individual
  142. host before that host is black-listed. Default is 5.
  143. .
  144. .TP
  145. .B \-BlacklistTimeout \fIseconds\fP
  146. The initial timeout applied when a host is first black-listed. The host
  147. cannot re-attempt a connection until the timeout expires. Default is 10.
  148. .
  149. .TP
  150. .B \-QueryConnect
  151. Prompts the user of the desktop to explicitly accept or reject incoming
  152. connections. Default is off.
  153. .
  154. .TP
  155. .B \-QueryConnectTimeout \fIseconds\fP
  156. Number of seconds to show the Accept Connection dialog before rejecting the
  157. connection. Default is \fB10\fP.
  158. .
  159. .TP
  160. .B \-AlwaysShared
  161. Always treat incoming connections as shared, regardless of the client-specified
  162. setting. Default is off.
  163. .
  164. .TP
  165. .B \-NeverShared
  166. Never treat incoming connections as shared, regardless of the client-specified
  167. setting. Default is off.
  168. .
  169. .TP
  170. .B \-DisconnectClients
  171. Disconnect existing clients if an incoming connection is non-shared. Default is
  172. on. If \fBDisconnectClients\fP is false, then a new non-shared connection will
  173. be refused while there is a client active. When combined with
  174. \fBNeverShared\fP this means only one client is allowed at a time.
  175. .
  176. .TP
  177. .B \-AcceptKeyEvents
  178. Accept key press and release events from clients. Default is on.
  179. .
  180. .TP
  181. .B \-AcceptPointerEvents
  182. Accept pointer press and release events from clients. Default is on.
  183. .
  184. .TP
  185. .B \-RemapKeys \fImapping
  186. Sets up a keyboard mapping.
  187. .I mapping
  188. is a comma-separated string of character mappings, each of the form
  189. .IR char -> char ,
  190. or
  191. .IR char <> char ,
  192. where
  193. .I char
  194. is a hexadecimal keysym. For example, to exchange the " and @ symbols you would specify the following:
  195. .RS 10
  196. RemapKeys=0x22<>0x40
  197. .RE
  198. .
  199. .TP
  200. .B \-RawKeyboard
  201. Send keyboard events straight through and avoid mapping them to the current
  202. keyboard layout. This effectively makes the keyboard behave according to the
  203. layout configured on the server instead of the layout configured on the
  204. client. Default is off.
  205. .
  206. .TP
  207. .B \-Protocol3.3
  208. Always use protocol version 3.3 for backwards compatibility with badly-behaved
  209. clients. Default is off.
  210. .
  211. .TP
  212. .B \-Geometry \fIgeometry\fP
  213. This option specifies the screen area that will be shown to VNC clients. The
  214. format is
  215. .B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
  216. , where `+' signs can be replaced with `\-' signs to specify offsets from the
  217. right and/or from the bottom of the screen. Offsets are optional, +0+0 is
  218. assumed by default (top left corner). If the argument is empty, full screen
  219. is shown to VNC clients (this is the default).
  220. .
  221. .TP
  222. .B \-MaxProcessorUsage \fIpercent\fP
  223. Maximum percentage of CPU time to be consumed when polling the
  224. screen. Default is 35.
  225. .
  226. .TP
  227. .B \-PollingCycle \fImilliseconds\fP
  228. Milliseconds per one polling cycle. Actual interval may be dynamically
  229. adjusted to satisfy \fBMaxProcessorUsage\fP setting. Default is 30.
  230. .
  231. .TP
  232. .B \-FrameRate \fIfps\fP
  233. The maximum number of updates per second sent to each client. If the screen
  234. updates any faster then those changes will be aggregated and sent in a single
  235. update to the client. Note that this only controls the maximum rate and a
  236. client may get a lower rate when resources are limited. Default is \fB60\fP.
  237. .
  238. .TP
  239. .B \-CompareFB \fImode\fP
  240. Perform pixel comparison on framebuffer to reduce unnecessary updates. Can
  241. be either \fB0\fP (off), \fB1\fP (always) or \fB2\fP (auto). Default is
  242. \fB2\fP.
  243. .
  244. .TP
  245. .B \-UseSHM
  246. Use MIT-SHM extension if available. Using that extension accelerates reading
  247. the screen. Default is on.
  248. .
  249. .TP
  250. .B \-ZlibLevel \fIlevel\fP
  251. Zlib compression level for ZRLE encoding (it does not affect Tight encoding).
  252. Acceptable values are between 0 and 9. Default is to use the standard
  253. compression level provided by the \fBzlib\fP(3) compression library.
  254. .
  255. .TP
  256. .B \-ImprovedHextile
  257. Use improved compression algorithm for Hextile encoding which achieves better
  258. compression ratios by the cost of using slightly more CPU time. Default is
  259. on.
  260. .
  261. .TP
  262. .B \-IdleTimeout \fIseconds\fP
  263. The number of seconds after which an idle VNC connection will be dropped.
  264. Default is 0, which means that idle connections will never be dropped.
  265. .
  266. .TP
  267. .B \-MaxDisconnectionTime \fIseconds\fP
  268. Terminate when no client has been connected for \fIN\fP seconds. Default is
  269. 0.
  270. .
  271. .TP
  272. .B \-MaxConnectionTime \fIseconds\fP
  273. Terminate when a client has been connected for \fIN\fP seconds. Default is
  274. 0.
  275. .
  276. .TP
  277. .B \-MaxIdleTime \fIseconds\fP
  278. Terminate after \fIN\fP seconds of user inactivity. Default is 0.
  279. .
  280. .TP
  281. .B \-ClientWaitTimeMillis \fItime\fP
  282. Time in milliseconds to wait for a viewer which is blocking the server. This is
  283. necessary because the server is single-threaded and sometimes blocks until the
  284. viewer has finished sending or receiving a message - note that this does not
  285. mean an update will be aborted after this time. Default is 20000 (20 seconds).
  286. .
  287. .TP
  288. .B \-AcceptCutText
  289. .TQ
  290. .B \-SendCutText
  291. .TQ
  292. .B \-MaxCutText
  293. Currently unused.
  294. .SH SEE ALSO
  295. .BR Xvnc (1),
  296. .BR vncpasswd (1),
  297. .br
  298. https://www.tigervnc.org/
  299. .SH AUTHOR
  300. Constantin Kaplinsky and others.
  301. VNC was originally developed by the RealVNC team while at Olivetti
  302. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  303. implemented by Constantin Kaplinsky. Many other people have since
  304. participated in development, testing and support. This manual is part
  305. of the TigerVNC software suite.