DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 1 | .TH vncserver 1 "26 Mar 2009" "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 ] |
| 15 | .RI [ Xvnc-options... ] |
| 16 | .br |
| 17 | .BI "vncserver \-kill :" display# |
| 18 | .SH DESCRIPTION |
| 19 | .B vncserver |
| 20 | is used to start a VNC (Virtual Network Computing) desktop. |
| 21 | .B vncserver |
| 22 | 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^] | 23 | runs Xvnc with appropriate options and starts a window manager on the VNC |
| 24 | desktop. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 25 | |
| 26 | .B vncserver |
| 27 | 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^] | 28 | available display number (usually :1), start Xvnc with that display number, |
| 29 | and start the default window manager in the Xvnc session. You can also |
| 30 | specify the display number, in which case vncserver will attempt to start |
| 31 | Xvnc with that display number and exit if the display number is not |
| 32 | available. For example: |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 33 | |
| 34 | .RS |
| 35 | vncserver :13 |
| 36 | .RE |
| 37 | |
| 38 | Editing the file $HOME/.vnc/xstartup allows you to change the applications run |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 39 | 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] | 40 | |
| 41 | .SH OPTIONS |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 42 | 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] | 43 | In addition to the options listed below, any unrecognised options will be |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 44 | 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] | 45 | |
| 46 | .TP |
| 47 | .B \-name \fIdesktop-name\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 48 | Each VNC desktop has a name which may be displayed by the viewer. The desktop |
| 49 | name defaults to "\fIhost\fP:\fIdisplay#\fP (\fIusername\fP)", but you can |
| 50 | change it with this option. The desktop name option is passed to the xstartup |
| 51 | script via the $VNCDESKTOP environment variable, which allows you to run a |
| 52 | different set of applications depending on the name of the desktop. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 53 | |
| 54 | .TP |
| 55 | .B \-geometry \fIwidth\fPx\fIheight\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 56 | Specify the size of the VNC desktop to be created. Default is 1024x768. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 57 | |
| 58 | .TP |
| 59 | .B \-depth \fIdepth\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 60 | Specify the pixel depth (in bits) of the VNC desktop to be created. Default is |
| 61 | 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] | 62 | strange behaviour by applications. |
| 63 | |
| 64 | .TP |
| 65 | .B \-pixelformat \fIformat\fP |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 66 | 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] | 67 | depth 8 is BGR233 (meaning the most significant two bits represent blue, the |
| 68 | next three green, and the least significant three represent red), the default |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 69 | for depth 16 is RGB565, and the default for depth 24 is RGB888. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 70 | |
| 71 | .TP |
| 72 | .B \-cc 3 |
| 73 | As an alternative to the default TrueColor visual, this allows you to run an |
| 74 | Xvnc server with a PseudoColor visual (i.e. one which uses a color map or |
| 75 | palette), which can be useful for running some old X applications which only |
| 76 | work on such a display. Values other than 3 (PseudoColor) and 4 (TrueColor) |
| 77 | for the \-cc option may result in strange behaviour, and PseudoColor desktops |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 78 | must have an 8-bit depth. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 79 | |
| 80 | .TP |
| 81 | .B \-kill :\fIdisplay#\fP |
| 82 | This kills a VNC desktop previously started with vncserver. It does this by |
| 83 | killing the Xvnc process, whose process ID is stored in the file |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 84 | "$HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid". The |
| 85 | .B \-kill |
| 86 | option ignores anything preceding the first colon (":") in the display |
| 87 | argument. Thus, you can invoke "vncserver \-kill $DISPLAY", for example at the |
| 88 | end of your xstartup file after a particular application exits. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 89 | |
| 90 | .SH FILES |
| 91 | Several VNC-related files are found in the directory $HOME/.vnc: |
| 92 | .TP |
| 93 | $HOME/.vnc/xstartup |
| 94 | 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^] | 95 | started. If this file does not exist, then vncserver will create a default |
| 96 | xstartup script which attempts to launch your chosen window manager. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 97 | .TP |
| 98 | $HOME/.vnc/passwd |
| 99 | The VNC password file. |
| 100 | .TP |
| 101 | $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.log |
| 102 | The log file for Xvnc and applications started in xstartup. |
| 103 | .TP |
| 104 | $HOME/.vnc/\fIhost\fP:\fIdisplay#\fP.pid |
| 105 | Identifies the Xvnc process ID, used by the |
| 106 | .B \-kill |
| 107 | option. |
| 108 | |
| 109 | .SH SEE ALSO |
| 110 | .BR vncviewer (1), |
| 111 | .BR vncpasswd (1), |
| 112 | .BR vncconfig (1), |
| 113 | .BR Xvnc (1) |
| 114 | .br |
Peter Åstrand | 4eacc02 | 2009-02-27 10:12:14 +0000 | [diff] [blame] | 115 | http://www.tigervnc.org |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 116 | |
| 117 | .SH AUTHOR |
| 118 | Tristan Richardson, RealVNC Ltd. |
DRC | 7fe258a | 2009-03-26 18:58:40 +0000 | [diff] [blame^] | 119 | .br |
| 120 | D. R. Commander |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 121 | |
| 122 | VNC was originally developed by the RealVNC team while at Olivetti |
Constantin Kaplinsky | be1bda8 | 2006-06-02 04:43:52 +0000 | [diff] [blame] | 123 | Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 124 | implemented by Constantin Kaplinsky. Many other people participated in |
| 125 | development, testing and support. |