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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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 \-desktop \fIdesktop-name\fP
  46. Each desktop has a name which may be displayed by the viewer. It defaults to
  47. "<user>@<hostname>".
  48. .
  49. .TP
  50. .B \-display \fIdisplay\fP
  51. The X display name. If not specified, it defaults to the value of the
  52. DISPLAY environment variable.
  53. .
  54. .TP
  55. .B \-rfbport \fIport\fP
  56. Specifies the TCP port on which x0vncserver listens for connections from
  57. viewers (the protocol used in VNC is called RFB - "remote framebuffer").
  58. The default port is 5900. Specify \fB-1\fP to disable listening on a TCP
  59. port.
  60. .
  61. .TP
  62. .B \-UseIPv4
  63. Use IPv4 for incoming and outgoing connections. Default is on.
  64. .
  65. .TP
  66. .B \-UseIPv6
  67. Use IPv6 for incoming and outgoing connections. Default is on.
  68. .
  69. .TP
  70. .B \-rfbunixpath \fIpath\fP
  71. Specifies the path of a Unix domain socket on which x0vncserver listens for
  72. connections from viewers.
  73. .
  74. .TP
  75. .B \-rfbunixmode \fImode\fP
  76. Specifies the mode of the Unix domain socket. The default is 0600.
  77. .
  78. .TP
  79. .B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
  80. Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP,
  81. \fBstdout\fP or \fBsyslog\fP, and \fIlevel\fP is between 0 and 100, 100 meaning
  82. most verbose output. \fIlogname\fP is usually \fB*\fP meaning all, but you can
  83. target a specific source file if you know the name of its "LogWriter". Default
  84. is \fB*:stderr:30\fP.
  85. .
  86. .TP
  87. .B \-HostsFile \fIfilename\fP
  88. This parameter allows to specify a file name with IP access control rules.
  89. The file should include one rule per line, and the rule format is one of the
  90. following: +\fIaddress\fP/\fIprefix\fP (accept connections from the
  91. specified address group), -\fIaddress\fP/\fIprefix\fP (reject connections)
  92. or ?\fIaddress\fP/\fIprefix\fP (query the local user). The first rule
  93. matching the IP address determines the action to be performed. Rules that
  94. include only an action sign (+, - or ?) will match any IP address.
  95. \fIPrefix\fP is optional and is specified as a number of bits (e.g. /24).
  96. Default is to accept connections from any IP address.
  97. .
  98. .TP
  99. .B \-SecurityTypes \fIsec-types\fP
  100. Specify which security scheme to use for incoming connections. Valid values
  101. are a comma separated list of \fBNone\fP, \fBVncAuth\fP, \fBPlain\fP,
  102. \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP, \fBX509None\fP, \fBX509Vnc\fP,
  103. \fBX509Plain\fP, \fBRA2\fP, \fBRA2ne\fP, \fBRA2_256\fP and \fBRA2ne_256\fP.
  104. Default is \fBTLSVnc,RA2_256,RA2,RA2ne_256,RA2ne,VncAuth\fP.
  105. .
  106. .TP
  107. .B \-rfbauth \fIpasswd-file\fP, \-PasswordFile \fIpasswd-file\fP
  108. Password file for VNC authentication. There is no default, you should
  109. specify the password file explicitly. Password file should be created with
  110. the \fBvncpasswd\fP(1) utility. The file is accessed each time a connection
  111. comes in, so it can be changed on the fly.
  112. .
  113. .TP
  114. .B \-Password \fIpassword\fP
  115. Obfuscated binary encoding of the password which clients must supply to
  116. access the server. Using this parameter is insecure, use \fBPasswordFile\fP
  117. parameter instead.
  118. .
  119. .TP
  120. .B \-PlainUsers \fIuser-list\fP
  121. A comma separated list of user names that are allowed to authenticate via
  122. any of the "Plain" security types (Plain, TLSPlain, etc.). Specify \fB*\fP
  123. to allow any user to authenticate using this security type. Default is to
  124. deny all users.
  125. .
  126. .TP
  127. .B \-pam_service \fIname\fP, \-PAMService \fIname\fP
  128. PAM service name to use when authentication users using any of the "Plain"
  129. security types. Default is \fBvnc\fP.
  130. .
  131. .TP
  132. .B \-X509Cert \fIpath\fP
  133. Path to a X509 certificate in PEM format to be used for all X509 based
  134. security types (X509None, X509Vnc, etc.).
  135. .
  136. .TP
  137. .B \-X509Key \fIpath\fP
  138. Private key counter part to the certificate given in \fBX509Cert\fP. Must
  139. also be in PEM format.
  140. .
  141. .TP
  142. .B \-GnuTLSPriority \fIpriority\fP
  143. GnuTLS priority string that controls the TLS session’s handshake algorithms.
  144. See the GnuTLS manual for possible values. Default is \fBNORMAL\fP.
  145. .
  146. .TP
  147. .B \-RSAKey \fIpath\fP
  148. Path to the RSA key for the RSA-AES security types (\fBRA2\fP, \fBRA2ne\fP,
  149. \fBRA2_256\fP and \fBRA2ne_256\fP) in PEM format.
  150. .
  151. .TP
  152. .B \-RequireUsername
  153. Require username for the RSA-AES security types. Default is off.
  154. .
  155. .TP
  156. .B \-UseBlacklist
  157. Temporarily reject connections from a host if it repeatedly fails to
  158. authenticate. Default is on.
  159. .
  160. .TP
  161. .B \-BlacklistThreshold \fIcount\fP
  162. The number of unauthenticated connection attempts allowed from any individual
  163. host before that host is black-listed. Default is 5.
  164. .
  165. .TP
  166. .B \-BlacklistTimeout \fIseconds\fP
  167. The initial timeout applied when a host is first black-listed. The host
  168. cannot re-attempt a connection until the timeout expires. Default is 10.
  169. .
  170. .TP
  171. .B \-QueryConnect
  172. Prompts the user of the desktop to explicitly accept or reject incoming
  173. connections. Default is off.
  174. .
  175. .TP
  176. .B \-QueryConnectTimeout \fIseconds\fP
  177. Number of seconds to show the Accept Connection dialog before rejecting the
  178. connection. Default is \fB10\fP.
  179. .
  180. .TP
  181. .B \-localhost
  182. Only allow connections from the same machine. Useful if you use SSH and want to
  183. stop non-SSH connections from any other hosts.
  184. .
  185. .TP
  186. .B \-interface \fIIP address\fP
  187. Listen on interface. By default x0vncserver listens on all available interfaces.
  188. .
  189. .TP
  190. .B \-AlwaysShared
  191. Always treat incoming connections as shared, regardless of the client-specified
  192. setting. Default is off.
  193. .
  194. .TP
  195. .B \-NeverShared
  196. Never treat incoming connections as shared, regardless of the client-specified
  197. setting. Default is off.
  198. .
  199. .TP
  200. .B \-DisconnectClients
  201. Disconnect existing clients if an incoming connection is non-shared. Default is
  202. on. If \fBDisconnectClients\fP is false, then a new non-shared connection will
  203. be refused while there is a client active. When combined with
  204. \fBNeverShared\fP this means only one client is allowed at a time.
  205. .
  206. .TP
  207. .B \-AcceptKeyEvents
  208. Accept key press and release events from clients. Default is on.
  209. .
  210. .TP
  211. .B \-AcceptPointerEvents
  212. Accept pointer press and release events from clients. Default is on.
  213. .
  214. .TP
  215. .B \-AcceptSetDesktopSize
  216. Accept requests to resize the size of the desktop. Default is on.
  217. .
  218. .TP
  219. .B \-RemapKeys \fImapping
  220. Sets up a keyboard mapping.
  221. .I mapping
  222. is a comma-separated string of character mappings, each of the form
  223. .IR char -> char ,
  224. or
  225. .IR char <> char ,
  226. where
  227. .I char
  228. is a hexadecimal keysym. For example, to exchange the " and @ symbols you would specify the following:
  229. .RS 10
  230. RemapKeys=0x22<>0x40
  231. .RE
  232. .
  233. .TP
  234. .B \-RawKeyboard
  235. Send keyboard events straight through and avoid mapping them to the current
  236. keyboard layout. This effectively makes the keyboard behave according to the
  237. layout configured on the server instead of the layout configured on the
  238. client. Default is off.
  239. .
  240. .TP
  241. .B \-Protocol3.3
  242. Always use protocol version 3.3 for backwards compatibility with badly-behaved
  243. clients. Default is off.
  244. .
  245. .TP
  246. .B \-Geometry \fIgeometry\fP
  247. This option specifies the screen area that will be shown to VNC clients. The
  248. format is
  249. .B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
  250. , where `+' signs can be replaced with `\-' signs to specify offsets from the
  251. right and/or from the bottom of the screen. Offsets are optional, +0+0 is
  252. assumed by default (top left corner). If the argument is empty, full screen
  253. is shown to VNC clients (this is the default).
  254. .
  255. .TP
  256. .B \-MaxProcessorUsage \fIpercent\fP
  257. Maximum percentage of CPU time to be consumed when polling the
  258. screen. Default is 35.
  259. .
  260. .TP
  261. .B \-PollingCycle \fImilliseconds\fP
  262. Milliseconds per one polling cycle. Actual interval may be dynamically
  263. adjusted to satisfy \fBMaxProcessorUsage\fP setting. Default is 30.
  264. .
  265. .TP
  266. .B \-FrameRate \fIfps\fP
  267. The maximum number of updates per second sent to each client. If the screen
  268. updates any faster then those changes will be aggregated and sent in a single
  269. update to the client. Note that this only controls the maximum rate and a
  270. client may get a lower rate when resources are limited. Default is \fB60\fP.
  271. .
  272. .TP
  273. .B \-CompareFB \fImode\fP
  274. Perform pixel comparison on framebuffer to reduce unnecessary updates. Can
  275. be either \fB0\fP (off), \fB1\fP (always) or \fB2\fP (auto). Default is
  276. \fB2\fP.
  277. .
  278. .TP
  279. .B \-UseSHM
  280. Use MIT-SHM extension if available. Using that extension accelerates reading
  281. the screen. Default is on.
  282. .
  283. .TP
  284. .B \-ZlibLevel \fIlevel\fP
  285. Zlib compression level for ZRLE encoding (it does not affect Tight encoding).
  286. Acceptable values are between 0 and 9. Default is to use the standard
  287. compression level provided by the \fBzlib\fP(3) compression library.
  288. .
  289. .TP
  290. .B \-ImprovedHextile
  291. Use improved compression algorithm for Hextile encoding which achieves better
  292. compression ratios by the cost of using slightly more CPU time. Default is
  293. on.
  294. .
  295. .TP
  296. .B \-IdleTimeout \fIseconds\fP
  297. The number of seconds after which an idle VNC connection will be dropped.
  298. Default is 0, which means that idle connections will never be dropped.
  299. .
  300. .TP
  301. .B \-MaxDisconnectionTime \fIseconds\fP
  302. Terminate when no client has been connected for \fIN\fP seconds. Default is
  303. 0.
  304. .
  305. .TP
  306. .B \-MaxConnectionTime \fIseconds\fP
  307. Terminate when a client has been connected for \fIN\fP seconds. Default is
  308. 0.
  309. .
  310. .TP
  311. .B \-MaxIdleTime \fIseconds\fP
  312. Terminate after \fIN\fP seconds of user inactivity. Default is 0.
  313. .SH SEE ALSO
  314. .BR Xvnc (1),
  315. .BR vncpasswd (1),
  316. .br
  317. https://www.tigervnc.org/
  318. .SH AUTHOR
  319. Constantin Kaplinsky and others.
  320. VNC was originally developed by the RealVNC team while at Olivetti
  321. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  322. implemented by Constantin Kaplinsky. Many other people have since
  323. participated in development, testing and support. This manual is part
  324. of the TigerVNC software suite.