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.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 [ \-fg ]
  8. .RB [ \-autokill ]
  9. .RB [ \-noxstartup ]
  10. .RB [ \-xstartup
  11. .IR script ]
  12. .br
  13. .BI "vncserver \-kill :" display#
  14. .br
  15. .BI "vncserver \-list"
  16. .SH DESCRIPTION
  17. .B vncserver
  18. is used to start a VNC (Virtual Network Computing) desktop.
  19. .B vncserver
  20. is a Perl script which simplifies the process of starting an Xvnc server. It
  21. runs Xvnc with appropriate options and starts a window manager on the VNC
  22. desktop.
  23. .B vncserver
  24. can be run with no options at all. In this case it will choose the first
  25. available display number (usually :1), start Xvnc with that display number,
  26. and start the default window manager in the Xvnc session. You can also
  27. specify the display number, in which case vncserver will attempt to start
  28. Xvnc with that display number and exit if the display number is not
  29. available. For example:
  30. .RS
  31. vncserver :13
  32. .RE
  33. Editing the file $HOME/.vnc/xstartup allows you to change the applications run
  34. at startup (but note that this will not affect an existing VNC session.)
  35. .SH OPTIONS
  36. You can get a list of options by passing \fB\-h\fP as an option to vncserver.
  37. .TP
  38. .B \-kill :\fIdisplay#\fP
  39. This kills a VNC desktop previously started with vncserver. It does this by
  40. killing the Xvnc process, whose process ID is stored in the file
  41. "$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
  42. .B \-kill
  43. option ignores anything preceding the first colon (":") in the display
  44. argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
  45. end of your xstartup file after a particular application exits.
  46. .
  47. .TP
  48. .B \-fg
  49. Runs Xvnc as a foreground process. This has two effects: (1) The VNC server
  50. can be aborted with CTRL-C, and (2) the VNC server will exit as soon as the
  51. user logs out of the window manager in the VNC session. This may be necessary
  52. when launching TigerVNC from within certain grid computing environments.
  53. .
  54. .TP
  55. .B \-autokill
  56. Automatically kill Xvnc whenever the xstartup script exits. In most cases,
  57. this has the effect of terminating Xvnc when the user logs out of the window
  58. manager.
  59. .
  60. .TP
  61. .B \-noxstartup
  62. Do not run the %HOME/.vnc/xstartup script after launching Xvnc. This
  63. option allows you to manually start a window manager in your TigerVNC session.
  64. .
  65. .TP
  66. .B \-xstartup \fIscript\fP
  67. Run a custom startup script, instead of %HOME/.vnc/xstartup, after launching
  68. Xvnc. This is useful to run full-screen applications.
  69. .
  70. .TP
  71. .B \-list
  72. Lists all VNC desktops started by vncserver.
  73. .SH FILES
  74. Several VNC-related files are found in the directory $HOME/.vnc:
  75. .TP
  76. $HOME/.vnc/xstartup
  77. A shell script specifying X applications to be run when a VNC desktop is
  78. started. If this file does not exist, then vncserver will create a default
  79. xstartup script which attempts to launch your chosen window manager.
  80. .TP
  81. /etc/tigervnc/vncserver-config-defaults
  82. The optional system-wide equivalent of $HOME/.vnc/config. If this file exists
  83. and defines options to be passed to Xvnc, they will be used as defaults for
  84. users. The user's $HOME/.vnc/config overrides settings configured in this file.
  85. The overall configuration file load order is: this file, $HOME/.vnc/config,
  86. and then /etc/tigervnc/vncserver-config-mandatory. None are required to exist.
  87. .TP
  88. /etc/tigervnc/vncserver-config-mandatory
  89. The optional system-wide equivalent of $HOME/.vnc/config. If this file exists
  90. and defines options to be passed to Xvnc, they will override any of the same
  91. options defined in a user's $HOME/.vnc/config. This file offers a mechanism
  92. to establish some basic form of system-wide policy. WARNING! There is
  93. nothing stopping users from constructing their own vncserver-like script
  94. that calls Xvnc directly to bypass any options defined in
  95. /etc/tigervnc/vncserver-config-mandatory. The overall configuration file load
  96. order is: /etc/tigervnc/vncserver-config-defaults, $HOME/.vnc/config, and then
  97. this file. None are required to exist.
  98. .TP
  99. $HOME/.vnc/config
  100. An optional server config file wherein options to be passed to Xvnc are listed
  101. to avoid hard-coding them to the physical invocation. List options in this file
  102. one per line. For those requiring an argument, simply separate the option from
  103. the argument with an equal sign, for example: "geometry=2000x1200" or
  104. "securitytypes=vncauth,tlsvnc". Options without an argument are simply listed
  105. as a single word, for example: "localhost" or "alwaysshared".
  106. .TP
  107. $HOME/.vnc/passwd
  108. The VNC password file.
  109. .TP
  110. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
  111. The log file for Xvnc and applications started in xstartup.
  112. .TP
  113. $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
  114. Identifies the Xvnc process ID, used by the
  115. .B \-kill
  116. option.
  117. .SH SEE ALSO
  118. .BR vncviewer (1),
  119. .BR vncpasswd (1),
  120. .BR vncconfig (1),
  121. .BR Xvnc (1)
  122. .br
  123. https://www.tigervnc.org
  124. .SH AUTHOR
  125. Tristan Richardson, RealVNC Ltd., D. R. Commander and others.
  126. VNC was originally developed by the RealVNC team while at Olivetti
  127. Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
  128. implemented by Constantin Kaplinsky. Many other people have since
  129. participated in development, testing and support. This manual is part
  130. of the TigerVNC software suite.