blob: 1c93107ba6341bf3f606cd41181dd6d76c4a973d [file] [log] [blame]
DRC36546c12009-04-15 06:47:23 +00001.TH vncserver 1 "15 Apr 2009" "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 ]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000017.RI [ Xvnc-options... ]
18.br
19.BI "vncserver \-kill :" display#
20.SH DESCRIPTION
21.B vncserver
22is used to start a VNC (Virtual Network Computing) desktop.
23.B vncserver
24is a Perl script which simplifies the process of starting an Xvnc server. It
DRC7fe258a2009-03-26 18:58:40 +000025runs Xvnc with appropriate options and starts a window manager on the VNC
26desktop.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000027
28.B vncserver
29can be run with no options at all. In this case it will choose the first
DRC7fe258a2009-03-26 18:58:40 +000030available display number (usually :1), start Xvnc with that display number,
31and start the default window manager in the Xvnc session. You can also
32specify the display number, in which case vncserver will attempt to start
33Xvnc with that display number and exit if the display number is not
34available. For example:
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000035
36.RS
37vncserver :13
38.RE
39
40Editing the file $HOME/.vnc/xstartup allows you to change the applications run
DRC7fe258a2009-03-26 18:58:40 +000041at startup (but note that this will not affect an existing VNC session.)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000042
43.SH OPTIONS
DRC7fe258a2009-03-26 18:58:40 +000044You can get a list of options by passing \fB\-h\fP as an option to vncserver.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000045In addition to the options listed below, any unrecognised options will be
DRC7fe258a2009-03-26 18:58:40 +000046passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000047
48.TP
49.B \-name \fIdesktop-name\fP
DRC7fe258a2009-03-26 18:58:40 +000050Each VNC desktop has a name which may be displayed by the viewer. The desktop
51name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can
52change it with this option. The desktop name option is passed to the xstartup
53script via the $VNCDESKTOP environment variable, which allows you to run a
54different set of applications depending on the name of the desktop.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000055
56.TP
57.B \-geometry \fIwidth\fPx\fIheight\fP
DRC7fe258a2009-03-26 18:58:40 +000058Specify the size of the VNC desktop to be created. Default is 1024x768.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000059
60.TP
61.B \-depth \fIdepth\fP
DRC7fe258a2009-03-26 18:58:40 +000062Specify the pixel depth (in bits) of the VNC desktop to be created. Default is
6324. Other possible values are 8, 15 and 16 - anything else is likely to cause
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000064strange behaviour by applications.
65
66.TP
67.B \-pixelformat \fIformat\fP
DRC7fe258a2009-03-26 18:58:40 +000068Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000069depth 8 is BGR233 (meaning the most significant two bits represent blue, the
70next three green, and the least significant three represent red), the default
DRC7fe258a2009-03-26 18:58:40 +000071for depth 16 is RGB565, and the default for depth 24 is RGB888.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000072
73.TP
74.B \-cc 3
75As an alternative to the default TrueColor visual, this allows you to run an
76Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
77palette), which can be useful for running some old X applications which only
78work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
79for the \-cc option may result in strange behaviour, and PseudoColor desktops
DRC7fe258a2009-03-26 18:58:40 +000080must have an 8-bit depth.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000081
82.TP
83.B \-kill :\fIdisplay#\fP
84This kills a VNC desktop previously started with vncserver. It does this by
85killing the Xvnc process, whose process ID is stored in the file
DRC7fe258a2009-03-26 18:58:40 +000086"$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
87.B \-kill
88option ignores anything preceding the first colon (":") in the display
89argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
90end of your xstartup file after a particular application exits.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000091
DRCeed5d1f2009-03-26 19:16:19 +000092.TP
93.B \-fp \fIfont-path\fP
DRC36546c12009-04-15 06:47:23 +000094If the vncserver script detects that the X Font Server (XFS) is running, it
95will attempt to start Xvnc and configure Xvnc to use XFS for font handling.
96Otherwise, if XFS is not running, the vncserver script will attempt to start
97Xvnc and allow Xvnc to use its own preferred method of font handling (which may
98be a hard-coded font path or, on more recent systems, a font catalog.) In
99any case, if Xvnc fails to start, the vncserver script will then attempt to
100determine an appropriate X font path for this system and start Xvnc using
101that font path.
102
103The
DRCeed5d1f2009-03-26 19:16:19 +0000104.B \-fp
DRC36546c12009-04-15 06:47:23 +0000105argument allows you to override the above fallback logic and specify a font
106path for Xvnc to use.
DRCeed5d1f2009-03-26 19:16:19 +0000107
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000108.SH FILES
109Several VNC-related files are found in the directory $HOME/.vnc:
110.TP
111$HOME/.vnc/xstartup
112A shell script specifying X applications to be run when a VNC desktop is
DRC7fe258a2009-03-26 18:58:40 +0000113started. If this file does not exist, then vncserver will create a default
114xstartup script which attempts to launch your chosen window manager.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000115.TP
116$HOME/.vnc/passwd
117The VNC password file.
118.TP
119$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
120The log file for Xvnc and applications started in xstartup.
121.TP
122$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
123Identifies the Xvnc process ID, used by the
124.B \-kill
125option.
126
127.SH SEE ALSO
128.BR vncviewer (1),
129.BR vncpasswd (1),
130.BR vncconfig (1),
131.BR Xvnc (1)
132.br
Peter Åstrand4eacc022009-02-27 10:12:14 +0000133http://www.tigervnc.org
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000134
135.SH AUTHOR
136Tristan Richardson, RealVNC Ltd.
DRC7fe258a2009-03-26 18:58:40 +0000137.br
138D. R. Commander
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000139
140VNC was originally developed by the RealVNC team while at Olivetti
Constantin Kaplinskybe1bda82006-06-02 04:43:52 +0000141Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000142implemented by Constantin Kaplinsky. Many other people participated in
143development, testing and support.