|
|
4fc45e |
.TH vncserver 1 "" "TigerVNC" "Virtual Network Computing"
|
|
|
4fc45e |
.SH NAME
|
|
|
4fc45e |
vncserver \- start or stop a VNC server
|
|
|
4fc45e |
.SH SYNOPSIS
|
|
|
4fc45e |
.B vncserver
|
|
|
4fc45e |
.RI [: display# ]
|
|
|
4fc45e |
.RB [ \-name
|
|
|
4fc45e |
.IR desktop-name ]
|
|
|
4fc45e |
.RB [ \-geometry
|
|
|
4fc45e |
.IR width x height ]
|
|
|
4fc45e |
.RB [ \-depth
|
|
|
4fc45e |
.IR depth ]
|
|
|
4fc45e |
.RB [ \-pixelformat
|
|
|
4fc45e |
.IR format ]
|
|
|
4fc45e |
.RB [ \-fp
|
|
|
4fc45e |
.IR font-path ]
|
|
|
4fc45e |
.RB [ \-fg ]
|
|
|
4fc45e |
.RB [ \-autokill ]
|
|
|
4fc45e |
.RB [ \-noxstartup ]
|
|
|
4fc45e |
.RB [ \-xstartup
|
|
|
4fc45e |
.IR script ]
|
|
|
4fc45e |
.RI [ Xvnc-options... ]
|
|
|
4fc45e |
.br
|
|
|
4fc45e |
.BI "vncserver \-kill :" display#
|
|
|
4fc45e |
.br
|
|
|
4fc45e |
.BI "vncserver \-list"
|
|
|
4fc45e |
.SH DESCRIPTION
|
|
|
4fc45e |
.B vncserver
|
|
|
4fc45e |
is used to start a VNC (Virtual Network Computing) desktop.
|
|
|
4fc45e |
.B vncserver
|
|
|
4fc45e |
is a Perl script which simplifies the process of starting an Xvnc server. It
|
|
|
4fc45e |
runs Xvnc with appropriate options and starts a window manager on the VNC
|
|
|
4fc45e |
desktop.
|
|
|
4fc45e |
|
|
|
4fc45e |
.B vncserver
|
|
|
4fc45e |
can be run with no options at all. In this case it will choose the first
|
|
|
4fc45e |
available display number (usually :1), start Xvnc with that display number,
|
|
|
4fc45e |
and start the default window manager in the Xvnc session. You can also
|
|
|
4fc45e |
specify the display number, in which case vncserver will attempt to start
|
|
|
4fc45e |
Xvnc with that display number and exit if the display number is not
|
|
|
4fc45e |
available. For example:
|
|
|
4fc45e |
|
|
|
4fc45e |
.RS
|
|
|
4fc45e |
vncserver :13
|
|
|
4fc45e |
.RE
|
|
|
4fc45e |
|
|
|
4fc45e |
Editing the file $HOME/.vnc/xstartup allows you to change the applications run
|
|
|
4fc45e |
at startup (but note that this will not affect an existing VNC session.)
|
|
|
4fc45e |
|
|
|
4fc45e |
.SH OPTIONS
|
|
|
4fc45e |
You can get a list of options by passing \fB\-h\fP as an option to vncserver.
|
|
|
4fc45e |
In addition to the options listed below, any unrecognised options will be
|
|
|
4fc45e |
passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details.
|
|
|
4fc45e |
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-name \fIdesktop-name\fP
|
|
|
4fc45e |
Each VNC desktop has a name which may be displayed by the viewer. The desktop
|
|
|
4fc45e |
name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can
|
|
|
4fc45e |
change it with this option. The desktop name option is passed to the xstartup
|
|
|
4fc45e |
script via the $VNCDESKTOP environment variable, which allows you to run a
|
|
|
4fc45e |
different set of applications depending on the name of the desktop.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-geometry \fIwidth\fPx\fIheight\fP
|
|
|
4fc45e |
Specify the size of the VNC desktop to be created. Default is 1024x768.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-depth \fIdepth\fP
|
|
|
4fc45e |
Specify the pixel depth (in bits) of the VNC desktop to be created. Default is
|
|
|
4fc45e |
24. Other possible values are 8, 15 and 16 - anything else is likely to cause
|
|
|
4fc45e |
strange behaviour by applications.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-pixelformat \fIformat\fP
|
|
|
4fc45e |
Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for
|
|
|
4fc45e |
depth 8 is BGR233 (meaning the most significant two bits represent blue, the
|
|
|
4fc45e |
next three green, and the least significant three represent red), the default
|
|
|
4fc45e |
for depth 16 is RGB565, and the default for depth 24 is RGB888.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-cc 3
|
|
|
4fc45e |
As an alternative to the default TrueColor visual, this allows you to run an
|
|
|
4fc45e |
Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
|
|
|
4fc45e |
palette), which can be useful for running some old X applications which only
|
|
|
4fc45e |
work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
|
|
|
4fc45e |
for the \-cc option may result in strange behaviour, and PseudoColor desktops
|
|
|
4fc45e |
must have an 8-bit depth.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-kill :\fIdisplay#\fP
|
|
|
4fc45e |
This kills a VNC desktop previously started with vncserver. It does this by
|
|
|
4fc45e |
killing the Xvnc process, whose process ID is stored in the file
|
|
|
4fc45e |
"$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
|
|
|
4fc45e |
.B \-kill
|
|
|
4fc45e |
option ignores anything preceding the first colon (":") in the display
|
|
|
4fc45e |
argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
|
|
|
4fc45e |
end of your xstartup file after a particular application exits.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-fp \fIfont-path\fP
|
|
|
4fc45e |
If the vncserver script detects that the X Font Server (XFS) is running, it
|
|
|
4fc45e |
will attempt to start Xvnc and configure Xvnc to use XFS for font handling.
|
|
|
4fc45e |
Otherwise, if XFS is not running, the vncserver script will attempt to start
|
|
|
4fc45e |
Xvnc and allow Xvnc to use its own preferred method of font handling (which may
|
|
|
4fc45e |
be a hard-coded font path or, on more recent systems, a font catalog.) In
|
|
|
4fc45e |
any case, if Xvnc fails to start, the vncserver script will then attempt to
|
|
|
4fc45e |
determine an appropriate X font path for this system and start Xvnc using
|
|
|
4fc45e |
that font path.
|
|
|
4fc45e |
|
|
|
4fc45e |
The
|
|
|
4fc45e |
.B \-fp
|
|
|
4fc45e |
argument allows you to override the above fallback logic and specify a font
|
|
|
4fc45e |
path for Xvnc to use.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-fg
|
|
|
4fc45e |
Runs Xvnc as a foreground process. This has two effects: (1) The VNC server
|
|
|
4fc45e |
can be aborted with CTRL-C, and (2) the VNC server will exit as soon as the
|
|
|
4fc45e |
user logs out of the window manager in the VNC session. This may be necessary
|
|
|
4fc45e |
when launching TigerVNC from within certain grid computing environments.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-autokill
|
|
|
4fc45e |
Automatically kill Xvnc whenever the xstartup script exits. In most cases,
|
|
|
4fc45e |
this has the effect of terminating Xvnc when the user logs out of the window
|
|
|
4fc45e |
manager.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-noxstartup
|
|
|
4fc45e |
Do not run the %HOME/.vnc/xstartup script after launching Xvnc. This
|
|
|
4fc45e |
option allows you to manually start a window manager in your TigerVNC session.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-xstartup \fIscript\fP
|
|
|
4fc45e |
Run a custom startup script, instead of %HOME/.vnc/xstartup, after launching
|
|
|
4fc45e |
Xvnc. This is useful to run full-screen applications.
|
|
|
4fc45e |
.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
.B \-list
|
|
|
4fc45e |
Lists all VNC desktops started by vncserver.
|
|
|
4fc45e |
|
|
|
4fc45e |
.SH FILES
|
|
|
4fc45e |
Several VNC-related files are found in the directory $HOME/.vnc:
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
$HOME/.vnc/xstartup
|
|
|
4fc45e |
A shell script specifying X applications to be run when a VNC desktop is
|
|
|
4fc45e |
started. If this file does not exist, then vncserver will create a default
|
|
|
4fc45e |
xstartup script which attempts to launch your chosen window manager.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
/etc/tigervnc/vncserver-config-defaults
|
|
|
4fc45e |
The optional system-wide equivalent of $HOME/.vnc/config. If this file exists
|
|
|
4fc45e |
and defines options to be passed to Xvnc, they will be used as defaults for
|
|
|
4fc45e |
users. The user's $HOME/.vnc/config overrides settings configured in this file.
|
|
|
4fc45e |
The overall configuration file load order is: this file, $HOME/.vnc/config,
|
|
|
4fc45e |
and then /etc/tigervnc/vncserver-config-mandatory. None are required to exist.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
/etc/tigervnc/vncserver-config-mandatory
|
|
|
4fc45e |
The optional system-wide equivalent of $HOME/.vnc/config. If this file exists
|
|
|
4fc45e |
and defines options to be passed to Xvnc, they will override any of the same
|
|
|
4fc45e |
options defined in a user's $HOME/.vnc/config. This file offers a mechanism
|
|
|
4fc45e |
to establish some basic form of system-wide policy. WARNING! There is
|
|
|
4fc45e |
nothing stopping users from constructing their own vncserver-like script
|
|
|
4fc45e |
that calls Xvnc directly to bypass any options defined in
|
|
|
4fc45e |
/etc/tigervnc/vncserver-config-mandatory. Likewise, any CLI arguments passed
|
|
|
4fc45e |
to vncserver will override ANY config file setting of the same name. The
|
|
|
4fc45e |
overall configuration file load order is:
|
|
|
4fc45e |
/etc/tigervnc/vncserver-config-defaults, $HOME/.vnc/config, and then this file.
|
|
|
4fc45e |
None are required to exist.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
$HOME/.vnc/config
|
|
|
4fc45e |
An optional server config file wherein options to be passed to Xvnc are listed
|
|
|
4fc45e |
to avoid hard-coding them to the physical invocation. List options in this file
|
|
|
4fc45e |
one per line. For those requiring an argument, simply separate the option from
|
|
|
4fc45e |
the argument with an equal sign, for example: "geometry=2000x1200" or
|
|
|
4fc45e |
"securitytypes=vncauth,tlsvnc". Options without an argument are simply listed
|
|
|
4fc45e |
as a single word, for example: "localhost" or "alwaysshared".
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
$HOME/.vnc/passwd
|
|
|
4fc45e |
The VNC password file.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
|
|
|
4fc45e |
The log file for Xvnc and applications started in xstartup.
|
|
|
4fc45e |
.TP
|
|
|
4fc45e |
$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
|
|
|
4fc45e |
Identifies the Xvnc process ID, used by the
|
|
|
4fc45e |
.B \-kill
|
|
|
4fc45e |
option.
|
|
|
4fc45e |
|
|
|
4fc45e |
.SH SEE ALSO
|
|
|
4fc45e |
.BR vncviewer (1),
|
|
|
4fc45e |
.BR vncpasswd (1),
|
|
|
4fc45e |
.BR vncconfig (1),
|
|
|
4fc45e |
.BR Xvnc (1)
|
|
|
4fc45e |
.br
|
|
|
4fc45e |
https://www.tigervnc.org
|
|
|
4fc45e |
|
|
|
4fc45e |
.SH AUTHOR
|
|
|
4fc45e |
Tristan Richardson, RealVNC Ltd., D. R. Commander and others.
|
|
|
4fc45e |
|
|
|
4fc45e |
VNC was originally developed by the RealVNC team while at Olivetti
|
|
|
4fc45e |
Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
|
|
|
4fc45e |
implemented by Constantin Kaplinsky. Many other people have since
|
|
|
4fc45e |
participated in development, testing and support. This manual is part
|
|
|
4fc45e |
of the TigerVNC software suite.
|