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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  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. Standard X position and sizing specification.
  106. .
  107. .TP
  108. .B \-listen \fI[port]\fP
  109. Causes vncviewer to listen on the given port (default 5500) for reverse
  110. connections from a VNC server. WinVNC supports reverse connections initiated
  111. using the 'Add New Client' menu option or the '\-connect' command-line option.
  112. Xvnc supports reverse connections with a helper program called
  113. .B vncconfig.
  114. .
  115. .TP
  116. .B \-SecurityTypes \fIsec-types\fP
  117. Specify which security schemes to attempt to use when authenticating with
  118. the server. Valid values are a comma separated list of \fBNone\fP,
  119. \fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP,
  120. \fBX509None\fP, \fBX509Vnc\fP and \fBX509Plain\fP. Default is to attempt
  121. every supported scheme.
  122. .
  123. .TP
  124. .B \-passwd, \-PasswordFile \fIpassword-file\fP
  125. If you are on a filesystem which gives you access to the password file used by
  126. the server, you can specify it here to avoid typing it in. It will usually be
  127. "~/.vnc/passwd".
  128. .
  129. .TP
  130. .B \-X509CA \fIpath\fP
  131. Path to CA certificate to use when authenticating remote servers using any
  132. of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM
  133. format. Default is \fB$HOME/.vnc/x509_ca.pem\fP, if it exists.
  134. .
  135. .TP
  136. .B \-X509CRL \fIpath\fP
  137. Path to certificate revocation list to use in conjunction with
  138. \fB-X509CA\fP. Must also be in PEM format. Default is
  139. \fB$HOME/.vnc/x509_crl.pem\fP, if it exists.
  140. .
  141. .TP
  142. .B \-Shared
  143. When you make a connection to a VNC server, all other existing connections are
  144. normally closed. This option requests that they be left open, allowing you to
  145. share the desktop with someone already using it.
  146. .
  147. .TP
  148. .B \-ViewOnly
  149. Specifies that no keyboard or mouse events should be sent to the server.
  150. Useful if you want to view a desktop without interfering; often needs to be
  151. combined with
  152. .B \-Shared.
  153. .
  154. .TP
  155. .B \-AcceptClipboard
  156. Accept clipboard changes from the server. Default is on.
  157. .
  158. .TP
  159. .B \-SetPrimary
  160. Set the primary selection as well as the clipboard selection.
  161. Default is on.
  162. .
  163. .TP
  164. .B \-SendClipboard
  165. Send clipboard changes to the server. Default is on.
  166. .
  167. .TP
  168. .B \-SendPrimary
  169. Send the primary selection to the server as well as the clipboard
  170. selection. Default is on.
  171. .
  172. .TP
  173. .B \-Maximize
  174. Maximize viewer window.
  175. .
  176. .TP
  177. .B \-FullScreen
  178. Start in full-screen mode.
  179. .
  180. .TP
  181. .B \-FullScreenAllMonitors
  182. Use all local monitors and not just the current one when switching to
  183. full-screen mode.
  184. .
  185. .TP
  186. .B \-FullscreenSystemKeys
  187. Pass special keys (like Alt+Tab) directly to the server when in full-screen
  188. mode.
  189. .
  190. .TP
  191. .B \-DesktopSize \fIwidth\fPx\fIheight\fP
  192. Instead of keeping the existing remote screen size, the client will attempt to
  193. switch to the specified since when connecting. If the server does not support
  194. the SetDesktopSize message then the screen will retain the original size.
  195. .
  196. .TP
  197. .B \-RemoteResize
  198. Dynamically resize the remote desktop size as the size of the local client
  199. window changes. Note that this may not work with all VNC servers.
  200. .
  201. .TP
  202. .B \-AutoSelect
  203. Use automatic selection of encoding and pixel format (default is on). Normally
  204. the viewer tests the speed of the connection to the server and chooses the
  205. encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP.
  206. .
  207. .TP
  208. .B \-FullColor, \-FullColour
  209. Tells the VNC server to send full-color pixels in the best format for this
  210. display. This is default.
  211. .
  212. .TP
  213. .B \-LowColorLevel, \-LowColourLevel \fIlevel\fP
  214. Selects the reduced color level to use on slow links. \fIlevel\fP can range
  215. from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning
  216. 256 colors. Note that decision if reduced color level is used is made by
  217. vncviewer. If you would like to force vncviewer to use reduced color level
  218. use \fB-AutoSelect=0\fP parameter.
  219. .
  220. .TP
  221. .B \-PreferredEncoding \fIencoding\fP
  222. This option specifies the preferred encoding to use from one of "Tight", "ZRLE",
  223. "hextile" or "raw".
  224. .
  225. .TP
  226. .B \-NoJpeg
  227. Disable lossy JPEG compression in Tight encoding. Default is off.
  228. .
  229. .TP
  230. .B \-QualityLevel \fIlevel\fP
  231. JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if
  232. \fB-AutoSelect\fP is turned on. Default is 8.
  233. .
  234. .TP
  235. .B \-CompressLevel \fIlevel\fP
  236. Use specified lossless compression level. 0 = Low, 6 = High. Default is 2.
  237. .
  238. .TP
  239. .B \-CustomCompressLevel
  240. Use custom compression level. Default if \fBCompressLevel\fP is specified.
  241. .
  242. .TP
  243. .B \-DotWhenNoCursor
  244. Show the dot cursor when the server sends an invisible cursor. Default is off.
  245. .
  246. .TP
  247. .B \-PointerEventInterval \fItime\fP
  248. Time in milliseconds to rate-limit successive pointer events. Default is
  249. 17 ms (60 Hz).
  250. .
  251. .TP
  252. .B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP
  253. Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or
  254. \fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose
  255. output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a
  256. specific source file if you know the name of its "LogWriter". Default is
  257. \fB*:stderr:30\fP.
  258. .
  259. .TP
  260. .B \-MenuKey \fIkeysym-name\fP
  261. This option specifies the key which brings up the popup menu. The currently
  262. supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause,
  263. Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). Default is F8.
  264. .
  265. .TP
  266. \fB\-via\fR \fIgateway\fR
  267. Automatically create encrypted TCP tunnel to the \fIgateway\fR machine
  268. before connection, connect to the \fIhost\fR through that tunnel
  269. (TigerVNC\-specific). By default, this option invokes SSH local port
  270. forwarding, assuming that SSH client binary can be accessed as
  271. /usr/bin/ssh. Note that when using the \fB\-via\fR option, the host
  272. machine name should be specified as known to the gateway machine, e.g.
  273. "localhost" denotes the \fIgateway\fR, not the machine where vncviewer
  274. was launched. The environment variable \fIVNC_VIA_CMD\fR can override
  275. the default tunnel command of
  276. \fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel
  277. command is executed with the environment variables \fIL\fR, \fIH\fR,
  278. \fIR\fR, and \fIG\fR taken the values of the local port number, the remote
  279. host, the port number on the remote host, and the gateway machine
  280. respectively.
  281. .
  282. .TP
  283. .B \-AlertOnFatalError
  284. Display a dialog with any fatal error before exiting. Default is on.
  285. .SH FILES
  286. .TP
  287. $HOME/.vnc/default.tigervnc
  288. Default configuration options. This file must have a "magic" first line of
  289. "TigerVNC Configuration file Version 1.0" (without quotes), followed by simple
  290. <setting>=<value> pairs of your choosing. The available settings are those
  291. shown in this man page.
  292. .TP
  293. $HOME/.vnc/x509_ca.pem
  294. Default CA certificate for authenticating servers.
  295. .TP
  296. $HOME/.vnc/x509_crl.pem
  297. Default certificate revocation list.
  298. .SH SEE ALSO
  299. .BR Xvnc (1),
  300. .BR vncpasswd (1),
  301. .BR vncconfig (1),
  302. .BR vncserver (1)
  303. .br
  304. https://www.tigervnc.org
  305. .SH AUTHOR
  306. Tristan Richardson, RealVNC Ltd. and others.
  307. VNC was originally developed by the RealVNC team while at Olivetti
  308. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  309. implemented by Constantin Kaplinsky. Many other people have since
  310. participated in development, testing and support. This manual is part
  311. of the TigerVNC software suite.