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

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