Peter Åstrand | 4eacc02 | 2009-02-27 10:12:14 +0000 | [diff] [blame] | 1 | .TH vncviewer 1 "05 May 2004" "TigerVNC" "Virtual Network Computing" |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 2 | .SH NAME |
| 3 | vncviewer \- VNC viewer for X |
| 4 | .SH SYNOPSIS |
| 5 | .B vncviewer |
| 6 | .RI [ options ] |
| 7 | .RI [ host ][: display# ] |
| 8 | .br |
| 9 | .B vncviewer |
| 10 | .RI [ options ] |
Adam Tkac | 8bb83bf | 2008-10-23 12:04:14 +0000 | [diff] [blame] | 11 | .RI [ host ][:: port ] |
| 12 | .br |
| 13 | .B vncviewer |
| 14 | .RI [ options ] |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 15 | .B \-listen |
| 16 | .RI [ port ] |
| 17 | .SH DESCRIPTION |
| 18 | .B vncviewer |
| 19 | is a viewer (client) for Virtual Network Computing. This manual page documents |
| 20 | version 4 for the X window system. |
| 21 | |
| 22 | If you run the viewer with no arguments it will prompt you for a VNC server to |
| 23 | connect to. Alternatively, specify the VNC server as an argument, e.g.: |
| 24 | |
| 25 | .RS |
| 26 | vncviewer snoopy:2 |
| 27 | .RE |
| 28 | |
| 29 | where 'snoopy' is the name of the machine, and '2' is the display number of the |
| 30 | VNC server on that machine. Either the machine name or display number can be |
| 31 | omitted. So for example ":1" means display number 1 on the same machine, and |
| 32 | "snoopy" means "snoopy:0" i.e. display 0 on machine "snoopy". |
| 33 | |
| 34 | If the VNC server is successfully contacted, you will be prompted for a |
| 35 | password to authenticate you. If the password is correct, a window will appear |
| 36 | showing the desktop of the VNC server. |
| 37 | |
| 38 | .SH AUTOMATIC PROTOCOL SELECTION |
| 39 | |
| 40 | The viewer tests the speed of the connection to the server and chooses the |
| 41 | encoding and pixel format (color level) appropriately. This makes it much |
| 42 | easier to use than previous versions where the user had to specify arcane |
| 43 | command line arguments. |
| 44 | |
| 45 | The viewer normally starts out assuming the link is slow, using the |
| 46 | encoding with the best compression. If it turns out that the link is |
| 47 | fast enough it switches to an encoding which compresses less but is |
| 48 | faster to generate, thus improving the interactive feel. |
| 49 | |
| 50 | The viewer normally starts in full-color mode, but switches to |
| 51 | low-color mode if the bandwidth is insufficient. However, this only |
| 52 | occurs when communicating with servers supporting protocol 3.8 or |
| 53 | newer, since many old servers does not support color mode changes |
| 54 | safely. |
| 55 | |
| 56 | Automatic selection can be turned off by setting the |
| 57 | \fBAutoSelect\fP parameter to false, or from the options dialog. |
| 58 | |
| 59 | .SH POPUP MENU |
| 60 | The viewer has a popup menu containing entries which perform various actions. |
| 61 | It is usually brought up by pressing F8, but this can be configured with the |
| 62 | MenuKey parameter. Actions which the popup menu can perform include: |
| 63 | .RS 2 |
| 64 | .IP * 2 |
| 65 | switching in and out of full-screen mode |
| 66 | .IP * |
| 67 | quitting the viewer |
| 68 | .IP * |
| 69 | generating key events, e.g. sending ctrl-alt-del |
| 70 | .IP * |
| 71 | accessing the options dialog and various other dialogs |
| 72 | .RE |
| 73 | .PP |
| 74 | By default, key presses in the popup menu get sent to the VNC server and |
| 75 | dismiss the popup. So to get an F8 through to the VNC server simply press it |
| 76 | twice. |
| 77 | |
| 78 | .SH FULL SCREEN MODE |
| 79 | A full-screen mode is supported. This is particularly useful when connecting |
| 80 | to a remote screen which is the same size as your local one. If the remote |
| 81 | screen is bigger, you can scroll by bumping the mouse against the edge of the |
| 82 | screen. |
| 83 | |
| 84 | Unfortunately this mode doesn't work completely with all window managers, since |
| 85 | it breaks the X window management conventions. |
| 86 | |
| 87 | .SH OPTIONS (PARAMETERS) |
| 88 | You can get a list of parameters by giving \fB\-h\fP as a command-line option |
| 89 | to vncviewer. Parameters can be turned on with -\fIparam\fP or off with |
| 90 | -\fIparam\fP=0. Parameters which take a value can be specified as |
| 91 | -\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP |
| 92 | -\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are |
| 93 | case-insensitive. |
| 94 | |
| 95 | Many of the parameters can also be set graphically via the options dialog box. |
| 96 | This can be accessed from the popup menu or from the "Connection details" |
| 97 | dialog box. |
| 98 | |
| 99 | .TP |
| 100 | .B \-display \fIXdisplay\fP |
| 101 | Specifies the X display on which the VNC viewer window should appear. |
| 102 | |
| 103 | .TP |
| 104 | .B \-geometry \fIgeometry\fP |
| 105 | Standard X position and sizing specification. |
| 106 | |
| 107 | .TP |
| 108 | .B \-listen \fI[port]\fP |
| 109 | Causes vncviewer to listen on the given port (default 5500) for reverse |
| 110 | connections from a VNC server. WinVNC supports reverse connections initiated |
| 111 | using the 'Add New Client' menu option or the '\-connect' command-line option. |
| 112 | Xvnc supports reverse connections with a helper program called |
| 113 | .B vncconfig. |
| 114 | |
| 115 | .TP |
| 116 | .B \-passwd \fIpassword-file\fP |
| 117 | If you are on a filesystem which gives you access to the password file used by |
| 118 | the server, you can specify it here to avoid typing it in. It will usually be |
| 119 | "~/.vnc/passwd". |
| 120 | |
| 121 | .TP |
| 122 | .B \-Shared |
| 123 | When you make a connection to a VNC server, all other existing connections are |
| 124 | normally closed. This option requests that they be left open, allowing you to |
| 125 | share the desktop with someone already using it. |
| 126 | |
| 127 | .TP |
| 128 | .B \-ViewOnly |
| 129 | Specifies that no keyboard or mouse events should be sent to the server. |
| 130 | Useful if you want to view a desktop without interfering; often needs to be |
| 131 | combined with |
| 132 | .B \-Shared. |
| 133 | |
| 134 | .TP |
| 135 | .B \-FullScreen |
| 136 | Start in full-screen mode. |
| 137 | |
| 138 | .TP |
Pierre Ossman | b7c034a | 2009-03-24 10:31:37 +0000 | [diff] [blame] | 139 | .B \-DesktopSize \fIwidth\fPx\fIheight\fP |
| 140 | Instead of keeping the existing remote screen size, the client will attempt to |
| 141 | switch to the specified since when connecting. If the server does not support |
| 142 | the SetDesktopSize message then the screen will retain the original size. |
| 143 | |
| 144 | .TP |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 145 | .B \-AutoSelect |
| 146 | Use automatic selection of encoding and pixel format (default is on). Normally |
| 147 | the viewer tests the speed of the connection to the server and chooses the |
| 148 | encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP. |
| 149 | |
| 150 | .TP |
| 151 | .B \-FullColor, \-FullColour |
| 152 | Tells the VNC server to send full-color pixels in the best format for this |
| 153 | display. This is default. |
| 154 | |
| 155 | .TP |
| 156 | .B \-LowColorLevel, \-LowColourLevel \fIlevel\fP |
| 157 | Selects the reduced color level to use on slow links. \fIlevel\fP can range |
| 158 | from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning |
Adam Tkac | 4227fd9 | 2009-10-07 15:13:00 +0000 | [diff] [blame] | 159 | 256 colors. Note that decision if reduced color level is used is made by |
| 160 | vncviewer. If you would like to force vncviewer to use reduced color level |
| 161 | use \fB-AutoSelect=0\fP parameter. |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 162 | |
| 163 | .TP |
| 164 | .B \-PreferredEncoding \fIencoding\fP |
| 165 | This option specifies the preferred encoding to use from one of "Tight", "ZRLE", |
| 166 | "hextile" or "raw". |
| 167 | |
| 168 | .TP |
| 169 | .B -UseLocalCursor |
| 170 | Render the mouse cursor locally if the server supports it (default is on). |
| 171 | This can make the interactive performance feel much better over slow links. |
| 172 | |
| 173 | .TP |
| 174 | .B \-WMDecorationWidth \fIw\fP, \-WMDecorationHeight \fIh\fP |
| 175 | The total width and height taken up by window manager decorations. This is |
| 176 | used to calculate the maximum size of the VNC viewer window. Default is |
| 177 | width 6, height 24. |
| 178 | |
| 179 | .TP |
| 180 | .B \-log \fIlogname\fP:\fIdest\fP:\fIlevel\fP |
| 181 | Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or |
| 182 | \fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose |
| 183 | output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a |
| 184 | specific source file if you know the name of its "LogWriter". Default is |
| 185 | \fB*:stderr:30\fP. |
| 186 | |
| 187 | .TP |
| 188 | .B \-MenuKey \fIkeysym-name\fP |
| 189 | This option specifies the key which brings up the popup menu. The key is |
| 190 | specified as an X11 keysym name (these can be obtained by removing the XK_ |
| 191 | prefix from the entries in "/usr/include/X11/keysymdef.h"). Default is F8. |
| 192 | |
| 193 | .TP |
| 194 | \fB\-via\fR \fIgateway\fR |
| 195 | Automatically create encrypted TCP tunnel to the \fIgateway\fR machine |
| 196 | before connection, connect to the \fIhost\fR through that tunnel |
Peter Åstrand | 4eacc02 | 2009-02-27 10:12:14 +0000 | [diff] [blame] | 197 | (TigerVNC\-specific). By default, this option invokes SSH local port |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 198 | forwarding, assuming that SSH client binary can be accessed as |
| 199 | /usr/bin/ssh. Note that when using the \fB\-via\fR option, the host |
| 200 | machine name should be specified as known to the gateway machine, e.g. |
| 201 | "localhost" denotes the \fIgateway\fR, not the machine where vncviewer |
| 202 | was launched. The environment variable \fIVNC_VIA_CMD\fR can override |
| 203 | the default tunnel command of |
| 204 | \fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel |
| 205 | command is executed with the environment variables \fIL\fR, \fIH\fR, |
| 206 | \fIR\fR, and \fIG\fR taken the values of the local port number, the remote |
| 207 | host, the port number on the remote host, and the gateway machine |
| 208 | respectively. |
| 209 | |
| 210 | .SH SEE ALSO |
| 211 | .BR Xvnc (1), |
| 212 | .BR vncpasswd (1), |
| 213 | .BR vncconfig (1), |
| 214 | .BR vncserver (1) |
| 215 | .br |
Peter Åstrand | 4eacc02 | 2009-02-27 10:12:14 +0000 | [diff] [blame] | 216 | http://www.tigervnc.org |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 217 | |
| 218 | .SH AUTHOR |
| 219 | Tristan Richardson, RealVNC Ltd. |
| 220 | |
| 221 | VNC was originally developed by the RealVNC team while at Olivetti |
Constantin Kaplinsky | be1bda8 | 2006-06-02 04:43:52 +0000 | [diff] [blame] | 222 | Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were |
Constantin Kaplinsky | b30ae7f | 2006-05-25 05:04:46 +0000 | [diff] [blame] | 223 | implemented by Constantin Kaplinsky. Many other people participated in |
| 224 | development, testing and support. |