1088N/A# Copyright (c) 2007, 2011, Oracle
and/or its affiliates. All rights reserved.
493N/A# Permission is hereby granted, free of charge, to any person obtaining a
919N/A# copy of this software and associated documentation files (the "Software"),
919N/A# to deal in the Software without restriction, including without limitation
919N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A#
and/or sell copies of the Software, and to permit persons to whom the
919N/A# Software is furnished to do so, subject to the following conditions:
919N/A# The above copyright notice and this permission notice (including the next
919N/A# paragraph) shall be included in all copies or substantial portions of the
919N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A# DEALINGS IN THE SOFTWARE.
1124N/A librfb_la_CPPFLAGS = -I$(top_srcdir)/common -I$(top_srcdir)/win
1124N/A-librfb_la_LIBADD = @GNUTLS_LIBS@
1124N/A+librfb_la_LIBADD = @GNUTLS_LIBS@ $(LIBS)
822N/A librfb_la_CPPFLAGS += -I$(top_srcdir)/jpeg
822N/A@@ -39,6 +39,7 @@ $vncClasses = "";
822N/A@@ -75,6 +76,15 @@ $defaultXStartup
822N/A "[ -r \$HOME/.Xresources ] && xrdb \$HOME/.Xresources\n".
822N/A "xsetroot -solid grey\n".
822N/A "xterm -geometry 80x24+10+10 -ls -title \"\$VNCDESKTOP Desktop\" &\n".
1088N/A libvnccommon_la_CPPFLAGS = -DVENDOR_RELEASE="$(VENDOR_RELEASE)" \
1124N/A -DVENDOR_STRING="\"$(VENDOR_STRING)\"" -I$(TIGERVNC_SRCDIR)/common -UHAVE_CONFIG_H \
1088N/A@@ -32,10 +32,17 @@ Xvnc_CPPFLAGS = $(XVNC_CPPFLAGS) -DNO_HW
1124N/A Xvnc_CPPFLAGS = $(XVNC_CPPFLAGS) -DNO_HW_ONLY_EXTS -DNO_MODULE_EXTS -UHAVE_CONFIG_H \
1088N/A -DXFree86Server -DVENDOR_RELEASE="$(VENDOR_RELEASE)" \
1124N/A -DVENDOR_STRING="\"$(VENDOR_STRING)\"" -I$(TIGERVNC_SRCDIR)/common \
1088N/A- -I$(top_srcdir)/include -I$(includedir)/pixman-1 -I$(includedir)
1088N/A+ -I$(top_srcdir)/include $(PIXMAN_CFLAGS)
965N/A- $(XSERVER_LIBS) $(XSERVER_SYS_LIBS) -lX11
965N/A+ $(XSERVER_LIBS) $(XSERVER_SYS_LIBS)
606N/A Xvnc_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
1088N/A- -I$(includedir)/pixman-1 -I$(includedir)
1088N/A libvnc_la_LDFLAGS = -module -avoid-version
879N/A@@ -62,8 +69,8 @@ BUILT_SOURCES = $(nodist_Xvnc_SOURCES)
606N/A cat $(top_srcdir)
/fb/fb.h | sed -e 's,and,c_and,' -e 's,xor,c_xor,' > $(srcdir)/
fb.h 851N/A@@ -67,8 +67,7 @@ List all the options and parameters
235N/A VNC parameters can be set both via the command-line and through the
981N/A-\fBvncconfig\fP(1) program, and with a VNC-enabled Xorg server via Options
851N/A+\fBvncconfig\fP(1) program.
235N/A Parameters can be turned on with -\fIparam\fP or off with
235N/A -\fIparam\fP=0. Parameters which take a value can be specified as
822N/A@@ -221,12 +221,12 @@ is a hexadecimal keysym. For example, to
235N/A-By configuring the \fBinetd\fP(1) service appropriately, Xvnc can be launched
235N/A+By configuring the \fBinetd\fP(1M) service appropriately, Xvnc can be launched
235N/A on demand when a connection comes in, rather than having to be started
235N/A manually. When given the \fB-inetd\fP option, instead of listening for TCP
235N/A connections on a given port it uses its standard input and standard output.
235N/A In the nowait mode, Xvnc uses its standard input and output directly as the
235N/A connection to a viewer. It never has a listening socket, so cannot accept
235N/A further connections from viewers (it can however connect out to listening
822N/A@@ -234,17 +234,26 @@ viewers by use of the vncconfig program)
235N/A same TCP port result in inetd spawning off a new Xvnc to deal with each
235N/A connection. When the connection to the viewer dies, the Xvnc and any
235N/A associated X clients die. This behaviour is most useful when combined with the
235N/A-XDMCP options -query and -once. An typical example in
inetd.conf might be (all
235N/A-localhost -once securitytypes=none
235N/A-In this example a viewer connection to :50 will result in a new Xvnc for that
235N/A-connection which should display the standard XDM login screen on that machine.
235N/A-Because the user needs to login via XDM, it is usually OK to accept connections
235N/A-without a VNC password in this case.
235N/A+XDMCP options -query and -once.
235N/A+in nowait mode. This service can be enabled via
235N/A+and configured to use other modes or arguments via
235N/A+In this configuration, connecting to :0 will result in a new Xvnc for that
235N/A+connection which should display the standard graphical login screen on that
235N/A+machine. (To enable this, you will also have to enable XDMCP network
235N/A+connections on the login screen. See
235N/A+Because the user needs to login via this screen, it is usually OK to accept
235N/A+connections without a VNC password in this case.
235N/A In the wait mode, when the first connection comes in, inetd gives the listening
235N/A socket to Xvnc. This means that for a given TCP port, there is only ever one
235N/A Xvnc at a time. Further viewer connections to the same port are accepted by
822N/A@@ -252,14 +261,14 @@ the same Xvnc in the normal way. Even w
235N/A the Xvnc will continue to run. If this is used with the XDMCP options -query
235N/A and -once, the Xvnc and associated X clients will die when the user logs out of
235N/A the X session in the normal way. It is important to use a VNC password in this
235N/A+case. A typical command line to include in the service exec property might be:
235N/A In fact typically, you would have one entry for each user who uses VNC
235N/A regularly, each of whom has their own dedicated TCP port which they use. In
235N/A-this example, when user "james" connects to :51, he enters his VNC password,
235N/A-then gets the XDM login screen where he logs in in the normal way. However,
235N/A+this example, when user "james" connects, he enters his VNC password,
235N/A+then gets the login screen where he logs in in the normal way. However,
235N/A unlike the previous example, if he disconnects, the session remains persistent,
235N/A and when he reconnects he will get the same session back again. When he logs
235N/A out of the X session, the Xvnc will die, but of course a new one will be