vnc 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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 ] [ -g
  8. .I width
  9. .B X
  10. .I height
  11. .B ]
  12. .B [ -d
  13. .I :display
  14. .B ]
  15. .B [command [args ...]]
  16. .PP
  17. .B vncs -k
  18. .I :display
  19. .PP
  20. .B vncv
  21. [
  22. .B -e
  23. .I encodings
  24. ]
  25. [
  26. .B -csv
  27. ]
  28. .IR host [\fL: n ]
  29. .SH DESCRIPTION
  30. .I vncs
  31. starts a new virtual frame buffer in memory and waits for connections from remote viewers.
  32. Each viewer is authenticated using challenge and response. APOP password is used as the
  33. private key. A display number
  34. .I :n
  35. in the global name space is printed to stderr. A viewer must use the same display number
  36. in order to contact the desired server. Multiple VNC servers can co-exist on the same host,
  37. each with a unique display number.
  38. .PP
  39. One frame buffer can have simultaneous viewers if the viewers are started with the -s option,
  40. see below. Otherwise, starting a new viewer would cause the server to disconnect from all
  41. existing viewers. Killing the viewers will not affect the remote server. Therefore, the same desktop
  42. can migrate from one location to another without restarting the window system.
  43. .PP
  44. The server options are:
  45. .TP
  46. .B -v
  47. causes verbose output to stderr.
  48. .TP
  49. .B -g " widthXheight
  50. specifies the frame buffer geometry. Default is 1024x768. The depth is fixed
  51. at 16 bits per pixel (r5g6b5).
  52. .TP
  53. .B -d
  54. chooses a display number
  55. .RI : n .
  56. The server aborts if the display is not available. If not specified, the server hunts for
  57. the first available on that host interface.
  58. .TP
  59. .I command [args ...]
  60. By default, the server starts with a terminal similar to that of drawterm. RC is
  61. executed on behalf of the owner of the vncs process. The user can specify any program
  62. to start the VNC server, e.g. rio.
  63. .TP
  64. .B -k " :display
  65. shutdown the VNC server and all of its connected clients on
  66. .RI : display .
  67. Note, kill vncs | rc will kill ALL servers running on that host.
  68. .PP
  69. .I Vncv
  70. provides access to remote frame buffer
  71. .I n
  72. on
  73. .I host
  74. using the VNC (Virtual Network Computing)
  75. protocol.
  76. It resizes its window to be the smaller of the
  77. remote frame buffer size and the local screen.
  78. .PP
  79. The
  80. .B -e
  81. option specifies an ordered list of rectangle
  82. encodings to allow in the protocol.
  83. The default (and full set) is
  84. .IP
  85. .EX
  86. copyrect corre hextile rre raw
  87. .EE
  88. .PP
  89. By default, connecting to a display closes
  90. any other connections to that display.
  91. The
  92. .B -s
  93. option allows the other connections to share the display.
  94. .PP
  95. The
  96. .B -v
  97. option causes verbose output.
  98. .PP
  99. .I Vncv
  100. negotiates with the VNC server to settle on a true-color pixel format.
  101. For true-color displays, this is the native display pixel format.
  102. On eight bit color-mapped displays,
  103. .I vncv
  104. requests
  105. .B r3g3b2
  106. pixels and upon receipt translates them to the nearest
  107. color in the map.
  108. This does not cover the color map particularly well.
  109. When invoked with the
  110. .B -c
  111. option,
  112. .I vncv
  113. requests
  114. .B r4g4b4
  115. pixels instead. This consumes more bandwidth
  116. but results in better matching to the available colors.
  117. .PP
  118. .I Vncv
  119. correctly handles the typing of control characters
  120. and shifted keystrokes.
  121. To support systems that require the use
  122. of modifiers like Alt, Ctl, and Shift on
  123. things like mouse events,
  124. typing the sequences
  125. .B Alt
  126. .B Z
  127. .B A
  128. (for Alt),
  129. .B Alt
  130. .B Z
  131. .B C
  132. (for Ctrl),
  133. and
  134. .B Alt
  135. .B Z
  136. .B S
  137. (for Shift)
  138. will send a ``key down'' message for
  139. the given key (see
  140. .IR keyboard (6)).
  141. A corresponding ``key up'' message
  142. will be sent after the next key is pressed,
  143. or when the sequence is retyped,
  144. whichever happens first.
  145. .SH SOURCE
  146. .B /sys/src/cmd/vnc
  147. .SH "SEE ALSO
  148. .IR drawterm (8)
  149. .br
  150. .B http://www.uk.research.att.com/vnc
  151. .SH BUGS
  152. If the remote frame buffer is larger than the local screen,
  153. only the upper left corner can be accessed.