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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .TH vncserver 1 "18 May 2004" "TightVNC" "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. .RI [ Xvnc-options... ]
  16. .br
  17. .BI "vncserver \-kill :" display#
  18. .SH DESCRIPTION
  19. .B vncserver
  20. is used to start a VNC (Virtual Network Computing) desktop.
  21. .B vncserver
  22. is a Perl script which simplifies the process of starting an Xvnc server. It
  23. runs Xvnc with appropriate options and starts some X applications to be
  24. displayed in the VNC desktop.
  25. .B vncserver
  26. can be run with no options at all. In this case it will choose the first
  27. available display number (usually :1), start Xvnc as that display, and run a
  28. couple of basic applications to get you started. You can also specify the
  29. display number, in which case it will use that number if it is available and
  30. exit if not, eg:
  31. .RS
  32. vncserver :13
  33. .RE
  34. Editing the file $HOME/.vnc/xstartup allows you to change the applications run
  35. at startup (but note that this will not affect an existing desktop).
  36. .SH OPTIONS
  37. You can get a list of options by giving \fB\-h\fP as an option to vncserver.
  38. In addition to the options listed below, any unrecognised options will be
  39. passed to Xvnc - see the Xvnc man page, or "Xvnc \-help" for details.
  40. .TP
  41. .B \-name \fIdesktop-name\fP
  42. Each desktop has a name which may be displayed by the viewer. It defaults to
  43. "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)" but you can change it with this
  44. option. It is passed in to the xstartup script via the $VNCDESKTOP environment
  45. variable, allowing you to run a different set of applications according to the
  46. name of the desktop.
  47. .TP
  48. .B \-geometry \fIwidth\fPx\fIheight\fP
  49. Specify the size of the desktop to be created. Default is 1024x768.
  50. .TP
  51. .B \-depth \fIdepth\fP
  52. Specify the pixel depth in bits of the desktop to be created. Default is 16,
  53. other possible values are 8, 15 and 24 - anything else is likely to cause
  54. strange behaviour by applications.
  55. .TP
  56. .B \-pixelformat \fIformat\fP
  57. Specify pixel format for server to use (BGRnnn or RGBnnn). The default for
  58. depth 8 is BGR233 (meaning the most significant two bits represent blue, the
  59. next three green, and the least significant three represent red), the default
  60. for depth 16 is RGB565 and for depth 24 is RGB888.
  61. .TP
  62. .B \-cc 3
  63. As an alternative to the default TrueColor visual, this allows you to run an
  64. Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
  65. palette), which can be useful for running some old X applications which only
  66. work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
  67. for the \-cc option may result in strange behaviour, and PseudoColor desktops
  68. must be 8 bits deep.
  69. .TP
  70. .B \-kill :\fIdisplay#\fP
  71. This kills a VNC desktop previously started with vncserver. It does this by
  72. killing the Xvnc process, whose process ID is stored in the file
  73. "$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". It actually ignores anything
  74. preceding a ":" in its argument. This can be useful so you can write
  75. "vncserver \-kill $DISPLAY", for example at the end of your xstartup file after
  76. a particular application exits.
  77. .SH FILES
  78. Several VNC-related files are found in the directory $HOME/.vnc:
  79. .TP
  80. $HOME/.vnc/xstartup
  81. A shell script specifying X applications to be run when a VNC desktop is
  82. started. If it doesn't exist, vncserver will create a new one which runs a
  83. couple of basic applications.
  84. .TP
  85. $HOME/.vnc/passwd
  86. The VNC password file.
  87. .TP
  88. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
  89. The log file for Xvnc and applications started in xstartup.
  90. .TP
  91. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
  92. Identifies the Xvnc process ID, used by the
  93. .B \-kill
  94. option.
  95. .SH SEE ALSO
  96. .BR vncviewer (1),
  97. .BR vncpasswd (1),
  98. .BR vncconfig (1),
  99. .BR Xvnc (1)
  100. .br
  101. http://www.tightvnc.com
  102. .SH AUTHOR
  103. Tristan Richardson, RealVNC Ltd.
  104. VNC was originally developed by the RealVNC team while at Olivetti
  105. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions was
  106. implemented by Constantin Kaplinsky. Many other people participated in
  107. development, testing and support.