VNC parameters can be set both via the command-line and through the tigervncconfig(1) program, and with a
VNC-enabled Xorg server via Options entries in the xorg.conf file.
Parameters can be turned on with -param or off with -param=0. Parameters which take a value can be
specified as -paramvalue. Other valid forms are param=value -param=value --param=value. Parameter
names are case-insensitive.
-desktopdesktop-name
Each desktop has a name which may be displayed by the viewer. It defaults to "<user>@<hostname>".
-rfbportport
Specifies the TCP port on which Xtigervnc listens for connections from viewers (the protocol used
in VNC is called RFB - "remote framebuffer"). The default is 5900 plus the display number.
Specify -1 to disable listening on a TCP port.
-UseIPv4
Use IPv4 for incoming and outgoing connections. Default is on.
-UseIPv6
Use IPv6 for incoming and outgoing connections. Default is on.
-rfbunixpathpath
Specifies the path of a Unix domain socket on which Xtigervnc listens for connections from
viewers.
-rfbunixmodemode
Specifies the mode of the Unix domain socket. The default is 0600.
-rfbauthpasswd-file,-PasswordFilepasswd-file
Password file for VNC authentication. There is no default, you should specify the password file
explicitly. Password file should be created with the tigervncpasswd(1) utility. The file is
accessed each time a connection comes in, so it can be changed on the fly.
-AcceptCutText
Accept clipboard updates from clients. Default is on.
-MaxCutTextbytes
The maximum size of a clipboard update that will be accepted from a client. Default is 262144.
-SendCutText
Send clipboard changes to clients. Default is on.
-SendPrimary
Send the primary selection and cut buffer to the server as well as the clipboard selection.
Default is on.
-AcceptPointerEvents
Accept pointer movement and button events from clients. Default is on.
-AcceptKeyEvents
Accept key press and release events from clients. Default is on.
-AcceptSetDesktopSize
Accept requests to resize the size of the desktop. Default is on.
-DisconnectClients
Disconnect existing clients if an incoming connection is non-shared. Default is on. If
DisconnectClients is false, then a new non-shared connection will be refused while there is a
client active. When combined with NeverShared this means only one client is allowed at a time.
-NeverShared
Never treat incoming connections as shared, regardless of the client-specified setting. Default is
off.
-AlwaysShared
Always treat incoming connections as shared, regardless of the client-specified setting. Default
is off.
-Protocol3.3
Always use protocol version 3.3 for backwards compatibility with badly-behaved clients. Default is
off.
-FrameRatefps
The maximum number of updates per second sent to each client. If the screen updates any faster
then those changes will be aggregated and sent in a single update to the client. Note that this
only controls the maximum rate and a client may get a lower rate when resources are limited.
Default is 60.
-CompareFBmode
Perform pixel comparison on framebuffer to reduce unnecessary updates. Can be either 0 (off), 1
(always) or 2 (auto). Default is 2.
-ImprovedHextile
Use improved compression algorithm for Hextile encoding which achieves better compression ratios
by the cost of using slightly more CPU time. Default is on.
-SecurityTypessec-types
Specify which security scheme to use for incoming connections. Valid values are a comma separated
list of None, VncAuth, Plain, TLSNone, TLSVnc, TLSPlain, X509None, X509Vnc, X509Plain, RA2, RA2ne,
RA2_256 and RA2ne_256. Default is TLSVnc,VncAuth.
-Passwordpassword
Obfuscated binary encoding of the password which clients must supply to access the server. Using
this parameter is insecure, use PasswordFile parameter instead.
-PlainUsersuser-list
A comma separated list of user names that are allowed to authenticate via any of the "Plain"
security types (Plain, TLSPlain, etc.). Specify * to allow any user to authenticate using this
security type. Specify %u to allow the user of the server process. Default is to deny all users.
-pam_servicename,-PAMServicename
PAM service name to use when authentication users using any of the "Plain" security types. Default
is vnc.
-X509Certpath
Path to a X509 certificate in PEM format to be used for all X509 based security types (X509None,
X509Vnc, etc.).
-X509Keypath
Private key counter part to the certificate given in X509Cert. Must also be in PEM format.
-GnuTLSPrioritypriority
GnuTLS priority string that controls the TLS session’s handshake algorithms. See the GnuTLS
manual for possible values. For GnuTLS < 3.6.3 the default value will be NORMAL to use upstream
default. For newer versions of GnuTLS system-wide crypto policy will be used.
-RSAKeypath
Path to the RSA key for the RSA-AES security types (RA2, RA2ne, RA2_256 and RA2ne_256) in PEM
format.
-RequireUsername
Require username for the RSA-AES security types. Default is off.
-UseBlacklist
Temporarily reject connections from a host if it repeatedly fails to authenticate. Default is on.
-BlacklistThresholdcount
The number of unauthenticated connection attempts allowed from any individual host before that
host is black-listed. Default is 5.
-BlacklistTimeoutseconds
The initial timeout applied when a host is first black-listed. The host cannot re-attempt a
connection until the timeout expires. Default is 10.
-IdleTimeoutseconds
The number of seconds after which an idle VNC connection will be dropped. Default is 0, which
means that idle connections will never be dropped.
-MaxDisconnectionTimeseconds
Terminate when no client has been connected for N seconds. Default is 0.
-MaxConnectionTimeseconds
Terminate when a client has been connected for N seconds. Default is 0.
-MaxIdleTimeseconds
Terminate after N seconds of user inactivity. Default is 0.
-QueryConnect
Prompts the user of the desktop to explicitly accept or reject incoming connections. Default is
off.
The tigervncconfig(1) program must be running on the desktop in order for QueryConnect to be
supported.
-QueryConnectTimeoutseconds
Number of seconds to show the Accept Connection dialog before rejecting the connection. Default
is 10.
-localhost
Only allow connections from the same machine. Useful if you use SSH and want to stop non-SSH
connections from any other hosts.
-Loglogname:dest:level
Configures the debug log settings. dest can currently be stderr, stdout or syslog, and level is
between 0 and 100, 100 meaning most verbose output. logname is usually * meaning all, but you can
target a specific source file if you know the name of its "LogWriter". Default is *:stderr:30.
-RemapKeysmapping
Sets up a keyboard mapping. mapping is a comma-separated string of character mappings, each of
the form char->char, or char<>char, where char is a hexadecimal keysym. For example, to exchange
the " and @ symbols you would specify the following:
RemapKeys=0x22<>0x40
-AvoidShiftNumLock
Key affected by NumLock often require a fake Shift to be inserted in order for the correct symbol
to be generated. Turning on this option avoids these extra fake Shift events but may result in a
slightly different symbol (e.g. a Return instead of a keypad Enter).
-RawKeyboard
Send keyboard events straight through and avoid mapping them to the current keyboard layout. This
effectively makes the keyboard behave according to the layout configured on the server instead of
the layout configured on the client. Default is off.
-AllowOverride
Comma separated list of parameters that can be modified using VNC extension. Parameters can be
modified for example using tigervncconfig(1) program from inside a running session.
Allowing override of parameters such as PAMService or PasswordFile can negatively impact security
if Xtigervnc runs under different user than the programs allowed to override the parameters.
When NoClipboard parameter is set, allowing override of SendCutText and AcceptCutText has no
effect.
Default is desktop,AcceptPointerEvents,SendCutText,AcceptCutText,SendPrimary,SetPrimary.