blob: c2e1419e1582d87ca1cab8c0d8b1bc7acf2247a0 [file] [log] [blame]
Pierre Ossmanf256a1a2014-09-17 14:09:58 +02001.TH vncserver 1 "" "TigerVNC" "Virtual Network Computing"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002.SH NAME
3vncserver \- 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 ]
DRCeed5d1f2009-03-26 19:16:19 +000015.RB [ \-fp
16.IR font-path ]
DRC8fb11912011-03-03 10:42:14 +000017.RB [ \-fg ]
Adam Tkac38ba8cf2011-04-27 11:28:09 +000018.RB [ \-autokill ]
Llorenç Garcia Martinez5d771f42015-10-23 13:42:13 +020019.RB [ \-noxstartup ]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000020.RI [ Xvnc-options... ]
21.br
22.BI "vncserver \-kill :" display#
Pierre Ossmanc16bb272014-09-17 14:18:31 +020023.br
24.BI "vncserver \-list"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000025.SH DESCRIPTION
26.B vncserver
27is used to start a VNC (Virtual Network Computing) desktop.
28.B vncserver
29is a Perl script which simplifies the process of starting an Xvnc server. It
DRC7fe258a2009-03-26 18:58:40 +000030runs Xvnc with appropriate options and starts a window manager on the VNC
31desktop.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000032
33.B vncserver
34can be run with no options at all. In this case it will choose the first
DRC7fe258a2009-03-26 18:58:40 +000035available display number (usually :1), start Xvnc with that display number,
36and start the default window manager in the Xvnc session. You can also
37specify the display number, in which case vncserver will attempt to start
38Xvnc with that display number and exit if the display number is not
39available. For example:
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000040
41.RS
42vncserver :13
43.RE
44
45Editing the file $HOME/.vnc/xstartup allows you to change the applications run
DRC7fe258a2009-03-26 18:58:40 +000046at startup (but note that this will not affect an existing VNC session.)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000047
48.SH OPTIONS
DRC7fe258a2009-03-26 18:58:40 +000049You can get a list of options by passing \fB\-h\fP as an option to vncserver.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000050In addition to the options listed below, any unrecognised options will be
DRC7fe258a2009-03-26 18:58:40 +000051passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000052
53.TP
54.B \-name \fIdesktop-name\fP
DRC7fe258a2009-03-26 18:58:40 +000055Each VNC desktop has a name which may be displayed by the viewer. The desktop
56name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can
57change it with this option. The desktop name option is passed to the xstartup
58script via the $VNCDESKTOP environment variable, which allows you to run a
59different set of applications depending on the name of the desktop.
Pierre Ossman23f67c32014-09-17 16:28:56 +020060.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000061.TP
62.B \-geometry \fIwidth\fPx\fIheight\fP
DRC7fe258a2009-03-26 18:58:40 +000063Specify the size of the VNC desktop to be created. Default is 1024x768.
Pierre Ossman23f67c32014-09-17 16:28:56 +020064.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000065.TP
66.B \-depth \fIdepth\fP
DRC7fe258a2009-03-26 18:58:40 +000067Specify the pixel depth (in bits) of the VNC desktop to be created. Default is
6824. Other possible values are 8, 15 and 16 - anything else is likely to cause
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000069strange behaviour by applications.
Pierre Ossman23f67c32014-09-17 16:28:56 +020070.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000071.TP
72.B \-pixelformat \fIformat\fP
DRC7fe258a2009-03-26 18:58:40 +000073Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000074depth 8 is BGR233 (meaning the most significant two bits represent blue, the
75next three green, and the least significant three represent red), the default
DRC7fe258a2009-03-26 18:58:40 +000076for depth 16 is RGB565, and the default for depth 24 is RGB888.
Pierre Ossman23f67c32014-09-17 16:28:56 +020077.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000078.TP
79.B \-cc 3
80As an alternative to the default TrueColor visual, this allows you to run an
81Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
82palette), which can be useful for running some old X applications which only
83work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
84for the \-cc option may result in strange behaviour, and PseudoColor desktops
DRC7fe258a2009-03-26 18:58:40 +000085must have an 8-bit depth.
Pierre Ossman23f67c32014-09-17 16:28:56 +020086.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000087.TP
88.B \-kill :\fIdisplay#\fP
89This kills a VNC desktop previously started with vncserver. It does this by
90killing the Xvnc process, whose process ID is stored in the file
DRC7fe258a2009-03-26 18:58:40 +000091"$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
92.B \-kill
93option ignores anything preceding the first colon (":") in the display
94argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
95end of your xstartup file after a particular application exits.
Pierre Ossman23f67c32014-09-17 16:28:56 +020096.
DRCeed5d1f2009-03-26 19:16:19 +000097.TP
98.B \-fp \fIfont-path\fP
DRC36546c12009-04-15 06:47:23 +000099If the vncserver script detects that the X Font Server (XFS) is running, it
100will attempt to start Xvnc and configure Xvnc to use XFS for font handling.
101Otherwise, if XFS is not running, the vncserver script will attempt to start
102Xvnc and allow Xvnc to use its own preferred method of font handling (which may
103be a hard-coded font path or, on more recent systems, a font catalog.) In
104any case, if Xvnc fails to start, the vncserver script will then attempt to
105determine an appropriate X font path for this system and start Xvnc using
106that font path.
107
108The
DRCeed5d1f2009-03-26 19:16:19 +0000109.B \-fp
DRC36546c12009-04-15 06:47:23 +0000110argument allows you to override the above fallback logic and specify a font
111path for Xvnc to use.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200112.
DRC8fb11912011-03-03 10:42:14 +0000113.TP
114.B \-fg
Adam Tkacf586b842011-04-27 11:20:18 +0000115Runs Xvnc as a foreground process. This has two effects: (1) The VNC server
116can be aborted with CTRL-C, and (2) the VNC server will exit as soon as the
117user logs out of the window manager in the VNC session. This may be necessary
118when launching TigerVNC from within certain grid computing environments.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200119.
Adam Tkac38ba8cf2011-04-27 11:28:09 +0000120.TP
121.B \-autokill
122Automatically kill Xvnc whenever the xstartup script exits. In most cases,
123this has the effect of terminating Xvnc when the user logs out of the window
124manager.
Pierre Ossman23f67c32014-09-17 16:28:56 +0200125.
Pierre Ossmanc16bb272014-09-17 14:18:31 +0200126.TP
Llorenç Garcia Martinez5d771f42015-10-23 13:42:13 +0200127.B \-noxstartup
128Do not run the %HOME/.vnc/xstartup script after launching Xvnc. This
129option allows you to manually start a window manager in your TigerVNC session.
130.
131.TP
Pierre Ossmanc16bb272014-09-17 14:18:31 +0200132.B \-list
133Lists all VNC desktops started by vncserver.
134
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000135.SH FILES
136Several VNC-related files are found in the directory $HOME/.vnc:
137.TP
138$HOME/.vnc/xstartup
139A shell script specifying X applications to be run when a VNC desktop is
DRC7fe258a2009-03-26 18:58:40 +0000140started. If this file does not exist, then vncserver will create a default
141xstartup script which attempts to launch your chosen window manager.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000142.TP
143$HOME/.vnc/passwd
144The VNC password file.
145.TP
146$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
147The log file for Xvnc and applications started in xstartup.
148.TP
149$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
150Identifies the Xvnc process ID, used by the
151.B \-kill
152option.
153
154.SH SEE ALSO
155.BR vncviewer (1),
156.BR vncpasswd (1),
157.BR vncconfig (1),
158.BR Xvnc (1)
159.br
Peter Åstrand4eacc022009-02-27 10:12:14 +0000160http://www.tigervnc.org
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000161
162.SH AUTHOR
Pierre Ossmane37a1442014-09-17 14:08:16 +0200163Tristan Richardson, RealVNC Ltd., D. R. Commander and others.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000164
165VNC was originally developed by the RealVNC team while at Olivetti
Constantin Kaplinskybe1bda82006-06-02 04:43:52 +0000166Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Pierre Ossmane37a1442014-09-17 14:08:16 +0200167implemented by Constantin Kaplinsky. Many other people have since
168participated in development, testing and support. This manual is part
169of the TigerVNC software suite.