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.

vncviewer.man 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368
  1. .TH vncviewer 1 "" "TigerVNC" "Virtual Network Computing"
  2. .SH NAME
  3. vncviewer \- VNC viewer for X
  4. .SH SYNOPSIS
  5. .B vncviewer
  6. .RI [ options ]
  7. .RI [ host ][: display# ]
  8. .br
  9. .B vncviewer
  10. .RI [ options ]
  11. .RI [ host ][:: port ]
  12. .br
  13. .B vncviewer
  14. .RI [ options ]
  15. .RI [ unix\ socket ]
  16. .br
  17. .B vncviewer
  18. .RI [ options ]
  19. .B \-listen
  20. .RI [ port ]
  21. .br
  22. .B vncviewer
  23. .RI [ options ]
  24. .RI [ .tigervnc\ file ]
  25. .SH DESCRIPTION
  26. .B vncviewer
  27. is a viewer (client) for Virtual Network Computing. This manual page documents
  28. version 4 for the X window system.
  29. If you run the viewer with no arguments it will prompt you for a VNC server to
  30. connect to. Alternatively, specify the VNC server as an argument, e.g.:
  31. .RS
  32. vncviewer snoopy:2
  33. .RE
  34. where 'snoopy' is the name of the machine, and '2' is the display number of the
  35. VNC server on that machine. Either the machine name or display number can be
  36. omitted. So for example ":1" means display number 1 on the same machine, and
  37. "snoopy" means "snoopy:0" i.e. display 0 on machine "snoopy".
  38. As another quick way to start a connection to a VNC server, specify a .tigervnc
  39. configuration file as an argument to the viewer, e.g.:
  40. .RS
  41. vncviewer ./some.tigervnc
  42. .RE
  43. where './some.tigervnc' is an existing and valid TigerVNC configuration file.
  44. The file name needs to include a path separator. Additional options may be
  45. given too, but the given configuration file will overwrite any conflicting
  46. parameters.
  47. If the VNC server is successfully contacted, you will be prompted for a
  48. password to authenticate you. You can also add 'VNC_USERNAME' and 'VNC_PASSWORD'
  49. to environment variables. If the password is correct, a window will appear
  50. showing the desktop of the VNC server.
  51. .SH AUTOMATIC PROTOCOL SELECTION
  52. The viewer tests the speed of the connection to the server and chooses the
  53. encoding and pixel format (color level) appropriately. This makes it much
  54. easier to use than previous versions where the user had to specify arcane
  55. command line arguments.
  56. The viewer normally starts out assuming the link is slow, using the
  57. encoding with the best compression. If it turns out that the link is
  58. fast enough it switches to an encoding which compresses less but is
  59. faster to generate, thus improving the interactive feel.
  60. The viewer normally starts in full-color mode, but switches to
  61. low-color mode if the bandwidth is insufficient. However, this only
  62. occurs when communicating with servers supporting protocol 3.8 or
  63. newer, since many old servers does not support color mode changes
  64. safely.
  65. Automatic selection can be turned off by setting the
  66. \fBAutoSelect\fP parameter to false, or from the options dialog.
  67. .SH POPUP MENU
  68. The viewer has a popup menu containing entries which perform various actions.
  69. It is usually brought up by pressing F8, but this can be configured with the
  70. MenuKey parameter. Actions which the popup menu can perform include:
  71. .RS 2
  72. .IP * 2
  73. switching in and out of full-screen mode
  74. .IP *
  75. quitting the viewer
  76. .IP *
  77. generating key events, e.g. sending ctrl-alt-del
  78. .IP *
  79. accessing the options dialog and various other dialogs
  80. .RE
  81. .PP
  82. By default, key presses in the popup menu get sent to the VNC server and
  83. dismiss the popup. So to get an F8 through to the VNC server simply press it
  84. twice.
  85. .SH FULL-SCREEN MODE
  86. A full-screen mode is supported. This is particularly useful when connecting
  87. to a remote screen which is the same size as your local one. If the remote
  88. screen is bigger, you can scroll by bumping the mouse against the edge of the
  89. screen.
  90. .SH OPTIONS (PARAMETERS)
  91. You can get a list of parameters by giving \fB\-h\fP as a command-line option
  92. to vncviewer. Parameters can be turned on with -\fIparam\fP or off with
  93. -\fIparam\fP=0. Parameters which take a value can be specified as
  94. -\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP
  95. -\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are
  96. case-insensitive.
  97. Many of the parameters can also be set graphically via the options dialog box.
  98. This can be accessed from the popup menu or from the "Connection details"
  99. dialog box.
  100. .TP
  101. .B \-display \fIXdisplay\fP
  102. Specifies the X display on which the VNC viewer window should appear.
  103. .
  104. .TP
  105. .B \-geometry \fIgeometry\fP
  106. Initial position of the main VNC viewer window. The format is
  107. .B \fIwidth\fPx\fIheight\fP+\fIxoffset\fP+\fIyoffset\fP
  108. , where `+' signs can be replaced with `\-' signs to specify offsets from the
  109. right and/or from the bottom of the screen. Offsets are optional and the
  110. window will be placed by the window manager by default.
  111. .
  112. .TP
  113. .B \-listen \fI[port]\fP
  114. Causes vncviewer to listen on the given port (default 5500) for reverse
  115. connections from a VNC server. WinVNC supports reverse connections initiated
  116. using the 'Add New Client' menu option or the '\-connect' command-line option.
  117. Xvnc supports reverse connections with a helper program called
  118. .B vncconfig.
  119. .
  120. .TP
  121. .B \-SecurityTypes \fIsec-types\fP
  122. Specify which security schemes to attempt to use when authenticating with
  123. the server. Valid values are a comma separated list of \fBNone\fP,
  124. \fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP,
  125. \fBX509None\fP, \fBX509Vnc\fP, \fBX509Plain\fP, \fBRA2\fP, \fBRA2ne\fP,
  126. \fBRA2_256\fP and \fBRA2ne_256\fP. Default is to attempt
  127. every supported scheme.
  128. .
  129. .TP
  130. .B \-passwd, \-PasswordFile \fIpassword-file\fP
  131. If you are on a filesystem which gives you access to the password file used by
  132. the server, you can specify it here to avoid typing it in. It will usually be
  133. "~/.vnc/passwd".
  134. .
  135. .TP
  136. .B \-X509CA \fIpath\fP
  137. Path to CA certificate to use when authenticating remote servers using any
  138. of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM
  139. format. Default is \fB$HOME/.vnc/x509_ca.pem\fP.
  140. .
  141. .TP
  142. .B \-X509CRL \fIpath\fP
  143. Path to certificate revocation list to use in conjunction with
  144. \fB-X509CA\fP. Must also be in PEM format. Default is
  145. \fB$HOME/.vnc/x509_crl.pem\fP.
  146. .
  147. .TP
  148. .B \-Shared
  149. When you make a connection to a VNC server, all other existing connections are
  150. normally closed. This option requests that they be left open, allowing you to
  151. share the desktop with someone already using it.
  152. .
  153. .TP
  154. .B \-ViewOnly
  155. Specifies that no keyboard or mouse events should be sent to the server.
  156. Useful if you want to view a desktop without interfering; often needs to be
  157. combined with
  158. .B \-Shared.
  159. .
  160. .TP
  161. .B \-AcceptClipboard
  162. Accept clipboard changes from the server. Default is on.
  163. .
  164. .TP
  165. .B \-SetPrimary
  166. Set the primary selection as well as the clipboard selection.
  167. Default is on.
  168. .
  169. .TP
  170. .B \-MaxCutText \fIbytes\fP
  171. The maximum size of a clipboard update that will be accepted from a server.
  172. Default is \fB262144\fP.
  173. .
  174. .TP
  175. .B \-SendClipboard
  176. Send clipboard changes to the server. Default is on.
  177. .
  178. .TP
  179. .B \-SendPrimary
  180. Send the primary selection to the server as well as the clipboard
  181. selection. Default is on.
  182. .
  183. .TP
  184. .B \-Maximize
  185. Maximize viewer window.
  186. .
  187. .TP
  188. .B \-FullScreen
  189. Start in full-screen mode.
  190. .
  191. .TP
  192. .B \-FullScreenAllMonitors (DEPRECATED)
  193. Use all local monitors and not just the current one when switching to
  194. full-screen mode. Replaced by \fB-FullScreenMode=all\fP
  195. .
  196. .TP
  197. .B \-FullScreenMode \fImode\fP
  198. Specify which monitors to use when in full screen. It should be either "Current",
  199. "Selected" (specified by \fB-FullScreenSelectedMonitors\fP) or "All".
  200. The default is "Current".
  201. .
  202. .TP
  203. .B \-FullScreenSelectedMonitors \fImonitors\fP
  204. This option specifies the monitors to use with \fB-FullScreenMode=selected\fP.
  205. Monitors are ordered according to the system configuration from left to right,
  206. and in case of a conflict, from top to bottom. So, for example, "1,2,3" means
  207. that the first, second and third monitor counting from the left should be used.
  208. The default is "1".
  209. .
  210. .TP
  211. .B \-FullscreenSystemKeys
  212. Pass special keys (like Alt+Tab) directly to the server when in full-screen
  213. mode.
  214. .
  215. .TP
  216. .B \-DesktopSize \fIwidth\fPx\fIheight\fP
  217. Instead of keeping the existing remote screen size, the client will attempt to
  218. switch to the specified since when connecting. If the server does not support
  219. the SetDesktopSize message then the screen will retain the original size.
  220. .
  221. .TP
  222. .B \-RemoteResize
  223. Dynamically resize the remote desktop size as the size of the local client
  224. window changes. Note that this may not work with all VNC servers.
  225. .
  226. .TP
  227. .B \-AutoSelect
  228. Use automatic selection of encoding and pixel format (default is on). Normally
  229. the viewer tests the speed of the connection to the server and chooses the
  230. encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
  231. .
  232. .TP
  233. .B \-FullColor, \-FullColour
  234. Tells the VNC server to send full-color pixels in the best format for this
  235. display. This is default.
  236. .
  237. .TP
  238. .B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
  239. Selects the reduced color level to use on slow links. \fIlevel\fP can range
  240. from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
  241. 256 colors. Note that decision if reduced color level is used is made by
  242. vncviewer. If you would like to force vncviewer to use reduced color level
  243. use \fB-AutoSelect=0\fP parameter.
  244. .
  245. .TP
  246. .B \-PreferredEncoding \fIencoding\fP
  247. This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
  248. "hextile" or "raw".
  249. .
  250. .TP
  251. .B \-NoJpeg
  252. Disable lossy JPEG compression in Tight encoding. Default is off.
  253. .
  254. .TP
  255. .B \-QualityLevel \fIlevel\fP
  256. JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
  257. \fB-AutoSelect\fP is turned on. Default is 8.
  258. .
  259. .TP
  260. .B \-CompressLevel \fIlevel\fP
  261. Use specified lossless compression level. 0 = Low, 9 = High. Default is 2.
  262. .
  263. .TP
  264. .B \-CustomCompressLevel
  265. Use custom compression level. Default if \fBCompressLevel\fP is specified.
  266. .
  267. .TP
  268. .B \-DotWhenNoCursor
  269. Show the dot cursor when the server sends an invisible cursor. Default is off.
  270. .
  271. .TP
  272. .B \-PointerEventInterval \fItime\fP
  273. Time in milliseconds to rate-limit successive pointer events. Default is
  274. 17 ms (60 Hz).
  275. .
  276. .TP
  277. .B \-EmulateMiddleButton
  278. Emulate middle mouse button by pressing left and right mouse buttons
  279. simultaneously. Default is off.
  280. .
  281. .TP
  282. .B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
  283. Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
  284. \fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
  285. output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
  286. specific source file if you know the name of its "LogWriter". Default is
  287. \fB*:stderr:30\fP.
  288. .
  289. .TP
  290. .B \-MenuKey \fIkeysym-name\fP
  291. This option specifies the key which brings up the popup menu. The currently
  292. supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
  293. Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). Default is F8.
  294. .
  295. .TP
  296. \fB\-via\fR \fIgateway\fR
  297. Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
  298. before connection, connect to the \fIhost\fR through that tunnel
  299. (TigerVNC\-specific). By default, this option invokes SSH local port
  300. forwarding, assuming that SSH client binary can be accessed as
  301. /usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
  302. machine name should be specified as known to the gateway machine, e.g.
  303. "localhost" denotes the \fIgateway\fR, not the machine where vncviewer
  304. was launched. The environment variable \fIVNC_VIA_CMD\fR can override
  305. the default tunnel command of
  306. \fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
  307. command is executed with the environment variables \fIL\fR, \fIH\fR,
  308. \fIR\fR, and \fIG\fR taken the values of the local port number, the remote
  309. host, the port number on the remote host, and the gateway machine
  310. respectively.
  311. .
  312. .TP
  313. .B \-AlertOnFatalError
  314. Display a dialog with any fatal error before exiting. Default is on.
  315. .
  316. .TP
  317. .B \-ReconnectOnError
  318. Display a dialog with any error and offer the possibility to retry
  319. establishing the connection. In case this is off no dialog to
  320. re-connect will be offered. Default is on.
  321. .SH FILES
  322. .TP
  323. $HOME/.vnc/default.tigervnc
  324. Default configuration options. This file must have a "magic" first line of
  325. "TigerVNC Configuration file Version 1.0" (without quotes), followed by simple
  326. <setting>=<value> pairs of your choosing. The available settings are those
  327. shown in this man page.
  328. .TP
  329. $HOME/.vnc/x509_ca.pem
  330. Default CA certificate for authenticating servers.
  331. .TP
  332. $HOME/.vnc/x509_crl.pem
  333. Default certificate revocation list.
  334. .SH SEE ALSO
  335. .BR Xvnc (1),
  336. .BR vncpasswd (1),
  337. .BR vncconfig (1),
  338. .BR vncsession (8)
  339. .br
  340. https://www.tigervnc.org
  341. .SH AUTHOR
  342. Tristan Richardson, RealVNC Ltd. and others.
  343. VNC was originally developed by the RealVNC team while at Olivetti
  344. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  345. implemented by Constantin Kaplinsky. Many other people have since
  346. participated in development, testing and support. This manual is part
  347. of the TigerVNC software suite.