blob: 1c283a7c951b4e92c4eb9d127f0bed1da7284e1a [file] [log] [blame]
DRC7fe258a2009-03-26 18:58:40 +00001.TH vncserver 1 "26 Mar 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
94The vncserver script will normally examine your system to figure out where it
95stores its X11 fonts and then generate an appropriate font path argument for
96Xvnc based on this. If your system stores its X11 fonts in a location that
97vncserver does not know about, however, then this may fail. In that case,
98vncserver will then try to contact the local X Font Server (xfs) on port 7100.
99Not all systems have xfs installed and running, so this may fail as well. In
100that case, you can manually specify a font path by using the
101.B \-fp
102argument to vncserver.
103
104If you prefer to use the X Font Server by default rather than a static font
105path, then you can run
106
107.RS
108.RS
109vncserver -fp unix/:7100
110.RE
111.RE
112
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000113.SH FILES
114Several VNC-related files are found in the directory $HOME/.vnc:
115.TP
116$HOME/.vnc/xstartup
117A shell script specifying X applications to be run when a VNC desktop is
DRC7fe258a2009-03-26 18:58:40 +0000118started. If this file does not exist, then vncserver will create a default
119xstartup script which attempts to launch your chosen window manager.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000120.TP
121$HOME/.vnc/passwd
122The VNC password file.
123.TP
124$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
125The log file for Xvnc and applications started in xstartup.
126.TP
127$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
128Identifies the Xvnc process ID, used by the
129.B \-kill
130option.
131
132.SH SEE ALSO
133.BR vncviewer (1),
134.BR vncpasswd (1),
135.BR vncconfig (1),
136.BR Xvnc (1)
137.br
Peter Åstrand4eacc022009-02-27 10:12:14 +0000138http://www.tigervnc.org
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000139
140.SH AUTHOR
141Tristan Richardson, RealVNC Ltd.
DRC7fe258a2009-03-26 18:58:40 +0000142.br
143D. R. Commander
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000144
145VNC was originally developed by the RealVNC team while at Olivetti
Constantin Kaplinskybe1bda82006-06-02 04:43:52 +0000146Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000147implemented by Constantin Kaplinsky. Many other people participated in
148development, testing and support.