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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. .TH vncserver 1 "13 Mar 2011" "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. .RI [ Xvnc-options... ]
  20. .br
  21. .BI "vncserver \-kill :" display#
  22. .SH DESCRIPTION
  23. .B vncserver
  24. is used to start a VNC (Virtual Network Computing) desktop.
  25. .B vncserver
  26. is a Perl script which simplifies the process of starting an Xvnc server. It
  27. runs Xvnc with appropriate options and starts a window manager on the VNC
  28. desktop.
  29. .B vncserver
  30. can be run with no options at all. In this case it will choose the first
  31. available display number (usually :1), start Xvnc with that display number,
  32. and start the default window manager in the Xvnc session. You can also
  33. specify the display number, in which case vncserver will attempt to start
  34. Xvnc with that display number and exit if the display number is not
  35. available. For example:
  36. .RS
  37. vncserver :13
  38. .RE
  39. Editing the file $HOME/.vnc/xstartup allows you to change the applications run
  40. at startup (but note that this will not affect an existing VNC session.)
  41. .SH OPTIONS
  42. You can get a list of options by passing \fB\-h\fP as an option to vncserver.
  43. In addition to the options listed below, any unrecognised options will be
  44. passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details.
  45. .TP
  46. .B \-name \fIdesktop-name\fP
  47. Each VNC desktop has a name which may be displayed by the viewer. The desktop
  48. name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can
  49. change it with this option. The desktop name option is passed to the xstartup
  50. script via the $VNCDESKTOP environment variable, which allows you to run a
  51. different set of applications depending on the name of the desktop.
  52. .TP
  53. .B \-geometry \fIwidth\fPx\fIheight\fP
  54. Specify the size of the VNC desktop to be created. Default is 1024x768.
  55. .TP
  56. .B \-depth \fIdepth\fP
  57. Specify the pixel depth (in bits) of the VNC desktop to be created. Default is
  58. 24. Other possible values are 8, 15 and 16 - anything else is likely to cause
  59. strange behaviour by applications.
  60. .TP
  61. .B \-pixelformat \fIformat\fP
  62. Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for
  63. depth 8 is BGR233 (meaning the most significant two bits represent blue, the
  64. next three green, and the least significant three represent red), the default
  65. for depth 16 is RGB565, and the default for depth 24 is RGB888.
  66. .TP
  67. .B \-cc 3
  68. As an alternative to the default TrueColor visual, this allows you to run an
  69. Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
  70. palette), which can be useful for running some old X applications which only
  71. work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
  72. for the \-cc option may result in strange behaviour, and PseudoColor desktops
  73. must have an 8-bit depth.
  74. .TP
  75. .B \-kill :\fIdisplay#\fP
  76. This kills a VNC desktop previously started with vncserver. It does this by
  77. killing the Xvnc process, whose process ID is stored in the file
  78. "$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
  79. .B \-kill
  80. option ignores anything preceding the first colon (":") in the display
  81. argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
  82. end of your xstartup file after a particular application exits.
  83. .TP
  84. .B \-fp \fIfont-path\fP
  85. If the vncserver script detects that the X Font Server (XFS) is running, it
  86. will attempt to start Xvnc and configure Xvnc to use XFS for font handling.
  87. Otherwise, if XFS is not running, the vncserver script will attempt to start
  88. Xvnc and allow Xvnc to use its own preferred method of font handling (which may
  89. be a hard-coded font path or, on more recent systems, a font catalog.) In
  90. any case, if Xvnc fails to start, the vncserver script will then attempt to
  91. determine an appropriate X font path for this system and start Xvnc using
  92. that font path.
  93. The
  94. .B \-fp
  95. argument allows you to override the above fallback logic and specify a font
  96. path for Xvnc to use.
  97. .TP
  98. .B \-fg
  99. Runs Xvnc as a foreground process. This has two effects: (1) The VNC server
  100. can be aborted with CTRL-C, and (2) the VNC server will exit as soon as the
  101. user logs out of the window manager in the VNC session. This may be necessary
  102. when launching TigerVNC from within certain grid computing environments.
  103. .TP
  104. .B \-autokill
  105. Automatically kill Xvnc whenever the xstartup script exits. In most cases,
  106. this has the effect of terminating Xvnc when the user logs out of the window
  107. manager.
  108. .SH FILES
  109. Several VNC-related files are found in the directory $HOME/.vnc:
  110. .TP
  111. $HOME/.vnc/xstartup
  112. A shell script specifying X applications to be run when a VNC desktop is
  113. started. If this file does not exist, then vncserver will create a default
  114. xstartup script which attempts to launch your chosen window manager.
  115. .TP
  116. $HOME/.vnc/passwd
  117. The VNC password file.
  118. .TP
  119. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
  120. The log file for Xvnc and applications started in xstartup.
  121. .TP
  122. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
  123. Identifies the Xvnc process ID, used by the
  124. .B \-kill
  125. option.
  126. .SH SEE ALSO
  127. .BR vncviewer (1),
  128. .BR vncpasswd (1),
  129. .BR vncconfig (1),
  130. .BR Xvnc (1)
  131. .br
  132. http://www.tigervnc.org
  133. .SH AUTHOR
  134. Tristan Richardson, RealVNC Ltd.
  135. .br
  136. D. R. Commander
  137. VNC was originally developed by the RealVNC team while at Olivetti
  138. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  139. implemented by Constantin Kaplinsky. Many other people participated in
  140. development, testing and support.