vnc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. .TH VNC 1
  2. .SH NAME
  3. vncs, vncv \- remote frame buffer server and viewer for Virtual Network Computing (VNC)
  4. .SH SYNOPSIS
  5. .B vncs
  6. [
  7. .B -v
  8. ]
  9. [
  10. .B -c
  11. .I cert
  12. ]
  13. [
  14. .B -d
  15. .BI : display
  16. ]
  17. [
  18. .B -g
  19. .IB width x height
  20. ]
  21. [
  22. .B -k
  23. .I keypattern
  24. ]
  25. [
  26. .B -p
  27. .I pixfmt
  28. ]
  29. [
  30. .B -x
  31. .I net
  32. ]
  33. [
  34. .I cmd
  35. [
  36. .I args
  37. ...
  38. ]
  39. ]
  40. .PP
  41. .B vncs
  42. .B -k
  43. .BI : display
  44. [
  45. .B -x
  46. .I net
  47. ]
  48. .PP
  49. .B vncv
  50. [
  51. .B -cstv
  52. ]
  53. [
  54. .B -e
  55. .I encodings
  56. ]
  57. .IR host [\fL: n ]
  58. .SH DESCRIPTION
  59. VNC is a lightweight protocol
  60. for accessing graphical applications
  61. remotely. The protocol allows one or more
  62. clients to connect to a server.
  63. While connected, clients display the frame buffer
  64. presented by the server and can send mouse events,
  65. keyboard events, and exchange snarf buffers.
  66. The server persists across viewer sessions, so that
  67. the virtual application can be accessed from various locations
  68. as its owner moves around.
  69. .PP
  70. VNC displays have names of the form
  71. .IB host : n \fR,
  72. where
  73. .I host
  74. is the machine's network name and
  75. .I n
  76. is a small integer identifier; display
  77. .I n
  78. is served on TCP port
  79. .RI 5900+ n .
  80. .PP
  81. .I Vncs
  82. starts a new virtual frame buffer in memory, simulating
  83. a Plan 9 terminal running
  84. .I cmd
  85. .IR args ,
  86. by default an interactive shell.
  87. As viewers connect, each is authenticated using a
  88. (rather breakable) challenge-response protocol using
  89. the user's Inferno/POP password.
  90. .PP
  91. The options are:
  92. .TP
  93. .B -c \fIcert
  94. start TLS on each viewer connection using the certificate
  95. in the file
  96. .IR cert .
  97. The corresponding private key must be loaded into
  98. the server's
  99. .IR factotum (4).
  100. When serving TLS connections, the base port is
  101. 35729 rather than 5900.
  102. .TP
  103. .B -d :\fIn
  104. run on display
  105. .I n ;
  106. without this option, the server searches
  107. for an unused display.
  108. .TP
  109. .B -g \fIwidth\fBx\fIheight\fR
  110. set the virtual frame buffer to be
  111. .IB width x height
  112. (default
  113. 1024x768)
  114. pixels.
  115. .TP
  116. .B -k \fIkeypattern
  117. add
  118. .I keypattern
  119. to the pattern used to select a key from
  120. .IR factotum (4).
  121. .TP
  122. .B -p \fIpixfmt
  123. set the virtual frame buffer's internal pixel format to
  124. .I pixfmt
  125. (default
  126. .BR r5g6b5 ).
  127. .TP
  128. .B -v
  129. print verbose output to standard error.
  130. .TP
  131. .B -x \fInet
  132. announce on an alternate network interface.
  133. Because of the weak authentication protocol and
  134. default lack of encryption, this option must
  135. be accompanied by
  136. .BR -c .
  137. .PD
  138. .PP
  139. The command
  140. .B vncs
  141. .B -k
  142. .BI : n
  143. kills the VNC server running on display
  144. .IR n .
  145. .PP
  146. .I Vncv
  147. provides access to remote display
  148. .IB host : n \fR.
  149. It resizes its window to be the smaller of the
  150. remote frame buffer size and the local screen.
  151. .PP
  152. The options are:
  153. .TP
  154. .B -c
  155. when connecting to 8-bit displays, request
  156. .B r4g4b4
  157. pixels rather than
  158. .B r3g3b2
  159. pixels.
  160. This takes up more bandwidth but usually gives
  161. significantly better matching to the Plan 9 color map.
  162. .TP
  163. .B -e \fIencodings
  164. set the ordered list of allowed frame buffer update encodings.
  165. The default (and full) set is
  166. .B copyrect
  167. .B corre
  168. .B hextile
  169. .B rre
  170. .BR raw .
  171. The encodings should be given as a single space-separated argument
  172. (quoted when using the shell).
  173. .TP
  174. .B -s
  175. share the display with extant viewers;
  176. by default extant viewers are closed
  177. when a new viewer connects.
  178. .TP
  179. .B -t
  180. start TLS on the connection.
  181. .TP
  182. .B -v
  183. print verbose output to standard error.
  184. .PD
  185. .PP
  186. The VNC protocol represents keyboard input as
  187. key up/down events.
  188. Plan 9 does not expose the state of the
  189. Ctl and Shift keys except as it can be inferred
  190. from receipt of control or shifted characters.
  191. It does not expose the state of the Alt key at all,
  192. since the Alt key is used to compose Unicode characters
  193. (see
  194. .IR keyboard (6)).
  195. .I Vncv
  196. correctly handles the sending of control and shifted
  197. characters.
  198. To support systems that use key sequences like Alt-X
  199. (or worse, Alt-mouse-click), typing the Plan 9 compose
  200. sequences
  201. .B Alt
  202. .B Z
  203. .B A
  204. (for Alt),
  205. .B Alt
  206. .B Z
  207. .B C
  208. (for Ctrl),
  209. and
  210. .B Alt
  211. .B Z
  212. .B S
  213. (for Shift)
  214. will send a ``key down'' message for
  215. the given key.
  216. A corresponding ``key up'' message
  217. will be sent after the next key is pressed,
  218. or when the sequence is retyped,
  219. whichever happens first.
  220. .SH SOURCE
  221. .B /sys/src/cmd/vnc
  222. .SH "SEE ALSO
  223. .IR drawterm (8)
  224. .br
  225. .B http://www.uk.research.att.com/vnc
  226. .SH BUGS
  227. If the remote frame buffer is larger than the local screen,
  228. only the upper left corner can be accessed.
  229. .PP
  230. .I Vncv
  231. does no verification of the TLS certificate presented
  232. by the server.