blob: f3e86a3f563009ce846b84331d530dba4880968f [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 ]
15.RI [ Xvnc-options... ]
16.br
17.BI "vncserver \-kill :" display#
18.SH DESCRIPTION
19.B vncserver
20is used to start a VNC (Virtual Network Computing) desktop.
21.B vncserver
22is a Perl script which simplifies the process of starting an Xvnc server. It
DRC7fe258a2009-03-26 18:58:40 +000023runs Xvnc with appropriate options and starts a window manager on the VNC
24desktop.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000025
26.B vncserver
27can be run with no options at all. In this case it will choose the first
DRC7fe258a2009-03-26 18:58:40 +000028available display number (usually :1), start Xvnc with that display number,
29and start the default window manager in the Xvnc session. You can also
30specify the display number, in which case vncserver will attempt to start
31Xvnc with that display number and exit if the display number is not
32available. For example:
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000033
34.RS
35vncserver :13
36.RE
37
38Editing the file $HOME/.vnc/xstartup allows you to change the applications run
DRC7fe258a2009-03-26 18:58:40 +000039at startup (but note that this will not affect an existing VNC session.)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000040
41.SH OPTIONS
DRC7fe258a2009-03-26 18:58:40 +000042You can get a list of options by passing \fB\-h\fP as an option to vncserver.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000043In addition to the options listed below, any unrecognised options will be
DRC7fe258a2009-03-26 18:58:40 +000044passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000045
46.TP
47.B \-name \fIdesktop-name\fP
DRC7fe258a2009-03-26 18:58:40 +000048Each VNC desktop has a name which may be displayed by the viewer. The desktop
49name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can
50change it with this option. The desktop name option is passed to the xstartup
51script via the $VNCDESKTOP environment variable, which allows you to run a
52different set of applications depending on the name of the desktop.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000053
54.TP
55.B \-geometry \fIwidth\fPx\fIheight\fP
DRC7fe258a2009-03-26 18:58:40 +000056Specify the size of the VNC desktop to be created. Default is 1024x768.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000057
58.TP
59.B \-depth \fIdepth\fP
DRC7fe258a2009-03-26 18:58:40 +000060Specify the pixel depth (in bits) of the VNC desktop to be created. Default is
6124. Other possible values are 8, 15 and 16 - anything else is likely to cause
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000062strange behaviour by applications.
63
64.TP
65.B \-pixelformat \fIformat\fP
DRC7fe258a2009-03-26 18:58:40 +000066Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000067depth 8 is BGR233 (meaning the most significant two bits represent blue, the
68next three green, and the least significant three represent red), the default
DRC7fe258a2009-03-26 18:58:40 +000069for depth 16 is RGB565, and the default for depth 24 is RGB888.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000070
71.TP
72.B \-cc 3
73As an alternative to the default TrueColor visual, this allows you to run an
74Xvnc server with a PseudoColor visual (i.e. one which uses a color map or
75palette), which can be useful for running some old X applications which only
76work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor)
77for the \-cc option may result in strange behaviour, and PseudoColor desktops
DRC7fe258a2009-03-26 18:58:40 +000078must have an 8-bit depth.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000079
80.TP
81.B \-kill :\fIdisplay#\fP
82This kills a VNC desktop previously started with vncserver. It does this by
83killing the Xvnc process, whose process ID is stored in the file
DRC7fe258a2009-03-26 18:58:40 +000084"$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The
85.B \-kill
86option ignores anything preceding the first colon (":") in the display
87argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the
88end of your xstartup file after a particular application exits.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000089
90.SH FILES
91Several VNC-related files are found in the directory $HOME/.vnc:
92.TP
93$HOME/.vnc/xstartup
94A shell script specifying X applications to be run when a VNC desktop is
DRC7fe258a2009-03-26 18:58:40 +000095started. If this file does not exist, then vncserver will create a default
96xstartup script which attempts to launch your chosen window manager.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000097.TP
98$HOME/.vnc/passwd
99The VNC password file.
100.TP
101$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log
102The log file for Xvnc and applications started in xstartup.
103.TP
104$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid
105Identifies the Xvnc process ID, used by the
106.B \-kill
107option.
108
109.SH SEE ALSO
110.BR vncviewer (1),
111.BR vncpasswd (1),
112.BR vncconfig (1),
113.BR Xvnc (1)
114.br
Peter Åstrand4eacc022009-02-27 10:12:14 +0000115http://www.tigervnc.org
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000116
117.SH AUTHOR
118Tristan Richardson, RealVNC Ltd.
DRC7fe258a2009-03-26 18:58:40 +0000119.br
120D. R. Commander
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000121
122VNC was originally developed by the RealVNC team while at Olivetti
Constantin Kaplinskybe1bda82006-06-02 04:43:52 +0000123Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000124implemented by Constantin Kaplinsky. Many other people participated in
125development, testing and support.