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.

vncserver.man 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. .TH vncserver 1 "" "TigerVNC" "Virtual Network Computing"
  2. .SH NAME
  3. vncserver \- start or stop a VNC server
  4. .SH SYNOPSIS
  5. .B vncserver
  6. .RI [: display# ]
  7. .RB [ \-name
  8. .IR desktop-name ]
  9. .RB [ \-geometry
  10. .IR width x height ]
  11. .RB [ \-depth
  12. .IR depth ]
  13. .RB [ \-pixelformat
  14. .IR format ]
  15. .RB [ \-fp
  16. .IR font-path ]
  17. .RB [ \-fg ]
  18. .RB [ \-autokill ]
  19. .RB [ \-noxstartup ]
  20. .RB [ \-xstartup
  21. .IR script ]
  22. .RI [ Xvnc-options... ]
  23. .br
  24. .BI "vncserver \-kill :" display#
  25. .br
  26. .BI "vncserver \-list"
  27. .SH DESCRIPTION
  28. .B vncserver
  29. is used to start a VNC (Virtual Network Computing) desktop.
  30. .B vncserver
  31. is a Perl script which simplifies the process of starting an Xvnc server. It
  32. runs Xvnc with appropriate options and starts a window manager on the VNC
  33. desktop.
  34. .B vncserver
  35. can be run with no options at all. In this case it will choose the first
  36. available display number (usually :1), start Xvnc with that display number,
  37. and start the default window manager in the Xvnc session. You can also
  38. specify the display number, in which case vncserver will attempt to start
  39. Xvnc with that display number and exit if the display number is not
  40. available. For example:
  41. .RS
  42. vncserver :13
  43. .RE
  44. Editing the file $HOME/.vnc/xstartup allows you to change the applications run
  45. at startup (but note that this will not affect an existing VNC session.)
  46. .SH OPTIONS
  47. You can get a list of options by passing \fB\-h\fP as an option to vncserver.
  48. In addition to the options listed below, any unrecognised options will be
  49. passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details.
  50. .TP
  51. .B \-name \fIdesktop-name\fP
  52. Each VNC desktop has a name which may be displayed by the viewer. The desktop
  53. name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can
  54. change it with this option. The desktop name option is passed to the xstartup
  55. script via the $VNCDESKTOP environment variable, which allows you to run a
  56. different set of applications depending on the name of the desktop.
  57. .
  58. .TP
  59. .B \-geometry \fIwidth\fPx\fIheight\fP
  60. Specify the size of the VNC desktop to be created. Default is 1024x768.
  61. .
  62. .TP
  63. .B \-depth \fIdepth\fP
  64. Specify the pixel depth (in bits) of the VNC desktop to be created. Default is
  65. 24. Other possible values are 8, 15 and 16 - anything else is likely to cause
  66. strange behaviour by applications.
  67. .
  68. .TP
  69. .B \-pixelformat \fIformat\fP
  70. Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for
  71. depth 8 is BGR233 (meaning the most significant two bits represent blue, the
  72. next three green, and the least significant three represent red), the default
  73. for depth 16 is RGB565, and the default for depth 24 is RGB888.
  74. .
  75. .TP
  76. .B \-cc 3
  77. As an alternative to the default TrueColor visual, this allows you to run an
  78. Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
  79. palette), which can be useful for running some old X applications which only
  80. work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
  81. for the \-cc option may result in strange behaviour, and PseudoColor desktops
  82. must have an 8-bit depth.
  83. .
  84. .TP
  85. .B \-kill :\fIdisplay#\fP
  86. This kills a VNC desktop previously started with vncserver. It does this by
  87. killing the Xvnc process, whose process ID is stored in the file
  88. "$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
  89. .B \-kill
  90. option ignores anything preceding the first colon (":") in the display
  91. argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
  92. end of your xstartup file after a particular application exits.
  93. .
  94. .TP
  95. .B \-fp \fIfont-path\fP
  96. If the vncserver script detects that the X Font Server (XFS) is running, it
  97. will attempt to start Xvnc and configure Xvnc to use XFS for font handling.
  98. Otherwise, if XFS is not running, the vncserver script will attempt to start
  99. Xvnc and allow Xvnc to use its own preferred method of font handling (which may
  100. be a hard-coded font path or, on more recent systems, a font catalog.) In
  101. any case, if Xvnc fails to start, the vncserver script will then attempt to
  102. determine an appropriate X font path for this system and start Xvnc using
  103. that font path.
  104. The
  105. .B \-fp
  106. argument allows you to override the above fallback logic and specify a font
  107. path for Xvnc to use.
  108. .
  109. .TP
  110. .B \-fg
  111. Runs Xvnc as a foreground process. This has two effects: (1) The VNC server
  112. can be aborted with CTRL-C, and (2) the VNC server will exit as soon as the
  113. user logs out of the window manager in the VNC session. This may be necessary
  114. when launching TigerVNC from within certain grid computing environments.
  115. .
  116. .TP
  117. .B \-autokill
  118. Automatically kill Xvnc whenever the xstartup script exits. In most cases,
  119. this has the effect of terminating Xvnc when the user logs out of the window
  120. manager.
  121. .
  122. .TP
  123. .B \-noxstartup
  124. Do not run the %HOME/.vnc/xstartup script after launching Xvnc. This
  125. option allows you to manually start a window manager in your TigerVNC session.
  126. .
  127. .TP
  128. .B \-xstartup \fIscript\fP
  129. Run a custom startup script, instead of %HOME/.vnc/xstartup, after launching
  130. Xvnc. This is useful to run full-screen applications.
  131. .
  132. .TP
  133. .B \-list
  134. Lists all VNC desktops started by vncserver.
  135. .SH FILES
  136. Several VNC-related files are found in the directory $HOME/.vnc:
  137. .TP
  138. $HOME/.vnc/xstartup
  139. A shell script specifying X applications to be run when a VNC desktop is
  140. started. If this file does not exist, then vncserver will create a default
  141. xstartup script which attempts to launch your chosen window manager.
  142. .TP
  143. /etc/tigervnc/vncserver-config-defaults
  144. The optional system-wide equivalent of $HOME/.vnc/config. If this file exists
  145. and defines options to be passed to Xvnc, they will be used as defaults for
  146. users. The user's $HOME/.vnc/config overrides settings configured in this file.
  147. The overall configuration file load order is: this file, $HOME/.vnc/config,
  148. and then /etc/tigervnc/vncserver-config-mandatory. None are required to exist.
  149. .TP
  150. /etc/tigervnc/vncserver-config-mandatory
  151. The optional system-wide equivalent of $HOME/.vnc/config. If this file exists
  152. and defines options to be passed to Xvnc, they will override any of the same
  153. options defined in a user's $HOME/.vnc/config. This file offers a mechanism
  154. to establish some basic form of system-wide policy. WARNING! There is
  155. nothing stopping users from constructing their own vncserver-like script
  156. that calls Xvnc directly to bypass any options defined in
  157. /etc/tigervnc/vncserver-config-mandatory. Likewise, any CLI arguments passed
  158. to vncserver will override ANY config file setting of the same name. The
  159. overall configuration file load order is:
  160. /etc/tigervnc/vncserver-config-defaults, $HOME/.vnc/config, and then this file.
  161. None are required to exist.
  162. .TP
  163. $HOME/.vnc/config
  164. An optional server config file wherein options to be passed to Xvnc are listed
  165. to avoid hard-coding them to the physical invocation. List options in this file
  166. one per line. For those requiring an argument, simply separate the option from
  167. the argument with an equal sign, for example: "geometry=2000x1200" or
  168. "securitytypes=vncauth,tlsvnc". Options without an argument are simply listed
  169. as a single word, for example: "localhost" or "alwaysshared".
  170. .TP
  171. $HOME/.vnc/passwd
  172. The VNC password file.
  173. .TP
  174. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
  175. The log file for Xvnc and applications started in xstartup.
  176. .TP
  177. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
  178. Identifies the Xvnc process ID, used by the
  179. .B \-kill
  180. option.
  181. .SH SEE ALSO
  182. .BR vncviewer (1),
  183. .BR vncpasswd (1),
  184. .BR vncconfig (1),
  185. .BR Xvnc (1)
  186. .br
  187. https://www.tigervnc.org
  188. .SH AUTHOR
  189. Tristan Richardson, RealVNC Ltd., D. R. Commander and others.
  190. VNC was originally developed by the RealVNC team while at Olivetti
  191. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  192. implemented by Constantin Kaplinsky. Many other people have since
  193. participated in development, testing and support. This manual is part
  194. of the TigerVNC software suite.