Pierre Ossman | f256a1a | 2014-09-17 14:09:58 +0200 | [diff] [blame] | 1 | .TH vncserver 1 "" "TigerVNC" "Virtual Network Computing" |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 2 | .SH NAME |
| 3 | vncserver \- 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 ] |
DRC | eed5d1f | 2009-03-26 19:16:19 +0000 | [diff] [blame] | 15 | .RB [ \-fp |
| 16 | .IR font-path ] |
DRC | 8fb1191 | 2011-03-03 10:42:14 +0000 | [diff] [blame] | 17 | .RB [ \-fg ] |
Adam Tkac | 38ba8cf | 2011-04-27 11:28:09 +0000 | [diff] [blame] | 18 | .RB [ \-autokill ] |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 19 | .RI [ Xvnc-options... ] |
| 20 | .br |
| 21 | .BI "vncserver \-kill :" display# |
Pierre Ossman | c16bb27 | 2014-09-17 14:18:31 +0200 | [diff] [blame] | 22 | .br |
| 23 | .BI "vncserver \-list" |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 24 | .SH DESCRIPTION |
| 25 | .B vncserver |
| 26 | is used to start a VNC (Virtual Network Computing) desktop. |
| 27 | .B vncserver |
| 28 | is a Perl script which simplifies the process of starting an Xvnc server. It |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 29 | runs Xvnc with appropriate options and starts a window manager on the VNC |
| 30 | desktop. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 31 | |
| 32 | .B vncserver |
| 33 | can be run with no options at all. In this case it will choose the first |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 34 | available display number (usually :1), start Xvnc with that display number, |
| 35 | and start the default window manager in the Xvnc session. You can also |
| 36 | specify the display number, in which case vncserver will attempt to start |
| 37 | Xvnc with that display number and exit if the display number is not |
| 38 | available. For example: |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 39 | |
| 40 | .RS |
| 41 | vncserver :13 |
| 42 | .RE |
| 43 | |
| 44 | Editing the file $HOME/.vnc/xstartup allows you to change the applications run |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 45 | at startup (but note that this will not affect an existing VNC session.) |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 46 | |
| 47 | .SH OPTIONS |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 48 | You can get a list of options by passing \fB\-h\fP as an option to vncserver. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 49 | In addition to the options listed below, any unrecognised options will be |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 50 | passed to Xvnc - see the Xvnc man page, or "Xvnc \-help", for details. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 51 | |
| 52 | .TP |
| 53 | .B \-name \fIdesktop-name\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 54 | Each VNC desktop has a name which may be displayed by the viewer. The desktop |
| 55 | name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can |
| 56 | change it with this option. The desktop name option is passed to the xstartup |
| 57 | script via the $VNCDESKTOP environment variable, which allows you to run a |
| 58 | different set of applications depending on the name of the desktop. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 59 | . |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 60 | .TP |
| 61 | .B \-geometry \fIwidth\fPx\fIheight\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 62 | Specify the size of the VNC desktop to be created. Default is 1024x768. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 63 | . |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 64 | .TP |
| 65 | .B \-depth \fIdepth\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 66 | Specify the pixel depth (in bits) of the VNC desktop to be created. Default is |
| 67 | 24. Other possible values are 8, 15 and 16 - anything else is likely to cause |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 68 | strange behaviour by applications. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 69 | . |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 70 | .TP |
| 71 | .B \-pixelformat \fIformat\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 72 | Specify pixel format for Xvnc to use (BGRnnn or RGBnnn). The default for |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 73 | depth 8 is BGR233 (meaning the most significant two bits represent blue, the |
| 74 | next three green, and the least significant three represent red), the default |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 75 | for depth 16 is RGB565, and the default for depth 24 is RGB888. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 76 | . |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 77 | .TP |
| 78 | .B \-cc 3 |
| 79 | As an alternative to the default TrueColor visual, this allows you to run an |
| 80 | Xvnc server with a PseudoColor visual (i.e. one which uses a color map or |
| 81 | palette), which can be useful for running some old X applications which only |
| 82 | work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor) |
| 83 | for the \-cc option may result in strange behaviour, and PseudoColor desktops |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 84 | must have an 8-bit depth. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 85 | . |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 86 | .TP |
| 87 | .B \-kill :\fIdisplay#\fP |
| 88 | This kills a VNC desktop previously started with vncserver. It does this by |
| 89 | killing the Xvnc process, whose process ID is stored in the file |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 90 | "$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The |
| 91 | .B \-kill |
| 92 | option ignores anything preceding the first colon (":") in the display |
| 93 | argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the |
| 94 | end of your xstartup file after a particular application exits. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 95 | . |
DRC | eed5d1f | 2009-03-26 19:16:19 +0000 | [diff] [blame] | 96 | .TP |
| 97 | .B \-fp \fIfont-path\fP |
DRC | 36546c1 | 2009-04-15 06:47:23 +0000 | [diff] [blame] | 98 | If the vncserver script detects that the X Font Server (XFS) is running, it |
| 99 | will attempt to start Xvnc and configure Xvnc to use XFS for font handling. |
| 100 | Otherwise, if XFS is not running, the vncserver script will attempt to start |
| 101 | Xvnc and allow Xvnc to use its own preferred method of font handling (which may |
| 102 | be a hard-coded font path or, on more recent systems, a font catalog.) In |
| 103 | any case, if Xvnc fails to start, the vncserver script will then attempt to |
| 104 | determine an appropriate X font path for this system and start Xvnc using |
| 105 | that font path. |
| 106 | |
| 107 | The |
DRC | eed5d1f | 2009-03-26 19:16:19 +0000 | [diff] [blame] | 108 | .B \-fp |
DRC | 36546c1 | 2009-04-15 06:47:23 +0000 | [diff] [blame] | 109 | argument allows you to override the above fallback logic and specify a font |
| 110 | path for Xvnc to use. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 111 | . |
DRC | 8fb1191 | 2011-03-03 10:42:14 +0000 | [diff] [blame] | 112 | .TP |
| 113 | .B \-fg |
Adam Tkac | f586b84 | 2011-04-27 11:20:18 +0000 | [diff] [blame] | 114 | Runs Xvnc as a foreground process. This has two effects: (1) The VNC server |
| 115 | can be aborted with CTRL-C, and (2) the VNC server will exit as soon as the |
| 116 | user logs out of the window manager in the VNC session. This may be necessary |
| 117 | when launching TigerVNC from within certain grid computing environments. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 118 | . |
Adam Tkac | 38ba8cf | 2011-04-27 11:28:09 +0000 | [diff] [blame] | 119 | .TP |
| 120 | .B \-autokill |
| 121 | Automatically kill Xvnc whenever the xstartup script exits. In most cases, |
| 122 | this has the effect of terminating Xvnc when the user logs out of the window |
| 123 | manager. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame^] | 124 | . |
Pierre Ossman | c16bb27 | 2014-09-17 14:18:31 +0200 | [diff] [blame] | 125 | .TP |
| 126 | .B \-list |
| 127 | Lists all VNC desktops started by vncserver. |
| 128 | |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 129 | .SH FILES |
| 130 | Several VNC-related files are found in the directory $HOME/.vnc: |
| 131 | .TP |
| 132 | $HOME/.vnc/xstartup |
| 133 | A shell script specifying X applications to be run when a VNC desktop is |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame] | 134 | started. If this file does not exist, then vncserver will create a default |
| 135 | xstartup script which attempts to launch your chosen window manager. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 136 | .TP |
| 137 | $HOME/.vnc/passwd |
| 138 | The VNC password file. |
| 139 | .TP |
| 140 | $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log |
| 141 | The log file for Xvnc and applications started in xstartup. |
| 142 | .TP |
| 143 | $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid |
| 144 | Identifies the Xvnc process ID, used by the |
| 145 | .B \-kill |
| 146 | option. |
| 147 | |
| 148 | .SH SEE ALSO |
| 149 | .BR vncviewer (1), |
| 150 | .BR vncpasswd (1), |
| 151 | .BR vncconfig (1), |
| 152 | .BR Xvnc (1) |
| 153 | .br |
Peter Åstrand | 4eacc02 | 2009-02-27 10:12:14 +0000 | [diff] [blame] | 154 | http://www.tigervnc.org |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 155 | |
| 156 | .SH AUTHOR |
Pierre Ossman | e37a144 | 2014-09-17 14:08:16 +0200 | [diff] [blame] | 157 | Tristan Richardson, RealVNC Ltd., D. R. Commander and others. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 158 | |
| 159 | VNC was originally developed by the RealVNC team while at Olivetti |
Constantin Kaplinsky | be1bda8 | 2006-06-02 04:43:52 +0000 | [diff] [blame] | 160 | Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were |
Pierre Ossman | e37a144 | 2014-09-17 14:08:16 +0200 | [diff] [blame] | 161 | implemented by Constantin Kaplinsky. Many other people have since |
| 162 | participated in development, testing and support. This manual is part |
| 163 | of the TigerVNC software suite. |