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 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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 \-UseBlacklist
  141. Temporarily reject connections from a host if it repeatedly fails to
  142. authenticate. Default is on.
  143. .
  144. .TP
  145. .B \-BlacklistThreshold \fIcount\fP
  146. The number of unauthenticated connection attempts allowed from any individual
  147. host before that host is black-listed. Default is 5.
  148. .
  149. .TP
  150. .B \-BlacklistTimeout \fIseconds\fP
  151. The initial timeout applied when a host is first black-listed. The host
  152. cannot re-attempt a connection until the timeout expires. Default is 10.
  153. .
  154. .TP
  155. .B \-QueryConnect
  156. Prompts the user of the desktop to explicitly accept or reject incoming
  157. connections. Default is off.
  158. .
  159. .TP
  160. .B \-QueryConnectTimeout \fIseconds\fP
  161. Number of seconds to show the Accept Connection dialog before rejecting the
  162. connection. Default is \fB10\fP.
  163. .
  164. .TP
  165. .B \-localhost
  166. Only allow connections from the same machine. Useful if you use SSH and want to
  167. stop non-SSH connections from any other hosts.
  168. .
  169. .TP
  170. .B \-AlwaysShared
  171. Always treat incoming connections as shared, regardless of the client-specified
  172. setting. Default is off.
  173. .
  174. .TP
  175. .B \-NeverShared
  176. Never treat incoming connections as shared, regardless of the client-specified
  177. setting. Default is off.
  178. .
  179. .TP
  180. .B \-DisconnectClients
  181. Disconnect existing clients if an incoming connection is non-shared. Default is
  182. on. If \fBDisconnectClients\fP is false, then a new non-shared connection will
  183. be refused while there is a client active. When combined with
  184. \fBNeverShared\fP this means only one client is allowed at a time.
  185. .
  186. .TP
  187. .B \-AcceptKeyEvents
  188. Accept key press and release events from clients. Default is on.
  189. .
  190. .TP
  191. .B \-AcceptPointerEvents
  192. Accept pointer press and release events from clients. Default is on.
  193. .
  194. .TP
  195. .B \-AcceptSetDesktopSize
  196. Accept requests to resize the size of the desktop. Default is on.
  197. .
  198. .TP
  199. .B \-RemapKeys \fImapping
  200. Sets up a keyboard mapping.
  201. .I mapping
  202. is a comma-separated string of character mappings, each of the form
  203. .IR char -> char ,
  204. or
  205. .IR char <> char ,
  206. where
  207. .I char
  208. is a hexadecimal keysym. For example, to exchange the " and @ symbols you would specify the following:
  209. .RS 10
  210. RemapKeys=0x22<>0x40
  211. .RE
  212. .
  213. .TP
  214. .B \-RawKeyboard
  215. Send keyboard events straight through and avoid mapping them to the current
  216. keyboard layout. This effectively makes the keyboard behave according to the
  217. layout configured on the server instead of the layout configured on the
  218. client. Default is off.
  219. .
  220. .TP
  221. .B \-Protocol3.3
  222. Always use protocol version 3.3 for backwards compatibility with badly-behaved
  223. clients. Default is off.
  224. .
  225. .TP
  226. .B \-Geometry \fIgeometry\fP
  227. This option specifies the screen area that will be shown to VNC clients. The
  228. format is
  229. .B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
  230. , where `+' signs can be replaced with `\-' signs to specify offsets from the
  231. right and/or from the bottom of the screen. Offsets are optional, +0+0 is
  232. assumed by default (top left corner). If the argument is empty, full screen
  233. is shown to VNC clients (this is the default).
  234. .
  235. .TP
  236. .B \-MaxProcessorUsage \fIpercent\fP
  237. Maximum percentage of CPU time to be consumed when polling the
  238. screen. Default is 35.
  239. .
  240. .TP
  241. .B \-PollingCycle \fImilliseconds\fP
  242. Milliseconds per one polling cycle. Actual interval may be dynamically
  243. adjusted to satisfy \fBMaxProcessorUsage\fP setting. Default is 30.
  244. .
  245. .TP
  246. .B \-FrameRate \fIfps\fP
  247. The maximum number of updates per second sent to each client. If the screen
  248. updates any faster then those changes will be aggregated and sent in a single
  249. update to the client. Note that this only controls the maximum rate and a
  250. client may get a lower rate when resources are limited. Default is \fB60\fP.
  251. .
  252. .TP
  253. .B \-CompareFB \fImode\fP
  254. Perform pixel comparison on framebuffer to reduce unnecessary updates. Can
  255. be either \fB0\fP (off), \fB1\fP (always) or \fB2\fP (auto). Default is
  256. \fB2\fP.
  257. .
  258. .TP
  259. .B \-UseSHM
  260. Use MIT-SHM extension if available. Using that extension accelerates reading
  261. the screen. Default is on.
  262. .
  263. .TP
  264. .B \-ZlibLevel \fIlevel\fP
  265. Zlib compression level for ZRLE encoding (it does not affect Tight encoding).
  266. Acceptable values are between 0 and 9. Default is to use the standard
  267. compression level provided by the \fBzlib\fP(3) compression library.
  268. .
  269. .TP
  270. .B \-ImprovedHextile
  271. Use improved compression algorithm for Hextile encoding which achieves better
  272. compression ratios by the cost of using slightly more CPU time. Default is
  273. on.
  274. .
  275. .TP
  276. .B \-IdleTimeout \fIseconds\fP
  277. The number of seconds after which an idle VNC connection will be dropped.
  278. Default is 0, which means that idle connections will never be dropped.
  279. .
  280. .TP
  281. .B \-MaxDisconnectionTime \fIseconds\fP
  282. Terminate when no client has been connected for \fIN\fP seconds. Default is
  283. 0.
  284. .
  285. .TP
  286. .B \-MaxConnectionTime \fIseconds\fP
  287. Terminate when a client has been connected for \fIN\fP seconds. Default is
  288. 0.
  289. .
  290. .TP
  291. .B \-MaxIdleTime \fIseconds\fP
  292. Terminate after \fIN\fP seconds of user inactivity. Default is 0.
  293. .
  294. .TP
  295. .B \-ClientWaitTimeMillis \fItime\fP
  296. Time in milliseconds to wait for a viewer which is blocking the server. This is
  297. necessary because the server is single-threaded and sometimes blocks until the
  298. viewer has finished sending or receiving a message - note that this does not
  299. mean an update will be aborted after this time. Default is 20000 (20 seconds).
  300. .
  301. .TP
  302. .B \-AcceptCutText
  303. .TQ
  304. .B \-SendCutText
  305. .TQ
  306. .B \-MaxCutText
  307. Currently unused.
  308. .SH SEE ALSO
  309. .BR Xvnc (1),
  310. .BR vncpasswd (1),
  311. .br
  312. https://www.tigervnc.org/
  313. .SH AUTHOR
  314. Constantin Kaplinsky and others.
  315. VNC was originally developed by the RealVNC team while at Olivetti
  316. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  317. implemented by Constantin Kaplinsky. Many other people have since
  318. participated in development, testing and support. This manual is part
  319. of the TigerVNC software suite.