Pierre Ossman | f256a1a | 2014-09-17 14:09:58 +0200 | [diff] [blame] | 1 | .TH vncviewer 1 "" "TigerVNC" "Virtual Network Computing" |
DRC | e66060d | 2011-06-25 03:02:10 +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 ] |
| 11 | .RI [ host ][:: port ] |
| 12 | .br |
| 13 | .B vncviewer |
| 14 | .RI [ options ] |
| 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 | |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 84 | .SH OPTIONS (PARAMETERS) |
| 85 | You can get a list of parameters by giving \fB\-h\fP as a command-line option |
| 86 | to vncviewer. Parameters can be turned on with -\fIparam\fP or off with |
| 87 | -\fIparam\fP=0. Parameters which take a value can be specified as |
| 88 | -\fIparam\fP \fIvalue\fP. Other valid forms are \fIparam\fP\fB=\fP\fIvalue\fP |
| 89 | -\fIparam\fP=\fIvalue\fP --\fIparam\fP=\fIvalue\fP. Parameter names are |
| 90 | case-insensitive. |
| 91 | |
| 92 | Many of the parameters can also be set graphically via the options dialog box. |
| 93 | This can be accessed from the popup menu or from the "Connection details" |
| 94 | dialog box. |
| 95 | |
| 96 | .TP |
| 97 | .B \-display \fIXdisplay\fP |
| 98 | Specifies the X display on which the VNC viewer window should appear. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 99 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 100 | .TP |
| 101 | .B \-geometry \fIgeometry\fP |
| 102 | Standard X position and sizing specification. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 103 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 104 | .TP |
| 105 | .B \-listen \fI[port]\fP |
| 106 | Causes vncviewer to listen on the given port (default 5500) for reverse |
| 107 | connections from a VNC server. WinVNC supports reverse connections initiated |
| 108 | using the 'Add New Client' menu option or the '\-connect' command-line option. |
| 109 | Xvnc supports reverse connections with a helper program called |
| 110 | .B vncconfig. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 111 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 112 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 113 | .B \-SecurityTypes \fIsec-types\fP |
| 114 | Specify which security schemes to attempt to use when authenticating with |
| 115 | the server. Valid values are a comma separated list of \fBNone\fP, |
| 116 | \fBVncAuth\fP, \fBPlain\fP, \fBTLSNone\fP, \fBTLSVnc\fP, \fBTLSPlain\fP, |
| 117 | \fBX509None\fP, \fBX509Vnc\fP and \fBX509Plain\fP. Default is to attempt |
| 118 | every supported scheme. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 119 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 120 | .TP |
| 121 | .B \-passwd, \-PasswordFile \fIpassword-file\fP |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 122 | If you are on a filesystem which gives you access to the password file used by |
| 123 | the server, you can specify it here to avoid typing it in. It will usually be |
| 124 | "~/.vnc/passwd". |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 125 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 126 | .TP |
Pierre Ossman | 1ec4531 | 2014-09-17 16:55:25 +0200 | [diff] [blame] | 127 | .B \-X509CA \fIpath\fP |
| 128 | Path to CA certificate to use when authenticating remote servers using any |
| 129 | of the X509 security schemes (X509None, X509Vnc, etc.). Must be in PEM |
| 130 | format. Default is \fB$HOME/.vnc/x509_ca.pem\fP, if it exists. |
| 131 | . |
| 132 | .TP |
| 133 | .B \-X509CRL \fIpath\fP |
| 134 | Path to certificate revocation list to use in conjunction with |
| 135 | \fB-X509CA\fP. Must also be in PEM format. Default is |
| 136 | \fB$HOME/.vnc/x509_crl.pem\fP, if it exists. |
| 137 | . |
| 138 | .TP |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 139 | .B \-Shared |
| 140 | When you make a connection to a VNC server, all other existing connections are |
| 141 | normally closed. This option requests that they be left open, allowing you to |
| 142 | share the desktop with someone already using it. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 143 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 144 | .TP |
| 145 | .B \-ViewOnly |
| 146 | Specifies that no keyboard or mouse events should be sent to the server. |
| 147 | Useful if you want to view a desktop without interfering; often needs to be |
| 148 | combined with |
| 149 | .B \-Shared. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 150 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 151 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 152 | .B \-AcceptClipboard |
| 153 | Accept clipboard changes from the server. Default is on. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 154 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 155 | .TP |
Pierre Ossman | f862c2e | 2016-03-29 14:15:38 +0200 | [diff] [blame] | 156 | .B \-SetPrimary |
| 157 | Set the primary selection as well as the clipboard selection. |
| 158 | Default is on. |
| 159 | . |
| 160 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 161 | .B \-SendClipboard |
| 162 | Send clipboard changes to the server. Default is on. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 163 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 164 | .TP |
| 165 | .B \-SendPrimary |
Pierre Ossman | 57cadc1 | 2016-03-29 14:18:36 +0200 | [diff] [blame^] | 166 | Send the primary selection to the server as well as the clipboard |
| 167 | selection. Default is on. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 168 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 169 | .TP |
Peter Ã…strand | 49b1157 | 2012-08-01 08:09:09 +0000 | [diff] [blame] | 170 | .B \-Maximize |
| 171 | Maximize viewer window. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 172 | . |
Peter Ã…strand | 49b1157 | 2012-08-01 08:09:09 +0000 | [diff] [blame] | 173 | .TP |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 174 | .B \-FullScreen |
| 175 | Start in full-screen mode. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 176 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 177 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 178 | .B \-FullScreenAllMonitors |
| 179 | Use all local monitors and not just the current one when switching to |
| 180 | full-screen mode. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 181 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 182 | .TP |
| 183 | .B \-FullscreenSystemKeys |
| 184 | Pass special keys (like Alt+Tab) directly to the server when in full-screen |
| 185 | mode. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 186 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 187 | .TP |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 188 | .B \-DesktopSize \fIwidth\fPx\fIheight\fP |
| 189 | Instead of keeping the existing remote screen size, the client will attempt to |
| 190 | switch to the specified since when connecting. If the server does not support |
| 191 | the SetDesktopSize message then the screen will retain the original size. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 192 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 193 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 194 | .B \-RemoteResize |
| 195 | Dynamically resize the remote desktop size as the size of the local client |
| 196 | window changes. Note that this may not work with all VNC servers. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 197 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 198 | .TP |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 199 | .B \-AutoSelect |
| 200 | Use automatic selection of encoding and pixel format (default is on). Normally |
| 201 | the viewer tests the speed of the connection to the server and chooses the |
| 202 | encoding and pixel format appropriately. Turn it off with \fB-AutoSelect=0\fP. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 203 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 204 | .TP |
| 205 | .B \-FullColor, \-FullColour |
| 206 | Tells the VNC server to send full-color pixels in the best format for this |
| 207 | display. This is default. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 208 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 209 | .TP |
| 210 | .B \-LowColorLevel, \-LowColourLevel \fIlevel\fP |
| 211 | Selects the reduced color level to use on slow links. \fIlevel\fP can range |
| 212 | from 0 to 2, 0 meaning 8 colors, 1 meaning 64 colors (the default), 2 meaning |
| 213 | 256 colors. Note that decision if reduced color level is used is made by |
| 214 | vncviewer. If you would like to force vncviewer to use reduced color level |
| 215 | use \fB-AutoSelect=0\fP parameter. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 216 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 217 | .TP |
| 218 | .B \-PreferredEncoding \fIencoding\fP |
| 219 | This option specifies the preferred encoding to use from one of "Tight", "ZRLE", |
| 220 | "hextile" or "raw". |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 221 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 222 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 223 | .B \-NoJpeg |
| 224 | Disable lossy JPEG compression in Tight encoding. Default is off. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 225 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 226 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 227 | .B \-QualityLevel \fIlevel\fP |
| 228 | JPEG quality level. 0 = Low, 9 = High. May be adjusted automatically if |
| 229 | \fB-AutoSelect\fP is turned on. Default is 8. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 230 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 231 | .TP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 232 | .B \-CompressLevel \fIlevel\fP |
| 233 | Use specified lossless compression level. 0 = Low, 6 = High. Default is 2. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 234 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 235 | .TP |
| 236 | .B \-CustomCompressLevel |
| 237 | Use custom compression level. Default if \fBCompressLevel\fP is specified. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 238 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 239 | .TP |
| 240 | .B \-DotWhenNoCursor |
| 241 | Show the dot cursor when the server sends an invisible cursor. Default is off. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 242 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 243 | .TP |
| 244 | .B \-PointerEventInterval \fItime\fP |
| 245 | Time in milliseconds to rate-limit successive pointer events. Default is |
| 246 | to send events immediately. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 247 | . |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 248 | .TP |
| 249 | .B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 250 | Configures the debug log settings. \fIdest\fP can currently be \fBstderr\fP or |
| 251 | \fBstdout\fP, and \fIlevel\fP is between 0 and 100, 100 meaning most verbose |
| 252 | output. \fIlogname\fP is usually \fB*\fP meaning all, but you can target a |
| 253 | specific source file if you know the name of its "LogWriter". Default is |
| 254 | \fB*:stderr:30\fP. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 255 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 256 | .TP |
| 257 | .B \-MenuKey \fIkeysym-name\fP |
Pierre Ossman | 3e156d6 | 2014-09-17 16:16:10 +0200 | [diff] [blame] | 258 | This option specifies the key which brings up the popup menu. The currently |
| 259 | supported list is: F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, Pause, |
Martin Koegler | b2ccdf1 | 2011-09-04 07:12:15 +0000 | [diff] [blame] | 260 | Print, Scroll_Lock, Escape, Insert, Delete, Home, Page_Up, Page_Down). |
| 261 | Default is F8. |
Pierre Ossman | 23f67c3 | 2014-09-17 16:28:56 +0200 | [diff] [blame] | 262 | . |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 263 | .TP |
| 264 | \fB\-via\fR \fIgateway\fR |
| 265 | Automatically create encrypted TCP tunnel to the \fIgateway\fR machine |
| 266 | before connection, connect to the \fIhost\fR through that tunnel |
| 267 | (TigerVNC\-specific). By default, this option invokes SSH local port |
| 268 | forwarding, assuming that SSH client binary can be accessed as |
| 269 | /usr/bin/ssh. Note that when using the \fB\-via\fR option, the host |
| 270 | machine name should be specified as known to the gateway machine, e.g. |
| 271 | "localhost" denotes the \fIgateway\fR, not the machine where vncviewer |
| 272 | was launched. The environment variable \fIVNC_VIA_CMD\fR can override |
| 273 | the default tunnel command of |
| 274 | \fB/usr/bin/ssh\ -f\ -L\ "$L":"$H":"$R"\ "$G"\ sleep\ 20\fR. The tunnel |
| 275 | command is executed with the environment variables \fIL\fR, \fIH\fR, |
| 276 | \fIR\fR, and \fIG\fR taken the values of the local port number, the remote |
| 277 | host, the port number on the remote host, and the gateway machine |
| 278 | respectively. |
| 279 | |
Pierre Ossman | 591c7bf | 2014-09-17 16:20:43 +0200 | [diff] [blame] | 280 | .SH FILES |
| 281 | .TP |
| 282 | $HOME/.vnc/default.tigervnc |
| 283 | Default configuration options. |
Pierre Ossman | 1ec4531 | 2014-09-17 16:55:25 +0200 | [diff] [blame] | 284 | .TP |
| 285 | $HOME/.vnc/x509_ca.pem |
| 286 | Default CA certificate for authenticating servers. |
| 287 | .TP |
| 288 | $HOME/.vnc/x509_crl.pem |
| 289 | Default certificate revocation list. |
Pierre Ossman | 591c7bf | 2014-09-17 16:20:43 +0200 | [diff] [blame] | 290 | |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 291 | .SH SEE ALSO |
| 292 | .BR Xvnc (1), |
| 293 | .BR vncpasswd (1), |
| 294 | .BR vncconfig (1), |
| 295 | .BR vncserver (1) |
| 296 | .br |
| 297 | http://www.tigervnc.org |
| 298 | |
| 299 | .SH AUTHOR |
Pierre Ossman | e37a144 | 2014-09-17 14:08:16 +0200 | [diff] [blame] | 300 | Tristan Richardson, RealVNC Ltd. and others. |
DRC | e66060d | 2011-06-25 03:02:10 +0000 | [diff] [blame] | 301 | |
| 302 | VNC was originally developed by the RealVNC team while at Olivetti |
| 303 | Research Ltd / AT&T Laboratories Cambridge. TightVNC additions were |
Pierre Ossman | e37a144 | 2014-09-17 14:08:16 +0200 | [diff] [blame] | 304 | implemented by Constantin Kaplinsky. Many other people have since |
| 305 | participated in development, testing and support. This manual is part |
| 306 | of the TigerVNC software suite. |