summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrunge <runge>2006-02-25 05:10:37 +0000
committerrunge <runge>2006-02-25 05:10:37 +0000
commit79310af7e7a289d2baf1bdc295daefdcc76ecc0e (patch)
treeda68674a1beef5ce0ba807187657ca5fe215f68c
parentb7773ea6e683e5fcfae5bf020828596c5f90b7d3 (diff)
downloadlibvncserver-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.zip
libvncserver-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.tar.gz
x11vnc: -unixpw and -stunnel. Add clipboard to input control.
-rw-r--r--ChangeLog4
-rw-r--r--configure.ac4
-rw-r--r--x11vnc/ChangeLog5
-rw-r--r--x11vnc/Makefile.am2
-rw-r--r--x11vnc/README1948
-rw-r--r--x11vnc/allowed_input_t.h1
-rw-r--r--x11vnc/cleanup.c5
-rw-r--r--x11vnc/connections.c37
-rw-r--r--x11vnc/cursor.c4
-rw-r--r--x11vnc/help.c99
-rw-r--r--x11vnc/inet.c18
-rw-r--r--x11vnc/inet.h1
-rw-r--r--x11vnc/keyboard.c32
-rw-r--r--x11vnc/keyboard.h2
-rw-r--r--x11vnc/options.c5
-rw-r--r--x11vnc/options.h5
-rw-r--r--x11vnc/pointer.c4
-rw-r--r--x11vnc/remote.c27
-rw-r--r--x11vnc/scan.c4
-rw-r--r--x11vnc/screen.c114
-rw-r--r--x11vnc/selection.c8
-rw-r--r--x11vnc/sslcmds.c236
-rw-r--r--x11vnc/sslcmds.h11
-rwxr-xr-xx11vnc/tkx11vnc87
-rw-r--r--x11vnc/tkx11vnc.h87
-rw-r--r--x11vnc/unixpw.c442
-rw-r--r--x11vnc/unixpw.h15
-rw-r--r--x11vnc/user.c5
-rw-r--r--x11vnc/userinput.c5
-rw-r--r--x11vnc/x11vnc.1111
-rw-r--r--x11vnc/x11vnc.c91
-rw-r--r--x11vnc/x11vnc.h1
-rw-r--r--x11vnc/x11vnc_defs.c2
-rw-r--r--x11vnc/xdamage.c2
-rw-r--r--x11vnc/xevents.c13
-rw-r--r--x11vnc/xrecord.c4
36 files changed, 2355 insertions, 1086 deletions
diff --git a/ChangeLog b/ChangeLog
index 518bd3d..a1678ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-24 Karl Runge <runge@karlrunge.com>
+ * x11vnc: -unixpw and -stunnel options. Add clipboard input
+ to per-client input controls.
+
2006-02-24 Rohit Kumar <rokumar@novell.com>
* main.c, rfbtightserver.c, rfb.h: added method to get
extension specific client data.
diff --git a/configure.ac b/configure.ac
index 0b4c7e0..61733fa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -345,7 +345,7 @@ AC_SUBST(WSOCKLIB)
# Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h pwd.h sys/wait.h utmpx.h])
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
@@ -377,7 +377,7 @@ AC_FUNC_VPRINTF
AC_FUNC_FORK
AC_CHECK_LIB(nsl,gethostbyname)
AC_CHECK_LIB(socket,socket)
-AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr setsid getpwuid getpwnam getuid geteuid setuid waitpid setutxent])
+AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr setsid getpwuid getpwnam getuid geteuid setuid seteuid setegid waitpid setutxent grantpt])
# check, if shmget is in cygipc.a
AC_CHECK_LIB(cygipc,shmget)
diff --git a/x11vnc/ChangeLog b/x11vnc/ChangeLog
index 8acda7c..5fd28da 100644
--- a/x11vnc/ChangeLog
+++ b/x11vnc/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-24 Karl Runge <runge@karlrunge.com>
+ * x11vnc: -unixpw for Unix password auth, -stunnel to setup
+ stunnel(1) for an SSL tunnel on the server end. Add clipboard
+ input to per-client input controls.
+
2006-02-20 Karl Runge <runge@karlrunge.com>
* x11vnc: add SIGINT SIGQUIT handling for run_user_command(),
set some signal handlers to SIG_DLF for forked children,
diff --git a/x11vnc/Makefile.am b/x11vnc/Makefile.am
index 4707e14..45ec824 100644
--- a/x11vnc/Makefile.am
+++ b/x11vnc/Makefile.am
@@ -13,7 +13,7 @@ endif
if HAVE_X
bin_PROGRAMS=x11vnc
-x11vnc_SOURCES = 8to24.c cleanup.c connections.c cursor.c gui.c help.c inet.c keyboard.c options.c pointer.c rates.c remote.c scan.c screen.c selection.c solid.c user.c userinput.c util.c win_utils.c x11vnc.c x11vnc_defs.c xdamage.c xevents.c xinerama.c xkb_bell.c xrandr.c xrecord.c xwrappers.c 8to24.h allowed_input_t.h blackout_t.h cleanup.h connections.h cursor.h enums.h gui.h help.h inet.h keyboard.h options.h params.h pointer.h rates.h remote.h scan.h screen.h scrollevent_t.h selection.h solid.h tkx11vnc.h user.h userinput.h util.h win_utils.h winattr_t.h x11vnc.h xdamage.h xevents.h xinerama.h xkb_bell.h xrandr.h xrecord.h xwrappers.h
+x11vnc_SOURCES = 8to24.c cleanup.c connections.c cursor.c gui.c help.c inet.c keyboard.c options.c pointer.c rates.c remote.c scan.c screen.c selection.c solid.c sslcmds.c unixpw.c user.c userinput.c util.c win_utils.c x11vnc.c x11vnc_defs.c xdamage.c xevents.c xinerama.c xkb_bell.c xrandr.c xrecord.c xwrappers.c 8to24.h allowed_input_t.h blackout_t.h cleanup.h connections.h cursor.h enums.h gui.h help.h inet.h keyboard.h options.h params.h pointer.h rates.h remote.h scan.h screen.h scrollevent_t.h selection.h solid.h sslcmds.h tkx11vnc.h unixpw.h user.h userinput.h util.h win_utils.h winattr_t.h x11vnc.h xdamage.h xevents.h xinerama.h xkb_bell.h xrandr.h xrecord.h xwrappers.h
INCLUDES=@X_CFLAGS@
x11vnc_LDADD=$(LDADD) @X_LIBS@ $(LD_CYGIPC)
endif
diff --git a/x11vnc/README b/x11vnc/README
index 89fdf8a..340012b 100644
--- a/x11vnc/README
+++ b/x11vnc/README
@@ -1,5 +1,5 @@
-x11vnc README file Date: Mon Feb 20 13:57:38 EST 2006
+x11vnc README file Date: Fri Feb 24 23:32:22 EST 2006
The following information is taken from these URLs:
@@ -15,7 +15,7 @@ http://www.karlrunge.com/x11vnc/index.html:
x11vnc: a VNC server for real X displays
(to [1]FAQ) (to [2]Downloads) (to [3]Building) (to
-[4]Donations) (to [5]Beta Test)
+[4]Beta Test) (to [5]Donations) [6][PayPal]
x11vnc allows one to remotely view and interact with real X displays
(i.e. a display corresponding to a physical monitor, keyboard, and
@@ -27,8 +27,8 @@ x11vnc: a VNC server for real X displays
problems centered around esoteric C++ toolkits. x11vnc is written in
plain C and uses only standard libraries. I also added a some
enhancements to improve the interactive response, add esoteric
- features, etc. The [6]FAQ contains a lot of information and solutions
- to many problems, but please feel free to [7]contact me if you have
+ features, etc. The [7]FAQ contains a lot of information and solutions
+ to many problems, but please feel free to [8]contact me if you have
problems or questions.
Background:
@@ -40,9 +40,9 @@ x11vnc: a VNC server for real X displays
framebuffer (RFB) protocol
Some VNC links:
- * [8]http://www.uk.research.att.com/vnc/
- * [9]http://www.realvnc.com
- * [10]http://www.tightvnc.com
+ * [9]http://www.uk.research.att.com/vnc/
+ * [10]http://www.realvnc.com
+ * [11]http://www.tightvnc.com
For Unix, the traditional VNC implementation includes a virtual X11
server Xvnc (usually launched via the vncserver command) that is not
@@ -80,9 +80,9 @@ x11vnc: a VNC server for real X displays
display you wish to view is "far-away.east:0" and the workstation you
are presently working at is "sitting-here.west".
- Step 0. Download x11vnc ([11]see below) and have it available to run
+ Step 0. Download x11vnc ([12]see below) and have it available to run
on far-away.east. Similarly, have a VNC viewer (e.g. vncviewer) ready
- to run on sitting-here.west. We recommend [12]TightVNC Viewers.
+ to run on sitting-here.west. We recommend [13]TightVNC Viewers.
Step 1. By some means log in to far-away.east and get a command shell
running there. You can use ssh, rlogin, telnet, or any other method to
@@ -101,11 +101,11 @@ x11vnc: a VNC server for real X displays
display (i.e. no viewer clients yet).
Common Gotcha: To get X11 permissions right, you may also need to set
- the XAUTHORITY environment variable (or use the [13]-auth option) to
+ the XAUTHORITY environment variable (or use the [14]-auth option) to
point to the correct MIT-MAGIC-COOKIE file (e.g.
/home/joe/.Xauthority). If x11vnc does not have the authority to
connect to the display it exits immediately. More on how to fix this
- [14]below.
+ [15]below.
If you suspect an X11 permissions problem do this simple test: while
sitting at the physical X display open a terminal window
@@ -113,7 +113,7 @@ x11vnc: a VNC server for real X displays
successfully in that terminal without any need for command line
options. If that works OK then you know X11 permissions are the only
thing preventing it from working when you try to start x11vnc via a
- remote shell. Then fix this with the tips [15]below.
+ remote shell. Then fix this with the tips [16]below.
When x11vnc starts up there will then be much chatter printed out,
until it finally says something like:
@@ -132,8 +132,8 @@ x11vnc: a VNC server for real X displays
viewers for Unix, Windows, MacOS, Java-enabled web browsers, and even
for PDA's like the Palm Pilot! You can use any of them to connect to
x11vnc (see the above VNC links under "Background:" on how to obtain a
- viewer for your platform or see [16]this FAQ. For Solaris, vncviewer
- is available in the [17]Companion CD package SFWvnc ).
+ viewer for your platform or see [17]this FAQ. For Solaris, vncviewer
+ is available in the [18]Companion CD package SFWvnc ).
In this example we'll use the Unix vncviewer program on sitting-here
by typing the following command in a second terminal window:
@@ -143,13 +143,13 @@ x11vnc: a VNC server for real X displays
That should pop up a viewer window on sitting-here.west showing and
allowing interaction with the far-away.east:0 X11 desktop. Pretty
nifty! When finished, exit the viewer: the remote x11vnc process will
- shutdown automatically (or you can use the [18]-forever option to have
+ shutdown automatically (or you can use the [19]-forever option to have
it wait for additional viewer connections).
Shortcut: Of course if you left x11vnc running on far-away.east:0 in a
- terminal window with the [19]-forever option or as a [20]service,
+ terminal window with the [20]-forever option or as a [21]service,
you'd only have to do Step 3 as you moved around. Be sure to use a VNC
- [21]Password or [22]other measures if you do that.
+ [22]Password or [23]other measures if you do that.
Desktop Sharing: The above more or less assumed nobody was sitting at
@@ -165,7 +165,7 @@ x11vnc: a VNC server for real X displays
For these cases it should be obvious how it is done. The above steps
will work, but more easily the user sitting at far-away.east:0 simply
starts up x11vnc from a terminal window, after which the guests would
- start their VNC viewers. For this usage mode the "[23]-connect
+ start their VNC viewers. For this usage mode the "[24]-connect
host1,host2" option may be of use automatically connect to vncviewers
in "-listen" mode on the list of hosts.
_________________________________________________________________
@@ -193,13 +193,13 @@ splay :0'
Note that "x11vnc -localhost ..." limits incoming vncviewer
connections to only those from the same machine. This is very natural
for ssh tunnelling (the redirection appears to come from the same
- machine). Use of a [24]VNC password is also strongly recommended.
+ machine). Use of a [25]VNC password is also strongly recommended.
Some VNC viewers will do the ssh tunnelling for you automatically, the
TightVNC vncviewer does this when the "-via far-away.east" option is
supplied to it (this requires x11vnc to be already running on
- far-away.east or having it started by [25]inetd(1)). See the 3rd
- script example [26]below for more info.
+ far-away.east or having it started by [26]inetd(1)). See the 3rd
+ script example [27]below for more info.
If the machine you SSH into is not the same machine with the X display
you wish to view (e.g. your company provides incoming SSH access to a
@@ -208,7 +208,7 @@ splay :0'
(ssh, rsh, etc.) to the workstation machine 'otherhost' and then start
up x11vnc on it (if it isn't already running). For an automatic way to
use a gateway and have all the network traffic encrypted (including
- inside the firewall) see [27]chaining ssh's below
+ inside the firewall) see [28]chaining ssh's below
_________________________________________________________________
@@ -217,7 +217,7 @@ splay :0'
above port and display numbers may change a bit (e.g. -> 5901 and :1).
However, if you "know" port 5900 will be free on the local and remote
machines, you can easily automate the above two steps by using the
- x11vnc option [28]-bg (forks into background after connection to the
+ x11vnc option [29]-bg (forks into background after connection to the
display is set up) or using the -f option of ssh. Some example scripts
are shown below.
_________________________________________________________________
@@ -248,7 +248,7 @@ done
#2. Another method is to start the VNC viewer in listen mode
"vncviewer -listen" and have x11vnc initiate a reverse connection
- using the [29]-connect option:
+ using the [30]-connect option:
#!/bin/sh
# usage: x11vnc_ssh <host>:<xdisplay>
# e.g.: x11vnc_ssh snoopy.peanuts.com:0
@@ -290,7 +290,7 @@ export VNC_VIA_CMD
vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
Of course if you already have the x11vnc running waiting for
- connections (or have it started out of [30]inetd(1)), you can simply
+ connections (or have it started out of [31]inetd(1)), you can simply
use the TightVNC "vncviewer -via gateway host:port" in its default
mode to provide secure ssh tunnelling.
_________________________________________________________________
@@ -298,11 +298,11 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
VNC password file: Also note in the #1. example script that the
- [31]option "-rfbauth .vnc/passwd" provides additional protection by
+ [32]option "-rfbauth .vnc/passwd" provides additional protection by
requiring a VNC password for every VNC viewer that connects. The
- vncpasswd or storepasswd programs, or the x11vnc [32]-storepasswd
+ vncpasswd or storepasswd programs, or the x11vnc [33]-storepasswd
option can be used to create the password file. x11vnc also has the
- slightly less secure [33]-passwdfile and "-passwd XXXXX" [34]options
+ slightly less secure [34]-passwdfile and "-passwd XXXXX" [35]options
to specify passwords.
Very Important: It is up to YOU to tell x11vnc to use password
@@ -310,7 +310,7 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
automatically or force you to. The same goes for encrypting the
channel between the viewer and x11vnc: it is up to you to use ssh,
stunnel, VPN, etc. For additional safety, also look into the -allow
- and -localhost [35]options and building x11vnc with [36]tcp_wrappers
+ and -localhost [36]options and building x11vnc with [37]tcp_wrappers
support to limit host access.
@@ -354,27 +354,27 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \
Downloading x11vnc:
- x11vnc is a contributed program to the [37]LibVNCServer project at
+ x11vnc is a contributed program to the [38]LibVNCServer project at
SourceForge.net. I use libvncserver for all of the VNC aspects; I
couldn't have done without it. The full source code may be found and
downloaded (either file-release tarball or CVS tree) from the above
- link. As of Feb 2006, the [38]x11vnc-0.8.tar.gz source package is
- released (recommended download). The [39]x11vnc 0.8 release notes.
+ link. As of Feb 2006, the [39]x11vnc-0.8.tar.gz source package is
+ released (recommended download). The [40]x11vnc 0.8 release notes.
The x11vnc package is the subset of the libvncserver package needed to
build the x11vnc program. Also, you can get a copy of my latest,
- bleeding edge [40]x11vnc-0.8.1.tar.gz tarball to build the most up to
+ bleeding edge [41]x11vnc-0.8.1.tar.gz tarball to build the most up to
date one.
- Precompiled Binaries/Packages: See the [41]FAQ below for information
+ Precompiled Binaries/Packages: See the [42]FAQ below for information
about where you might obtain a precompiled x11vnc binary from 3rd
parties and some ones I create.
To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix)
try these links:
- * [42]http://www.tightvnc.com/download.html
- * [43]http://www.realvnc.com/download-free.html
- * [44]http://sourceforge.net/projects/cotvnc/
+ * [43]http://www.tightvnc.com/download.html
+ * [44]http://www.realvnc.com/download-free.html
+ * [45]http://sourceforge.net/projects/cotvnc/
More tools: Here is a rsh/ssh wrapper script rx11vnc that attempts to
@@ -385,8 +385,8 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \
rx11vnc.pl that attempts to tunnel the vnc traffic through an ssh port
redirection (and does not assume port 5900 is free). Have a look at
them to see what they do and customize as needed:
- * [45]rx11vnc wrapper script
- * [46]rx11vnc.pl wrapper script to tunnel traffic thru ssh
+ * [46]rx11vnc wrapper script
+ * [47]rx11vnc.pl wrapper script to tunnel traffic thru ssh
_________________________________________________________________
@@ -417,8 +417,8 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \
Note: Currently gcc is required to build libvncserver. In some cases
it will build with non-gcc compilers, but the resulting binary
sometimes fails to run properly. For Solaris pre-built gcc binaries
- are at [47]http://www.sunfreeware.com/. Some Solaris pre-built x11vnc
- binaries are [48]here.
+ are at [48]http://www.sunfreeware.com/. Some Solaris pre-built x11vnc
+ binaries are [49]here.
However, one user reports it does work fine when built with Sun Studio
10, so YMMV. In fact, here is a little build script to do this on
@@ -438,14 +438,14 @@ export MAKE AM_CFLAGS
$MAKE
In general you can use the "make -e" trick if you don't like
- libvncserver's choice of AM_CFLAGS. See the [49]build scripts below
+ libvncserver's choice of AM_CFLAGS. See the [50]build scripts below
for more ideas.
_________________________________________________________________
Misc. Build problems: We collect here rare build problems some users
have reported and the corresponding workarounds. See also the
- [50]FAQ's on building.
+ [51]FAQ's on building.
One user had a problem where the build script below was failing
because his work environment had the ENV variable set to a script that
@@ -503,9 +503,9 @@ r/sfw; make'
If your system does not have these libraries at all you can get the
source for the libraries to build them: libjpeg is available at
- [51]ftp://ftp.uu.net/graphics/jpeg/ and zlib at
- [52]http://www.gzip.org/zlib/. See also
- [53]http://www.sunfreeware.com/ for Solaris binary packages of these
+ [52]ftp://ftp.uu.net/graphics/jpeg/ and zlib at
+ [53]http://www.gzip.org/zlib/. See also
+ [54]http://www.sunfreeware.com/ for Solaris binary packages of these
libraries as well as for gcc. Normally they will install into
/usr/local but you can install them anywhere with the
--prefix=/path/to/anywhere, etc.
@@ -571,7 +571,7 @@ ls -l ./x11vnc/x11vnc
script.
If you need to build on Solaris 2.5.1 or earlier or other older Unix
- OS's, see [54]this workaround FAQ.
+ OS's, see [55]this workaround FAQ.
Building on FreeBSD, OpenBSD, ...: The jpeg libraries seem to be in
@@ -608,33 +608,33 @@ make
Thanks to those who helped beta test x11vnc 0.8 released in Feb 2006!
- The version 0.8.1 beta tarball is kept here [55]x11vnc-0.8.1.tar.gz
+ The version 0.8.1 beta tarball is kept here [56]x11vnc-0.8.1.tar.gz
(no current plans for what features will be in it or when it will be
released.)
There are also some Linux, Solaris, and other OS test binaries
- [56]here. Please kick the tires and report bugs, performance
- regressions, undesired behavior, etc. to [57]me.
+ [57]here. Please kick the tires and report bugs, performance
+ regressions, undesired behavior, etc. to [58]me.
Here are the release notes for the recent 0.8 release:
* TightVNC file transfer added to libvncserver by Rohit Kumar is
- enabled (use [58]-nofilexfer to disable).
- * The [59]-passwdfile option has been enhanced to handle any number
+ enabled (use [59]-nofilexfer to disable).
+ * The [60]-passwdfile option has been enhanced to handle any number
of full-access and view only passwords in an easy to maintain
format. Automatic rereading or file removal can be enabled.
- * The [60]-8to24 option enables some multi-depth viewing on systems
- that don't support [61]-overlay. The 8bpp regions are transformed
+ * The [61]-8to24 option enables some multi-depth viewing on systems
+ that don't support [62]-overlay. The 8bpp regions are transformed
to depth 24 TrueColor.
- * The [62]-loop option will run x11vnc in an outer loop restarting
+ * The [63]-loop option will run x11vnc in an outer loop restarting
each time (useful for situations where the X server restarts
often).
- * The [63]-afteraccept option is like [64]-accept however it enables
+ * The [64]-afteraccept option is like [65]-accept however it enables
running a user supplied command after client authentication has
taken place. The RFB_* environment variables have been extended.
- * The [65]-slow_fb allows for slow polling for special purpose
+ * The [66]-slow_fb allows for slow polling for special purpose
applications (e.g. video).
- * [66]-blackout noptr,WxH+X+Y,... will prevent the pointer from
+ * [67]-blackout noptr,WxH+X+Y,... will prevent the pointer from
going into a blacked out region.
* The x11vnc source code has gone through a major reorganization.
The build has been enhanced and many bugs fixed.
@@ -642,10 +642,10 @@ make
Here are some notes about features added in 0.7.2. Checking/Testing
them is still useful and appreciated!
- Note that the [67]X DAMAGE feature will be on by default and so I am
+ Note that the [68]X DAMAGE feature will be on by default and so I am
interested if that causes any problems. I'd also like to have the new
- [68]wireframe move/resize, the [69]wireframe copyrect translation, and
- the [70]scroll detection+copyrect features all on by default as well
+ [69]wireframe move/resize, the [70]wireframe copyrect translation, and
+ the [71]scroll detection+copyrect features all on by default as well
since when they work they give a great speedup! (CopyRect is a VNC
encoding and is very fast because the viewer already has the image
data that needs to be copied: e.g. it just moves it to another part of
@@ -681,10 +681,10 @@ make
a solid background while using x11vnc. You can turn the pretty
background image back on when you are using the display directly.
Update: As of Feb/2005 in the libvncserver CVS, x11vnc has the
- [71]-solid [color] option that works on recent GNOME, KDE, and CDE and
+ [72]-solid [color] option that works on recent GNOME, KDE, and CDE and
also on classic X (background image is on the root window).
- I also find the [72]TightVNC encoding gives the best response for my
+ I also find the [73]TightVNC encoding gives the best response for my
usage (Unix <-> Unix over cable modem). One needs a tightvnc-aware
vncviewer to take advantage of this encoding.
@@ -696,16 +696,16 @@ make
is X11's default listening port). Had port 5900 been taken by some
other application, x11vnc would have next tried 5901. That would mean
the viewer command above should be changed to vncviewer
- far-away.east:1. You can force the port with the "[73]-rfbport NNNN"
+ far-away.east:1. You can force the port with the "[74]-rfbport NNNN"
option where NNNN is the desired port number. If that port is already
taken, x11vnc will exit immediately. (also see the "SunRay Gotcha"
note below)
Options: x11vnc has (far too) many features that may be activated
- via its [74]command line options. Useful options are, e.g., -scale to
+ via its [75]command line options. Useful options are, e.g., -scale to
do server-side scaling, and -rfbauth passwd-file to use VNC password
protection (the vncpasswd or storepasswd programs, or the x11vnc
- [75]-storepasswd option can be used to create the password file).
+ [76]-storepasswd option can be used to create the password file).
Algorithm: How does x11vnc do it? Rather brute-forcedly: it
continuously polls the X11 framebuffer for changes using
@@ -732,19 +732,22 @@ make
first testing out the programs. You get an interesting
recursive/feedback effect where vncviewer images keep popping up each
one contained in the previous one and slightly shifted a bit by the
- window manager decorations. There will be an [76]even more interesting
+ window manager decorations. There will be an [77]even more interesting
effect if -scale is used. Also, if the XKEYBOARD is supported and the
XBell "beeps" once, you get an infinite loop of beeps going off.
Although all of this is mildly exciting it is not much use: you will
normally run and display the viewer on a different machine!
+ _________________________________________________________________
+
+ Sun Ray Notes:
- SunRay notes: You can run x11vnc on your (connected or disconnected)
- [77]SunRay session (Please remember to use settings like [78]-wait
- 200, [79]-sb 15, and not running a screensaver animation (blank
- instead) to avoid being a resource hog! x11vnc does induce a lot of
- memory I/O from polling the X server. It also helps to have a solid
- background color, e.g. [80]-solid).
+ You can run x11vnc on your (connected or disconnected) [78]SunRay
+ session (Please remember to use settings like [79]-wait 200, [80]-sb
+ 15, and not running a screensaver animation (blank instead) to avoid
+ being a resource hog! x11vnc does induce a lot of memory I/O from
+ polling the X server. It also helps to have a solid background color,
+ e.g. [81]-solid).
You have to know the name of the machine your SunRay session X server
is running on (so you can ssh into it and start x11vnc). You also need
@@ -768,15 +771,15 @@ make
sunray-server:0 (note the :0 corresponding to port 5900, it is not
:137). If it cannot get 5900, it tries for 5901, and so on. You can
also try to force the port (and thereby the VNC display) using the
- [81]-rfbport NNNN option.
+ [82]-rfbport NNNN option.
Especially on a busy Sun Ray server it is often difficult to find free
ports for both VNC and the HTTP Java applet server to listen on. This
- script, [82]vnc_findports may be of use for doing this automatically.
+ script, [83]vnc_findports may be of use for doing this automatically.
It suggests x11vnc command line options based on netstat output that
lists the occupied ports. It is even more difficult to start
vncserver/Xvnc on a busy Sun Ray because then 3 ports (HTTP, VNC, and
- X11), all separated by 100 are needed! This script, [83]findvncports
+ X11), all separated by 100 are needed! This script, [84]findvncports
may be helpful as well. Both scripts start at VNC display :10 and work
their way up.
@@ -791,7 +794,7 @@ make
dies) the slot is not reclaimed. You can view the shm slots with the
"ipcs -mA" command. If there are about 100 then you've probably hit
this problem. They can be cleaned out (by the owner or by root) using
- the ipcrm command. I wrote a script [84]shm_clear that finds the
+ the ipcrm command. I wrote a script [85]shm_clear that finds the
orphans and lists or removes them. Longer term, have your SunRay
sysadmin add something like this to /etc/system:
set shmsys:shminfo_shmmax = 0x2000000
@@ -932,7 +935,7 @@ elif [ "$RFB_MODE" = "gone" -a "$RFB_STATE" = "NORMAL" ]; then
fi
Then we would run x11vnc with these options: "-afteraccept xss_killer
- -gone xss_killer". The [85]-afteraccept option (introduced in version
+ -gone xss_killer". The [86]-afteraccept option (introduced in version
0.8) is used to run a command after a vncviewer has successfully
logged in (note that this is a VNC login, not a Unix login, so you may
not want to do this if you are really paranoid...)
@@ -970,6 +973,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
scenarios carefully. E.g. check corner cases like XDMCP/dtremote,
NSCM, etc.
+ _________________________________________________________________
Limitations:
@@ -979,7 +983,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
than you normally do to minimize the effects (e.g. do fullpage
paging rather than line-by-line scrolling, and move windows in a
single, quick motion). Recent work has provided the
- [86]-scrollcopyrect and [87]-wireframe speedups using the CopyRect
+ [87]-scrollcopyrect and [88]-wireframe speedups using the CopyRect
VNC encoding and other things, but they only speed up certain
activities, not all.
* A rate limiting factor for x11vnc performance is that video
@@ -1026,14 +1030,14 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
be of use for special purpose applications.
Also, a faster and more accurate way is to use the "dummy"
XFree86/Xorg device driver (or our Xdummy wrapper script). See
- [88]this FAQ for details.
+ [89]this FAQ for details.
* Somewhat surprisingly, the X11 mouse (cursor) shape is write-only
and cannot be queried from the X server. So traditionally in
x11vnc the cursor shape stays fixed at an arrow. (see the "-cursor
- X" and "-cursor some" [89]options, however, for a partial hack for
+ X" and "-cursor some" [90]options, however, for a partial hack for
the root window, etc.). However, on Solaris using the SUN_OVL
overlay extension, x11vnc can show the correct mouse cursor when
- the [90]-overlay option is also supplied. A similar thing is done
+ the [91]-overlay option is also supplied. A similar thing is done
on IRIX as well when -overlay is supplied.
More generally, as of Dec/2004 x11vnc supports the new XFIXES
extension (in Xorg and Solaris 10) to query the X server for the
@@ -1045,16 +1049,16 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
the X server supports the XKEYBOARD extension. (Note that on
Solaris XKEYBOARD is disabled by default. Passing +kb to Xsun
enables it).
- * The scroll detection algorithm for the [91]-scrollcopyrect option
+ * The scroll detection algorithm for the [92]-scrollcopyrect option
can give choppy or bunched up transient output and occasionally
painting errors.
* Occasionally a patch of tiles will not get updated correctly.
Evidently a timing related bug and difficult to reproduce...
* Using -threads can expose some bugs in libvncserver.
- Please feel free to [92]contact me if you have any questions,
+ Please feel free to [93]contact me if you have any questions,
problems, or comments about x11vnc, etc.
- Also, some people ask if they can make a donation, see [93]this link
+ Also, some people ask if they can make a donation, see [94]this link
for that.
_________________________________________________________________
@@ -1063,301 +1067,301 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
[Building and Starting]
- [94]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed
+ [95]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed
(null)" or "Xlib: connection to ":0.0" refused by server Xlib: No
protocol specified" and then exits. What do I need to do?
- [95]Q-2: I can't get x11vnc and/or libvncserver to compile.
+ [96]Q-2: I can't get x11vnc and/or libvncserver to compile.
- [96]Q-3: I just built x11vnc successfully, but when I use it my
+ [97]Q-3: I just built x11vnc successfully, but when I use it my
keystrokes and mouse button clicks are ignored (I am able to move the
mouse though).
- [97]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old
+ [98]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old
Unix/Linux) and it doesn't compile!
- [98]Q-5: Where can I get a precompiled x11vnc binary for my Operating
+ [99]Q-5: Where can I get a precompiled x11vnc binary for my Operating
System?
- [99]Q-6: Where can I get a VNC Viewer binary (or source code) for the
+ [100]Q-6: Where can I get a VNC Viewer binary (or source code) for the
Operating System I will be viewing from?
- [100]Q-7: How can I see all of x11vnc's command line options and
+ [101]Q-7: How can I see all of x11vnc's command line options and
documentation on how to use them?
- [101]Q-8: I don't like typing arcane command line options every time I
+ [102]Q-8: I don't like typing arcane command line options every time I
start x11vnc. What can I do? Is there a config file? Or a GUI?
- [102]Q-9: How can I get the GUI to run in the System Tray, or at least
+ [103]Q-9: How can I get the GUI to run in the System Tray, or at least
be a smaller, simpler icon?
- [103]Q-10: Can I make x11vnc more quiet and also go into the
+ [104]Q-10: Can I make x11vnc more quiet and also go into the
background after starting up?
- [104]Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies
+ [105]Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies
with the error message like: "Broken pipe". I'm using the -forever
mode and I want x11vnc to keep running.
- [105]Q-12: Are there any build-time customizations possible, e.g.
+ [106]Q-12: Are there any build-time customizations possible, e.g.
change defaults, create a smaller binary, etc?
[Win2VNC Related]
- [106]Q-13: I have two separate machine displays in front of me, one
+ [107]Q-13: I have two separate machine displays in front of me, one
Windows the other X11: can I use x11vnc in combination with Win2VNC in
dual-screen mode to pass the keystrokes and mouse motions to the X11
display?
- [107]Q-14: I am running Win2VNC on my Windows machine and "x11vnc
+ [108]Q-14: I am running Win2VNC on my Windows machine and "x11vnc
-nofb" on Unix to pass keyboard and mouse to the Unix monitor.
Whenever I start Win2VNC it quickly disconnects and x11vnc says:
rfbProcessClientNormalMessage: read: Connection reset by peer
[Color Issues]
- [108]Q-15: The X display I run x11vnc on is only 8 bits per pixel
+ [109]Q-15: The X display I run x11vnc on is only 8 bits per pixel
(bpp) PseudoColor (i.e. only 256 distinct colors). The x11vnc colors
may start out OK, but after a while they are incorrect in certain
windows.
- [109]Q-16: Color problems: Why are the colors for some windows
+ [110]Q-16: Color problems: Why are the colors for some windows
incorrect in x11vnc? BTW, my X display has nice overlay/multi-depth
visuals of different color depths: e.g. there are both depth 8 and 24
visuals available at the same time.
- [110]Q-17: How do I figure out the window id to supply to the -id
+ [111]Q-17: How do I figure out the window id to supply to the -id
windowid option?
- [111]Q-18: Why don't menus or other transient windows come up when I
+ [112]Q-18: Why don't menus or other transient windows come up when I
am using the -id windowid option to view a single application window?
- [112]Q-19: My X display is depth 24 at 24bpp (instead of the normal
+ [113]Q-19: My X display is depth 24 at 24bpp (instead of the normal
depth 24 at 32bpp). I'm having lots of color and visual problems with
x11vnc and/or vncviewer. What's up?
[Xterminals]
- [113]Q-20: Can I use x11vnc to view and interact with an Xterminal
+ [114]Q-20: Can I use x11vnc to view and interact with an Xterminal
(e.g. NCD) that is not running UNIX and so x11vnc cannot be run on it
directly?
- [114]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file)
+ [115]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file)
correct for a Unix/Linux machine acting as an Xterminal?
[Sun Rays]
- [115]Q-22: I'm having trouble using x11vnc with my Sun Ray session.
+ [116]Q-22: I'm having trouble using x11vnc with my Sun Ray session.
[Remote Control]
- [116]Q-23: How do I stop x11vnc once it is running in the background?
+ [117]Q-23: How do I stop x11vnc once it is running in the background?
- [117]Q-24: Can I change settings in x11vnc without having to restart
+ [118]Q-24: Can I change settings in x11vnc without having to restart
it? Can I remote control it?
[Security and Permissions]
- [118]Q-25: How do I create a VNC password for use with x11vnc?
+ [119]Q-25: How do I create a VNC password for use with x11vnc?
- [119]Q-26: Can I make it so -storepasswd doesn't show my password on
+ [120]Q-26: Can I make it so -storepasswd doesn't show my password on
the screen?
- [120]Q-27: Can I have two passwords for VNC viewers, one for full
+ [121]Q-27: Can I have two passwords for VNC viewers, one for full
access and the other for view-only access to the display?
- [121]Q-28: Can I have as many full-access and view-only passwords as I
+ [122]Q-28: Can I have as many full-access and view-only passwords as I
like?
- [122]Q-29: Can I fine tune what types of user input are allowed? E.g.
+ [123]Q-29: Can I fine tune what types of user input are allowed? E.g.
have some users just be able to move the mouse, but not click or type
anything?
- [123]Q-30: Why does x11vnc exit as soon as the VNC viewer disconnects?
+ [124]Q-30: Why does x11vnc exit as soon as the VNC viewer disconnects?
And why doesn't it allow more than one VNC viewer to connect at the
same time?
- [124]Q-31: Can I limit which machines incoming VNC clients can connect
+ [125]Q-31: Can I limit which machines incoming VNC clients can connect
from?
- [125]Q-32: How do I build x11vnc/libvncserver with libwrap
+ [126]Q-32: How do I build x11vnc/libvncserver with libwrap
(tcp_wrappers) support?
- [126]Q-33: Can I have x11vnc only listen on one network interface
+ [127]Q-33: Can I have x11vnc only listen on one network interface
(e.g. internal LAN) rather than having it listen on all network
interfaces and relying on -allow to filter unwanted connections out?
- [127]Q-34: Now that -localhost implies listening only on the loopback
+ [128]Q-34: Now that -localhost implies listening only on the loopback
interface, how I can occasionally allow in a non-localhost via the -R
allowonce remote control command?
- [128]Q-35: How can I tunnel my connection to x11vnc via an encrypted
+ [129]Q-35: How can I tunnel my connection to x11vnc via an encrypted
SSH channel between two Unix machines?
- [129]Q-36: How can I tunnel my connection to x11vnc via an encrypted
+ [130]Q-36: How can I tunnel my connection to x11vnc via an encrypted
SSH channel from Windows using an SSH client like Putty?
- [130]Q-37: Can I prompt the user at the local X display whether the
+ [131]Q-37: Can I prompt the user at the local X display whether the
incoming VNC client should be accepted or not? Can I decide to make
some clients view-only? How about running an arbitrary program to make
the decisions?
- [131]Q-38: Does x11vnc support Unix usernames and passwords? Can I
+ [132]Q-38: Does x11vnc support Unix usernames and passwords? Can I
further limit the set of Unix usernames who can connect to the VNC
desktop?
- [132]Q-39: I start x11vnc as root because it is launched via inetd(1)
+ [133]Q-39: I start x11vnc as root because it is launched via inetd(1)
or a display manager like gdm(1). Can I have x11vnc later switch to a
different user?
- [133]Q-40: I use a screen-lock when I leave my workstation (e.g.
+ [134]Q-40: I use a screen-lock when I leave my workstation (e.g.
xscreensaver or xlock). When I remotely access my workstation desktop
via x11vnc I can unlock the desktop fine, but I am worried people will
see my activities on the physical monitor. What can I do to prevent
this, or at least make it more difficult?
- [134]Q-41: Can I have x11vnc automatically lock the screen when I
+ [135]Q-41: Can I have x11vnc automatically lock the screen when I
disconnect the VNC viewer?
[Display Managers and Services]
- [135]Q-42: How can I run x11vnc as a "service" that is always
+ [136]Q-42: How can I run x11vnc as a "service" that is always
available?
- [136]Q-43: How can I use x11vnc to connect to an X login screen like
+ [137]Q-43: How can I use x11vnc to connect to an X login screen like
xdm, GNOME gdm, KDE kdm, or CDE dtlogin? (i.e. nobody is logged into
an X session yet).
- [137]Q-44: Can I run x11vnc out of inetd(1)? How about xinetd(1)?
+ [138]Q-44: Can I run x11vnc out of inetd(1)? How about xinetd(1)?
- [138]Q-45: Can I have x11vnc restart itself after it terminates?
+ [139]Q-45: Can I have x11vnc restart itself after it terminates?
- [139]Q-46: How do I make x11vnc work with the Java VNC viewer applet
+ [140]Q-46: How do I make x11vnc work with the Java VNC viewer applet
in a web browser?
- [140]Q-47: Are reverse connections (i.e. the VNC server connecting to
+ [141]Q-47: Are reverse connections (i.e. the VNC server connecting to
the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported?
- [141]Q-48: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a
+ [142]Q-48: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a
real display, but for a virtual one I keep around).
- [142]Q-49: How can I use x11vnc on "headless" machines? Why might I
+ [143]Q-49: How can I use x11vnc on "headless" machines? Why might I
want to?
[Resource Usage and Performance]
- [143]Q-50: I have lots of memory, but why does x11vnc fail with
+ [144]Q-50: I have lots of memory, but why does x11vnc fail with
shmget: No space left on device or Minor opcode of failed
request: 1 (X_ShmAttach)?
- [144]Q-51: How can I make x11vnc use less system resources?
+ [145]Q-51: How can I make x11vnc use less system resources?
- [145]Q-52: How can I make x11vnc use MORE system resources?
+ [146]Q-52: How can I make x11vnc use MORE system resources?
- [146]Q-53: I use x11vnc over a slow link with high latency (e.g.
+ [147]Q-53: I use x11vnc over a slow link with high latency (e.g.
dialup modem), is there anything I can do to speed things up?
- [147]Q-54: Does x11vnc support the X DAMAGE Xserver extension to find
+ [148]Q-54: Does x11vnc support the X DAMAGE Xserver extension to find
modified regions of the screen quickly and efficiently?
- [148]Q-55: When I drag windows around with the mouse or scroll up and
+ [149]Q-55: When I drag windows around with the mouse or scroll up and
down things really bog down (unless I do the drag in a single, quick
motion). Is there anything to do to improve things?
- [149]Q-56: Why not do something like wireframe animations to avoid the
+ [150]Q-56: Why not do something like wireframe animations to avoid the
windows "lurching" when being moved or resized?
- [150]Q-57: Can x11vnc try to apply heuristics to detect when an window
+ [151]Q-57: Can x11vnc try to apply heuristics to detect when an window
is scrolling its contents and use the CopyRect encoding for a speedup?
[Mouse Cursor Shapes]
- [151]Q-58: Why isn't the mouse cursor shape (the little icon shape
+ [152]Q-58: Why isn't the mouse cursor shape (the little icon shape
where the mouse pointer is) correct as I move from window to window?
- [152]Q-59: When using XFIXES cursorshape mode, some of the cursors
+ [153]Q-59: When using XFIXES cursorshape mode, some of the cursors
look really bad with extra black borders around the cursor and other
cruft. How can I improve their appearance?
- [153]Q-60: In XFIXES mode, are there any hacks to handle cursor
+ [154]Q-60: In XFIXES mode, are there any hacks to handle cursor
transparency ("alpha channel") exactly?
[Mouse Pointer]
- [154]Q-61: Why does the mouse arrow just stay in one corner in my
+ [155]Q-61: Why does the mouse arrow just stay in one corner in my
vncviewer, whereas my cursor (that does move) is just a dot?
- [155]Q-62: Can I take advantage of the TightVNC extension to the VNC
+ [156]Q-62: Can I take advantage of the TightVNC extension to the VNC
protocol where Cursor Positions Updates are sent back to all connected
clients (i.e. passive viewers can see the mouse cursor being moved
around by another viewer)?
- [156]Q-63: Is it possible to swap the mouse buttons (e.g. left-handed
+ [157]Q-63: Is it possible to swap the mouse buttons (e.g. left-handed
operation), or arbitrarily remap them? How about mapping button clicks
to keystrokes, e.g. to partially emulate Mouse wheel scrolling?
[Keyboard Issues]
- [157]Q-64: How can I get my AltGr and Shift modifiers to work between
+ [158]Q-64: How can I get my AltGr and Shift modifiers to work between
keyboards for different languages?
- [158]Q-65: When I try to type a "<" (i.e. less than) instead I get ">"
+ [159]Q-65: When I try to type a "<" (i.e. less than) instead I get ">"
(i.e. greater than)! Strangely, typing ">" works OK!!
- [159]Q-66: When I try to type a "<" (i.e. less than) instead I get
+ [160]Q-66: When I try to type a "<" (i.e. less than) instead I get
"<," (i.e. an extra comma).
- [160]Q-67: I'm using an "international" keyboard (e.g. German "de", or
+ [161]Q-67: I'm using an "international" keyboard (e.g. German "de", or
Danish "dk") and the -modtweak mode works well if the VNC viewer is
run on a Unix/Linux machine with a similar keyboard. But if I run
the VNC viewer on Unix/Linux with a different keyboard (e.g. "us") or
Windows with any keyboard, I can't type some keys like: "@", "$",
"<", ">", etc. How can I fix this?
- [161]Q-68: When typing I sometimes get double, triple, or more of my
+ [162]Q-68: When typing I sometimes get double, triple, or more of my
keystrokes repeated. I'm sure I only typed them once, what can I do?
- [162]Q-69: The x11vnc -norepeat mode is in effect, but I still get
+ [163]Q-69: The x11vnc -norepeat mode is in effect, but I still get
repeated keystrokes!!
- [163]Q-70: The machine where I run x11vnc has an AltGr key, but the
+ [164]Q-70: The machine where I run x11vnc has an AltGr key, but the
local machine where I run the VNC viewer does not. Is there a way I
can map a local unused key to send an AltGr? How about a Compose key
as well?
- [164]Q-71: I have a Sun machine I run x11vnc on. Its Sun keyboard has
+ [165]Q-71: I have a Sun machine I run x11vnc on. Its Sun keyboard has
just one Alt key labelled "Alt" and two Meta keys labelled with little
diamonds. The machine where I run the VNC viewer only has Alt keys.
How can I send a Meta keypress? (e.g. emacs needs this)
- [165]Q-72: Can I map a keystroke to a mouse button click on the remote
+ [166]Q-72: Can I map a keystroke to a mouse button click on the remote
machine?
[Screen Related Issues and Features]
- [166]Q-73: The remote display is larger (in number of pixels) than the
+ [167]Q-73: The remote display is larger (in number of pixels) than the
local display I am running the vncviewer on. I don't like the
vncviewer scrollbars, what I can do?
- [167]Q-74: Does x11vnc support server-side framebuffer scaling? (E.g.
+ [168]Q-74: Does x11vnc support server-side framebuffer scaling? (E.g.
to make the desktop smaller).
- [168]Q-75: Does x11vnc work with Xinerama? (i.e. multiple monitors
+ [169]Q-75: Does x11vnc work with Xinerama? (i.e. multiple monitors
joined together to form one big, single screen).
- [169]Q-76: Can I use x11vnc on a multi-headed display that is not
+ [170]Q-76: Can I use x11vnc on a multi-headed display that is not
Xinerama (i.e. separate screens :0.0, :0.1, ... for each monitor)?
- [170]Q-77: Can x11vnc show only a portion of the display? (E.g. for a
+ [171]Q-77: Can x11vnc show only a portion of the display? (E.g. for a
special purpose rfb application).
- [171]Q-78: Does x11vnc support the XRANDR (X Resize, Rotate and
+ [172]Q-78: Does x11vnc support the XRANDR (X Resize, Rotate and
Reflection) extension? Whenever I rotate or resize the screen x11vnc
just seems to crash.
- [172]Q-79: Why is the view in my VNC viewer completely black? Or why
+ [173]Q-79: Why is the view in my VNC viewer completely black? Or why
is everything flashing around randomly?
- [173]Q-80: I use Linux Virtual Consoles (VC's) to implement 'Fast User
+ [174]Q-80: I use Linux Virtual Consoles (VC's) to implement 'Fast User
Switching' between users' sessions (e.g. Betty is on Ctrl-Alt-F7,
Bobby is on Ctrl-Alt-F8, and Sid is on Ctrl-Alt-F1: they use those
keystrokes to switch between their sessions). How come the view in a
@@ -1365,12 +1369,12 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
otherwise all messed up unless the X session x11vnc is attached to is
in the active VC?
- [174]Q-81: Can I use x11vnc to view my VMWare session remotely?
+ [175]Q-81: Can I use x11vnc to view my VMWare session remotely?
- [175]Q-82: Can non-X devices (e.g. a raw framebuffer) be viewed and/or
+ [176]Q-82: Can non-X devices (e.g. a raw framebuffer) be viewed and/or
controlled by x11vnc?
- [176]Q-83: I am using x11vnc where my local machine has "popup/hidden
+ [177]Q-83: I am using x11vnc where my local machine has "popup/hidden
taskbars" (e.g. GNOME or MacOS X) and the remote display where x11vnc
runs also has "popup/hidden taskbars" (e.g. GNOME). When I move the
mouse to the edge of the screen where the popups happen, the taskbars
@@ -1378,15 +1382,15 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
[Misc: Clipboard, Beeps, Thanks, etc.]
- [177]Q-84: Does the Clipboard/Selection get transferred between the
+ [178]Q-84: Does the Clipboard/Selection get transferred between the
vncviewer and the X display?
- [178]Q-85: Can I transfer files back and forth with x11vnc?
+ [179]Q-85: Can I transfer files back and forth with x11vnc?
- [179]Q-86: Why don't I hear the "Beeps" in my X session (e.g. when
+ [180]Q-86: Why don't I hear the "Beeps" in my X session (e.g. when
typing tput bel in an xterm)?
- [180]Q-87: Thanks for your program and for your help! Can I make a
+ [181]Q-87: Thanks for your program and for your help! Can I make a
donation?
_________________________________________________________________
@@ -1399,7 +1403,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
For the former error, you need to specify the X display to connect to
(it also needs to be on the same machine the x11vnc process is to run
- on). Set your DISPLAY environment variable or use the [181]-display
+ on). Set your DISPLAY environment variable or use the [182]-display
option to specify it. Nearly always the correct value will be ":0"
@@ -1416,7 +1420,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
How to Solve: See the xauth(1), Xsecurity(7), and xhost(1) man pages
for much info on X11 permissions. For example, you may need to set
- your XAUTHORITY environment variable or use the [182]-auth option to
+ your XAUTHORITY environment variable or use the [183]-auth option to
point to the correct MIT-MAGIC-COOKIE file (e.g. /home/joe/.Xauthority
or /var/gdm/:0.Xauth or /var/lib/kdm/A:0-crWk72K), or simply be sure
you run x11vnc as the correct user (i.e. the user who is logged into
@@ -1434,7 +1438,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
x11vnc -display :0 -auth /var/gdm/:0.Xauth
(this is for the display manager gdm and requires root permission to
- read the gdm cookie file, see [183]this faq for other display manager
+ read the gdm cookie file, see [184]this faq for other display manager
cookie file names).
Less safe, but to avoid figuring out where the correct XAUTHORITY file
@@ -1443,7 +1447,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver &
(from the same machine). The person could then type "xhost -localhost"
after x11vnc has connected to go back to the default permissions.
Also, for some situations the "-users lurk=" option may be of use
- (please read the documentation on the [184]-users option).
+ (please read the documentation on the [185]-users option).
To test out your X11 permissions from a remote shell, set DISPLAY and
possibly XAUTHORITY (see your shell's man page, bash(1), tcsh(1), on
@@ -1555,7 +1559,7 @@ h
earlier and perhaps non-Solaris):
First use the environment settings (CPPFLAGS, LDFLAGS, etc.) in the
- above [185]Solaris build script to run the configure command. That
+ above [186]Solaris build script to run the configure command. That
should succeed without failure. Then you have to hand edit the
autogenerated rfb/rfbconfig.h file in the source tree, and just before
the last #endif at the bottom of that file insert these workaround
@@ -1581,7 +1585,7 @@ typedef unsigned int in_addr_t;
on other older OS (Solaris, Linux, ...) releases.
Here are some notes for similar steps that need to be done to build on
- [186]SunOS 4.x
+ [187]SunOS 4.x
Please let us know if you had to use the above workaround (and whether
it worked or not). If there is enough demand we will try to push clean
@@ -1591,23 +1595,23 @@ typedef unsigned int in_addr_t;
Q-5: Where can I get a precompiled x11vnc binary for my Operating
System?
- Hopefully the [187]build steps above and [188]FAQ provide enough info
+ Hopefully the [188]build steps above and [189]FAQ provide enough info
for a painless compile for most environments. Please report problems
with the x11vnc configure, make, etc. on your system (if your system
is known to compile other GNU packages successfully).
There are precompiled x11vnc binaries built by other groups that are
available at the following locations:
- Debian: (.deb) [189]http://packages.debian.org/x11vnc
+ Debian: (.deb) [190]http://packages.debian.org/x11vnc
- Slackware: (.tgz) [190]http://www.linuxpackages.net/ Redhat/Fedora:
- (.rpm) [191]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm)
- [192]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg)
- [193]http://www.sunfreeware.com/ wwexptools: (.tgz)
- [194]http://www.bell-labs.com/project/wwexptools/packages.html
+ Slackware: (.tgz) [191]http://www.linuxpackages.net/ Redhat/Fedora:
+ (.rpm) [192]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm)
+ [193]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg)
+ [194]http://www.sunfreeware.com/ wwexptools: (.tgz)
+ [195]http://www.bell-labs.com/project/wwexptools/packages.html
If the above binaries don't work and building x11vnc on your OS fails
- (and all else fails!) you can try one of [195]my collection of
+ (and all else fails!) you can try one of [196]my collection of
binaries for various OS's and x11vnc releases.
As a general note, the x11vnc program is simple enough you don't
@@ -1628,9 +1632,9 @@ typedef unsigned int in_addr_t;
To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix)
try here:
- * [196]http://www.tightvnc.com/download.html
- * [197]http://www.realvnc.com/download-free.html
- * [198]http://sourceforge.net/projects/cotvnc/
+ * [197]http://www.tightvnc.com/download.html
+ * [198]http://www.realvnc.com/download-free.html
+ * [199]http://sourceforge.net/projects/cotvnc/
Q-7: How can I see all of x11vnc's command line options and
@@ -1638,7 +1642,7 @@ typedef unsigned int in_addr_t;
Run: x11vnc -opts to list just the option names or run: x11vnc
-help for long descriptions about each option. The output is listed
- [199]here as well.
+ [200]here as well.
Q-8: I don't like typing arcane command line options every time I
@@ -1669,10 +1673,10 @@ display :0
The /usr/bin/wish program is needed for operation. The gui is not
particularly user-friendly, it just provides a point and click mode to
set all the many x11vnc parameters and obtain help on them. See the
- [200]-gui option for more info. Examples: "x11vnc ... -gui" and
+ [201]-gui option for more info. Examples: "x11vnc ... -gui" and
"x11vnc ... -gui other:0" in the latter case the gui is displayed on
other:0, not the X display x11vnc is polling. There is also a
- "[201]-gui tray" system tray mode.
+ "[202]-gui tray" system tray mode.
Q-9: How can I get the GUI to run in the System Tray, or at least be a
@@ -1699,11 +1703,11 @@ display :0
Q-10: Can I make x11vnc more quiet and also go into the background
after starting up?
- Use the [202]-q and [203]-bg options, respectively. (also: -quiet is
+ Use the [203]-q and [204]-bg options, respectively. (also: -quiet is
an alias for -q)
Note that under -bg the stderr messages will be lost unless you use
- the "[204]-o logfile" option.
+ the "[205]-o logfile" option.
Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with
@@ -1724,7 +1728,7 @@ display :0
As of Mar/2004 in the libvncserver cvs there are a few such options.
They are enabled by adding something like -Dxxxx=1 to the CPPFLAGS
- environment variable before running configure (see the [205]build
+ environment variable before running configure (see the [206]build
notes for general background).
* -DVNCSHARED=1 make -shared the default.
* -DFOREVER=1 make -forever the default.
@@ -1773,21 +1777,21 @@ display :0
dual-screen mode to pass the keystrokes and mouse motions to the X11
display?
- Yes, for best response start up x11vnc with the "[206]-nofb" option
+ Yes, for best response start up x11vnc with the "[207]-nofb" option
(disables framebuffer polling, and does other optimizations) on the
secondary display (X11) machine. Then start up Win2VNC on the primary
display (Windows) referring it to the secondary display.
- This will also work X11 to X11 using [207]x2vnc, however you would
+ This will also work X11 to X11 using [208]x2vnc, however you would
probably just want to avoid VNC and use x2x for that.
For reference, here are some links to Win2VNC-like programs for
multiple monitor setups:
- * [208]Original Win2VNC
- * [209]Enhanced Win2VNC and [210]sourceforge link
- * [211]x2vnc
- * [212]x2x also [213]here
- * [214]zvnc (MorphOS)
+ * [209]Original Win2VNC
+ * [210]Enhanced Win2VNC and [211]sourceforge link
+ * [212]x2vnc
+ * [213]x2x also [214]here
+ * [215]zvnc (MorphOS)
All of them will work with x11vnc (except x2x where it is not needed).
@@ -1807,7 +1811,7 @@ display :0
on your display to be depth 24 TrueColor? Sun machines often have 8+24
overlay/multi-depth visuals, and you can make the default visual depth
24 TrueColor (see fbconfig(1) and Xsun(1)). 2) As of Feb/2004, in the
- libvncserver CVS, x11vnc has the [215]-visual option to allow you to
+ libvncserver CVS, x11vnc has the [216]-visual option to allow you to
force the framebuffer visual to whatever you want (this usually messes
up the colors unless you are very clever). In this case, the option
provides a convenient workaround for the Win2VNC bug:
@@ -1822,7 +1826,7 @@ display :0
PseudoColor (i.e. only 256 distinct colors). The x11vnc colors may
start out OK, but after a while they are incorrect in certain windows.
- Use the [216]-flashcmap option to have x11vnc watch for changes in the
+ Use the [217]-flashcmap option to have x11vnc watch for changes in the
colormap, and propagate those changes back to connected clients. This
can be slow (since the whole screen must be updated over the network
whenever the colormap changes). This flashing colormap behavior often
@@ -1831,13 +1835,13 @@ display :0
example of this. Consider reconfiguring the system to 16 bpp or depth
24 TrueColor if at all possible.
- Also note the option [217]-8to24 (Jan/2006) can often remove the need
+ Also note the option [218]-8to24 (Jan/2006) can often remove the need
for flashing the colormap. Everything is dynamically transformed to
depth 24 at 32 bpp using the colormaps. There may be painting errors
however (see the following FAQ for tips on reducing and correcting
them).
- In some rare cases the [218]-notruecolor option has corrected colors
+ In some rare cases the [219]-notruecolor option has corrected colors
on 8bpp displays. The red, green, and blue masks were non-zero in 8bpp
PseudoColor on an obscure setup, and this option corrected the
problems.
@@ -1848,13 +1852,13 @@ display :0
different color depths: e.g. there are both depth 8 and 24 visuals
available at the same time.
- You may want to review the [219]previous question regarding 8 bpp
+ You may want to review the [220]previous question regarding 8 bpp
PseudoColor.
- On some hardware (Sun/SPARC and SGI), the [220]-overlay option
+ On some hardware (Sun/SPARC and SGI), the [221]-overlay option
discussed a couple paragraphs down may solve this for you (you may
want to skip to it directly). On other hardware the less robust
- [221]-8to24 option may help (also discussed below).
+ [222]-8to24 option may help (also discussed below).
Run xdpyinfo(1) to see what the default visual is and what the depths
of the other visuals are. Does the default visual have a depth of 8
@@ -1890,7 +1894,7 @@ TrueColor defdepth 24
The -overlay mode: Another option is if the system with overlay
visuals is a Sun system running Solaris or SGI running IRIX you can
- use the [222]-overlay x11vnc option (Aug/2004) to have x11vnc use the
+ use the [223]-overlay x11vnc option (Aug/2004) to have x11vnc use the
Solaris XReadScreen(3X11) function to poll the "true view" of the
whole screen at depth 24 TrueColor. XReadDisplay(3X11) is used on
IRIX. This is useful for Legacy applications (older versions of
@@ -1915,7 +1919,7 @@ TrueColor defdepth 24
Xsun, e.g. in your /etc/dt/config/Xservers file).
- The -8to24 mode: The [223]-8to24 x11vnc option (Jan/2006) is a kludge
+ The -8to24 mode: The [224]-8to24 x11vnc option (Jan/2006) is a kludge
to try to dynamically rewrite the pixel values so that the 8bpp part
of the screen is mapped onto depth 24 TrueColor. This is less robust
than the -overlay mode because it is done by x11vnc outside of the X
@@ -1929,11 +1933,11 @@ TrueColor defdepth 24
32bpp view is exported via VNC.
Even on pure 8bpp displays it can be used as an alternative to
- [224]-flashcmap to avoid color flashing completely.
+ [225]-flashcmap to avoid color flashing completely.
This scheme is approximate and can often lead to painting errors. You
can manually correct most painting errors by pressing 3 Alt_L's in a
- row, or by using something like: [225]-fixscreen V=3.0 to
+ row, or by using something like: [226]-fixscreen V=3.0 to
automatically refresh the screen every 3 seconds. Also -fixscreen
8=3.0 has been added to just refresh the non-default visual parts of
the screen.
@@ -1946,23 +1950,23 @@ TrueColor defdepth 24
nogetimage can give a nice speedup if the default depth 24 X server
supports hiding the 8bpp bits in bits 25-32 of the framebuffer data.
On very slow machines -8to24 poll=0.2,cachewin=5.0 gives an useful
- speedup. See the [226]-8to24 help description for information on
+ speedup. See the [227]-8to24 help description for information on
tunable parameters, etc.
Colors still not working correctly? Run xwininfo on the application
with the incorrect colors to verify that the depth of its visual is
different from the default visual depth (gotten from xdpyinfo). One
- possible workaround in this case is to use the [227]-id option to
+ possible workaround in this case is to use the [228]-id option to
point x11vnc at the application window itself. If the application is
complicated (lots of toplevel windows and popup menus) this may not be
acceptable, and may even crash x11vnc (but not the application).
It is theoretically possible to solve this problem in general (see
xwd(1) for example), but it does not seem trivial or sufficiently fast
- for x11vnc to be able to do so in real time. The [228]-8to24 method
+ for x11vnc to be able to do so in real time. The [229]-8to24 method
does this approximately and is somewhat usable. Fortunately the
- [229]-overlay option works for Solaris machines with overlay visuals
+ [230]-overlay option works for Solaris machines with overlay visuals
where most of this problem occurs.
@@ -1973,9 +1977,9 @@ TrueColor defdepth 24
the desired application window. After clicking, it will print out much
information, including the window id (e.g. 0x6000010). Also, the
visual and depth of the window printed out is often useful in
- debugging x11vnc [230]color problems.
+ debugging x11vnc [231]color problems.
- Also, as of Dec/2004 libvncserver CVS you can use "[231]-id pick" to
+ Also, as of Dec/2004 libvncserver CVS you can use "[232]-id pick" to
have x11vnc run xwininfo(1) for you and after you click the window it
extracts the windowid. Besides "pick" there is also "id:root" to allow
you to go back to root window when doing remote-control.
@@ -1993,7 +1997,7 @@ TrueColor defdepth 24
you should be able to see these transient windows.
If things are not working and you still want to do the single window
- polling, try the [232]-sid windowid option ("shifted" windowid).
+ polling, try the [233]-sid windowid option ("shifted" windowid).
Q-19: My X display is depth 24 at 24bpp (instead of the normal depth
@@ -2043,15 +2047,15 @@ TrueColor defdepth 24
since you will be polling the X display over the network as opposed to
over the local hardware. To do this, run x11vnc on a UNIX machine as
close as possible network-wise (e.g. same switch) to the Xterminal
- machine. Use the [233]-display option to point the display to that of
+ machine. Use the [234]-display option to point the display to that of
the Xterminal (you'll of course need basic X11 permission to do that)
- and also supply the [234]-noshm option (this enables the polling over
+ and also supply the [235]-noshm option (this enables the polling over
the network).
The response will likely be sluggish (maybe only one "frame" per
second). This mode is not recommended except for "quick checks" of
hard to get to X servers. Use something like "-wait 150" to cut down
- on the polling rate. You may also need [235]-flipbyteorder if the
+ on the polling rate. You may also need [236]-flipbyteorder if the
colors get messed up due to endian byte order differences.
Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file) correct
@@ -2075,7 +2079,7 @@ TrueColor defdepth 24
copied to the Xterminal. If $HOME/.Xauthority is exported via NFS
(this is insecure of course, but has been going on for decades), then
x11vnc can simply pick it up via NFS (you may need to use the
- [236]-auth option to point to the correct file). Other options include
+ [237]-auth option to point to the correct file). Other options include
copying the auth file using scp, or something like:
central-server> xauth nextract - xterm123:0 | ssh xterm123 xauth nmerge -
@@ -2087,7 +2091,7 @@ TrueColor defdepth 24
details.
If the display name in the cookie file needs to be changed between the
- two hosts, see [237]this note on the "xauth add ..." command.
+ two hosts, see [238]this note on the "xauth add ..." command.
A less secure option is to run something like "xhost +127.0.0.1" while
sitting at the Xterminal box to allow cookie-free local access for
@@ -2101,7 +2105,7 @@ TrueColor defdepth 24
occasional app more efficiently locally on the Xterminal box (e.g.
realplayer).
- Not recommended, but as a last resort, you could have x11vnc [238]poll
+ Not recommended, but as a last resort, you could have x11vnc [239]poll
the Xterminal Display over the network. For this you would run a
"x11vnc -noshm ..." process on the central-server (and hope the
network admin doesn't get angry...)
@@ -2130,13 +2134,13 @@ TrueColor defdepth 24
Q-22: I'm having trouble using x11vnc with my Sun Ray session.
- The [239]Sun Ray technology is a bit like "VNC done in hardware" (the
+ The [240]Sun Ray technology is a bit like "VNC done in hardware" (the
Sun Ray terminal device, DTU, playing the role of the vncviewer).
Completely independent of that, the SunRay user's session is still an
X server that speaks the X11 protocol and so x11vnc simply talks to
the X server part to export the SunRay desktop to any place in the
world (i.e. not only to a Sun Ray terminal device), creating a sort of
- "Soft Ray". Please see [240]this discussion of Sun Ray issues above
+ "Soft Ray". Please see [241]this discussion of Sun Ray issues above
for solutions to problems.
[Remote Control]
@@ -2145,17 +2149,17 @@ TrueColor defdepth 24
As of Dec/2004 in the libvncserver CVS there is a remote control
feature. It can change a huge amount of things on the fly: see the
- [241]-remote and [242]-query options. To shut down the running x11vnc
+ [242]-remote and [243]-query options. To shut down the running x11vnc
server just type "x11vnc -R stop". To disconnect all clients do
"x11vnc -R disconnect:all", etc.
- If the [243]-forever option has not been supplied, x11vnc will
+ If the [244]-forever option has not been supplied, x11vnc will
automatically exit after the first client disconnects. In general you
will have to kill the x11vnc process This can be done via: "kill
NNNNN" (where NNNNN is the x11vnc process id number found from ps(1)),
or "pkill x11vnc", or "killall x11vnc" (Linux only).
- If you have not put x11vnc in the background via the [244]-bg option
+ If you have not put x11vnc in the background via the [245]-bg option
or shell & operator, then simply press Ctrl-C in the shell where
x11vnc is running to stop it.
@@ -2165,15 +2169,15 @@ TrueColor defdepth 24
down state in the Xserver. Tapping the stuck key (either via a new
x11vnc or at the physical console) will release it from the stuck
state. If the keyboard seems to be acting strangely it is often fixed
- by tapping Ctrl, Shift, and Alt. Alternatively, the [245]-clear_mods
- option and [246]-clear_keys option can be used to release pressed keys
+ by tapping Ctrl, Shift, and Alt. Alternatively, the [246]-clear_mods
+ option and [247]-clear_keys option can be used to release pressed keys
at startup and exit.
Q-24: Can I change settings in x11vnc without having to restart it?
Can I remote control it?
- Look at the [247]-remote (same as -R) and [248]-query (same as -Q)
+ Look at the [248]-remote (same as -R) and [249]-query (same as -Q)
options added in the Dec/2004 libvncserver CVS. They allow nearly
everything to be changed dynamically and settings to be queried.
Examples: "x11vnc -R shared", "x11vnc -R forever", "x11vnc -R
@@ -2185,7 +2189,7 @@ TrueColor defdepth 24
be possible.
There is also a simple Tcl/Tk gui based on this remote control
- mechanism. See the [249]-gui option for more info. You will need to
+ mechanism. See the [250]-gui option for more info. You will need to
have Tcl/Tk (i.e. /usr/bin/wish) installed for it to work. It can also
run in the system tray: "-gui tray" or as a standalone icon window:
"-gui icon".
@@ -2200,12 +2204,12 @@ TrueColor defdepth 24
vncpasswd(1) program from those packages. The libvncserver package
also comes with a simple program: storepasswd in the examples
directory. And as of Jun/2004 in the libvncserver CVS x11vnc supports
- the -storepasswd "pass" "file" [250]option, which is the the same
+ the -storepasswd "pass" "file" [251]option, which is the the same
functionality of storepasswd. Be sure to quote the "pass" if it
contains shell meta characters, spaces, etc. Example:
x11vnc -storepasswd 'sword*fish' $HOME/myvncpasswd
- You then use the password via the x11vnc option: [251]-rfbauth
+ You then use the password via the x11vnc option: [252]-rfbauth
$HOME/myvncpasswd
Compared to vncpasswd(1) the latter two methods are a somewhat unsafe
@@ -2214,7 +2218,7 @@ TrueColor defdepth 24
out for the command winding up in your shell's history file (history
-c is often a way to clear it).
- x11vnc also has the [252]-passwdfile and -passwd/-viewpasswd plain
+ x11vnc also has the [253]-passwdfile and -passwd/-viewpasswd plain
text (i.e. not obscured like the -rfbauth VNC passwords) password
options.
@@ -2225,7 +2229,7 @@ TrueColor defdepth 24
You can use the vncpasswd program from RealVNC or TightVNC mentioned
above..
- Alternatively, this script should keep your [253]-storepasswd more
+ Alternatively, this script should keep your [254]-storepasswd more
private:
#!/bin/sh
# usage: x11vnc_pw [file] (default: ~/.vnc/passwd)
@@ -2260,13 +2264,13 @@ ls -l "$file"
and the other for view-only access to the display?
Yes, as of May/2004 in the libvncserver CVS there is the
- [254]-viewpasswd option to supply the view-only password. Note the
- full-access password option [255]-passwd must be supplied at the same
+ [255]-viewpasswd option to supply the view-only password. Note the
+ full-access password option [256]-passwd must be supplied at the same
time. E.g.: -passwd sword -viewpasswd fish.
To avoid specifying the passwords on the command line (where they
could be observed via the ps(1) command by any user) you can use the
- [256]-passwdfile option to specify a file containing plain text
+ [257]-passwdfile option to specify a file containing plain text
passwords. Presumably this file is readable only by you, and ideally
it is located on the machine x11vnc is run on (to avoid being snooped
on over the network). The first line of this file is the full-access
@@ -2274,7 +2278,7 @@ ls -l "$file"
it is taken as the view-only password. (use "__EMPTY__" to supply an
empty one).
- View-only passwords currently do not work for the [257]-rfbauth
+ View-only passwords currently do not work for the [258]-rfbauth
password option (standard VNC password storing mechanism). FWIW, note
that although the output (usually placed in $HOME/.vnc/passwd) by the
vncpasswd or storepasswd programs (or from x11vnc -storepasswd) looks
@@ -2287,7 +2291,7 @@ ls -l "$file"
Q-28: Can I have as many full-access and view-only passwords as I
like?
- Yes, as of Jan/2006 in the libvncserver CVS the [258]-passwdfile
+ Yes, as of Jan/2006 in the libvncserver CVS the [259]-passwdfile
option has been extended to handle as many passwords as you like. You
put the view-only passwords after a line __BEGIN_VIEWONLY__.
@@ -2299,7 +2303,7 @@ ls -l "$file"
some users just be able to move the mouse, but not click or type
anything?
- As of Feb/2005, the [259]-input option allows you to do this. "K",
+ As of Feb/2005, the [260]-input option allows you to do this. "K",
"M", and "B" stand for Keystroke, Mouse-motion, and Button-clicks,
respectively. The setting: "-input M" makes attached viewers only able
to move the mouse. "-input KMB,M" lets normal clients do everything
@@ -2315,15 +2319,15 @@ ls -l "$file"
These defaults are simple safety measures to avoid someone unknowingly
leaving his X11 desktop exposed (to the internet, say) for long
- periods of time. Use the [260]-forever option (aka -many) to have
+ periods of time. Use the [261]-forever option (aka -many) to have
x11vnc wait for more connections after the first client disconnects.
- Use the [261]-shared option to have x11vnc allow multiple clients to
+ Use the [262]-shared option to have x11vnc allow multiple clients to
connect simultaneously.
- Recommended additional safety measures include using ssh ([262]see
+ Recommended additional safety measures include using ssh ([263]see
above), stunnel, or a VPN to authenticate and encrypt the viewer
- connections or to at least use the -rfbauth passwd-file [263]option to
- use VNC password protection (or [264]-passwdfile) It is up to YOU to
+ connections or to at least use the -rfbauth passwd-file [264]option to
+ use VNC password protection (or [265]-passwdfile) It is up to YOU to
apply these security measures, they will not be done for you
automatically.
@@ -2331,7 +2335,7 @@ ls -l "$file"
Q-31: Can I limit which machines incoming VNC clients can connect
from?
- Yes, look at the [265]-allow and [266]-localhost options to limit
+ Yes, look at the [266]-allow and [267]-localhost options to limit
connections by hostname or IP address. E.g.
x11vnc -allow 192.168.0.1,192.168.0.2
@@ -2343,7 +2347,7 @@ ls -l "$file"
Note that -localhost is the same as "-allow 127.0.0.1"
For more control, build libvncserver with libwrap support
- [267](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5)
+ [268](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5)
for complete details.
@@ -2363,7 +2367,7 @@ ls -l "$file"
is "vnc", e.g.:
vnc: 192.168.100.3 .example.com
- Note that if you run x11vnc out of [268]inetd you do not need to build
+ Note that if you run x11vnc out of [269]inetd you do not need to build
x11vnc with libwrap support because the /usr/sbin/tcpd reference in
/etc/inetd.conf handles the tcp_wrappers stuff.
@@ -2372,16 +2376,16 @@ ls -l "$file"
internal LAN) rather than having it listen on all network interfaces
and relying on -allow to filter unwanted connections out?
- As of Mar/2005 in the libvncserver CVS, there is the "[269]-listen
+ As of Mar/2005 in the libvncserver CVS, there is the "[270]-listen
ipaddr" option that enables this. For ipaddr either supply the desired
network interface's IP address (or use a hostname that resolves to it)
or use the string "localhost". For additional filtering simultaneously
- use the "[270]-allow host1,..." option to allow only specific hosts
+ use the "[271]-allow host1,..." option to allow only specific hosts
in.
This option is useful if you want to insure that no one can even begin
a dialog with x11vnc from untrusted network interfaces (e.g. ppp0).
- The option [271]-localhost now implies "-listen localhost" since that
+ The option [272]-localhost now implies "-listen localhost" since that
is what most people expect it to do.
@@ -2389,24 +2393,24 @@ ls -l "$file"
interface, how I can occasionally allow in a non-localhost via the -R
allowonce remote control command?
- To do this specify "[272]-allow localhost". Unlike [273]-localhost
+ To do this specify "[273]-allow localhost". Unlike [274]-localhost
this will leave x11vnc listening on all interfaces (but of course only
allowing in local connections, e.g. ssh redirs). Then you can later
run "x11vnc -R allowonce:somehost" or use to gui to permit a one-shot
connection from a remote host.
Note that if you do a lot of changing of the listening interface
- ([274]-listen option) via remote control or gui, you may need to also
- manually adjust the [275]-allow list if you unexpectedly get into a
+ ([275]-listen option) via remote control or gui, you may need to also
+ manually adjust the [276]-allow list if you unexpectedly get into a
state where the allow list cannot match any hosts that would be coming
- in on the listening interface. If you just toggle [276]-localhost on
+ in on the listening interface. If you just toggle [277]-localhost on
and off x11vnc should see to it that you never get into such a state.
Q-35: How can I tunnel my connection to x11vnc via an encrypted SSH
channel between two Unix machines?
- See the description earlier on this page on [277]how to tunnel VNC via
+ See the description earlier on this page on [278]how to tunnel VNC via
SSH from Unix to Unix. A number of ways are described along with some
issues you may encounter.
@@ -2417,7 +2421,7 @@ ls -l "$file"
Q-36: How can I tunnel my connection to x11vnc via an encrypted SSH
channel from Windows using an SSH client like Putty?
- [278]Above we described how to tunnel VNC via SSH from Unix to Unix,
+ [279]Above we described how to tunnel VNC via SSH from Unix to Unix,
you may want to review it. To do this from Windows using Putty it
would go something like this:
* In the Putty dialog window under 'Session' enter the hostname or
@@ -2440,8 +2444,8 @@ ls -l "$file"
process in a BAT file including launching the VNC viewer by using the
plink Putty utility. Send us the script if you get that working.
- For extra protection feel free to run x11vnc with the [279]-localhost
- and [280]-rfbauth/[281]-passwdfile options.
+ For extra protection feel free to run x11vnc with the [280]-localhost
+ and [281]-rfbauth/[282]-passwdfile options.
If the machine you SSH into via Putty is not the same machine with the
X display you wish to view (e.g. your company provides incoming SSH
@@ -2449,11 +2453,11 @@ ls -l "$file"
dialog setting to: 'Destination: otherhost:5900', Once logged in,
you'll need to do a second login (ssh or rsh) to the workstation
machine 'otherhost' and then start up x11vnc on it. This can also be
- automated by [282]chaining ssh's.
+ automated by [283]chaining ssh's.
- As discussed [283]above another option is to first start the VNC
+ As discussed [284]above another option is to first start the VNC
viewer in "listen" mode, and then launch x11vnc with the
- "[284]-connect localhost" option to establish the reverse connection.
+ "[285]-connect localhost" option to establish the reverse connection.
In this case a Remote port redirection (not Local) is needed for port
5500 instead of 5900 (i.e. 'Source port: 5500' and
'Destination: localhost:5500' for a Remote connection).
@@ -2464,7 +2468,7 @@ ls -l "$file"
some clients view-only? How about running an arbitrary program to make
the decisions?
- Yes, look at the "[285]-accept command" option, it allows you to
+ Yes, look at the "[286]-accept command" option, it allows you to
specify an external command that is run for each new client. (use
quotes around the command if it contains spaces, etc.). If the
external command returns 0 the client is accepted, otherwise the
@@ -2483,7 +2487,7 @@ ls -l "$file"
own simple popup window. To accept the client press "y" or click mouse
on the "Yes" button. To reject the client press "n" or click mouse on
the "No" button. To accept the client View-only, press "v" or click
- mouse on the "View" button. If the [286]-viewonly option has been
+ mouse on the "View" button. If the [287]-viewonly option has been
supplied, the "View" action will not be present: the whole display is
view only in that case.
@@ -2499,7 +2503,7 @@ ls -l "$file"
program to prompt the user whether the client should be accepted or
not. This requires that you have xmessage installed and available via
PATH. In case it is not already on your system, the xmessage program
- is available at [287]ftp://ftp.x.org/
+ is available at [288]ftp://ftp.x.org/
To include view-only decisions for the external commands, prefix the
command something like this: "yes:0,no:*,view:3 mycommand ..." This
@@ -2538,7 +2542,7 @@ elif [ $rc = 4 ]; then
fi
exit 1
- Stefan Radman has written a nice dtksh script [288]dtVncPopup for use
+ Stefan Radman has written a nice dtksh script [289]dtVncPopup for use
in CDE environments to do the same sort of thing. Information on how
to use it is found at the top of the file. He encourages you to
provide feedback to him to help improve the script.
@@ -2547,7 +2551,7 @@ exit 1
popup is being run, so attached clients will not receive screen
updates, etc during this period.
- To run a command when a client disconnects, use the "[289]-gone
+ To run a command when a client disconnects, use the "[290]-gone
command" option. This is for the user's convenience only: the return
code of the command is not interpreted by x11vnc. The same environment
variables are set as in "-accept command" (except that RFB_MODE will
@@ -2562,13 +2566,13 @@ exit 1
such support.
One approximate method involves starting x11vnc with the
- [290]-localhost option. This basically requires the viewer user to log
+ [291]-localhost option. This basically requires the viewer user to log
into the workstation where x11vnc is running via their Unix username
and password, and then somehow set up a port redirection of his
vncviewer connection to make it appear to emanate from the local
machine. As discussed above, ssh is useful for this: "ssh -l username
-L 5900:localhost:5900 hostname ..." See the ssh wrapper scripts
- mentioned [291]elsewhere on this page. Of course a malicious user
+ mentioned [292]elsewhere on this page. Of course a malicious user
could allow other users to get in through his channel, but that is a
problem with every method. Another thing to watch out for is a
malicious user on the viewer side (where ssh is running) trying to
@@ -2577,7 +2581,7 @@ exit 1
Regarding limiting the set of Unix usernames who can connect, the
traditional way would be to further require a VNC password to supplied
(-rfbauth, -passwd, etc). A scheme that avoids a second password
- involves using the [292]-accept option that runs a program to examine
+ involves using the [293]-accept option that runs a program to examine
the connection information to determine which user is connecting from
the local machine. For example, the program could use the ident
service on the local machine (normally ident should not be trusted
@@ -2610,7 +2614,7 @@ exit 1 # reject it
display manager like gdm(1). Can I have x11vnc later switch to a
different user?
- As of Feb/2005 x11vnc has the [293]-users option that allows things
+ As of Feb/2005 x11vnc has the [294]-users option that allows things
like this. Please read the documentation on it (also in the x11vnc
-help output) carefully for features and caveats. It's use can often
decrease security unless care is taken.
@@ -2632,7 +2636,7 @@ exit 1 # reject it
In any event, as of Jun/2004 there is an experimental utility to make
it more difficult for nosey people to see your x11vnc activities. The
- source for it is [294]blockdpy.c The idea behind it is simple (but
+ source for it is [295]blockdpy.c The idea behind it is simple (but
obviously not bulletproof): when a VNC client attaches to x11vnc put
the display monitor in the DPMS "off" state, if the DPMS state ever
changes immediately start up the screen-lock program. The x11vnc user
@@ -2648,8 +2652,8 @@ exit 1 # reject it
bulletproof. A really robust solution would likely require X server
and perhaps even video hardware support.
- The blockdpy utility is launched by the [295]-accept option and told
- to exit via the [296]-gone option (the vnc client user should
+ The blockdpy utility is launched by the [296]-accept option and told
+ to exit via the [297]-gone option (the vnc client user should
obviously re-lock the screen before disconnecting!). Instructions can
be found in the source code for the utility at the above link.
@@ -2657,7 +2661,7 @@ exit 1 # reject it
Q-41: Can I have x11vnc automatically lock the screen when I
disconnect the VNC viewer?
- Yes, a user mentions he uses the [297]-gone option under CDE to run a
+ Yes, a user mentions he uses the [298]-gone option under CDE to run a
screen lock program:
x11vnc -display :0 -forever -gone 'dtaction LockDisplay'
@@ -2666,7 +2670,7 @@ exit 1 # reject it
x11vnc -display :0 -forever -gone 'kdesktop_lock'
x11vnc -display :0 -forever -gone 'xlock &'
- Here is a scheme using the [298]-afteraccept option (in version 0.7.3)
+ Here is a scheme using the [299]-afteraccept option (in version 0.7.3)
to unlock the screen after the first valid VNC login and to lock the
screen after the last valid VNC login disconnects:
x11vnc -display :0 -forever -shared -afteraccept ./myxlocker -gone ./myxlocke
@@ -2705,11 +2709,11 @@ fi
need to have sufficient permissions to connect to the X display.
Here are some ideas:
- * Use the description under "Continuously" in the [299]FAQ on x11vnc
+ * Use the description under "Continuously" in the [300]FAQ on x11vnc
and Display Managers
- * Use the description in the [300]FAQ on x11vnc and inetd(1)
+ * Use the description in the [301]FAQ on x11vnc and inetd(1)
* Start x11vnc from your $HOME/.xsession (or $HOME/.xinitrc)
- * Although less reliable, see the [301]x11vnc_loop rc.local hack
+ * Although less reliable, see the [302]x11vnc_loop rc.local hack
below.
The display manager scheme will not be specific to which user has the
@@ -2740,7 +2744,7 @@ x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/.vnc/passwd -forever -bg
while running x11vnc as root, e.g. for the gnome display manager, gdm:
x11vnc -auth /var/gdm/:0.Xauth -display :0
- (the [302]-auth option sets the XAUTHORITY variable for you).
+ (the [303]-auth option sets the XAUTHORITY variable for you).
There will be a similar thing for xdm using however a different auth
directory path (perhaps something like
@@ -2765,7 +2769,7 @@ x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/.vnc/passwd -forever -bg
auth file should be in /var/dt), you'll also need to add something
like Dtlogin*grabServer:False to the Xconfig file
(/etc/dt/config/Xconfig or /usr/dt/config/Xconfig on Solaris, see
- [303]the example at the end of this FAQ). Then restart dtlogin, e.g.:
+ [304]the example at the end of this FAQ). Then restart dtlogin, e.g.:
/etc/init.d/dtlogin stop; /etc/init.d/dtlogin start or reboot.
Continuously. Have x11vnc reattach each time the X server is
@@ -2828,7 +2832,7 @@ rever -bg
Then restart: /usr/sbin/gdm-restart (or reboot). The
KillInitClients=false setting is important: without it x11vnc will be
- killed immediately after the user logs in. Here are [304]full details
+ killed immediately after the user logs in. Here are [305]full details
on how to configure gdm
_________________________________________________________________
@@ -2870,13 +2874,13 @@ rever -bg
If you do not want to deal with any display manager startup scripts,
here is a kludgey script that can be run manually or out of a boot
- file like rc.local: [305]x11vnc_loop It will need some local
+ file like rc.local: [306]x11vnc_loop It will need some local
customization before running. Because the XAUTHORITY auth file must be
guessed by this script, use of the display manager script method
described above is greatly preferred.
If the machine is a traditional Xterminal you may want to read
- [306]this FAQ.
+ [307]this FAQ.
Q-44: Can I run x11vnc out of inetd(1)? How about xinetd(1)?
@@ -2886,7 +2890,7 @@ rever -bg
5900 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc_sh
- where the shell script /usr/local/bin/x11vnc_sh uses the [307]-inetd
+ where the shell script /usr/local/bin/x11vnc_sh uses the [308]-inetd
option and looks something like (you'll need to customize to your
settings).
#!/bin/sh
@@ -2899,7 +2903,7 @@ rever -bg
and that confuses it greatly, causing it to abort). If you do not use
a wrapper script as above but rather call x11vnc directly in
/etc/inetd.conf and do not redirect stderr to a file, then you must
- specify the -q (aka [308]-quiet) option: "/usr/local/bin/x11vnc -q
+ specify the -q (aka [309]-quiet) option: "/usr/local/bin/x11vnc -q
-inetd ...". When you supply both -q and -inet and no "-o logfile"
then stderr will automatically be closed (to prevent, e.g. library
stderr messages leaking out to the viewer). The recommended practice
@@ -2907,7 +2911,7 @@ rever -bg
script with "2>logfile" redirection because the errors and warnings
printed out are very useful in troubleshooting problems.
- Note also the need to set XAUTHORITY via [309]-auth to point to the
+ Note also the need to set XAUTHORITY via [310]-auth to point to the
MIT-COOKIE auth file to get permission to connect to the X display
(setting and exporting the XAUTHORITY variable accomplishes the same
thing). See the x11vnc_loop file in the previous question for more
@@ -2974,7 +2978,7 @@ service x11vncservice
Q-45: Can I have x11vnc restart itself after it terminates?
One could do this in a shell script, but now there is an option
- [310]-loop that makes it easier. Of course when x11vnc restarts it
+ [311]-loop that makes it easier. Of course when x11vnc restarts it
needs to have permissions to connect to the (potentially new) X
display. This mode could be useful if the X server restarts often. Use
e.g. "-loop5000" to sleep 5000 ms between restarts. Also "-loop2000,5"
@@ -2985,7 +2989,7 @@ service x11vncservice
web browser?
To have x11vnc serve up a Java VNC viewer applet to any web browsers
- that connect to it, run x11vnc with this [311]option:
+ that connect to it, run x11vnc with this [312]option:
-httpdir /path/to/the/java/classes/dir
(this directory will contain the files index.vnc and, for example,
@@ -3004,7 +3008,7 @@ service x11vncservice
then you can connect to that URL with any Java enabled browser. Feel
free to customize the default index.vnc file in the classes directory.
- As of May/2005 the [312]-http option will try to guess where the Java
+ As of May/2005 the [313]-http option will try to guess where the Java
classes jar file is by looking a expected locations.
Also note that if you wanted to, you could also start the Java viewer
@@ -3018,7 +3022,7 @@ service x11vncservice
As of Mar/2004 in the libvncserver CVS x11vnc supports reverse
connections. On Unix one starts the VNC viewer in listen mode:
vncviewer -listen (see your documentation for Windows, etc), and then
- starts up x11vnc with the [313]-connect option. To connect immediately
+ starts up x11vnc with the [314]-connect option. To connect immediately
at x11vnc startup time use the "-connect host:port" option (use commas
for a list of hosts to connect to). The ":port" is optional (default
is 5500). If a file is specified instead: -connect /path/to/some/file
@@ -3026,7 +3030,7 @@ service x11vncservice
hosts to connect to.
To use the vncconnect(1) program (from the core VNC package at
- www.realvnc.com) specify the [314]-vncconnect option to x11vnc (Note:
+ www.realvnc.com) specify the [315]-vncconnect option to x11vnc (Note:
as of Dec/2004 -vncconnect is now the default). vncconnect(1) must be
pointed to the same X11 DISPLAY as x11vnc (since it uses X properties
to communicate with x11vnc). If you do not have or do not want to get
@@ -3070,7 +3074,7 @@ xprop -root -f VNC_CONNECT 8s -set VNC_CONNECT "$1"
There are some annoyances WRT Xvfb though. The default keyboard
mapping seems to be very poor. One should run x11vnc with
- [315]-add_keysyms option to have keysyms added automatically. Also, to
+ [316]-add_keysyms option to have keysyms added automatically. Also, to
add the Shift_R and Control_R modifiers something like this is needed:
#!/bin/sh
xmodmap -e "keycode any = Shift_R"
@@ -3092,11 +3096,11 @@ xmodmap -e "add Control = Control_L Control_R"
The main drawback to this method (besides requiring extra
configuration and possibly root permission) is that it also does the
- Linux Virtual Console/Terminal (VC/VT) [316]switching even though it
+ Linux Virtual Console/Terminal (VC/VT) [317]switching even though it
does not need to (since it doesn't use a real framebuffer). There are
some "dual headed" (actually multi-headed/multi-user) patches to the X
server that turn off the VT usage in the X server. Update: As of
- Jul/2005 we have an LD_PRELOAD script [317]Xdummy that allows you to
+ Jul/2005 we have an LD_PRELOAD script [318]Xdummy that allows you to
use a stock (i.e. unpatched) Xorg or XFree86 server with the "dummy"
driver and not have any VT switching problems! Currently Xdummy needs
to be run as root, but with some luck that may be relaxed in the
@@ -3128,7 +3132,7 @@ startx -- /path/to/Xdummy :1
An X server can be started on the headless machine (sometimes this
requires configuring the X server to not fail if it cannot detect a
keyboard or mouse, see the next paragraph). Then you can export that X
- display via x11vnc (e.g. see [318]this FAQ) and access it from
+ display via x11vnc (e.g. see [319]this FAQ) and access it from
anywhere on the network via a VNC viewer.
Some tips on getting X servers to start on machines without keyboard
@@ -3171,7 +3175,7 @@ startx -- /path/to/Xdummy :1
19/03/2004 10:10:58 error creating tile-row shm for len=4
19/03/2004 10:10:58 reverting to single_copytile mode
- Here is a shell script [319]shm_clear to list and prompt for removal
+ Here is a shell script [320]shm_clear to list and prompt for removal
of your unattached shm segments (attached ones are skipped). I use it
while debugging x11vnc (I use "shm_clear -y" to assume "yes" for each
prompt). If x11vnc is regularly not cleaning up its shm segments,
@@ -3205,36 +3209,36 @@ ied)
in /etc/system. See the next paragraph for more workarounds.
To minimize the number of shm segments used by x11vnc try using the
- [320]-onetile option (corresponds to only 3 shm segments used, and
+ [321]-onetile option (corresponds to only 3 shm segments used, and
adding -fs 1.0 knocks it down to 2). If you are having much trouble
with shm segments, consider disabling shm completely via the
- [321]-noshm option. Performance will be somewhat degraded but when
+ [322]-noshm option. Performance will be somewhat degraded but when
done over local machine sockets it should be acceptable (see an
- [322]earlier question discussing -noshm).
+ [323]earlier question discussing -noshm).
Q-51: How can I make x11vnc use less system resources?
- The [323]-nap and "[324]-wait n" (where n is the sleep between polls
+ The [324]-nap and "[325]-wait n" (where n is the sleep between polls
in milliseconds, the default is 30 or so) option are good places to
start. Reducing the X server bits per pixel depth (e.g. to 16bpp or
even 8bpp) will further decrease memory I/O and network I/O. The
ShadowFB will make x11vnc's screen polling less severe. Using the
- [325]-onetile option will use less memory and use fewer shared memory
- slots (add [326]-fs 1.0 for one less slot).
+ [326]-onetile option will use less memory and use fewer shared memory
+ slots (add [327]-fs 1.0 for one less slot).
Q-52: How can I make x11vnc use MORE system resources?
- You can try [327]-threads and dial down the wait time (e.g. -wait 1)
- and possibly dial down [328]-defer as well. Note that if you try to
+ You can try [328]-threads and dial down the wait time (e.g. -wait 1)
+ and possibly dial down [329]-defer as well. Note that if you try to
increase the "frame rate" too much you can bog down the server end
with the extra work it needs to do compressing the framebuffer data,
etc.
That said, it is possible to "stream" video via x11vnc if the video
window is small enough. E.g. a 256x192 xawtv TV capture window (using
- the x11vnc [329]-id option) can be streamed over a LAN or wireless at
+ the x11vnc [330]-id option) can be streamed over a LAN or wireless at
a reasonable frame rate.
@@ -3250,16 +3254,16 @@ ied)
* Use a smaller desktop size (e.g. 1024x768 instead of 1280x1024)
* Make sure the desktop background is a solid color (the background
is resent every time it is re-exposed). Consider using the
- [330]-solid [color] option to try to do this automatically.
+ [331]-solid [color] option to try to do this automatically.
* Configure your window manager or desktop "theme" to not use fancy
images, shading, and gradients for the window decorations, etc.
Disable window animations, etc. Maybe your desktop has a "low
bandwidth" theme you can easily switch into and out of.
* Avoid small scrolls of large windows using the Arrow keys or
scrollbar. Try to use PageUp/PageDown instead. (not so much of a
- problem in x11vnc 0.7.2 if [331]-scrollcopyrect is active and
+ problem in x11vnc 0.7.2 if [332]-scrollcopyrect is active and
detecting scrolls for the application).
- * If the [332]-wireframe option is not available (earlier than
+ * If the [333]-wireframe option is not available (earlier than
x11vnc 0.7.2 or you have disabled it via -nowireframe) then
Disable Opaque Moves and Resizes in the window manager/desktop.
* However if -wireframe is active (on by default in x11vnc 0.7.2)
@@ -3279,7 +3283,7 @@ ied)
noticed.
VNC viewer parameters:
- * Use a [333]TightVNC enabled viewer! (Actually, RealVNC 4.x viewer
+ * Use a [334]TightVNC enabled viewer! (Actually, RealVNC 4.x viewer
with ZRLE encoding is not too bad either; some claim it is
faster).
* Make sure the tight (or zrle) encoding is being used (look at
@@ -3302,28 +3306,28 @@ ied)
file.
x11vnc parameters:
- * Try using [334]-nodragging (no screen updates when dragging mouse,
+ * Try using [335]-nodragging (no screen updates when dragging mouse,
but sometimes you miss visual feedback)
- * Make sure the [335]-wireframe option is active (it should be on by
+ * Make sure the [336]-wireframe option is active (it should be on by
default) and you have Opaque Moves/Resizes Enabled in the window
manager.
- * Make sure the [336]-scrollcopyrect option is active (it should be
+ * Make sure the [337]-scrollcopyrect option is active (it should be
on by default). This detects scrolls in many (but not all)
applications an applies the CopyRect encoding for a big speedup.
- * Set [337]-fs 1.0 (disables fullscreen updates)
- * Try increasing [338]-wait or [339]-defer (reduces the maximum
+ * Set [338]-fs 1.0 (disables fullscreen updates)
+ * Try increasing [339]-wait or [340]-defer (reduces the maximum
"frame rate", but won't help much for large screen changes)
- * Try the [340]-progressive pixelheight mode with the block
+ * Try the [341]-progressive pixelheight mode with the block
pixelheight 100 or so (delays sending vertical blocks since they
may change while viewer is receiving earlier ones)
- * If you just want to watch one (simple) window use [341]-id (cuts
+ * If you just want to watch one (simple) window use [342]-id (cuts
down extraneous polling and updates, but can be buggy or
insufficient)
- * Set [342]-nosel (disables all clipboard selection exchange)
- * Use [343]-nocursor and [344]-nocursorpos (repainting the remote
+ * Set [343]-nosel (disables all clipboard selection exchange)
+ * Use [344]-nocursor and [345]-nocursorpos (repainting the remote
cursor position and shape takes resources and round trips)
* On very slow links (e.g. <= 28.8) you may need to increase the
- [345]-readtimeout n setting if it sometimes takes more than 20sec
+ [346]-readtimeout n setting if it sometimes takes more than 20sec
to paint the full screen, etc.
@@ -3345,7 +3349,7 @@ ied)
Note that the DAMAGE extension does not speed up the actual reading of
pixels from the video card framebuffer memory, by, say, mirroring them
- in main memory. So reading the fb is still painfully [346]slow (e.g.
+ in main memory. So reading the fb is still painfully [347]slow (e.g.
5MB/sec), and so even using X DAMAGE when large changes occur on the
screen the bulk of the time is still spent retrieving them. Not ideal,
but use of the ShadowFB XFree86/Xorg option speeds up the reading
@@ -3363,27 +3367,27 @@ ied)
DAMAGE rectangles to contain real damage. The larger rectangles are
only used as hints to focus the traditional scanline polling (i.e. if
a scanline doesn't intersect a recent DAMAGE rectangle, the scan is
- skipped). You can use the "[347]-xd_area A" option to adjust the size
+ skipped). You can use the "[348]-xd_area A" option to adjust the size
of the trusted DAMAGE rectangles. The default is 20000 pixels (e.g. a
140x140 square, etc). Use "-xd_area 0" to disable the cutoff and trust
all DAMAGE rectangles.
- The option "[348]-xd_mem f" may also be of use in tuning the
- algorithm. To disable using DAMAGE entirely use "[349]-noxdamage".
+ The option "[349]-xd_mem f" may also be of use in tuning the
+ algorithm. To disable using DAMAGE entirely use "[350]-noxdamage".
Q-55: When I drag windows around with the mouse or scroll up and down
things really bog down (unless I do the drag in a single, quick
motion). Is there anything to do to improve things?
- This problem is primarily due to [350]slow hardware read rates from
+ This problem is primarily due to [351]slow hardware read rates from
video cards: as you scroll or move a large window around the screen
changes are much too rapid for x11vnc to keep up them (it can usually
only read the video card at about 5-10 MB/sec, so it can take a good
fraction of a second to read the changes induce from moving a large
window, if this to be done a number of times in succession the window
or scroll appears to "lurch" forward). See the description in the
- [351]-pointer_mode option for more info. The next bottleneck is
+ [352]-pointer_mode option for more info. The next bottleneck is
compressing all of these changes and sending them out to connected
viewers, however the VNC protocol is pretty much self-adapting with
respect to that (updates are only packaged and sent when viewers ask
@@ -3393,26 +3397,26 @@ ied)
tree. The default should now be much better than before and dragging
small windows around should no longer be a huge pain. If for some
reason these changes make matters worse, you can go back to the old
- way via the "[352]-pointer_mode 1" option.
+ way via the "[353]-pointer_mode 1" option.
- Also added was the [353]-nodragging option that disables all screen
+ Also added was the [354]-nodragging option that disables all screen
updates while dragging with the mouse (i.e. mouse motion with a button
held down). This gives the snappiest response, but might be undesired
in some circumstances when you want to see the visual feedback while
dragging (e.g. menu traversal or text selection).
- As of Dec/2004 in the libvncserver CVS the [354]-pointer_mode n option
+ As of Dec/2004 in the libvncserver CVS the [355]-pointer_mode n option
was introduced. n=1 is the original mode, n=2 an improvement, etc..
See the -pointer_mode n help for more info.
- Also, in some circumstances the [355]-threads option can improve
+ Also, in some circumstances the [356]-threads option can improve
response considerably. Be forewarned that if more than one vncviewer
is connected at the same time then libvncserver may not be thread safe
(try to get the viewers to use different VNC encodings, e.g. tight and
ZRLE).
As of Apr/2005 in the libvncserver CVS two new options (see the
- [356]wireframe FAQ and [357]scrollcopyrect FAQ below) provide schemes
+ [357]wireframe FAQ and [358]scrollcopyrect FAQ below) provide schemes
to sweep this problem under the rug for window moves or resizes and
for some (but not all) window scrolls.
@@ -3428,8 +3432,8 @@ ied)
shown. When the window move/resize stops, it returns to normal
processing: you should only see the window appear in the new position.
This spares you from interacting with a "lurching" window between all
- of the intermediate steps. BTW the lurching is due to [358]slow video
- card read rates (see [359]here too). A displacement, even a small one,
+ of the intermediate steps. BTW the lurching is due to [359]slow video
+ card read rates (see [360]here too). A displacement, even a small one,
of a large window requires a non-negligible amount of time, a good
fraction of a second, to read in from the hardware framebuffer.
@@ -3437,7 +3441,7 @@ ied)
for -wireframe to do any good.
The mode is currently on by default because most people are inflicted
- with the problem. It can be disabled with the [360]-nowireframe option
+ with the problem. It can be disabled with the [361]-nowireframe option
(aka -nowf). Why might one want to turn off the wireframing? Since
x11vnc is merely guessing when windows are being moved/resized, it may
guess poorly for your window-manager or desktop, or even for the way
@@ -3482,13 +3486,13 @@ ied)
* Maximum time to show a wireframe animation.
* Minimum time between sending wireframe outlines.
- See the [361]"-wireframe tweaks" option for more details. On a slow
+ See the [362]"-wireframe tweaks" option for more details. On a slow
link, e.g. dialup modem, the parameters may be automatically adjusted
for better response.
CopyRect encoding: In addition to the above there is the
- [362]"-wirecopyrect mode" option. It is also on by default. This
+ [363]"-wirecopyrect mode" option. It is also on by default. This
instructs x11vnc to not only show the wireframe animation, but to also
instruct all connected VNC viewers to locally translate the window
image data from the original position to the new position on the
@@ -3536,7 +3540,7 @@ ied)
requiring the image data to be transmitted over the network. For fast
links the speedup is primarily due to x11vnc not having to read the
scrolled framebuffer data from the X server (recall that reading from
- the hardware framebuffer is [363]slow).
+ the hardware framebuffer is [364]slow).
To do this x11vnc uses the RECORD X extension to snoop the X11
protocol between the X client with the focus window and the X server.
@@ -3558,10 +3562,10 @@ ied)
the X server display: if one falls too far behind it could become a
mess...
- The initial implementation of [364]-scrollcopyrect option is useful in
+ The initial implementation of [365]-scrollcopyrect option is useful in
that it detects many scrolls and thus gives a much nicer working
- environment (especially when combined with the [365]-wireframe
- [366]-wirecopyrect [367]options, which are also on by default; and if
+ environment (especially when combined with the [366]-wireframe
+ [367]-wirecopyrect [368]options, which are also on by default; and if
you are willing to enable the ShadowFB things are very fast). The fact
that there aren't long delays or lurches during scrolling is the
primary improvement.
@@ -3594,10 +3598,10 @@ ied)
One can tap the Alt_L key (Left "Alt" key) 3 times in a row to
signal x11vnc to refresh the screen to all viewers. Your
VNC-viewer may have its own screen refresh hot-key or button. See
- also: [368]-fixscreen
+ also: [369]-fixscreen
* Some applications, notably OpenOffice, do XCopyArea scrolls in
weird ways that assume ancestor window clipping is taking place.
- See the [369]-scr_skip option for ways to tweak this on a
+ See the [370]-scr_skip option for ways to tweak this on a
per-application basis.
* Selecting text while dragging the mouse may be slower, especially
if the Button-down event happens near the window's edge. This is
@@ -3614,7 +3618,7 @@ ied)
because it fails to detect scrolls in it. Sometimes clicking
inside the application window or selecting some text in it to
force the focus helps.
- * When using the [370]-scale option there will be a quick CopyRect
+ * When using the [371]-scale option there will be a quick CopyRect
scroll, but it needs to be followed by a slower "cleanup" update.
This is because for a fixed finite screen resolution (e.g. 75 dpi)
scaling and copyrect-ing are not exactly independent. Scaling
@@ -3627,7 +3631,7 @@ ied)
If you find the -scrollcopyrect behavior too approximate or
distracting you can go back to the standard polling-only update method
- with the [371]-noscrollcopyrect (or -noscr for short). If you find
+ with the [372]-noscrollcopyrect (or -noscr for short). If you find
some extremely bad and repeatable behavior for -scrollcopyrect please
report a bug.
@@ -3666,16 +3670,16 @@ ied)
this is because the cursor shape is often downloaded to the graphics
hardware (video card), but I could be mistaken.
- A simple kludge is provided by the "[372]-cursor X" option that
+ A simple kludge is provided by the "[373]-cursor X" option that
changes the cursor when the mouse is on the root background (or any
window has the same cursor as the root background). Note that desktops
like GNOME or KDE often cover up the root background, so this won't
- work for those cases. Also see the "[373]-cursor some" option for
+ work for those cases. Also see the "[374]-cursor some" option for
additional kludges.
Note that as of Aug/2004 in the libvncserver CVS, on Solaris using the
SUN_OVL overlay extension and IRIX, x11vnc can show the correct mouse
- cursor when the [374]-overlay option is supplied. See [375]this FAQ
+ cursor when the [375]-overlay option is supplied. See [376]this FAQ
for more info.
Also as of Dec/2004 in the libvncserver CVS XFIXES X extension support
@@ -3683,7 +3687,7 @@ ied)
XFIXES fixes the problem of the cursor-shape being write-only: x11vnc
can now query the X server for the current shape and send it back to
the connected viewers. XFIXES is available on recent Linux Xorg based
- distros and [376]Solaris 10.
+ distros and [377]Solaris 10.
The only XFIXES issue is the handling of alpha channel transparency in
cursors. If a cursor has any translucency then in general it must be
@@ -3691,7 +3695,7 @@ ied)
situations where the cursor transparency can also handled exactly:
when the VNC Viewer requires the cursor shape be drawn into the VNC
framebuffer or if you apply a patch to your VNC Viewer to extract
- hidden alpha channel data under 32bpp. [377]Details can be found here.
+ hidden alpha channel data under 32bpp. [378]Details can be found here.
Q-59: When using XFIXES cursorshape mode, some of the cursors look
@@ -3724,17 +3728,17 @@ ied)
for most cursor themes and you don't have to worry about it.
In case it still looks bad for your cursor theme, there are (of
- course!) some tunable parameters. The "[378]-alphacut n" option lets
+ course!) some tunable parameters. The "[379]-alphacut n" option lets
you set the threshold "n" (between 0 and 255): cursor pixels with
alpha values below n will be considered completely transparent while
values equal to or above n will be completely opaque. The default is
- 240. The "[379]-alphafrac f" option tries to correct individual
+ 240. The "[380]-alphafrac f" option tries to correct individual
cursors that did not fare well with the default -alphacut value: if a
cursor has less than fraction f (between 0.0 and 1.0) of its pixels
selected by the default -alphacut, the threshold is lowered until f of
its pixels are selected. The default fraction is 0.33.
- Finally, there is an option [380]-alpharemove that is useful for
+ Finally, there is an option [381]-alpharemove that is useful for
themes where many cursors are light colored (e.g. "whiteglass").
XFIXES returns the cursor data with the RGB values pre-multiplied by
the alpha value. If the white cursors look too grey, specify
@@ -3760,11 +3764,11 @@ ied)
send the alpha channel data to libvncserver. However, this data will
only be used for VNC clients that do not support the
CursorShapeUpdates VNC extension (or have disabled it). It can be
- disabled for all clients with the [381]-nocursorshape x11vnc option.
+ disabled for all clients with the [382]-nocursorshape x11vnc option.
In this case the cursor is drawn, correctly blended with the
background, into the VNC framebuffer before being sent out to the
client. So the alpha blending is done on the x11vnc side. Use the
- [382]-noalphablend option to disable this behavior (always approximate
+ [383]-noalphablend option to disable this behavior (always approximate
transparent cursors with opaque RGB values).
The CursorShapeUpdates VNC extension complicates matters because the
@@ -3792,9 +3796,9 @@ ied)
Q-61: Why does the mouse arrow just stay in one corner in my
vncviewer, whereas my cursor (that does move) is just a dot?
- This default takes advantage of a [383]tightvnc extension
+ This default takes advantage of a [384]tightvnc extension
(CursorShapeUpdates) that allows specifying a cursor image shape for
- the local VNC viewer. You may disable it with the [384]-nocursor
+ the local VNC viewer. You may disable it with the [385]-nocursor
option to x11vnc if your viewer does not have this extension.
Note: as of Aug/2004 in the libvncserver CVS this should be fixed: the
@@ -3808,18 +3812,18 @@ ied)
clients (i.e. passive viewers can see the mouse cursor being moved
around by another viewer)?
- Use the [385]-cursorpos option when starting x11vnc. A VNC viewer must
+ Use the [386]-cursorpos option when starting x11vnc. A VNC viewer must
support the Cursor Positions Updates for the user to see the mouse
motions (the TightVNC viewers support this). As of Aug/2004 in the
- libvncserver CVS -cursorpos is the default. See also [386]-nocursorpos
- and [387]-nocursorshape.
+ libvncserver CVS -cursorpos is the default. See also [387]-nocursorpos
+ and [388]-nocursorshape.
Q-63: Is it possible to swap the mouse buttons (e.g. left-handed
operation), or arbitrarily remap them? How about mapping button clicks
to keystrokes, e.g. to partially emulate Mouse wheel scrolling?
- You can remap the mouse buttons via something like: [388]-buttonmap
+ You can remap the mouse buttons via something like: [389]-buttonmap
13-31 (or perhaps 12-21). Also, note that xmodmap(1) lets you directly
adjust the X server's button mappings, but in some circumstances it
might be more desirable to have x11vnc do it.
@@ -3827,7 +3831,7 @@ ied)
One user had an X server with only one mouse button(!) and was able to
map all of the VNC client mouse buttons to it via: -buttonmap 123-111.
- Note that the [389]-debug_pointer option prints out much info for
+ Note that the [390]-debug_pointer option prints out much info for
every mouse/pointer event and is handy in solving problems.
To map mouse button clicks to keystrokes you can use the alternate
@@ -3849,7 +3853,7 @@ ied)
Exactly what keystroke "scrolling" events they should be bound to
depends on one's taste. If this method is too approximate, one could
- consider not using [390]-buttonmap but rather configuring the X server
+ consider not using [391]-buttonmap but rather configuring the X server
to think it has a mouse with 5 buttons even though the physical mouse
does not. (e.g. 'Option "ZAxisMapping" "4 5"').
@@ -3879,7 +3883,7 @@ ied)
Q-64: How can I get my AltGr and Shift modifiers to work between
keyboards for different languages?
- The option [391]-modtweak should help here. It is a mode that monitors
+ The option [392]-modtweak should help here. It is a mode that monitors
the state of the Shift and AltGr Modifiers and tries to deduce the
correct keycode to send, possibly by sending fake modifier key presses
and releases in addition to the actual keystroke.
@@ -3888,17 +3892,17 @@ ied)
default (use -nomodtweak to get the old behavior). This was done
because it was noticed on newer XFree86 setups even on bland "us"
keyboards like "pc104 us" XFree86 included a "ghost" key with both "<"
- and ">" it. This key does not exist on the keyboard (see [392]this FAQ
+ and ">" it. This key does not exist on the keyboard (see [393]this FAQ
for more info). Without -modtweak there was then an ambiguity in the
reverse map keysym => keycode, making it so the "<" symbol could not
be typed.
- Also see the [393]FAQ about the -xkb option for a more powerful method
+ Also see the [394]FAQ about the -xkb option for a more powerful method
of modifier tweaking for use on X servers with the XKEYBOARD
extension.
When trying to resolve keyboard mapping problems, note that the
- [394]-debug_keyboard option prints out much info for every keystroke
+ [395]-debug_keyboard option prints out much info for every keystroke
and so can be useful debugging things.
@@ -3910,9 +3914,9 @@ ied)
(e.g. pc105 in the XF86Config file when it should be something else,
say pc104).
- Short Cut: Try the [395]-xkb or [396]-sloppy_keys options and see if
+ Short Cut: Try the [396]-xkb or [397]-sloppy_keys options and see if
that helps the situation. The discussion below is a bit outdated (e.g.
- [397]-modtweak is now the default) but is useful reference for various
+ [398]-modtweak is now the default) but is useful reference for various
tricks and so is kept.
@@ -3955,17 +3959,17 @@ ied)
-remap less-comma
These are convenient in that they do not modify the actual X server
- settings. The former ([398]-modtweak) is a mode that monitors the
+ settings. The former ([399]-modtweak) is a mode that monitors the
state of the Shift and AltGr modifiers and tries to deduce the correct
keycode sequence to send. Since Jul/2004 -modtweak is now the default.
- The latter ([399]-remap less-comma) is an immediate remapping of the
+ The latter ([400]-remap less-comma) is an immediate remapping of the
keysym less to the keysym comma when it comes in from a client (so
when Shift is down the comma press will yield "<").
- See also the [400]FAQ about the -xkb option as a possible workaround
+ See also the [401]FAQ about the -xkb option as a possible workaround
using the XKEYBOARD extension.
- Note that the [401]-debug_keyboard option prints out much info for
+ Note that the [402]-debug_keyboard option prints out much info for
every keystroke to aid debugging keyboard problems.
@@ -3973,13 +3977,13 @@ ied)
(i.e. an extra comma).
This is likely because you press "Shift" then "<" but then released
- the Shift key before releasing the "<". Because of a [402]keymapping
+ the Shift key before releasing the "<". Because of a [403]keymapping
ambiguity the last event "< up" is interpreted as "," because that key
unshifted is the comma.
- This should not happen in [403]-xkb mode, because it works hard to
+ This should not happen in [404]-xkb mode, because it works hard to
resolve the ambiguities. If you do not want to use -xkb, try the
- option [404]-sloppy_keys to attempt a similar type of algorithm.
+ option [405]-sloppy_keys to attempt a similar type of algorithm.
Q-67: I'm using an "international" keyboard (e.g. German "de", or
@@ -4003,7 +4007,7 @@ ied)
In both cases no AltGr is sent to the VNC server, but we know AltGr is
needed on the physical international keyboard to type a "@".
- This all worked fine with x11vnc running with the [405]-modtweak
+ This all worked fine with x11vnc running with the [406]-modtweak
option (it figures out how to adjust the Modifier keys (Shift or
AltGr) to get the "@"). However it fails under recent versions of
XFree86 (and the X.org fork). These run the XKEYBOARD extension by
@@ -4021,7 +4025,7 @@ ied)
* there is a new option -xkb to use the XKEYBOARD extension API to
do the Modifier key tweaking.
- The [406]-xkb option seems to fix all of the missing keys: "@", "<",
+ The [407]-xkb option seems to fix all of the missing keys: "@", "<",
">", etc.: it is recommended that you try it if you have this sort of
problem. Let us know if there are any remaining problems (see the next
paragraph for some known problems). If you specify the -debug_keyboard
@@ -4029,7 +4033,7 @@ ied)
debugging output (send it along with any problems you report).
Update: as of Jun/2005 x11vnc will try to automatically enable
- [407]-xkb if it appears that would be beneficial (e.g. if it sees any
+ [408]-xkb if it appears that would be beneficial (e.g. if it sees any
of "@", "<", ">", "[" and similar keys are mapped in a way that needs
the -xkb to access them). To disable this automatic check use -noxkb.
@@ -4044,7 +4048,7 @@ ied)
was attached to keycode 93 (no physical key generates this
keycode) while ISO_Level3_Shift was attached to keycode 113. The
keycode skipping option was used to disable the ghost key:
- [408]-skip_keycodes 93
+ [409]-skip_keycodes 93
* In implementing -xkb we noticed that some characters were still
not getting through, e.g. "~" and "^". This is not really an
XKEYBOARD problem. What was happening was the VNC viewer was
@@ -4061,16 +4065,16 @@ ied)
What to do? In general the VNC protocol has not really solved this
problem: what should be done if the VNC viewer sends a keysym not
recognized by the VNC server side? Workarounds can possibly be
- created using the [409]-remap x11vnc option:
+ created using the [410]-remap x11vnc option:
-remap asciitilde-dead_tilde,asciicircum-dead_circumflex
etc. Use -remap filename if the list is long. Please send us your
workarounds for this problem on your keyboard. Perhaps we can have
x11vnc adjust automatically at some point. Also see the
- [410]-add_keysyms option in the next paragraph.
- Update: for convenience "[411]-remap DEAD" does many of these
+ [411]-add_keysyms option in the next paragraph.
+ Update: for convenience "[412]-remap DEAD" does many of these
mappings at once.
- * To complement the above workaround using the [412]-remap, an
- option [413]-add_keysyms was added. This option instructs x11vnc
+ * To complement the above workaround using the [413]-remap, an
+ option [414]-add_keysyms was added. This option instructs x11vnc
to bind any unknown Keysyms coming in from VNC viewers to unused
Keycodes in the X server. This modifies the global state of the X
server. When x11vnc exits it removes the extra keymappings it
@@ -4089,7 +4093,7 @@ ied)
Short answer: disable key autorepeating by running the command "xset r
off" on the Xserver where x11vnc is run (restore via "xset r on") or
- use the new (Jul/2004) [414]-norepeat x11vnc option. You will still
+ use the new (Jul/2004) [415]-norepeat x11vnc option. You will still
have autorepeating because that is taken care of on your VNC viewer
side.
@@ -4113,7 +4117,7 @@ ied)
off", does the problem go away?
The workaround is to manually apply "xset r off" and "xset r on" as
- needed, or to use the [415]-norepeat (which has since Dec/2004 been
+ needed, or to use the [416]-norepeat (which has since Dec/2004 been
made the default). Note that with X server autorepeat turned off the
VNC viewer side of the connection will (nearly always) do its own
autorepeating so there is no big loss here, unless someone is also
@@ -4124,7 +4128,7 @@ ied)
keystrokes!!
Are you using x11vnc to log in to an X session? (as described in
- [416]this FAQ) If so, x11vnc is starting before your session and it
+ [417]this FAQ) If so, x11vnc is starting before your session and it
disables autorepeat when you connect, but then after you log in your
session startup (GNOME, KDE, ...) could be resetting the autorepeat to
be on. Or it could be something inside your desktop trying to be
@@ -4148,7 +4152,7 @@ ied)
machine where I run the VNC viewer does not. Is there a way I can map
a local unused key to send an AltGr? How about a Compose key as well?
- Something like "[417]-remap Super_R-Mode_switch" x11vnc option may
+ Something like "[418]-remap Super_R-Mode_switch" x11vnc option may
work. Note that Super_R is the "Right Windoze(tm) Flaggie" key; you
may want to choose another. The -debug_keyboard option comes in handy
in finding keysym names (so does xev(1)).
@@ -4171,7 +4175,7 @@ ied)
Since xmodmap(1) modifies the X server mappings you may not want to do
this (because it affects local work on that machine). Something like
- the [418]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones
+ the [419]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones
needs, and does not modify the X server environment. Note that you
cannot send Alt_L in this case, maybe -remap Super_L-Meta_L would be a
better choice if the Super_L key is typically unused in Unix.
@@ -4182,7 +4186,7 @@ ied)
This can be done directly in some X servers using AccessX and
Pointer_EnableKeys, but is a bit awkward. It may be more convenient to
- have x11vnc do the remapping. This can be done via the [419]-remap
+ have x11vnc do the remapping. This can be done via the [420]-remap
option using the fake "keysyms" Button1, Button2, etc. as the "to"
keys (i.e. the ones after the "-")
@@ -4191,7 +4195,7 @@ ied)
button "paste" because (using XFree86/Xorg Emulate3Buttons) you have
to click both buttons on the touch pad at the same time. This
remapping:
- [420]-remap Super_R-Button2
+ [421]-remap Super_R-Button2
maps the Super_R "flag" key press to the Button2 click, thereby making
X pasting a bit easier.
@@ -4221,7 +4225,7 @@ ied)
There may also be scaling viewers out there (e.g. TightVNC or UltraVNC
on Windows) that automatically shrink or expand the remote framebuffer
to fit the local display. Especially for hand-held devices. See also
- [421]this FAQ on x11vnc scaling.
+ [422]this FAQ on x11vnc scaling.
Q-74: Does x11vnc support server-side framebuffer scaling? (E.g. to
@@ -4229,7 +4233,7 @@ ied)
As of Jun/2004 in the libvncserver CVS x11vnc provides basic
server-side scaling. It is a global scaling of the desktop, not a
- per-client setting. To enable it use the "[422]-scale fraction"
+ per-client setting. To enable it use the "[423]-scale fraction"
option. "fraction" can either be a floating point number (e.g. -scale
0.5) or the alternative m/n fraction notation (e.g. -scale 2/3). Note
that if fraction is greater than one the display is magnified.
@@ -4250,7 +4254,7 @@ ied)
One can also use the ":nb" with an integer scale factor (say "-scale
2:nb") to use x11vnc as a screen magnifier for vision impaired
- [423]applications. Since with integer scale factors the framebuffers
+ [424]applications. Since with integer scale factors the framebuffers
become huge and scaling operations time consuming, be sure to use
":nb" for the fastest response.
@@ -4276,12 +4280,12 @@ ied)
If one desires per-client scaling for something like 1:1 from a
workstation and 1:2 from a smaller device (e.g. handheld), currently
the only option is to run two (or more) x11vnc processes with
- different scalings listening on separate ports ([424]-rfbport option,
+ different scalings listening on separate ports ([425]-rfbport option,
etc.).
BTW, whenever you run two or more x11vnc's on the same X display and
- use the [425]GUI, then to avoid all of the x11vnc's simultaneously
- answering the gui you will need to use something like [426]"-connect
+ use the [426]GUI, then to avoid all of the x11vnc's simultaneously
+ answering the gui you will need to use something like [427]"-connect
file1 -gui ..." with different connect files for each x11vnc you want
to control via the gui (or remote-control). The "-connect file1" usage
gives separate communication channels between a x11vnc proces and the
@@ -4290,7 +4294,7 @@ ied)
Update: As of Mar/2005 in the libvncserver CVS x11vnc now scales the
mouse cursor with the same scale factor as the screen. If you don't
- want that, use the [427]"-scale_cursor frac" option to set the cursor
+ want that, use the [428]"-scale_cursor frac" option to set the cursor
scaling to a different factor (e.g. use "-scale_cursor 1" to keep the
cursor at its natural unscaled size).
@@ -4312,16 +4316,16 @@ ied)
screen is not rectangular (e.g. 1280x1024 and 1024x768 monitors joined
together), then there will be "non-existent" areas on the screen. The
X server will return "garbage" image data for these areas and so they
- may be distracting to the viewer. The [428]-blackout x11vnc option
+ may be distracting to the viewer. The [429]-blackout x11vnc option
allows you to blacken-out rectangles by manually specifying their
WxH+X+Y geometries. If your system has the libXinerama library, the
- [429]-xinerama x11vnc option can be used to have it automatically
+ [430]-xinerama x11vnc option can be used to have it automatically
determine the rectangles to be blackened out. (Note on 8bpp
PseudoColor displays the fill color may not be black).
Some users have reported that the mouse does not behave properly for
their Xinerama display: i.e. the mouse cannot be moved to all regions
- of the large display. If this happens try using the [430]-xwarppointer
+ of the large display. If this happens try using the [431]-xwarppointer
option. This instructs x11vnc to fake mouse pointer motions using the
XWarpPointer function instead of the XTestFakeMotionEvent XTEST
function. (This may be due to a bug in the X server for XTEST when
@@ -4346,23 +4350,23 @@ ied)
Note: if you are running on Solaris 8 or earlier you can easily hit up
against the maximum of 6 shm segments per process (for Xsun in this
case) from running multiple x11vnc processes. You should modify
- /etc/system as mentioned in another [431]FAQ to increase the limit. It
- is probably also a good idea to run with the [432]-onetile option in
+ /etc/system as mentioned in another [432]FAQ to increase the limit. It
+ is probably also a good idea to run with the [433]-onetile option in
this case (to limit each x11vnc to 3 shm segments), or even
- [433]-noshm to use no shm segments.
+ [434]-noshm to use no shm segments.
Q-77: Can x11vnc show only a portion of the display? (E.g. for a
special purpose rfb application).
- As of Mar/2005 in the libvncserver CVS x11vnc has the "[434]-clip
+ As of Mar/2005 in the libvncserver CVS x11vnc has the "[435]-clip
WxH+X+Y" option to select a rectangle of width W, height H and offset
(X, Y). Thus the VNC screen will be the clipped sub-region of the
display and be only WxH in size. One user used -clip to split up a
- large [435]Xinerama screen into two more managable smaller screens.
+ large [436]Xinerama screen into two more managable smaller screens.
This also works to view a sub-region of a single application window if
- the [436]-id or [437]-sid options are used. The offset is measured
+ the [437]-id or [438]-sid options are used. The offset is measured
from the upper left corner of the selected window.
@@ -4371,7 +4375,7 @@ ied)
crash.
As of Dec/2004 in the libvncserver CVS x11vnc supports XRANDR. You
- enable it with the [438]-xrandr option to make x11vnc monitor XRANDR
+ enable it with the [439]-xrandr option to make x11vnc monitor XRANDR
events and also trap X server errors if the screen change occurred in
the middle of an X call like XGetImage. Once it traps the screen
change it will create a new framebuffer using the new screen.
@@ -4381,7 +4385,7 @@ ied)
then the viewer will automatically resize. Otherwise, the new
framebuffer is fit as best as possible into the original viewer size
(portions of the screen may be clipped, unused, etc). For these
- viewers you can try the [439]-padgeom option to make the region big
+ viewers you can try the [440]-padgeom option to make the region big
enough to hold all resizes and rotations.
If you specify "-xrandr newfbsize" then vnc viewers that do not
@@ -4435,9 +4439,9 @@ ied)
* Fullscreen mode
The way VMWare does Fullscreen mode on Linux is to display the Guest
- desktop in a separate Virtual Console (e.g. VC 8) (see [440]this FAQ
+ desktop in a separate Virtual Console (e.g. VC 8) (see [441]this FAQ
on VC's for background). Unfortunately, this Fullscreen VC is not an X
- server. So x11vnc cannot access it (however, [441]see this for a
+ server. So x11vnc cannot access it (however, [442]see this for a
possible partial workaround). x11vnc works fine with "Normal X
application window" and "Quick-Switch mode" because these use X.
@@ -4454,13 +4458,13 @@ ied)
response. One can also cut the display depth (e.g. to 16bpp) in this
2nd X session to improve video performance. This 2nd X session
emulates Fullscreen mode to some degree and can be viewed via x11vnc
- as long as the VMWare X session [442]is in the active VC.
+ as long as the VMWare X session [443]is in the active VC.
Also note that with a little bit of playing with "xwininfo -all
-children" output one can extract the (non-toplevel) windowid of the
of the Guest desktop only when VMWare is running as a normal X
application. Then one can export just the guest desktop (i.e. without
- the VMWare menu buttons) by use of the [443]-id windowid option. The
+ the VMWare menu buttons) by use of the [444]-id windowid option. The
caveats are the X session VMWare is in must be in the active VC and
the window must be fully visible, so this mode is not terribly
convenient, but could be useful in some circumstances (e.g. running
@@ -4541,7 +4545,7 @@ ied)
screen to either shm or a mapped file. The format of these is XWD and
so the initial header should be skipped. BTW, since XWD is not
strictly RGB the view will only be approximate. Of course for the case
- of Xvfb x11vnc can poll it much better via the [444]X API, but you get
+ of Xvfb x11vnc can poll it much better via the [445]X API, but you get
the idea.
By default in -rawfb mode x11vnc will actually close any X display it
@@ -4594,7 +4598,7 @@ ied)
keystrokes into the Linux console (e.g. the virtual consoles:
/dev/tty1, /dev/tty2, etc) in x11vnc/misc/vcinject.pl. It is based on
the vncterm/LinuxVNC.c program also in the libvncserver CVS. So to
- view and interact with VC #2 (assuming it is the [445]active VC) one
+ view and interact with VC #2 (assuming it is the [446]active VC) one
can run something like:
x11vnc -rawfb map:/dev/fb0@1024x768x16 -pipeinput './vcinject.pl 2'
@@ -4607,7 +4611,7 @@ ied)
more accurate and faster LinuxVNC program. The only advantage x11vnc
-rawfb might have is that it can presumably allow interaction with a
non-text application, e.g. one based on svgalib. For example the
- [446]VMWare Fullscreen mode is actually viewable under -rawfb. But
+ [447]VMWare Fullscreen mode is actually viewable under -rawfb. But
this isn't much use until one figures out how to inject keystrokes and
mouse events...
@@ -4639,10 +4643,10 @@ ied)
As of Jan/2004 in the libvncserver CVS x11vnc supports the "CutText"
part of the rfb protocol. Furthermore, x11vnc is able to hold the
PRIMARY selection (Xvnc does not seem to do this). If you don't want
- the Clipboard/Selection exchanged use the [447]-nosel option. If you
+ the Clipboard/Selection exchanged use the [448]-nosel option. If you
don't want the PRIMARY selection to be polled for changes use the
- [448]-noprimary option. You can also fine-tune it a bit with the
- [449]-seldir dir option.
+ [449]-noprimary option. You can also fine-tune it a bit with the
+ [450]-seldir dir option.
You may need to watch out for desktop utilities such as KDE's
"Klipper" that do odd things with the selection, clipboard, and
@@ -4654,7 +4658,7 @@ ied)
As of Oct/2005 x11vnc enables the TightVNC file transfer
implementation that was added to libvncserver. This currently only
works with TightVNC viewers (and Windows only it appears). It is on by
- default, to disable it use the [450]-nofilexfer option.
+ default, to disable it use the [451]-nofilexfer option.
Q-86: Why don't I hear the "Beeps" in my X session (e.g. when typing
@@ -4665,7 +4669,7 @@ ied)
not on by default in Solaris, see Xserver(1) for how to turn it on via
+kb), and so you won't hear them if the extension is not present.
- If you don't want to hear the beeps use the [451]-nobell option. If
+ If you don't want to hear the beeps use the [452]-nobell option. If
you want to hear the audio from the remote applications, consider
trying a redirector such as esd.
@@ -4679,9 +4683,6 @@ ied)
Please do (any amount is appreciated) and thank you for your support!
Click on the PayPal button below for more info.
- Also, in general I always enjoy hearing from x11vnc users, how they
- use it, what new features they would like, etc. Please send me an
- [452]email!
[PayPal]
@@ -4690,455 +4691,455 @@ References
1. http://www.karlrunge.com/x11vnc/index.html#faq
2. http://www.karlrunge.com/x11vnc/index.html#downloading
3. http://www.karlrunge.com/x11vnc/index.html#building
- 4. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
- 5. http://www.karlrunge.com/x11vnc/index.html#beta-test
- 6. http://www.karlrunge.com/x11vnc/index.html#faq
- 7. http://www.karlrunge.com/x11vnc/index.html#contact
- 8. http://www.uk.research.att.com/vnc/
- 9. http://www.realvnc.com/
- 10. http://www.tightvnc.com/
- 11. http://www.karlrunge.com/x11vnc/index.html#downloading
- 12. http://www.tightvnc.com/download.html
- 13. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 14. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
+ 4. http://www.karlrunge.com/x11vnc/index.html#beta-test
+ 5. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
+ 6. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
+ 7. http://www.karlrunge.com/x11vnc/index.html#faq
+ 8. http://www.karlrunge.com/x11vnc/index.html#contact
+ 9. http://www.uk.research.att.com/vnc/
+ 10. http://www.realvnc.com/
+ 11. http://www.tightvnc.com/
+ 12. http://www.karlrunge.com/x11vnc/index.html#downloading
+ 13. http://www.tightvnc.com/download.html
+ 14. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
15. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
- 16. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download
- 17. http://www.sun.com/software/solaris/freeware/
- 18. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
+ 16. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
+ 17. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download
+ 18. http://www.sun.com/software/solaris/freeware/
19. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
- 20. http://www.karlrunge.com/x11vnc/index.html#faq-service
- 21. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 22. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file
- 23. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 24. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file
- 25. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 26. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via
- 27. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
- 28. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
- 29. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 30. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 31. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 32. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 33. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 34. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 35. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
- 36. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
- 37. http://sourceforge.net/projects/libvncserver/
- 38. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=393257
- 39. http://sourceforge.net/project/shownotes.php?release_id=393257&group_id=32584
- 40. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz
- 41. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
- 42. http://www.tightvnc.com/download.html
- 43. http://www.realvnc.com/download-free.html
- 44. http://sourceforge.net/projects/cotvnc/
- 45. http://www.karlrunge.com/x11vnc/rx11vnc
- 46. http://www.karlrunge.com/x11vnc/rx11vnc.pl
- 47. http://www.sunfreeware.com/
- 48. http://www.karlrunge.com/x11vnc/bins
- 49. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
- 50. http://www.karlrunge.com/x11vnc/index.html#faq-build
- 51. ftp://ftp.uu.net/graphics/jpeg/
- 52. http://www.gzip.org/zlib/
- 53. http://www.sunfreeware.com/
- 54. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
- 55. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz
- 56. http://www.karlrunge.com/x11vnc/bins
- 57. mailto:x11vnc-beta@karlrunge.com
- 58. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer
- 59. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 60. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
- 61. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop
- 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept
- 64. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 65. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-slow_fb
- 66. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout
- 67. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
- 68. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 69. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect
- 70. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
- 71. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
- 72. http://www.tightvnc.com/
- 73. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
- 74. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
- 75. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 76. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg
- 77. http://wwws.sun.com/sunray/index.html
- 78. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
- 79. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sb
- 80. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
- 81. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
- 82. http://www.karlrunge.com/x11vnc/vnc_findports
- 83. http://www.karlrunge.com/x11vnc/findvncports
- 84. http://www.karlrunge.com/x11vnc/shm_clear
- 85. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept
- 86. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 87. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 88. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
- 89. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
- 90. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 91. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 92. mailto:xvml@karlrunge.com
- 93. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
- 94. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
- 95. http://www.karlrunge.com/x11vnc/index.html#faq-build
- 96. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest
- 97. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
- 98. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
- 99. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download
- 100. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts
- 101. http://www.karlrunge.com/x11vnc/index.html#faq-config-file
- 102. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
- 103. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg
- 104. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe
- 105. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations
- 106. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc
- 107. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp
- 108. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
- 109. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
- 110. http://www.karlrunge.com/x11vnc/index.html#faq-windowid
- 111. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id
- 112. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp
- 113. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
- 114. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
- 115. http://www.karlrunge.com/x11vnc/index.html#faq-sunrays
- 116. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg
- 117. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control
- 118. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 119. http://www.karlrunge.com/x11vnc/index.html#faq-passwd-noecho
- 120. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 121. http://www.karlrunge.com/x11vnc/index.html#faq-multipasswd
- 122. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt
- 123. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared
- 124. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
- 125. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
- 126. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface
- 127. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost
- 128. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix
- 129. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty
- 130. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt
- 131. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords
- 132. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt
- 133. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy
- 134. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock
- 135. http://www.karlrunge.com/x11vnc/index.html#faq-service
- 136. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
- 137. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 138. http://www.karlrunge.com/x11vnc/index.html#faq-loop
- 139. http://www.karlrunge.com/x11vnc/index.html#faq-java-http
- 140. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect
- 141. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
- 142. http://www.karlrunge.com/x11vnc/index.html#faq-headless
- 143. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
- 144. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource
- 145. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource
- 146. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link
- 147. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
- 148. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
- 149. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 150. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
- 151. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape
- 152. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha
- 153. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
- 154. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow
- 155. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions
- 156. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt
- 157. http://www.karlrunge.com/x11vnc/index.html#faq-altgr
- 158. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
- 159. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy
- 160. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
- 161. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys
- 162. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still
- 163. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt
- 164. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta
- 165. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click
- 166. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars
- 167. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
- 168. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
- 169. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen
- 170. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen
- 171. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr
- 172. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen
- 173. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 174. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
- 175. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
- 176. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars
- 177. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard
- 178. http://www.karlrunge.com/x11vnc/index.html#faq-filexfer
- 179. http://www.karlrunge.com/x11vnc/index.html#faq-beeps
- 180. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
- 181. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
- 182. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 183. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
- 184. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
- 185. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
- 186. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html
- 187. http://www.karlrunge.com/x11vnc/index.html#building
- 188. http://www.karlrunge.com/x11vnc/index.html#faq-build
- 189. http://packages.debian.org/x11vnc
- 190. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc
- 191. http://dag.wieers.com/packages/x11vnc/
- 192. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/
- 193. http://www.sunfreeware.com/
- 194. http://www.bell-labs.com/project/wwexptools/packages.html
- 195. http://www.karlrunge.com/x11vnc/bins
- 196. http://www.tightvnc.com/download.html
- 197. http://www.realvnc.com/download-free.html
- 198. http://sourceforge.net/projects/cotvnc/
- 199. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
- 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
- 201. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
- 202. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
- 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
- 204. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o
- 205. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
- 206. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb
- 207. http://fredrik.hubbe.net/x2vnc.html
- 208. http://www.hubbe.net/~hubbe/win2vnc.html
- 209. http://www.deboer.gmxhome.de/
- 210. http://sourceforge.net/projects/win2vnc/
- 211. http://fredrik.hubbe.net/x2vnc.html
- 212. http://freshmeat.net/projects/x2x/
- 213. http://ftp.digital.com/pub/Digital/SRC/x2x/
- 214. http://zapek.com/software/zvnc/
- 215. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual
- 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap
- 217. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
- 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor
- 219. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
- 220. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
- 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
- 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap
- 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen
- 226. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
- 227. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
- 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 230. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
- 231. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 232. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid
- 233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
- 234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
- 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder
- 236. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 237. http://www.karlrunge.com/x11vnc/index.html#xauth_pain
- 238. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
- 239. http://wwws.sun.com/sunray/index.html
- 240. http://www.karlrunge.com/x11vnc/index.html#sunray-gotchas
- 241. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
- 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
- 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
- 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
- 245. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods
- 246. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys
- 247. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
- 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
- 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
- 250. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd
- 251. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 252. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 253. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd
- 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd
- 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd
- 256. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input
- 260. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
- 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared
- 262. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 263. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 264. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 265. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
- 266. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 267. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
- 268. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 269. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
- 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
- 271. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 272. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
- 273. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
- 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
- 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 277. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 20. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
+ 21. http://www.karlrunge.com/x11vnc/index.html#faq-service
+ 22. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 23. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file
+ 24. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 25. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file
+ 26. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 27. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via
+ 28. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
+ 29. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
+ 30. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 31. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 32. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 33. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 34. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 35. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 36. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
+ 37. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
+ 38. http://sourceforge.net/projects/libvncserver/
+ 39. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=393257
+ 40. http://sourceforge.net/project/shownotes.php?release_id=393257&group_id=32584
+ 41. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz
+ 42. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
+ 43. http://www.tightvnc.com/download.html
+ 44. http://www.realvnc.com/download-free.html
+ 45. http://sourceforge.net/projects/cotvnc/
+ 46. http://www.karlrunge.com/x11vnc/rx11vnc
+ 47. http://www.karlrunge.com/x11vnc/rx11vnc.pl
+ 48. http://www.sunfreeware.com/
+ 49. http://www.karlrunge.com/x11vnc/bins
+ 50. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
+ 51. http://www.karlrunge.com/x11vnc/index.html#faq-build
+ 52. ftp://ftp.uu.net/graphics/jpeg/
+ 53. http://www.gzip.org/zlib/
+ 54. http://www.sunfreeware.com/
+ 55. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
+ 56. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz
+ 57. http://www.karlrunge.com/x11vnc/bins
+ 58. mailto:x11vnc-beta@karlrunge.com
+ 59. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer
+ 60. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 61. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
+ 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop
+ 64. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept
+ 65. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
+ 66. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-slow_fb
+ 67. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout
+ 68. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
+ 69. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 70. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect
+ 71. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
+ 72. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
+ 73. http://www.tightvnc.com/
+ 74. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
+ 75. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
+ 76. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 77. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg
+ 78. http://wwws.sun.com/sunray/index.html
+ 79. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 80. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sb
+ 81. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
+ 82. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
+ 83. http://www.karlrunge.com/x11vnc/vnc_findports
+ 84. http://www.karlrunge.com/x11vnc/findvncports
+ 85. http://www.karlrunge.com/x11vnc/shm_clear
+ 86. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept
+ 87. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 88. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 89. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 90. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
+ 91. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 92. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 93. mailto:xvml@karlrunge.com
+ 94. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
+ 95. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
+ 96. http://www.karlrunge.com/x11vnc/index.html#faq-build
+ 97. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest
+ 98. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
+ 99. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
+ 100. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download
+ 101. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts
+ 102. http://www.karlrunge.com/x11vnc/index.html#faq-config-file
+ 103. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
+ 104. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg
+ 105. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe
+ 106. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations
+ 107. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc
+ 108. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp
+ 109. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
+ 110. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
+ 111. http://www.karlrunge.com/x11vnc/index.html#faq-windowid
+ 112. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id
+ 113. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp
+ 114. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
+ 115. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
+ 116. http://www.karlrunge.com/x11vnc/index.html#faq-sunrays
+ 117. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg
+ 118. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control
+ 119. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 120. http://www.karlrunge.com/x11vnc/index.html#faq-passwd-noecho
+ 121. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 122. http://www.karlrunge.com/x11vnc/index.html#faq-multipasswd
+ 123. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt
+ 124. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared
+ 125. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
+ 126. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
+ 127. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface
+ 128. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost
+ 129. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix
+ 130. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty
+ 131. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt
+ 132. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords
+ 133. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt
+ 134. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy
+ 135. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock
+ 136. http://www.karlrunge.com/x11vnc/index.html#faq-service
+ 137. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
+ 138. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 139. http://www.karlrunge.com/x11vnc/index.html#faq-loop
+ 140. http://www.karlrunge.com/x11vnc/index.html#faq-java-http
+ 141. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect
+ 142. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 143. http://www.karlrunge.com/x11vnc/index.html#faq-headless
+ 144. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
+ 145. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource
+ 146. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource
+ 147. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link
+ 148. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
+ 149. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
+ 150. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 151. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
+ 152. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape
+ 153. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha
+ 154. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
+ 155. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow
+ 156. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions
+ 157. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt
+ 158. http://www.karlrunge.com/x11vnc/index.html#faq-altgr
+ 159. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
+ 160. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy
+ 161. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
+ 162. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys
+ 163. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still
+ 164. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt
+ 165. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta
+ 166. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click
+ 167. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars
+ 168. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
+ 169. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
+ 170. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen
+ 171. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen
+ 172. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr
+ 173. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen
+ 174. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 175. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
+ 176. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
+ 177. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars
+ 178. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard
+ 179. http://www.karlrunge.com/x11vnc/index.html#faq-filexfer
+ 180. http://www.karlrunge.com/x11vnc/index.html#faq-beeps
+ 181. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
+ 182. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
+ 183. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 184. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
+ 185. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
+ 186. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
+ 187. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html
+ 188. http://www.karlrunge.com/x11vnc/index.html#building
+ 189. http://www.karlrunge.com/x11vnc/index.html#faq-build
+ 190. http://packages.debian.org/x11vnc
+ 191. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc
+ 192. http://dag.wieers.com/packages/x11vnc/
+ 193. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/
+ 194. http://www.sunfreeware.com/
+ 195. http://www.bell-labs.com/project/wwexptools/packages.html
+ 196. http://www.karlrunge.com/x11vnc/bins
+ 197. http://www.tightvnc.com/download.html
+ 198. http://www.realvnc.com/download-free.html
+ 199. http://sourceforge.net/projects/cotvnc/
+ 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
+ 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
+ 202. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
+ 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
+ 204. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
+ 205. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o
+ 206. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
+ 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb
+ 208. http://fredrik.hubbe.net/x2vnc.html
+ 209. http://www.hubbe.net/~hubbe/win2vnc.html
+ 210. http://www.deboer.gmxhome.de/
+ 211. http://sourceforge.net/projects/win2vnc/
+ 212. http://fredrik.hubbe.net/x2vnc.html
+ 213. http://freshmeat.net/projects/x2x/
+ 214. http://ftp.digital.com/pub/Digital/SRC/x2x/
+ 215. http://zapek.com/software/zvnc/
+ 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual
+ 217. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap
+ 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
+ 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor
+ 220. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
+ 221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
+ 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
+ 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap
+ 226. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen
+ 227. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
+ 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24
+ 230. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 231. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
+ 232. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid
+ 234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
+ 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
+ 236. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder
+ 237. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 238. http://www.karlrunge.com/x11vnc/index.html#xauth_pain
+ 239. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
+ 240. http://wwws.sun.com/sunray/index.html
+ 241. http://www.karlrunge.com/x11vnc/index.html#sunray-gotchas
+ 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
+ 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
+ 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
+ 245. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
+ 246. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods
+ 247. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys
+ 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
+ 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
+ 250. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
+ 251. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd
+ 252. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 253. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd
+ 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd
+ 256. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd
+ 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 260. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input
+ 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
+ 262. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared
+ 263. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 264. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 265. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 266. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
+ 267. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 268. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
+ 269. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
+ 271. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
+ 272. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 273. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
+ 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
+ 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
+ 277. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
278. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 279. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 282. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
- 283. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 284. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 285. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly
- 287. ftp://ftp.x.org/
- 288. http://www.karlrunge.com/x11vnc/dtVncPopup
- 289. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
- 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 291. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 293. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
- 294. http://www.karlrunge.com/x11vnc/blockdpy.c
- 295. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 296. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
+ 279. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 282. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 283. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
+ 284. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 285. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
+ 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly
+ 288. ftp://ftp.x.org/
+ 289. http://www.karlrunge.com/x11vnc/dtVncPopup
+ 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
+ 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 292. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 293. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
+ 294. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
+ 295. http://www.karlrunge.com/x11vnc/blockdpy.c
+ 296. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
297. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
- 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept
- 299. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
- 300. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 301. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop
- 302. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 303. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris
- 304. http://www.jirka.org/gdm-documentation/x241.html
- 305. http://www.karlrunge.com/x11vnc/x11vnc_loop
- 306. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
- 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd
- 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
- 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 310. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop
- 311. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir
- 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http
- 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect
- 315. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
- 316. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 317. http://www.karlrunge.com/x11vnc/Xdummy
- 318. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
- 319. http://www.karlrunge.com/x11vnc/shm_clear
- 320. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
- 321. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
- 322. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
- 323. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap
- 324. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
- 325. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
- 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
- 327. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
- 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
- 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
- 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 333. http://www.tightvnc.com/
- 334. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
- 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 337. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
- 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
- 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
- 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive
- 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 342. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
- 343. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
- 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
- 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout
- 346. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 347. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area
- 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem
- 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage
- 350. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 351. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
+ 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
+ 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept
+ 300. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
+ 301. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 302. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop
+ 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 304. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris
+ 305. http://www.jirka.org/gdm-documentation/x241.html
+ 306. http://www.karlrunge.com/x11vnc/x11vnc_loop
+ 307. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
+ 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd
+ 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
+ 310. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 311. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop
+ 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir
+ 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http
+ 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 315. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect
+ 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
+ 317. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 318. http://www.karlrunge.com/x11vnc/Xdummy
+ 319. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
+ 320. http://www.karlrunge.com/x11vnc/shm_clear
+ 321. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
+ 322. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
+ 323. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
+ 324. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap
+ 325. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
+ 327. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
+ 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
+ 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
+ 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
+ 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 334. http://www.tightvnc.com/
+ 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
+ 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 337. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
+ 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
+ 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive
+ 342. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 343. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
+ 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
+ 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
+ 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout
+ 347. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
+ 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area
+ 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem
+ 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage
+ 351. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
- 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
- 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
- 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
- 356. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 357. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
- 358. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
- 359. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 360. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
+ 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
+ 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
+ 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
+ 357. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 358. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
+ 359. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
+ 360. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
362. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 363. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 364. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect
- 367. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen
- 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip
- 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
- 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
+ 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 364. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
+ 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 367. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect
+ 368. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen
+ 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip
+ 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
+ 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
- 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 375. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode
- 376. http://www.karlrunge.com/x11vnc/index.html#solaris10-build
- 377. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
- 378. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut
- 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac
- 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove
- 381. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
- 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend
- 383. http://www.tightvnc.com/
- 384. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
- 385. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos
- 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
- 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
- 388. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
- 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer
- 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
- 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 392. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
- 393. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
- 394. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
- 395. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 396. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
- 397. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
+ 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 376. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode
+ 377. http://www.karlrunge.com/x11vnc/index.html#solaris10-build
+ 378. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
+ 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut
+ 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac
+ 381. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove
+ 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
+ 383. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend
+ 384. http://www.tightvnc.com/
+ 385. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
+ 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos
+ 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
+ 388. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
+ 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
+ 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer
+ 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
+ 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 393. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
+ 394. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
+ 395. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
+ 396. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 397. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
398. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 400. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
- 401. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
- 402. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
- 403. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 404. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
- 405. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 406. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 400. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 401. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
+ 402. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
+ 403. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
+ 404. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 405. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
+ 406. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
407. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 408. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes
- 409. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 410. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
- 411. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 408. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 409. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes
+ 410. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 411. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
412. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 413. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
- 414. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
+ 413. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 414. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
415. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
- 416. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
- 417. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 416. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
+ 417. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
418. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
419. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
420. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 421. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
- 422. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
- 423. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html
- 424. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
- 425. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
- 426. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 427. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor
- 428. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout
- 429. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama
- 430. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer
- 431. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
- 432. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
- 433. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
- 434. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip
- 435. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
- 436. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 421. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 422. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
+ 423. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
+ 424. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html
+ 425. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
+ 426. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
+ 427. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 428. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor
+ 429. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout
+ 430. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama
+ 431. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer
+ 432. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
+ 433. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
+ 434. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
+ 435. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip
+ 436. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
437. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 438. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr
- 439. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom
- 440. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 441. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
- 442. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 443. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 444. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
- 445. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 446. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
- 447. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
- 448. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary
- 449. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir
- 450. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer
- 451. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell
- 452. mailto:xvml@karlrunge.com
+ 438. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 439. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr
+ 440. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom
+ 441. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 442. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
+ 443. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 444. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 445. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 446. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 447. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
+ 448. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
+ 449. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary
+ 450. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir
+ 451. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer
+ 452. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell
=======================================================================
@@ -5151,7 +5152,7 @@ x11vnc: a VNC server for real X displays
Here are all of x11vnc command line options:
% x11vnc -opts (see below for -help long descriptions)
-x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-02-20
+x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-02-24
x11vnc options:
-display disp -auth file
@@ -5170,67 +5171,68 @@ x11vnc options:
-allow host1[,host2..] -localhost
-nolookup -input string
-viewpasswd string -passwdfile filename
- -nopw -storepasswd pass file
- -accept string -afteraccept string
- -gone string -users list
- -noshm -flipbyteorder
- -onetile -solid [color]
- -blackout string -xinerama
- -xtrap -xrandr [mode]
- -padgeom WxH -o logfile
- -flag file -rc filename
- -norc -h, -help
- -?, -opts -V, -version
- -dbg -q
- -bg -modtweak
- -nomodtweak -xkb
- -noxkb -skip_keycodes string
- -sloppy_keys -skip_dups
- -noskip_dups -add_keysyms
- -noadd_keysyms -clear_mods
- -clear_keys -remap string
- -norepeat -repeat
- -nofb -nobell
- -nosel -noprimary
- -seldir string -cursor [mode]
- -nocursor -arrow n
- -noxfixes -alphacut n
- -alphafrac fraction -alpharemove
- -noalphablend -nocursorshape
- -cursorpos -nocursorpos
- -xwarppointer -buttonmap string
- -nodragging -wireframe [str]
- -nowireframe -wirecopyrect mode
- -nowirecopyrect -debug_wireframe
- -scrollcopyrect mode -noscrollcopyrect
- -scr_area n -scr_skip list
- -scr_inc list -scr_keys list
- -scr_term list -scr_keyrepeat lo-hi
- -scr_parms string -fixscreen string
- -debug_scroll -noxrecord
- -grab_buster -nograb_buster
- -debug_grabs -pointer_mode n
- -input_skip n -speeds rd,bw,lat
- -wmdt string -debug_pointer
- -debug_keyboard -defer time
- -wait time -wait_ui factor
- -nowait_bog -slow_fb time
- -readtimeout n -nap
- -nonap -sb time
- -noxdamage -xd_area A
- -xd_mem f -sigpipe string
- -threads -nothreads
- -fs f -gaps n
- -grow n -fuzz n
- -debug_tiles -snapfb
- -rawfb string -pipeinput cmd
- -gui [gui-opts] -remote command
- -query variable -QD variable
- -sync -noremote
- -yesremote -unsafe
- -safer -privremote
- -nocmds -deny_all
-
+ -unixpw [list] -stunnel [pem]
+ -stunnel3 [pem] -nopw
+ -storepasswd pass file -accept string
+ -afteraccept string -gone string
+ -users list -noshm
+ -flipbyteorder -onetile
+ -solid [color] -blackout string
+ -xinerama -xtrap
+ -xrandr [mode] -padgeom WxH
+ -o logfile -flag file
+ -rc filename -norc
+ -h, -help -?, -opts
+ -V, -version -dbg
+ -q -bg
+ -modtweak -nomodtweak
+ -xkb -noxkb
+ -skip_keycodes string -sloppy_keys
+ -skip_dups -noskip_dups
+ -add_keysyms -noadd_keysyms
+ -clear_mods -clear_keys
+ -remap string -norepeat
+ -repeat -nofb
+ -nobell -nosel
+ -noprimary -seldir string
+ -cursor [mode] -nocursor
+ -arrow n -noxfixes
+ -alphacut n -alphafrac fraction
+ -alpharemove -noalphablend
+ -nocursorshape -cursorpos
+ -nocursorpos -xwarppointer
+ -buttonmap string -nodragging
+ -wireframe [str] -nowireframe
+ -wirecopyrect mode -nowirecopyrect
+ -debug_wireframe -scrollcopyrect mode
+ -noscrollcopyrect -scr_area n
+ -scr_skip list -scr_inc list
+ -scr_keys list -scr_term list
+ -scr_keyrepeat lo-hi -scr_parms string
+ -fixscreen string -debug_scroll
+ -noxrecord -grab_buster
+ -nograb_buster -debug_grabs
+ -pointer_mode n -input_skip n
+ -speeds rd,bw,lat -wmdt string
+ -debug_pointer -debug_keyboard
+ -defer time -wait time
+ -wait_ui factor -nowait_bog
+ -slow_fb time -readtimeout n
+ -nap -nonap
+ -sb time -noxdamage
+ -xd_area A -xd_mem f
+ -sigpipe string -threads
+ -nothreads -fs f
+ -gaps n -grow n
+ -fuzz n -debug_tiles
+ -snapfb -rawfb string
+ -pipeinput cmd -gui [gui-opts]
+ -remote command -query variable
+ -QD variable -sync
+ -noremote -yesremote
+ -unsafe -safer
+ -privremote -nocmds
+ -deny_all
libvncserver options:
-rfbport port TCP port for RFB protocol
@@ -5262,7 +5264,7 @@ libvncserver-tight-extension options:
% x11vnc -help
-x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-02-20
+x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-02-24
Typical usage is:
@@ -5593,16 +5595,17 @@ Options:
-input string Fine tuning of allowed user input. If "string" does
not contain a comma "," the tuning applies only to
- normal clients. Otherwise the part before "," is
- for normal clients and the part after for view-only
- clients. "K" is for Keystroke input, "M" for
- Mouse-motion input, and "B" for Button-click input.
- Their presence in the string enables that type of input.
- E.g. "-input M" means normal users can only move
- the mouse and "-input KMB,M" lets normal users do
- anything and enables view-only users to move the mouse.
- This option is ignored when a global -viewonly is in
- effect (all input is discarded in that case).
+ normal clients. Otherwise the part before "," is for
+ normal clients and the part after for view-only clients.
+ "K" is for Keystroke input, "M" for Mouse-motion
+ input, "B" for Button-click input, and "C" is for
+ Clipboard input. Their presence in the string enables
+ that type of input. E.g. "-input M" means normal
+ users can only move the mouse and "-input KMBC,M"
+ lets normal users do anything and enables view-only
+ users to move the mouse. This option is ignored when
+ a global -viewonly is in effect (all input is discarded
+ in that case).
-viewpasswd string Supply a 2nd password for view-only logins. The -passwd
(full-access) password must also be supplied.
@@ -5644,6 +5647,81 @@ Options:
used to have viewonly passwords. (tip: make the 3rd
and last line be "__BEGIN_VIEWONLY__" to have 2
full-access passwords)
+
+-unixpw [list] Experimental option: use Unix username and password
+ authentication. x11vnc uses the su(1) program to
+ verify the user's password. [list] is an optional
+ comma separated list of allowed Unix usernames.
+
+ A familiar "login:" and "Password:" dialog is
+ presented to the user on a black screen inside the
+ vncviewer. The connection is dropped if the user fails
+ to supply the correct password in 3 tries or does not
+ send one before a 20 second timeout. Existing clients
+ are view-only during this period.
+
+ *IMPORTANT*: to prevent the Unix password being sent in
+ *clear text* over the network, two x11vnc options are
+ enforced: 1) -localhost and 2) -stunnel. The former
+ requires the viewer connection to appear to come from
+ the same machine x11vnc is running on (e.g. from a ssh
+ -L port redirection). The latter requires the -stunnel
+ SSL mode be used (see the description below).
+
+ To override these restrictions you can set environment
+ variables before starting x11vnc:
+
+ Set UNIXPW_DISABLE_STUNNEL=1 to disable using -stunnel.
+ Evidently you will be using a different method to
+ encrypt the data between the vncviewer and x11vnc:
+ e.g. ssh(1) or a VPN. Note that use of ssh(1) with
+ -localhost is roughly the same as requiring a Unix
+ user login (since Unix password or the user's public
+ key authentication is used by ssh)
+
+ Set UNIXPW_DISABLE_LOCALHOST=1 to disable the -localhost
+ requirement. One should never do this (i.e. allow the
+ Unix passwords to be sniffed on the network).
+
+ NOTE: in -inetd mode the two settings are not enforced
+ since x11vnc does not make network connections in
+ that case. Be sure to use encryption from the viewer
+ to inetd. One can also have your own stunnel spawn
+ x11vnc in -inetd mode.
+
+-stunnel [pem] Use the stunnel(1) (www.stunnel.org) to provide an
+ encrypted SSL tunnel between viewers and x11vnc.
+ This requires stunnel be installed on the system and
+ available via PATH (n.b. stunnel is often installed in
+ sbin directories). Version 4.x of stunnel is assumed.
+
+ [pem] is optional, use "-stunnel /path/to/stunnel.pem"
+ to specify a PEM certificate file to pass to stunnel.
+
+ stunnel is started up as a child process and any SSL
+ connections it receives are decrypted and sent to x11vnc
+ over a local socket. The strings "The SSL VNC desktop
+ is ..." and SSLPORT=... are printed out at startup.
+
+ The -localhost option is enforced by default. Set
+ STUNNEL_DISABLE_LOCALHOST=1 to disable the requirement.
+
+ Your VNC viewer will need to be able to connect via SSL.
+ Unfortunately not too many do this. UltraVNC seems to
+ have a SSL plugin. It is not too difficult to set up
+ an stunnel or other SSL tunnel on the viewer side.
+
+ A simple example on Unix using stunnel 3.x is:
+
+ % stunnel -c -d localhost:5901 -r remote:5900
+ % vncviewer localhost:1
+
+ For Windows, stunnel has been ported to it and there
+ are probably other such tools available.
+
+-stunnel3 [pem] Use version 3.x stunnel command line syntax instead of
+ version 4.x
+
-nopw Disable the big warning message when you use x11vnc
without some sort of password.
-storepasswd pass file Store password "pass" as the VNC password in the
diff --git a/x11vnc/allowed_input_t.h b/x11vnc/allowed_input_t.h
index f58b8cf..bbdb841 100644
--- a/x11vnc/allowed_input_t.h
+++ b/x11vnc/allowed_input_t.h
@@ -7,6 +7,7 @@ typedef struct allowed_input {
int keystroke;
int motion;
int button;
+ int clipboard;
} allowed_input_t;
#endif /* _X11VNC_ALLOWED_INPUT_T_H */
diff --git a/x11vnc/cleanup.c b/x11vnc/cleanup.c
index 890afa8..8f7160c 100644
--- a/x11vnc/cleanup.c
+++ b/x11vnc/cleanup.c
@@ -8,6 +8,8 @@
#include "scan.h"
#include "gui.h"
#include "solid.h"
+#include "unixpw.h"
+#include "sslcmds.h"
/*
* Exiting and error handling routines
@@ -130,6 +132,8 @@ void clean_up_exit (int ret) {
if (use_solid_bg) {
solid_bg(1);
}
+ stop_stunnel();
+
X_LOCK;
XTestDiscard_wr(dpy);
#if LIBVNCSERVER_HAVE_LIBXDAMAGE
@@ -380,6 +384,7 @@ static void interrupted (int sig) {
if (use_solid_bg) {
solid_bg(1);
}
+ stop_stunnel();
if (crash_debug) {
crash_shell();
diff --git a/x11vnc/connections.c b/x11vnc/connections.c
index 4415f38..197d7d9 100644
--- a/x11vnc/connections.c
+++ b/x11vnc/connections.c
@@ -9,6 +9,7 @@
#include "solid.h"
#include "rates.h"
#include "screen.h"
+#include "unixpw.h"
/*
* routines for handling incoming, outgoing, etc connections
@@ -262,7 +263,7 @@ void set_client_input(char *str) {
}
*p = '\0';
p++;
- val = short_kmb(p);
+ val = short_kmbc(p);
cl_list = client_match(str);
@@ -504,6 +505,14 @@ static void client_gone(rfbClientPtr client) {
rfbLog("client_count: %d\n", client_count);
+ if (unixpw_in_progress && unixpw_client) {
+ if (client == unixpw_client) {
+ unixpw_in_progress = 0;
+ unixpw_client = NULL;
+ copy_screen();
+ }
+ }
+
if (no_autorepeat && client_count == 0) {
autorepeat(1, 0);
}
@@ -1518,6 +1527,8 @@ static void send_client_connect(void) {
*/
void check_connect_inputs(void) {
+ if (unixpw_in_progress) return;
+
/* flush any already set: */
send_client_connect();
@@ -1543,6 +1554,8 @@ void check_gui_inputs(void) {
char buf[VNC_CONNECT_MAX+1];
ssize_t nbytes;
+ if (unixpw_in_progress) return;
+
for (i=0; i<ICON_MODE_SOCKS; i++) {
if (icon_mode_socks[i] >= 0) {
socks[n++] = i;
@@ -1624,6 +1637,11 @@ enum rfbNewClientAction new_client(rfbClientPtr client) {
clients_served++;
+ if (unixpw && unixpw_in_progress) {
+ rfbLog("denying additional client: %s during -unixpw login.\n",
+ client->host);
+ return(RFB_CLIENT_REFUSE);
+ }
if (connect_once) {
if (screen->dontDisconnect && screen->neverShared) {
if (! shared && accepted_client) {
@@ -1696,6 +1714,14 @@ enum rfbNewClientAction new_client(rfbClientPtr client) {
accepted_client = 1;
last_client = time(0);
+ if (unixpw) {
+ unixpw_in_progress = 1;
+ unixpw_client = client;
+ unixpw_last_try_time = time(0);
+ unixpw_screen(1);
+ unixpw_keystroke(0, 0, 1);
+ }
+
return(RFB_CLIENT_ACCEPT);
}
@@ -1832,6 +1858,15 @@ void check_new_clients(void) {
rfbClientPtr cl;
int i, send_info = 0;
int run_after_accept = 0;
+
+ if (unixpw_in_progress) {
+ int present = 0;
+ if (time(0) > unixpw_last_try_time + 20) {
+ rfbLog("unixpw_deny: timed out waiting for reply.\n");
+ unixpw_deny();
+ return;
+ }
+ }
if (client_count == last_count) {
return;
diff --git a/x11vnc/cursor.c b/x11vnc/cursor.c
index 0be77f5..e003ae3 100644
--- a/x11vnc/cursor.c
+++ b/x11vnc/cursor.c
@@ -5,6 +5,7 @@
#include "cleanup.h"
#include "screen.h"
#include "scan.h"
+#include "unixpw.h"
int xfixes_present = 0;
int use_xfixes = 1;
@@ -1569,6 +1570,7 @@ void disable_cursor_shape_updates(rfbScreenInfoPtr s) {
if (! s || ! s->clientHead) {
return;
}
+ if (unixpw_in_progress) return;
iter = rfbGetClientIterator(s);
while( (cl = rfbClientIteratorNext(iter)) ) {
@@ -1760,6 +1762,8 @@ int check_x11_pointer(void) {
if (raw_fb && ! dpy) return 0; /* raw_fb hack */
+ if (unixpw_in_progress) return 0;
+
X_LOCK;
ret = XQueryPointer(dpy, rootwin, &root_w, &child_w, &root_x, &root_y,
&win_x, &win_y, &mask);
diff --git a/x11vnc/help.c b/x11vnc/help.c
index 7cccbd4..113e0ac 100644
--- a/x11vnc/help.c
+++ b/x11vnc/help.c
@@ -348,16 +348,17 @@ void print_help(int mode) {
"\n"
"-input string Fine tuning of allowed user input. If \"string\" does\n"
" not contain a comma \",\" the tuning applies only to\n"
-" normal clients. Otherwise the part before \",\" is\n"
-" for normal clients and the part after for view-only\n"
-" clients. \"K\" is for Keystroke input, \"M\" for\n"
-" Mouse-motion input, and \"B\" for Button-click input.\n"
-" Their presence in the string enables that type of input.\n"
-" E.g. \"-input M\" means normal users can only move\n"
-" the mouse and \"-input KMB,M\" lets normal users do\n"
-" anything and enables view-only users to move the mouse.\n"
-" This option is ignored when a global -viewonly is in\n"
-" effect (all input is discarded in that case).\n"
+" normal clients. Otherwise the part before \",\" is for\n"
+" normal clients and the part after for view-only clients.\n"
+" \"K\" is for Keystroke input, \"M\" for Mouse-motion\n"
+" input, \"B\" for Button-click input, and \"C\" is for\n"
+" Clipboard input. Their presence in the string enables\n"
+" that type of input. E.g. \"-input M\" means normal\n"
+" users can only move the mouse and \"-input KMBC,M\"\n"
+" lets normal users do anything and enables view-only\n"
+" users to move the mouse. This option is ignored when\n"
+" a global -viewonly is in effect (all input is discarded\n"
+" in that case).\n"
"\n"
"-viewpasswd string Supply a 2nd password for view-only logins. The -passwd\n"
" (full-access) password must also be supplied.\n"
@@ -399,7 +400,81 @@ void print_help(int mode) {
" used to have viewonly passwords. (tip: make the 3rd\n"
" and last line be \"__BEGIN_VIEWONLY__\" to have 2\n"
" full-access passwords)\n"
-
+"\n"
+"-unixpw [list] Experimental option: use Unix username and password\n"
+" authentication. x11vnc uses the su(1) program to\n"
+" verify the user's password. [list] is an optional\n"
+" comma separated list of allowed Unix usernames.\n"
+"\n"
+" A familiar \"login:\" and \"Password:\" dialog is\n"
+" presented to the user on a black screen inside the\n"
+" vncviewer. The connection is dropped if the user fails\n"
+" to supply the correct password in 3 tries or does not\n"
+" send one before a 20 second timeout. Existing clients\n"
+" are view-only during this period.\n"
+"\n"
+" *IMPORTANT*: to prevent the Unix password being sent in\n"
+" *clear text* over the network, two x11vnc options are\n"
+" enforced: 1) -localhost and 2) -stunnel. The former\n"
+" requires the viewer connection to appear to come from\n"
+" the same machine x11vnc is running on (e.g. from a ssh\n"
+" -L port redirection). The latter requires the -stunnel\n"
+" SSL mode be used (see the description below).\n"
+"\n"
+" To override these restrictions you can set environment\n"
+" variables before starting x11vnc:\n"
+"\n"
+" Set UNIXPW_DISABLE_STUNNEL=1 to disable using -stunnel.\n"
+" Evidently you will be using a different method to\n"
+" encrypt the data between the vncviewer and x11vnc:\n"
+" e.g. ssh(1) or a VPN. Note that use of ssh(1) with\n"
+" -localhost is roughly the same as requiring a Unix\n"
+" user login (since Unix password or the user's public\n"
+" key authentication is used by ssh)\n"
+"\n"
+" Set UNIXPW_DISABLE_LOCALHOST=1 to disable the -localhost\n"
+" requirement. One should never do this (i.e. allow the\n"
+" Unix passwords to be sniffed on the network).\n"
+"\n"
+" NOTE: in -inetd mode the two settings are not enforced\n"
+" since x11vnc does not make network connections in\n"
+" that case. Be sure to use encryption from the viewer\n"
+" to inetd. One can also have your own stunnel spawn\n"
+" x11vnc in -inetd mode.\n"
+"\n"
+"-stunnel [pem] Use the stunnel(1) (www.stunnel.org) to provide an\n"
+" encrypted SSL tunnel between viewers and x11vnc.\n"
+" This requires stunnel be installed on the system and\n"
+" available via PATH (n.b. stunnel is often installed in\n"
+" sbin directories). Version 4.x of stunnel is assumed.\n"
+"\n"
+" [pem] is optional, use \"-stunnel /path/to/stunnel.pem\"\n"
+" to specify a PEM certificate file to pass to stunnel.\n"
+"\n"
+" stunnel is started up as a child process and any SSL\n"
+" connections it receives are decrypted and sent to x11vnc\n"
+" over a local socket. The strings \"The SSL VNC desktop\n"
+" is ...\" and SSLPORT=... are printed out at startup.\n"
+"\n"
+" The -localhost option is enforced by default. Set\n"
+" STUNNEL_DISABLE_LOCALHOST=1 to disable the requirement.\n"
+"\n"
+" Your VNC viewer will need to be able to connect via SSL.\n"
+" Unfortunately not too many do this. UltraVNC seems to\n"
+" have a SSL plugin. It is not too difficult to set up\n"
+" an stunnel or other SSL tunnel on the viewer side.\n"
+"\n"
+" A simple example on Unix using stunnel 3.x is:\n"
+"\n"
+" %% stunnel -c -d localhost:5901 -r remote:5900\n"
+" %% vncviewer localhost:1\n"
+"\n"
+" For Windows, stunnel has been ported to it and there\n"
+" are probably other such tools available.\n"
+"\n"
+"-stunnel3 [pem] Use version 3.x stunnel command line syntax instead of\n"
+" version 4.x\n"
+"\n"
"-nopw Disable the big warning message when you use x11vnc\n"
" without some sort of password.\n"
"-storepasswd pass file Store password \"pass\" as the VNC password in the\n"
@@ -2063,7 +2138,7 @@ void print_help(int mode) {
/* have both our help and rfbUsage to stdout for more(1), etc. */
dup2(1, 2);
- /* register extention(s) to get their help output */
+ /* register extension(s) to get their help output */
#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER
rfbRegisterTightVNCFileTransferExtension();
#endif
diff --git a/x11vnc/inet.c b/x11vnc/inet.c
index 12f4fee..6a3921b 100644
--- a/x11vnc/inet.c
+++ b/x11vnc/inet.c
@@ -16,6 +16,7 @@ int get_local_port(int sock);
char *get_remote_host(int sock);
char *get_local_host(int sock);
char *ident_username(rfbClientPtr client);
+int find_free_port(int start, int end);
static int get_port(int sock, int remote);
@@ -295,4 +296,21 @@ char *ident_username(rfbClientPtr client) {
return str;
}
+int find_free_port(int start, int end) {
+ int port;
+ if (start <= 0) {
+ start = 1024;
+ }
+ if (end <= 0) {
+ end = 65530;
+ }
+ for (port = start; port <= end; port++) {
+ int sock = rfbListenOnTCPPort(port, htonl(INADDR_ANY));
+ if (sock >= 0) {
+ close(sock);
+ return port;
+ }
+ }
+ return 0;
+}
diff --git a/x11vnc/inet.h b/x11vnc/inet.h
index 4ca7c6b..d9ebe92 100644
--- a/x11vnc/inet.h
+++ b/x11vnc/inet.h
@@ -13,5 +13,6 @@ extern int get_local_port(int sock);
extern char *get_remote_host(int sock);
extern char *get_local_host(int sock);
extern char *ident_username(rfbClientPtr client);
+extern int find_free_port(int start, int end);
#endif /* _X11VNC_INET_H */
diff --git a/x11vnc/keyboard.c b/x11vnc/keyboard.c
index 8542785..dafe236 100644
--- a/x11vnc/keyboard.c
+++ b/x11vnc/keyboard.c
@@ -10,6 +10,7 @@
#include "rates.h"
#include "cleanup.h"
#include "allowed_input_t.h"
+#include "unixpw.h"
void get_keystate(int *keystate);
void clear_modifiers(int init);
@@ -24,7 +25,7 @@ void delete_added_keycodes(int bequiet);
void initialize_remap(char *infile);
int sloppy_key_check(int key, rfbBool down, rfbKeySym keysym, int *new);
void switch_to_xkb_if_better(void);
-char *short_kmb(char *str);
+char *short_kmbc(char *str);
void initialize_allowed_input(void);
void initialize_modtweak(void);
void initialize_keyboard_and_pointer(void);
@@ -313,6 +314,9 @@ void check_add_keysyms(void) {
static time_t last_check = 0;
int clear_freq = 300, quiet = 1, count;
time_t now = time(0);
+
+ if (unixpw_in_progress) return;
+
if (now > last_check + clear_freq) {
count = count_added_keycodes();
/*
@@ -2019,8 +2023,8 @@ if (sym >> 8 == 0) { \
}
#endif
-char *short_kmb(char *str) {
- int i, saw_k = 0, saw_m = 0, saw_b = 0, n = 10;
+char *short_kmbc(char *str) {
+ int i, saw_k = 0, saw_m = 0, saw_b = 0, saw_c = 0, n = 10;
char *p, tmp[10];
for (i=0; i<n; i++) {
@@ -2039,6 +2043,9 @@ char *short_kmb(char *str) {
} else if ((*p == 'B' || *p == 'b') && !saw_b) {
tmp[i++] = 'B';
saw_b = 1;
+ } else if ((*p == 'C' || *p == 'c') && !saw_c) {
+ tmp[i++] = 'C';
+ saw_c = 1;
}
p++;
}
@@ -2058,7 +2065,7 @@ void initialize_allowed_input(void) {
}
if (! allowed_input_str) {
- allowed_input_normal = strdup("KMB");
+ allowed_input_normal = strdup("KMBC");
allowed_input_view_only = strdup("");
} else {
char *p, *str = strdup(allowed_input_str);
@@ -2075,11 +2082,11 @@ void initialize_allowed_input(void) {
}
/* shorten them */
- str = short_kmb(allowed_input_normal);
+ str = short_kmbc(allowed_input_normal);
free(allowed_input_normal);
allowed_input_normal = str;
- str = short_kmb(allowed_input_view_only);
+ str = short_kmbc(allowed_input_view_only);
free(allowed_input_view_only);
allowed_input_view_only = str;
@@ -2351,6 +2358,7 @@ void get_allowed_input(rfbClientPtr client, allowed_input_t *input) {
input->keystroke = 0;
input->motion = 0;
input->button = 0;
+ input->clipboard = 0;
if (! client) {
return;
@@ -2370,7 +2378,7 @@ void get_allowed_input(rfbClientPtr client, allowed_input_t *input) {
if (allowed_input_normal) {
str = allowed_input_normal;
} else {
- str = "KMB";
+ str = "KMBC";
}
}
@@ -2381,6 +2389,8 @@ void get_allowed_input(rfbClientPtr client, allowed_input_t *input) {
input->motion = 1;
} else if (*str == 'B') {
input->button = 1;
+ } else if (*str == 'C') {
+ input->clipboard = 1;
}
str++;
}
@@ -2543,6 +2553,14 @@ void keyboard(rfbBool down, rfbKeySym keysym, rfbClientPtr client) {
(int) keysym, str ? str : "null", tnow - x11vnc_start);
X_UNLOCK;
}
+
+ if (unixpw && unixpw_in_progress) {
+ if (client != unixpw_client) {
+ return;
+ }
+ unixpw_keystroke(down, keysym, 0);
+ return;
+ }
if (skip_duplicate_key_events) {
if (keysym == last_keysym && down == last_down) {
diff --git a/x11vnc/keyboard.h b/x11vnc/keyboard.h
index aef9e43..5fd163e 100644
--- a/x11vnc/keyboard.h
+++ b/x11vnc/keyboard.h
@@ -17,7 +17,7 @@ extern void delete_added_keycodes(int bequiet);
extern void initialize_remap(char *infile);
extern int sloppy_key_check(int key, rfbBool down, rfbKeySym keysym, int *new);
extern void switch_to_xkb_if_better(void);
-extern char *short_kmb(char *str);
+extern char *short_kmbc(char *str);
extern void initialize_allowed_input(void);
extern void initialize_modtweak(void);
extern void initialize_keyboard_and_pointer(void);
diff --git a/x11vnc/options.c b/x11vnc/options.c
index dc3901e..01c1577 100644
--- a/x11vnc/options.c
+++ b/x11vnc/options.c
@@ -15,6 +15,11 @@ char *logfile = NULL; /* -o, -logfile */
int logfile_append = 0;
char *flagfile = NULL; /* -flag */
char *passwdfile = NULL; /* -passwdfile */
+int unixpw = 0; /* -unixpw */
+char *unixpw_list = NULL;
+int use_stunnel = 0; /* -stunnel */
+int stunnel_port = 0;
+char *stunnel_pem = NULL;
char *blackout_str = NULL; /* -blackout */
int blackout_ptr = 0;
char *clip_str = NULL; /* -clip */
diff --git a/x11vnc/options.h b/x11vnc/options.h
index 203ad5f..0dc6b20 100644
--- a/x11vnc/options.h
+++ b/x11vnc/options.h
@@ -15,6 +15,11 @@ extern char *logfile;
extern int logfile_append;
extern char *flagfile;
extern char *passwdfile;
+extern int unixpw;
+extern char *unixpw_list;
+extern int use_stunnel;
+extern int stunnel_port;
+extern char *stunnel_pem;
extern char *blackout_str;
extern int blackout_ptr;
extern char *clip_str;
diff --git a/x11vnc/pointer.c b/x11vnc/pointer.c
index b7f73fb..56f6ccf 100644
--- a/x11vnc/pointer.c
+++ b/x11vnc/pointer.c
@@ -10,6 +10,7 @@
#include "userinput.h"
#include "connections.h"
#include "cleanup.h"
+#include "unixpw.h"
int pointer_queued_sent = 0;
@@ -603,6 +604,9 @@ void pointer(int mask, int x, int y, rfbClientPtr client) {
last_x = x;
last_y = y;
}
+ if (mask >= 0 && unixpw && unixpw_in_progress) {
+ return;
+ }
if (scaling) {
/* map from rfb size to X11 size: */
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index cb1fa7b..745da12 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -1141,18 +1141,6 @@ char *process_remote_cmd(char *cmd, int stringonly) {
first_conn_timeout = to;
rfbLog("remote_cmd: set -timeout to %d\n", -to);
-#if 0
- } else if (!strcmp(p, "filexfer")) {
- /* does this work after rfbInitServer? */
- if (query) {
- snprintf(buf, bufn, "ans=%s:%d", p, filexfer);
- goto qry;
- }
- rfbLog("remote_cmd: enabling -filexfer.\n");
- filexfer = 1;
- rfbRegisterTightVNCFileTransferExtension();
-#endif
-
} else if (!strcmp(p, "deny") || !strcmp(p, "lock")) {
if (query) {
snprintf(buf, bufn, "ans=%s:%d", p, deny_all);
@@ -1194,6 +1182,11 @@ char *process_remote_cmd(char *cmd, int stringonly) {
NONUL(allow_list));
goto qry;
}
+
+ if (unixpw) {
+ rfbLog("remote_cmd: cannot change allow in -unixpw\n");
+ goto done;
+ }
p += strlen("allow:");
if (allow_list && strchr(allow_list, '/')) {
rfbLog("remote_cmd: cannot use allow:host\n");
@@ -1278,6 +1271,10 @@ char *process_remote_cmd(char *cmd, int stringonly) {
snprintf(buf, bufn, "ans=%s:%d", p, !state);
goto qry;
}
+ if (unixpw) {
+ rfbLog("remote_cmd: cannot change localhost in -unixpw\n");
+ goto done;
+ }
if (allow_list) {
before = strdup(allow_list);
} else {
@@ -1318,6 +1315,10 @@ char *process_remote_cmd(char *cmd, int stringonly) {
NONUL(listen_str));
goto qry;
}
+ if (unixpw) {
+ rfbLog("remote_cmd: cannot change listen in -unixpw\n");
+ goto done;
+ }
if (listen_str) {
before = strdup(listen_str);
} else {
@@ -3666,6 +3667,8 @@ char *process_remote_cmd(char *cmd, int stringonly) {
snprintf(buf, bufn, "aro=%s:%d", p, no_external_cmds);
} else if (!strcmp(p, "passwdfile")) {
snprintf(buf, bufn, "aro=%s:%s", p, NONUL(passwdfile));
+ } else if (!strcmp(p, "unixpw")) {
+ snprintf(buf, bufn, "aro=%s:%d", p, unixpw);
} else if (!strcmp(p, "using_shm")) {
snprintf(buf, bufn, "aro=%s:%d", p, !using_shm);
} else if (!strcmp(p, "logfile") || !strcmp(p, "o")) {
diff --git a/x11vnc/scan.c b/x11vnc/scan.c
index fd408ce..6a50748 100644
--- a/x11vnc/scan.c
+++ b/x11vnc/scan.c
@@ -10,6 +10,7 @@
#include "screen.h"
#include "pointer.h"
#include "cleanup.h"
+#include "unixpw.h"
/*
* routines for scanning and reading the X11 display for changes, and
@@ -1951,6 +1952,7 @@ int copy_screen(void) {
if (! fs_factor) {
return 0;
}
+ if (unixpw_in_progress) return 0;
block_size = (dpy_x * (dpy_y/fs_factor) * pixelsize);
@@ -2398,6 +2400,8 @@ int scan_for_updates(int count_only) {
double frac3 = 0.02; /* do scan_display() again after copy_tiles() */
static double last_poll = 0.0;
+ if (unixpw_in_progress) return 0;
+
if (slow_fb > 0.0) {
double now = dnow();
if (now < last_poll + slow_fb) {
diff --git a/x11vnc/screen.c b/x11vnc/screen.c
index e45b00c..db72627 100644
--- a/x11vnc/screen.c
+++ b/x11vnc/screen.c
@@ -16,6 +16,8 @@
#include "cursor.h"
#include "connections.h"
#include "remote.h"
+#include "unixpw.h"
+#include "sslcmds.h"
void set_colormap(int reset);
void set_nofb_params(int restore);
@@ -40,6 +42,7 @@ static void initialize_snap_fb(void);
static XImage *initialize_raw_fb(void);
static void initialize_clipshift(void);
static int wait_until_mapped(Window win);
+static void announce(int lport, int ssl, char *iface);
static void setup_scaling(int *width_in, int *height_in);
@@ -622,6 +625,8 @@ void check_padded_fb(void) {
if (! fake_fb) {
return;
}
+ if (unixpw_in_progress) return;
+
if (time(0) > pad_geometry_time+1 && all_clients_initialized()) {
remove_fake_fb();
}
@@ -1560,6 +1565,9 @@ void initialize_screen(int *argc, char **argv, XImage *fb) {
/* n.b. samplesPerPixel (set = 1 here) seems to be unused. */
if (create_screen) {
+ if (use_stunnel) {
+ setup_stunnel(0, argc, argv);
+ }
screen = rfbGetScreen(argc, argv, width, height,
bits_per_color, 1, fb_bpp/8);
if (screen && http_dir) {
@@ -1669,6 +1677,7 @@ void initialize_screen(int *argc, char **argv, XImage *fb) {
&& dpy && CellsOfScreen(ScreenOfDisplay(dpy, scr))) {
/* indexed color */
if (!quiet) {
+ rfbLog("\n");
rfbLog("X display %s is 8bpp indexed color\n",
DisplayString(dpy));
if (! flash_cmap && ! overlay) {
@@ -1693,14 +1702,17 @@ void initialize_screen(int *argc, char **argv, XImage *fb) {
*/
if (! quiet) {
if (raw_fb) {
+ rfbLog("\n");
rfbLog("Raw fb at addr %p is %dbpp depth=%d "
"true color\n", raw_fb_addr,
fb_bpp, fb_depth);
} else if (have_masks == 2) {
+ rfbLog("\n");
rfbLog("X display %s is %dbpp depth=%d indexed "
"color (-8to24 mode)\n", DisplayString(dpy),
fb->bits_per_pixel, fb->depth);
} else {
+ rfbLog("\n");
rfbLog("X display %s is %dbpp depth=%d true "
"color\n", DisplayString(dpy),
fb_bpp, fb_depth);
@@ -1938,67 +1950,89 @@ void initialize_screen(int *argc, char **argv, XImage *fb) {
install_passwds();
}
-void set_vnc_desktop_name(void) {
- int sz = 256;
- sprintf(vnc_desktop_name, "unknown");
- if (inetd) {
- sprintf(vnc_desktop_name, "inetd-no-further-clients");
+static void announce(int lport, int ssl, char *iface) {
+
+ char *host = this_host();
+ char *tvdt;
+
+ if (! ssl) {
+ tvdt = "The VNC desktop";
+ } else {
+ tvdt = "The SSL VNC desktop";
}
- if (screen->port) {
- char *host = this_host();
- int lport = screen->port;
- char *iface = listen_str;
-
- if (iface != NULL && *iface != '\0' && strcmp(iface, "any")) {
- host = iface;
- }
- if (host != NULL) {
- /* note that vncviewer special cases 5900-5999 */
- if (inetd) {
- ; /* should not occur (port) */
- } else if (quiet) {
- if (lport >= 5900) {
- snprintf(vnc_desktop_name, sz, "%s:%d",
- host, lport - 5900);
- fprintf(stderr, "The VNC desktop is "
- "%s\n", vnc_desktop_name);
- } else {
- snprintf(vnc_desktop_name, sz, "%s:%d",
- host, lport);
- fprintf(stderr, "The VNC desktop is "
- "%s\n", vnc_desktop_name);
- }
- } else if (lport >= 5900) {
+
+ if (iface != NULL && *iface != '\0' && strcmp(iface, "any")) {
+ host = iface;
+ }
+ if (host != NULL) {
+ /* note that vncviewer special cases 5900-5999 */
+ int sz = 256;
+ if (inetd) {
+ ; /* should not occur (port) */
+ } else if (quiet) {
+ if (lport >= 5900) {
snprintf(vnc_desktop_name, sz, "%s:%d",
host, lport - 5900);
- rfbLog("\n");
- rfbLog("The VNC desktop is %s\n",
+ fprintf(stderr, "%s is %s\n", tvdt,
vnc_desktop_name);
- if (lport >= 6000) {
- rfbLog("possible aliases: %s:%d, "
- "%s::%d\n", host, lport,
- host, lport);
- }
} else {
snprintf(vnc_desktop_name, sz, "%s:%d",
host, lport);
- rfbLog("\n");
- rfbLog("The VNC desktop is %s\n",
+ fprintf(stderr, "%s is %s\n", tvdt,
vnc_desktop_name);
- rfbLog("possible alias: %s::%d\n",
+ }
+ } else if (lport >= 5900) {
+ snprintf(vnc_desktop_name, sz, "%s:%d",
+ host, lport - 5900);
+ fprintf(stderr, "%s is %s\n", tvdt, vnc_desktop_name);
+ if (lport >= 6000) {
+ rfbLog("possible aliases: %s:%d, "
+ "%s::%d\n", host, lport,
host, lport);
}
+ } else {
+ snprintf(vnc_desktop_name, sz, "%s:%d",
+ host, lport);
+ fprintf(stderr, "%s is %s\n", tvdt, vnc_desktop_name);
+ rfbLog("possible alias: %s::%d\n",
+ host, lport);
+ }
+ }
+}
+
+void set_vnc_desktop_name(void) {
+ sprintf(vnc_desktop_name, "unknown");
+ if (inetd) {
+ sprintf(vnc_desktop_name, "inetd-no-further-clients");
+ }
+ if (screen->port) {
+
+ if (! quiet) {
+ rfbLog("\n");
}
+
+ announce(screen->port, 0, listen_str);
+ if (stunnel_port) {
+ announce(stunnel_port, 1, NULL);
+ }
+
fflush(stderr);
if (inetd) {
; /* should not occur (port != 0) */
} else {
fprintf(stdout, "PORT=%d\n", screen->port);
+ if (stunnel_port) {
+ fprintf(stdout, "SSLPORT=%d\n", stunnel_port);
+ }
fflush(stdout);
if (flagfile) {
FILE *flag = fopen(flagfile, "w");
if (flag) {
fprintf(flag, "PORT=%d\n",screen->port);
+ if (stunnel_port) {
+ fprintf(flag, "SSL_PORT=%d\n",
+ stunnel_port);
+ }
fflush(flag);
fclose(flag);
} else {
diff --git a/x11vnc/selection.c b/x11vnc/selection.c
index 28b172c..8097057 100644
--- a/x11vnc/selection.c
+++ b/x11vnc/selection.c
@@ -3,6 +3,7 @@
#include "x11vnc.h"
#include "cleanup.h"
#include "connections.h"
+#include "unixpw.h"
/*
* Selection/Cutbuffer/Clipboard handlers.
@@ -184,6 +185,9 @@ void cutbuffer_send(void) {
rfbLog("cutbuffer_send: no send: uninitialized clients\n");
return; /* some clients initializing, cannot send */
}
+ if (unixpw_in_progress) {
+ return;
+ }
/* now send it to any connected VNC clients (rfbServerCutText) */
if (!screen) {
@@ -284,6 +288,10 @@ void selection_send(XEvent *ev) {
return; /* some clients initializing, cannot send */
}
+ if (unixpw_in_progress) {
+ return;
+ }
+
/* now send it to any connected VNC clients (rfbServerCutText) */
if (!screen) {
return;
diff --git a/x11vnc/sslcmds.c b/x11vnc/sslcmds.c
new file mode 100644
index 0000000..c1dfa92
--- /dev/null
+++ b/x11vnc/sslcmds.c
@@ -0,0 +1,236 @@
+/* -- sslcmds.c -- */
+
+#include "x11vnc.h"
+#include "inet.h"
+#include "cleanup.h"
+
+#if LIBVNCSERVER_HAVE_FORK
+#if LIBVNCSERVER_HAVE_SYS_WAIT_H
+#if LIBVNCSERVER_HAVE_WAITPID
+#define SSLCMDS
+#endif
+#endif
+#endif
+
+
+int start_stunnel(int stunnel_port, int x11vnc_port);
+void stop_stunnel(void);
+void setup_stunnel(int rport, int *argc, char **argv);
+
+static pid_t stunnel_pid = 0;
+
+int start_stunnel(int stunnel_port, int x11vnc_port) {
+#ifdef SSLCMDS
+ char extra[] = ":/usr/sbin:/usr/local/sbin";
+ char *path, *p, *exe;
+ char *stunnel_path = NULL;
+ int status;
+
+ if (stunnel_pid) {
+ stop_stunnel();
+ }
+ stunnel_pid = 0;
+
+ path = getenv("PATH");
+ if (! path) {
+ path = strdup(extra);
+ } else {
+ path = (char *) malloc(strlen(path)+strlen(extra)+1);
+ if (! path) {
+ return 0;
+ }
+ strcpy(path, getenv("PATH"));
+ strcat(path, extra);
+ }
+
+ exe = (char *) malloc(strlen(path) + strlen("stunnel") + 1);
+
+ p = strtok(path, ":");
+
+ exe[0] = '\0';
+
+ while (p) {
+ struct stat sbuf;
+
+ sprintf(exe, "%s/%s", p, "stunnel");
+ if (! stunnel_path && stat(exe, &sbuf) == 0) {
+ if (! S_ISDIR(sbuf.st_mode)) {
+ stunnel_path = exe;
+ break;
+ }
+ }
+
+ p = strtok(NULL, ":");
+ }
+ if (path) {
+ free(path);
+ }
+
+ if (! stunnel_path) {
+ return 0;
+ }
+ if (stunnel_path[0] == '\0') {
+ free(stunnel_path);
+ return 0;
+ }
+
+ if (! quiet) {
+ rfbLog("\n");
+ rfbLog("starting ssl tunnel: %s %d -> %d\n", stunnel_path,
+ stunnel_port, x11vnc_port);
+ }
+
+ if (0) {
+ fprintf(stderr, "foreground = yes\n");
+ fprintf(stderr, "pid =\n");
+ fprintf(stderr, ";debug = 7\n");
+ fprintf(stderr, "[x11vnc_stunnel]\n");
+ fprintf(stderr, "accept = %d\n", stunnel_port);
+ fprintf(stderr, "connect = %d\n", x11vnc_port);
+ }
+
+ stunnel_pid = fork();
+
+ if (stunnel_pid < 0) {
+ stunnel_pid = 0;
+ free(stunnel_path);
+ return 0;
+ }
+
+ if (stunnel_pid == 0) {
+ FILE *in;
+ char fd[20];
+ int i;
+
+ for (i=3; i<256; i++) {
+ close(i);
+ }
+
+ if (use_stunnel == 3) {
+ char sp[20], xp[20];
+
+ sprintf(sp, "%d", stunnel_port);
+ sprintf(xp, "%d", x11vnc_port);
+
+ if (stunnel_pem) {
+ execlp(stunnel_path, stunnel_path, "-f", "-d",
+ sp, "-r", xp, "-P", "none", "-p",
+ stunnel_pem, (char *) NULL);
+ } else {
+ execlp(stunnel_path, stunnel_path, "-f", "-d",
+ sp, "-r", xp, "-P", "none", (char *) NULL);
+ }
+ exit(1);
+ }
+
+ in = tmpfile();
+ if (! in) {
+ exit(1);
+ }
+ fprintf(in, "foreground = yes\n");
+ fprintf(in, "pid =\n");
+ if (stunnel_pem) {
+ fprintf(in, "cert = %s\n", stunnel_pem);
+ }
+ fprintf(in, ";debug = 7\n");
+ fprintf(in, "[x11vnc_stunnel]\n");
+ fprintf(in, "accept = %d\n", stunnel_port);
+ fprintf(in, "connect = %d\n", x11vnc_port);
+
+ fflush(in);
+ rewind(in);
+
+ sprintf(fd, "%d", fileno(in));
+ execlp(stunnel_path, stunnel_path, "-fd", fd, (char *) NULL);
+ exit(1);
+ }
+ free(stunnel_path);
+ usleep(500 * 1000);
+
+ waitpid(stunnel_pid, &status, WNOHANG);
+ if (kill(stunnel_pid, 0) != 0) {
+ waitpid(stunnel_pid, &status, WNOHANG);
+ stunnel_pid = 0;
+ return 0;
+ }
+
+ if (! quiet) {
+ rfbLog("stunnel pid is: %d\n", (int) stunnel_pid);
+ }
+
+ return 1;
+#else
+ return 0;
+#endif
+}
+
+void stop_stunnel(void) {
+ int status;
+ if (! stunnel_pid) {
+ return;
+ }
+#ifdef SSLCMDS
+ kill(stunnel_pid, SIGTERM);
+ usleep (150 * 1000);
+ kill(stunnel_pid, SIGKILL);
+ usleep (50 * 1000);
+ waitpid(stunnel_pid, &status, WNOHANG);
+#endif
+ stunnel_pid = 0;
+}
+
+void setup_stunnel(int rport, int *argc, char **argv) {
+ int i, xport = 0;
+ if (! rport) {
+ for (i=0; i< *argc; i++) {
+ if (!strcmp(argv[i], "-rfbport")) {
+ if (i < *argc - 1) {
+ rport = atoi(argv[i+1]);
+ break;
+ }
+ }
+ }
+ }
+
+ if (! rport) {
+ /* we do our own autoprobing then... */
+ rport = find_free_port(5900, 5999);
+ if (! rport) {
+ goto stunnel_fail;
+ }
+ }
+ xport = find_free_port(5950, 5999);
+ if (! xport) {
+ goto stunnel_fail;
+ }
+ if (start_stunnel(rport, xport)) {
+ int tweaked = 0;
+ char tmp[10];
+ sprintf(tmp, "%d", xport);
+ if (argv) {
+ for (i=0; i< *argc; i++) {
+ if (!strcmp(argv[i], "-rfbport")) {
+ if (i < *argc - 1) {
+ argv[i+i] = strdup(tmp);
+ tweaked = 1;
+ break;
+ }
+ }
+ }
+ if (! tweaked) {
+ i = *argc;
+ argv[i] = strdup("-rfbport");
+ argv[i+1] = strdup(tmp);
+ *argc += 2;
+ got_rfbport = 1;
+ }
+ }
+ stunnel_port = rport;
+ return;
+ }
+
+ stunnel_fail:
+ rfbLog("failed to start stunnel.\n");
+ clean_up_exit(1);
+}
+
diff --git a/x11vnc/sslcmds.h b/x11vnc/sslcmds.h
new file mode 100644
index 0000000..e0c5ca8
--- /dev/null
+++ b/x11vnc/sslcmds.h
@@ -0,0 +1,11 @@
+#ifndef _X11VNC_SSLCMDS_H
+#define _X11VNC_SSLCMDS_H
+
+/* -- sslcmds.h -- */
+
+extern int start_stunnel(int stunnel_port, int x11vnc_port);
+extern void stop_stunnel(void);
+extern void setup_stunnel(int rport, int *argc, char **argv);
+
+
+#endif /* _X11VNC_SSLCMDS_H */
diff --git a/x11vnc/tkx11vnc b/x11vnc/tkx11vnc
index 439a9f8..366d2f2 100755
--- a/x11vnc/tkx11vnc
+++ b/x11vnc/tkx11vnc
@@ -502,9 +502,9 @@ You can choose to disconnect the client by clicking on the
confirmation dialog to doublecheck.
Alternatively, you can fine tune the VNC client's input permissions
-by selecting any of the Keystrokes, Mouse Motion, or Button Clicks
-checkboxes and pressing \"OK\". This is like the \"-input\" option
-but on a per-client basis.
+by selecting any of the Keystrokes, Mouse-Motion, Button-Clicks, or
+Clipboard-Input checkboxes and pressing \"OK\". This is like the
+\"-input\" option but on a per-client basis.
To not change any aspects of the VNC client press \"Cancel\".
"
@@ -1849,8 +1849,8 @@ proc push_new_value {item name new {query 1}} {
}
}
-proc set_kmb_str {} {
- global vl_bk vl_bm vl_bb vr_bk vr_bm vr_bb
+proc set_kmbc_str {} {
+ global vl_bk vl_bm vl_bb vl_bc vr_bk vr_bm vr_bb vr_bc
set str ""
if {$vl_bk} {
@@ -1862,7 +1862,10 @@ proc set_kmb_str {} {
if {$vl_bb} {
append str "B"
}
- if {$vr_bk || $vr_bm || $vr_bb} {
+ if {$vl_bc} {
+ append str "C"
+ }
+ if {$vr_bk || $vr_bm || $vr_bb || $vr_bc} {
append str ","
}
if {$vr_bk} {
@@ -1874,16 +1877,19 @@ proc set_kmb_str {} {
if {$vr_bb} {
append str "B"
}
+ if {$vr_bc} {
+ append str "C"
+ }
entry_insert $str
}
proc insert_input_window {} {
global text_area cleanup_window
global ffont menu_var
- global vl_bk vl_bm vl_bb vr_bk vr_bm vr_bb
+ global vl_bk vl_bm vl_bb vl_bc vr_bk vr_bm vr_bb vr_bc
append_text "\nUse these checkboxes to set the input permissions, "
- append_text "or type in the \"KMB...\"\n"
+ append_text "or type in the \"KMBC...\"\n"
append_text "-input string manually. Then press \"OK\" or \"Cancel\".\n"
append_text "(note: an empty setting means use the default behavior, "
append_text "see viewonly)\n\n"
@@ -1896,18 +1902,22 @@ proc insert_input_window {} {
frame $fr
label $fl.l -font $ffont -text "Normal clients: "
checkbutton $fl.bk -pady 1 -font $ffont -anchor w -variable vl_bk \
- -pady 1 -command set_kmb_str -text "Keystrokes"
+ -pady 1 -command set_kmbc_str -text "Keystrokes"
checkbutton $fl.bm -font $ffont -anchor w -variable vl_bm \
- -pady 1 -command set_kmb_str -text "Mouse Motion"
+ -pady 1 -command set_kmbc_str -text "Mouse-Motion"
checkbutton $fl.bb -font $ffont -anchor w -variable vl_bb \
- -pady 1 -command set_kmb_str -text "Button Clicks"
+ -pady 1 -command set_kmbc_str -text "Button-Clicks"
+ checkbutton $fl.bc -font $ffont -anchor w -variable vl_bc \
+ -pady 1 -command set_kmbc_str -text "Clipboard-Input"
label $fr.l -pady 1 -font $ffont -text "View-Only clients:"
checkbutton $fr.bk -font $ffont -anchor w -variable vr_bk \
- -pady 1 -command set_kmb_str -text "Keystrokes"
+ -pady 1 -command set_kmbc_str -text "Keystrokes"
checkbutton $fr.bm -font $ffont -anchor w -variable vr_bm \
- -pady 1 -command set_kmb_str -text "Mouse Motion"
+ -pady 1 -command set_kmbc_str -text "Mouse-Motion"
checkbutton $fr.bb -font $ffont -anchor w -variable vr_bb \
- -pady 1 -command set_kmb_str -text "Button Clicks"
+ -pady 1 -command set_kmbc_str -text "Button-Clicks"
+ checkbutton $fr.bc -font $ffont -anchor w -variable vr_bc \
+ -pady 1 -command set_kmbc_str -text "Clipboard-Input"
if {[info exists menu_var(input)]} {
set input_str $menu_var(input)
@@ -1924,9 +1934,11 @@ proc insert_input_window {} {
set vl_bk 0
set vl_bm 0
set vl_bb 0
+ set vl_bc 0
set vr_bk 0
set vr_bm 0
set vr_bb 0
+ set vr_bc 0
if {[regexp -nocase {K} $normal]} {
set vl_bk 1
@@ -1937,6 +1949,9 @@ proc insert_input_window {} {
if {[regexp -nocase {B} $normal]} {
set vl_bb 1
}
+ if {[regexp -nocase {C} $normal]} {
+ set vl_bc 1
+ }
if {[regexp -nocase {K} $viewonly]} {
set vr_bk 1
}
@@ -1946,9 +1961,12 @@ proc insert_input_window {} {
if {[regexp -nocase {B} $viewonly]} {
set vr_bb 1
}
+ if {[regexp -nocase {C} $viewonly]} {
+ set vr_bc 1
+ }
- pack $fl.l $fl.bk $fl.bm $fl.bb -side top -fill x
- pack $fr.l $fr.bk $fr.bm $fr.bb -side top -fill x
+ pack $fl.l $fl.bk $fl.bm $fl.bb $fl.bc -side top -fill x
+ pack $fr.l $fr.bk $fr.bm $fr.bb $fr.bc -side top -fill x
pack $fl $fr -side left
update
update idletasks
@@ -1961,19 +1979,21 @@ proc insert_input_window {} {
}
proc set_ca_str {w} {
- global ca_bk ca_bm ca_bb ca_bk ca_di
+ global ca_bk ca_bm ca_bb ca_bc ca_di
if {$ca_di} {
entry_insert "disconnect"
$w.bk configure -state disabled
$w.bm configure -state disabled
$w.bb configure -state disabled
+ $w.bc configure -state disabled
return
}
$w.bk configure -state normal
$w.bm configure -state normal
$w.bb configure -state normal
+ $w.bc configure -state normal
set str ""
if {$ca_bk} {
@@ -1985,13 +2005,16 @@ proc set_ca_str {w} {
if {$ca_bb} {
append str "B"
}
+ if {$ca_bc} {
+ append str "C"
+ }
entry_insert $str
}
proc insert_client_action_window {input} {
global text_area cleanup_window
global ffont menu_var
- global ca_bk ca_bm ca_bb ca_bk ca_di
+ global ca_bk ca_bm ca_bb ca_bc ca_di
append_text "\nUse these checkboxes to set the input permissions "
append_text "for this client\n-OR- whether to disconnect it instead. "
@@ -2004,14 +2027,17 @@ proc insert_client_action_window {input} {
checkbutton $w.bk -font $ffont -anchor w -variable ca_bk \
-pady 1 -command "set_ca_str $w" -text "Keystrokes"
checkbutton $w.bm -font $ffont -anchor w -variable ca_bm \
- -pady 1 -command "set_ca_str $w" -text "Mouse Motion"
+ -pady 1 -command "set_ca_str $w" -text "Mouse-Motion"
checkbutton $w.bb -font $ffont -anchor w -variable ca_bb \
- -pady 1 -command "set_ca_str $w" -text "Button Clicks"
+ -pady 1 -command "set_ca_str $w" -text "Button-Clicks"
+ checkbutton $w.bc -font $ffont -anchor w -variable ca_bc \
+ -pady 1 -command "set_ca_str $w" -text "Clipboard"
set ca_di 0
set ca_bk 0
set ca_bm 0
set ca_bb 0
+ set ca_bc 0
if {[regexp -nocase {K} $input]} {
set ca_bk 1
@@ -2022,8 +2048,11 @@ proc insert_client_action_window {input} {
if {[regexp -nocase {B} $input]} {
set ca_bb 1
}
+ if {[regexp -nocase {C} $input]} {
+ set ca_bc 1
+ }
- pack $w.di $w.bk $w.bm $w.bb -side left
+ pack $w.di $w.bk $w.bm $w.bb $w.bc -side left
update
update idletasks
$text_area window create end -window $w
@@ -3188,16 +3217,17 @@ proc client_dialog {client} {
set input $m6
set logvo $m7
append_text "Host: $host, Port: $port, User: $user, IP: $ip, Id: $cid\n"
- append_text " - originally logged in as: "
+ append_text " - originally logged in as: "
if {$logvo == "1" } {
append_text "View-Only Client\n"
} else {
append_text "Normal Client\n"
}
- append_text " - currently allowed input: "
+ append_text " - currently allowed input: "
set sk 0
set sm 0
set sb 0
+ set sc 0
if {[regexp -nocase {K} $input]} {
append_text "Keystrokes"
set sk 1
@@ -3216,7 +3246,14 @@ proc client_dialog {client} {
append_text "Button-Clicks"
set sb 1
}
- if {! $sk && ! $sm && ! $sb} {
+ if {[regexp -nocase {C} $input]} {
+ if {$sk || $sm || $sb} {
+ append_text ", "
+ }
+ append_text "Clipboard"
+ set sm 1
+ }
+ if {! $sk && ! $sm && ! $sb && ! $sm} {
append_text "None"
}
append_text "\n"
@@ -3243,7 +3280,7 @@ proc client_dialog {client} {
} elseif {[regexp -nocase {(disconnect|close)} $val]} {
disconnect_dialog $client
} else {
- regsub -all -nocase {[^KMB]} $val "" val
+ regsub -all -nocase {[^KMBC]} $val "" val
set item_bool(client_input) 0
push_new_value "client_input" "client_input" "$cid:$val" 0
}
diff --git a/x11vnc/tkx11vnc.h b/x11vnc/tkx11vnc.h
index bd829d3..a39f0c5 100644
--- a/x11vnc/tkx11vnc.h
+++ b/x11vnc/tkx11vnc.h
@@ -513,9 +513,9 @@ char gui_code[] = "";
"confirmation dialog to doublecheck.\n"
"\n"
"Alternatively, you can fine tune the VNC client's input permissions\n"
-"by selecting any of the Keystrokes, Mouse Motion, or Button Clicks\n"
-"checkboxes and pressing \\\"OK\\\". This is like the \\\"-input\\\" option\n"
-"but on a per-client basis.\n"
+"by selecting any of the Keystrokes, Mouse-Motion, Button-Clicks, or\n"
+"Clipboard-Input checkboxes and pressing \\\"OK\\\". This is like the\n"
+"\\\"-input\\\" option but on a per-client basis.\n"
"\n"
"To not change any aspects of the VNC client press \\\"Cancel\\\".\n"
"\"\n"
@@ -1860,8 +1860,8 @@ char gui_code[] = "";
" }\n"
"}\n"
"\n"
-"proc set_kmb_str {} {\n"
-" global vl_bk vl_bm vl_bb vr_bk vr_bm vr_bb \n"
+"proc set_kmbc_str {} {\n"
+" global vl_bk vl_bm vl_bb vl_bc vr_bk vr_bm vr_bb vr_bc\n"
"\n"
" set str \"\"\n"
" if {$vl_bk} {\n"
@@ -1873,7 +1873,10 @@ char gui_code[] = "";
" if {$vl_bb} {\n"
" append str \"B\"\n"
" }\n"
-" if {$vr_bk || $vr_bm || $vr_bb} {\n"
+" if {$vl_bc} {\n"
+" append str \"C\"\n"
+" }\n"
+" if {$vr_bk || $vr_bm || $vr_bb || $vr_bc} {\n"
" append str \",\"\n"
" }\n"
" if {$vr_bk} {\n"
@@ -1885,16 +1888,19 @@ char gui_code[] = "";
" if {$vr_bb} {\n"
" append str \"B\"\n"
" }\n"
+" if {$vr_bc} {\n"
+" append str \"C\"\n"
+" }\n"
" entry_insert $str\n"
"}\n"
"\n"
"proc insert_input_window {} {\n"
" global text_area cleanup_window\n"
" global ffont menu_var\n"
-" global vl_bk vl_bm vl_bb vr_bk vr_bm vr_bb \n"
+" global vl_bk vl_bm vl_bb vl_bc vr_bk vr_bm vr_bb vr_bc\n"
"\n"
" append_text \"\\nUse these checkboxes to set the input permissions, \"\n"
-" append_text \"or type in the \\\"KMB...\\\"\\n\"\n"
+" append_text \"or type in the \\\"KMBC...\\\"\\n\"\n"
" append_text \"-input string manually. Then press \\\"OK\\\" or \\\"Cancel\\\".\\n\"\n"
" append_text \"(note: an empty setting means use the default behavior, \"\n"
" append_text \"see viewonly)\\n\\n\"\n"
@@ -1907,18 +1913,22 @@ char gui_code[] = "";
" frame $fr\n"
" label $fl.l -font $ffont -text \"Normal clients: \"\n"
" checkbutton $fl.bk -pady 1 -font $ffont -anchor w -variable vl_bk \\\n"
-" -pady 1 -command set_kmb_str -text \"Keystrokes\" \n"
+" -pady 1 -command set_kmbc_str -text \"Keystrokes\" \n"
" checkbutton $fl.bm -font $ffont -anchor w -variable vl_bm \\\n"
-" -pady 1 -command set_kmb_str -text \"Mouse Motion\" \n"
+" -pady 1 -command set_kmbc_str -text \"Mouse-Motion\" \n"
" checkbutton $fl.bb -font $ffont -anchor w -variable vl_bb \\\n"
-" -pady 1 -command set_kmb_str -text \"Button Clicks\"\n"
+" -pady 1 -command set_kmbc_str -text \"Button-Clicks\"\n"
+" checkbutton $fl.bc -font $ffont -anchor w -variable vl_bc \\\n"
+" -pady 1 -command set_kmbc_str -text \"Clipboard-Input\"\n"
" label $fr.l -pady 1 -font $ffont -text \"View-Only clients:\"\n"
" checkbutton $fr.bk -font $ffont -anchor w -variable vr_bk \\\n"
-" -pady 1 -command set_kmb_str -text \"Keystrokes\" \n"
+" -pady 1 -command set_kmbc_str -text \"Keystrokes\" \n"
" checkbutton $fr.bm -font $ffont -anchor w -variable vr_bm \\\n"
-" -pady 1 -command set_kmb_str -text \"Mouse Motion\" \n"
+" -pady 1 -command set_kmbc_str -text \"Mouse-Motion\" \n"
" checkbutton $fr.bb -font $ffont -anchor w -variable vr_bb \\\n"
-" -pady 1 -command set_kmb_str -text \"Button Clicks\"\n"
+" -pady 1 -command set_kmbc_str -text \"Button-Clicks\"\n"
+" checkbutton $fr.bc -font $ffont -anchor w -variable vr_bc \\\n"
+" -pady 1 -command set_kmbc_str -text \"Clipboard-Input\"\n"
"\n"
" if {[info exists menu_var(input)]} {\n"
" set input_str $menu_var(input)\n"
@@ -1935,9 +1945,11 @@ char gui_code[] = "";
" set vl_bk 0\n"
" set vl_bm 0\n"
" set vl_bb 0\n"
+" set vl_bc 0\n"
" set vr_bk 0\n"
" set vr_bm 0\n"
" set vr_bb 0\n"
+" set vr_bc 0\n"
"\n"
" if {[regexp -nocase {K} $normal]} {\n"
" set vl_bk 1\n"
@@ -1948,6 +1960,9 @@ char gui_code[] = "";
" if {[regexp -nocase {B} $normal]} {\n"
" set vl_bb 1\n"
" }\n"
+" if {[regexp -nocase {C} $normal]} {\n"
+" set vl_bc 1\n"
+" }\n"
" if {[regexp -nocase {K} $viewonly]} {\n"
" set vr_bk 1\n"
" }\n"
@@ -1957,9 +1972,12 @@ char gui_code[] = "";
" if {[regexp -nocase {B} $viewonly]} {\n"
" set vr_bb 1\n"
" }\n"
+" if {[regexp -nocase {C} $viewonly]} {\n"
+" set vr_bc 1\n"
+" }\n"
"\n"
-" pack $fl.l $fl.bk $fl.bm $fl.bb -side top -fill x\n"
-" pack $fr.l $fr.bk $fr.bm $fr.bb -side top -fill x\n"
+" pack $fl.l $fl.bk $fl.bm $fl.bb $fl.bc -side top -fill x\n"
+" pack $fr.l $fr.bk $fr.bm $fr.bb $fr.bc -side top -fill x\n"
" pack $fl $fr -side left\n"
" update\n"
" update idletasks\n"
@@ -1972,19 +1990,21 @@ char gui_code[] = "";
"}\n"
"\n"
"proc set_ca_str {w} {\n"
-" global ca_bk ca_bm ca_bb ca_bk ca_di\n"
+" global ca_bk ca_bm ca_bb ca_bc ca_di\n"
"\n"
" if {$ca_di} {\n"
" entry_insert \"disconnect\"\n"
" $w.bk configure -state disabled\n"
" $w.bm configure -state disabled\n"
" $w.bb configure -state disabled\n"
+" $w.bc configure -state disabled\n"
" return\n"
" }\n"
"\n"
" $w.bk configure -state normal\n"
" $w.bm configure -state normal\n"
" $w.bb configure -state normal\n"
+" $w.bc configure -state normal\n"
"\n"
" set str \"\"\n"
" if {$ca_bk} {\n"
@@ -1996,13 +2016,16 @@ char gui_code[] = "";
" if {$ca_bb} {\n"
" append str \"B\"\n"
" }\n"
+" if {$ca_bc} {\n"
+" append str \"C\"\n"
+" }\n"
" entry_insert $str\n"
"}\n"
"\n"
"proc insert_client_action_window {input} {\n"
" global text_area cleanup_window\n"
" global ffont menu_var\n"
-" global ca_bk ca_bm ca_bb ca_bk ca_di\n"
+" global ca_bk ca_bm ca_bb ca_bc ca_di\n"
"\n"
" append_text \"\\nUse these checkboxes to set the input permissions \"\n"
" append_text \"for this client\\n-OR- whether to disconnect it instead. \"\n"
@@ -2015,14 +2038,17 @@ char gui_code[] = "";
" checkbutton $w.bk -font $ffont -anchor w -variable ca_bk \\\n"
" -pady 1 -command \"set_ca_str $w\" -text \"Keystrokes\" \n"
" checkbutton $w.bm -font $ffont -anchor w -variable ca_bm \\\n"
-" -pady 1 -command \"set_ca_str $w\" -text \"Mouse Motion\" \n"
+" -pady 1 -command \"set_ca_str $w\" -text \"Mouse-Motion\" \n"
" checkbutton $w.bb -font $ffont -anchor w -variable ca_bb \\\n"
-" -pady 1 -command \"set_ca_str $w\" -text \"Button Clicks\"\n"
+" -pady 1 -command \"set_ca_str $w\" -text \"Button-Clicks\"\n"
+" checkbutton $w.bc -font $ffont -anchor w -variable ca_bc \\\n"
+" -pady 1 -command \"set_ca_str $w\" -text \"Clipboard\"\n"
"\n"
" set ca_di 0\n"
" set ca_bk 0\n"
" set ca_bm 0\n"
" set ca_bb 0\n"
+" set ca_bc 0\n"
"\n"
" if {[regexp -nocase {K} $input]} {\n"
" set ca_bk 1\n"
@@ -2033,8 +2059,11 @@ char gui_code[] = "";
" if {[regexp -nocase {B} $input]} {\n"
" set ca_bb 1\n"
" }\n"
+" if {[regexp -nocase {C} $input]} {\n"
+" set ca_bc 1\n"
+" }\n"
"\n"
-" pack $w.di $w.bk $w.bm $w.bb -side left\n"
+" pack $w.di $w.bk $w.bm $w.bb $w.bc -side left\n"
" update\n"
" update idletasks\n"
" $text_area window create end -window $w\n"
@@ -3199,16 +3228,17 @@ char gui_code[] = "";
" set input $m6\n"
" set logvo $m7\n"
" append_text \"Host: $host, Port: $port, User: $user, IP: $ip, Id: $cid\\n\"\n"
-" append_text \" - originally logged in as: \"\n"
+" append_text \" - originally logged in as: \"\n"
" if {$logvo == \"1\" } {\n"
" append_text \"View-Only Client\\n\"\n"
" } else {\n"
" append_text \"Normal Client\\n\"\n"
" }\n"
-" append_text \" - currently allowed input: \"\n"
+" append_text \" - currently allowed input: \"\n"
" set sk 0\n"
" set sm 0\n"
" set sb 0\n"
+" set sc 0\n"
" if {[regexp -nocase {K} $input]} {\n"
" append_text \"Keystrokes\"\n"
" set sk 1\n"
@@ -3227,7 +3257,14 @@ char gui_code[] = "";
" append_text \"Button-Clicks\"\n"
" set sb 1\n"
" }\n"
-" if {! $sk && ! $sm && ! $sb} {\n"
+" if {[regexp -nocase {C} $input]} {\n"
+" if {$sk || $sm || $sb} {\n"
+" append_text \", \"\n"
+" }\n"
+" append_text \"Clipboard\"\n"
+" set sm 1\n"
+" }\n"
+" if {! $sk && ! $sm && ! $sb && ! $sm} {\n"
" append_text \"None\"\n"
" }\n"
" append_text \"\\n\"\n"
@@ -3254,7 +3291,7 @@ char gui_code[] = "";
" } elseif {[regexp -nocase {(disconnect|close)} $val]} {\n"
" disconnect_dialog $client\n"
" } else {\n"
-" regsub -all -nocase {[^KMB]} $val \"\" val\n"
+" regsub -all -nocase {[^KMBC]} $val \"\" val\n"
" set item_bool(client_input) 0\n"
" push_new_value \"client_input\" \"client_input\" \"$cid:$val\" 0\n"
" }\n"
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c
new file mode 100644
index 0000000..1ab59d7
--- /dev/null
+++ b/x11vnc/unixpw.c
@@ -0,0 +1,442 @@
+/* -- unixpw.c -- */
+
+#ifdef __linux__
+/* some conflict with _XOPEN_SOURCE */
+extern int grantpt(int);
+extern int unlockpt(int);
+extern char *ptsname(int);
+#endif
+
+#include "x11vnc.h"
+#include "scan.h"
+#include "cleanup.h"
+#include "xinerama.h"
+#include <rfb/default8x16.h>
+
+/* much to do for it to work on *BSD ... */
+
+#if LIBVNCSERVER_HAVE_FORK
+#if LIBVNCSERVER_HAVE_SETSID
+#if LIBVNCSERVER_HAVE_SYS_WAIT_H
+#if LIBVNCSERVER_HAVE_PWD_H
+#if LIBVNCSERVER_HAVE_SETUID
+#if LIBVNCSERVER_HAVE_WAITPID
+#if LIBVNCSERVER_HAVE_TERMIOS_H
+#if LIBVNCSERVER_HAVE_SYS_IOCTL_H
+#if LIBVNCSERVER_HAVE_GRANTPT
+#define UNIXPW
+#include <sys/ioctl.h>
+#include <termios.h>
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+#endif
+
+void unixpw_screen(int init);
+void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init);
+void unixpw_accept(void);
+void unixpw_deny(void);
+
+static int white(void);
+static int text_x(void);
+static int text_y(void);
+static int su_verify(char *user, char *pass);
+static void unixpw_verify(char *user, char *pass);
+
+int unixpw_in_progress = 0;
+time_t unixpw_last_try_time = 0;
+rfbClientPtr unixpw_client = NULL;
+
+static int in_login = 0, in_passwd = 0, tries = 0;
+static int char_row = 0, char_col = 0;
+static int char_x = 0, char_y = 0, char_w = 8, char_h = 16;
+
+static int white(void) {
+ static unsigned long black_pix = 0, white_pix = 1, set = 0;
+
+ if (depth <= 8 && ! set) {
+ X_LOCK;
+ black_pix = BlackPixel(dpy, scr);
+ white_pix = WhitePixel(dpy, scr);
+ X_UNLOCK;
+ set = 1;
+ }
+ if (depth <= 8) {
+ return (int) white_pix;
+ } else if (depth < 24) {
+ return 0xffff;
+ } else {
+ return 0xffffff;
+ }
+}
+
+static int text_x(void) {
+ return char_x + char_col * char_w;
+}
+
+static int text_y(void) {
+ return char_y + char_row * char_h;
+}
+
+void unixpw_screen(int init) {
+#ifndef UNIXPW
+ rfbLog("-unixpw is not supported on this OS/machine\n");
+ clean_up_exit(1);
+#endif
+ if (init) {
+ int x, y;
+ char log[] = "login: ";
+
+ zero_fb(0, 0, dpy_x, dpy_y);
+
+ x = nfix(dpy_x / 2 - strlen(log) * char_w, dpy_x);
+ y = dpy_y / 4;
+
+ rfbDrawString(screen, &default8x16Font, x, y, log, white());
+
+ char_x = x;
+ char_y = y;
+ char_col = strlen(log);
+ char_row = 0;
+ }
+
+ mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0);
+}
+
+static int su_verify(char *user, char *pass) {
+#ifdef UNIXPW
+ int status, fd, sfd;
+ char *slave;
+ pid_t pid, pidw;
+ struct stat sbuf;
+
+ if (unixpw_list) {
+ char *p, *str = strdup(unixpw_list);
+ int ok = 0;
+
+ p = strtok(str, ",");
+ while (p) {
+ if (!strcmp(user, p)) {
+ ok = 1;
+ break;
+ }
+ p = strtok(NULL, ",");
+ }
+ free(str);
+ if (! ok) {
+ return 0;
+ }
+ }
+ if (stat("/bin/su", &sbuf) != 0) {
+ rfbLogPerror("existence /bin/su");
+ return 0;
+ }
+ if (stat("/bin/true", &sbuf) != 0) {
+ rfbLogPerror("existence /bin/true");
+ return 0;
+ }
+
+ fd = open("/dev/ptmx", O_RDWR|O_NOCTTY);
+
+ if (fd < 0) {
+ rfbLogPerror("open /dev/ptmx");
+ return 0;
+ }
+
+ if (grantpt(fd) != 0) {
+ rfbLogPerror("grantpt");
+ close(fd);
+ return 0;
+ }
+ if (unlockpt(fd) != 0) {
+ rfbLogPerror("unlockpt");
+ close(fd);
+ return 0;
+ }
+
+ slave = ptsname(fd);
+ if (! slave) {
+ rfbLogPerror("ptsname");
+ close(fd);
+ return 0;
+ }
+
+ pid = fork();
+ if (pid < 0) {
+ rfbLogPerror("fork");
+ close(fd);
+ return 0;
+ }
+
+ if (pid == 0) {
+ int ttyfd;
+ struct passwd *pw;
+
+ close(fd);
+
+ pw = getpwnam("nobody");
+
+ if (pw) {
+ setuid(pw->pw_uid);
+#if LIBVNCSERVER_HAVE_SETEUID
+ seteuid(pw->pw_uid);
+#endif
+ setgid(pw->pw_gid);
+#if LIBVNCSERVER_HAVE_SETEGID
+ setegid(pw->pw_gid);
+#endif
+ }
+
+ if (getuid() == 0 || geteuid() == 0) {
+ fprintf(stderr, "could not switch to user nobody.\n");
+ exit(1);
+ }
+
+ if (setsid() == -1) {
+ perror("setsid");
+ exit(1);
+ }
+
+#ifdef TIOCNOTTY
+ ttyfd = open("/dev/tty", O_RDWR);
+ if (ttyfd >= 0) {
+ (void) ioctl(ttyfd, TIOCNOTTY, (char *)0);
+ close(ttyfd);
+ }
+#endif
+
+ close(0);
+ close(1);
+ close(2);
+
+ sfd = open(slave, O_RDWR);
+ if (sfd < 0) {
+ fprintf(stderr, "failed: %s\n", slave);
+ perror("open");
+ exit(1);
+ }
+#ifdef TIOCSCTTY
+ if (ioctl(sfd, TIOCSCTTY, (char *) 0) != 0) {
+ perror("ioctl");
+ exit(1);
+ }
+#endif
+ execlp("/bin/su", "/bin/su", user, "-c", "/bin/true",
+ (char *) NULL);
+ exit(1);
+ }
+
+ usleep( 500 * 1000 );
+ write(fd, pass, strlen(pass));
+
+ pidw = waitpid(pid, &status, 0);
+ close(fd);
+
+ if (pid != pidw) {
+ return 0;
+ }
+ if (WIFEXITED(status) && WEXITSTATUS(status) == 0) {
+ return 1;
+ } else {
+ return 0;
+ }
+#else
+ return 0;
+#endif
+}
+
+static int db = 0;
+
+static void unixpw_verify(char *user, char *pass) {
+ int x, y;
+ char li[] = "Login incorrect";
+ char log[] = "login: ";
+
+if (db) fprintf(stderr, "unixpw_verify: '%s' '%s'\n", user, db > 1 ? pass : "********");
+
+ if (su_verify(user, pass)) {
+ unixpw_accept();
+ return;
+ }
+
+ if (tries < 2) {
+ char_row++;
+ char_col = 0;
+
+ x = text_x();
+ y = text_y();
+ rfbDrawString(screen, &default8x16Font, x, y, li, white());
+
+ char_row += 2;
+
+ x = text_x();
+ y = text_y();
+ rfbDrawString(screen, &default8x16Font, x, y, log, white());
+
+ char_col = strlen(log);
+
+ mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0);
+
+ unixpw_last_try_time = time(0);
+ unixpw_keystroke(0, 0, 2);
+ tries++;
+ } else {
+ unixpw_deny();
+ }
+}
+
+void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) {
+ int x, y, i, nmax = 100;
+ static char user[100], pass[100];
+ static int u_cnt = 0, p_cnt = 0, first = 1;
+ char str[100];
+
+ if (first) {
+ if (getenv("DEBUG_UNIXPW")) {
+ db = atoi(getenv("DEBUG_UNIXPW"));
+ }
+ first = 0;
+ }
+
+ if (init) {
+ in_login = 1;
+ in_passwd = 0;
+ if (init == 1) {
+ tries = 0;
+ }
+
+ u_cnt = 0;
+ p_cnt = 0;
+ for (i=0; i<nmax; i++) {
+ user[i] = '\0';
+ pass[i] = '\0';
+ }
+ return;
+ }
+
+ if (down) {
+ return;
+ }
+
+ if (in_login) {
+ if (keysym == XK_BackSpace || keysym == XK_Delete) {
+ if (u_cnt > 0) {
+ user[u_cnt-1] = '\0';
+ x = text_x();
+ y = text_y();
+ zero_fb(x - char_w, y - char_h, x, y);
+ mark_rect_as_modified(x - char_w, y - char_h,
+ x, y, 0);
+ char_col--;
+ u_cnt--;
+ }
+ return;
+ }
+ if (keysym == XK_Return || keysym == XK_Linefeed) {
+ char pw[] = "Password: ";
+
+ in_login = 0;
+ in_passwd = 1;
+
+ char_row++;
+ char_col = 0;
+
+ x = text_x();
+ y = text_y();
+ rfbDrawString(screen, &default8x16Font, x, y, pw,
+ white());
+
+ char_col = strlen(pw);
+ mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0);
+ return;
+ }
+ if (keysym <= ' ' || keysym >= 0x7f) {
+ return;
+ }
+ if (u_cnt >= nmax - 1) {
+ rfbLog("unixpw_deny: username too long\n");
+ unixpw_deny();
+ return;
+ }
+
+ X_LOCK;
+ sprintf(str, "%s", XKeysymToString(keysym));
+ X_UNLOCK;
+
+ user[u_cnt++] = str[0];
+
+ x = text_x();
+ y = text_y();
+
+if (db) fprintf(stderr, "u_cnt: %d %d/%d ks: 0x%x %s\n", u_cnt, x, y, keysym, str);
+
+ str[1] = '\0';
+ rfbDrawString(screen, &default8x16Font, x, y, str, white());
+
+ mark_rect_as_modified(x, y-char_h, x+char_w, y, 0);
+ char_col++;
+
+ } else if (in_passwd) {
+ if (keysym == XK_BackSpace || keysym == XK_Delete) {
+ if (p_cnt > 0) {
+ pass[p_cnt-1] = '\0';
+ p_cnt--;
+ }
+ return;
+ }
+ if (keysym == XK_Return || keysym == XK_Linefeed) {
+ in_login = 0;
+ in_passwd = 0;
+ pass[p_cnt++] = '\n';
+ unixpw_verify(user, pass);
+ return;
+ }
+ if (keysym <= ' ' || keysym >= 0x7f) {
+ return;
+ }
+ if (p_cnt >= nmax - 2) {
+ rfbLog("unixpw_deny: password too long\n");
+ unixpw_deny();
+ return;
+ }
+ pass[p_cnt++] = (char) keysym;
+ }
+}
+
+void unixpw_accept(void) {
+ unixpw_in_progress = 0;
+ unixpw_client = NULL;
+ mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0);
+}
+
+void unixpw_deny(void) {
+ int x, y, i;
+ char pd[] = "Permission denied.";
+
+ char_row += 2;
+ char_col = 0;
+ x = char_x + char_col * char_w;
+ y = char_y + char_row * char_h;
+
+ rfbDrawString(screen, &default8x16Font, x, y, pd, white());
+ mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0);
+
+ for (i=0; i<5; i++) {
+ rfbPE(-1);
+ usleep(500 * 1000);
+ }
+
+ rfbCloseClient(unixpw_client);
+ rfbClientConnectionGone(unixpw_client);
+ rfbPE(-1);
+
+ unixpw_in_progress = 0;
+ unixpw_client = NULL;
+ copy_screen();
+}
+
diff --git a/x11vnc/unixpw.h b/x11vnc/unixpw.h
new file mode 100644
index 0000000..5d22e63
--- /dev/null
+++ b/x11vnc/unixpw.h
@@ -0,0 +1,15 @@
+#ifndef _X11VNC_UNIXPW_H
+#define _X11VNC_UNIXPW_H
+
+/* -- unixpw.h -- */
+
+extern void unixpw_screen(int init);
+extern void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init);
+extern void unixpw_accept(void);
+extern void unixpw_deny(void);
+
+extern int unixpw_in_progress;
+extern time_t unixpw_last_try_time;
+extern rfbClientPtr unixpw_client;
+
+#endif /* _X11VNC_UNIXPW_H */
diff --git a/x11vnc/user.c b/x11vnc/user.c
index 5269d50..eafbb2f 100644
--- a/x11vnc/user.c
+++ b/x11vnc/user.c
@@ -5,6 +5,7 @@
#include "cleanup.h"
#include "scan.h"
#include "screen.h"
+#include "unixpw.h"
void check_switched_user(void);
void lurk_loop(char *str);
@@ -44,6 +45,8 @@ void check_switched_user(void) {
int delay = 15;
time_t now = time(0);
+ if (unixpw_in_progress) return;
+
if (started_as_root == 1 && users_list) {
try_to_switch_users();
if (started_as_root == 2) {
@@ -923,6 +926,8 @@ void check_new_passwds(void) {
if (strstr(passwdfile, "read:") != passwdfile) {
return;
}
+ if (unixpw_in_progress) return;
+
now = time(0);
if (now > last_check + 1) {
if (read_passwds(passwdfile)) {
diff --git a/x11vnc/userinput.c b/x11vnc/userinput.c
index 9c75ef8..50128ae 100644
--- a/x11vnc/userinput.c
+++ b/x11vnc/userinput.c
@@ -15,6 +15,7 @@
#include "solid.h"
#include "xrandr.h"
#include "8to24.h"
+#include "unixpw.h"
/*
* user input handling heuristics
@@ -2710,6 +2711,8 @@ int check_xrecord(void) {
if (! use_xrecord) {
return 0;
}
+ if (unixpw_in_progress) return 0;
+
if (skip_cr_when_scaling("scroll")) {
return 0;
}
@@ -3136,6 +3139,7 @@ void check_fixscreen(void) {
if (!client_count) {
return;
}
+ if (unixpw_in_progress) return;
if (screen_fixup_X > 0.0) {
static double last = 0.0;
@@ -3287,6 +3291,7 @@ int check_wireframe(void) {
int try_it = 0;
DB_SET
+ if (unixpw_in_progress) return 0;
if (nofb) {
return 0;
}
diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1
index 80c7713..16b6e5f 100644
--- a/x11vnc/x11vnc.1
+++ b/x11vnc/x11vnc.1
@@ -2,7 +2,7 @@
.TH X11VNC "1" "February 2006" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
- version: 0.8.1, lastmod: 2006-02-20
+ version: 0.8.1, lastmod: 2006-02-24
.SH SYNOPSIS
.B x11vnc
[OPTION]...
@@ -433,16 +433,17 @@ lookups time out, etc.
.IP
Fine tuning of allowed user input. If \fIstring\fR does
not contain a comma "," the tuning applies only to
-normal clients. Otherwise the part before "," is
-for normal clients and the part after for view-only
-clients. "K" is for Keystroke input, "M" for
-Mouse-motion input, and "B" for Button-click input.
-Their presence in the string enables that type of input.
-E.g. "\fB-input\fR \fIM\fR" means normal users can only move
-the mouse and "\fB-input\fR \fIKMB,M\fR" lets normal users do
-anything and enables view-only users to move the mouse.
-This option is ignored when a global \fB-viewonly\fR is in
-effect (all input is discarded in that case).
+normal clients. Otherwise the part before "," is for
+normal clients and the part after for view-only clients.
+"K" is for Keystroke input, "M" for Mouse-motion
+input, "B" for Button-click input, and "C" is for
+Clipboard input. Their presence in the string enables
+that type of input. E.g. "\fB-input\fR \fIM\fR" means normal
+users can only move the mouse and "\fB-input\fR \fIKMBC,M\fR"
+lets normal users do anything and enables view-only
+users to move the mouse. This option is ignored when
+a global \fB-viewonly\fR is in effect (all input is discarded
+in that case).
.PP
\fB-viewpasswd\fR \fIstring\fR
.IP
@@ -491,6 +492,94 @@ used to have viewonly passwords. (tip: make the 3rd
and last line be "__BEGIN_VIEWONLY__" to have 2
full-access passwords)
.PP
+\fB-unixpw\fR \fI[list]\fR
+.IP
+Experimental option: use Unix username and password
+authentication. x11vnc uses the
+.IR su (1)
+program to
+verify the user's password. [list] is an optional
+comma separated list of allowed Unix usernames.
+.IP
+A familiar "login:" and "Password:" dialog is
+presented to the user on a black screen inside the
+vncviewer. The connection is dropped if the user fails
+to supply the correct password in 3 tries or does not
+send one before a 20 second timeout. Existing clients
+are view-only during this period.
+.IP
+*IMPORTANT*: to prevent the Unix password being sent in
+*clear text* over the network, two x11vnc options are
+enforced: 1) \fB-localhost\fR and 2) \fB-stunnel.\fR The former
+requires the viewer connection to appear to come from
+the same machine x11vnc is running on (e.g. from a ssh
+\fB-L\fR port redirection). The latter requires the \fB-stunnel\fR
+SSL mode be used (see the description below).
+.IP
+To override these restrictions you can set environment
+variables before starting x11vnc:
+.IP
+Set UNIXPW_DISABLE_STUNNEL=1 to disable using \fB-stunnel.\fR
+Evidently you will be using a different method to
+encrypt the data between the vncviewer and x11vnc:
+e.g.
+.IR ssh (1)
+or a VPN. Note that use of
+.IR ssh (1)
+with
+\fB-localhost\fR is roughly the same as requiring a Unix
+user login (since Unix password or the user's public
+key authentication is used by ssh)
+.IP
+Set UNIXPW_DISABLE_LOCALHOST=1 to disable the \fB-localhost\fR
+requirement. One should never do this (i.e. allow the
+Unix passwords to be sniffed on the network).
+.IP
+NOTE: in \fB-inetd\fR mode the two settings are not enforced
+since x11vnc does not make network connections in
+that case. Be sure to use encryption from the viewer
+to inetd. One can also have your own stunnel spawn
+x11vnc in \fB-inetd\fR mode.
+.PP
+\fB-stunnel\fR \fI[pem]\fR
+.IP
+Use the
+.IR stunnel (1)
+(www.stunnel.org) to provide an
+encrypted SSL tunnel between viewers and x11vnc.
+This requires stunnel be installed on the system and
+available via PATH (n.b. stunnel is often installed in
+sbin directories). Version 4.x of stunnel is assumed.
+.IP
+[pem] is optional, use "\fB-stunnel\fR \fI/path/to/stunnel.pem\fR"
+to specify a PEM certificate file to pass to stunnel.
+.IP
+stunnel is started up as a child process and any SSL
+connections it receives are decrypted and sent to x11vnc
+over a local socket. The strings "The SSL VNC desktop
+is ..." and SSLPORT=... are printed out at startup.
+.IP
+The \fB-localhost\fR option is enforced by default. Set
+STUNNEL_DISABLE_LOCALHOST=1 to disable the requirement.
+.IP
+Your VNC viewer will need to be able to connect via SSL.
+Unfortunately not too many do this. UltraVNC seems to
+have a SSL plugin. It is not too difficult to set up
+an stunnel or other SSL tunnel on the viewer side.
+.IP
+A simple example on Unix using stunnel 3.x is:
+.IP
+% stunnel \fB-c\fR \fB-d\fR localhost:5901 \fB-r\fR remote:5900
+% vncviewer localhost:1
+.IP
+For Windows, stunnel has been ported to it and there
+are probably other such tools available.
+.PP
+\fB-stunnel3\fR \fI[pem]\fR
+.IP
+Use version 3.x stunnel command line syntax instead of
+version 4.x
+.PP
\fB-nopw\fR
.IP
Disable the big warning message when you use x11vnc
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c
index 36e0ff9..c341ce3 100644
--- a/x11vnc/x11vnc.c
+++ b/x11vnc/x11vnc.c
@@ -137,6 +137,7 @@
#include "screen.h"
#include "connections.h"
#include "rates.h"
+#include "unixpw.h"
/*
* main routine for the x11vnc program
@@ -159,6 +160,8 @@ static void check_loop_mode(int argc, char* argv[]);
static void check_cursor_changes(void) {
static double last_push = 0.0;
+ if (unixpw_in_progress) return;
+
cursor_changes += check_x11_pointer();
if (cursor_changes) {
@@ -220,6 +223,9 @@ static void record_last_fb_update(void) {
/* check every second or so */
return;
}
+
+ if (unixpw_in_progress) return;
+
last_call = now;
if (! screen) {
@@ -933,6 +939,8 @@ static void print_settings(int try_http, int bg, char *gui_str) {
? allowed_input_str : "null");
fprintf(stderr, " passfile: %s\n", passwdfile ? passwdfile
: "null");
+ fprintf(stderr, " unixpw: %d\n", unixpw);
+ fprintf(stderr, " stunnel: %d\n", use_stunnel);
fprintf(stderr, " accept: %s\n", accept_cmd ? accept_cmd
: "null");
fprintf(stderr, " accept: %s\n", afteraccept_cmd ? afteraccept_cmd
@@ -1157,6 +1165,7 @@ int main(int argc, char* argv[]) {
char *gui_str = NULL;
int pw_loc = -1, got_passwd = 0, got_rfbauth = 0, nopw = NOPW;
int got_viewpasswd = 0, got_localhost = 0, got_passwdfile = 0;
+ int got_stunnel = 0;
int vpw_loc = -1;
int dt = 0, bg = 0;
int got_rfbwait = 0;
@@ -1350,6 +1359,35 @@ int main(int argc, char* argv[]) {
CHECK_ARGC
passwdfile = strdup(argv[++i]);
got_passwdfile = 1;
+ } else if (!strcmp(arg, "-unixpw")) {
+ unixpw = 1;
+ if (i < argc-1) {
+ char *s = argv[i+1];
+ if (s[0] != '-') {
+ unixpw_list = strdup(s);
+ i++;
+ }
+ }
+ } else if (!strcmp(arg, "-stunnel")) {
+ use_stunnel = 1;
+ got_stunnel = 1;
+ if (i < argc-1) {
+ char *s = argv[i+1];
+ if (s[0] != '-') {
+ stunnel_pem = strdup(s);
+ i++;
+ }
+ }
+ } else if (!strcmp(arg, "-stunnel3")) {
+ use_stunnel = 3;
+ got_stunnel = 1;
+ if (i < argc-1) {
+ char *s = argv[i+1];
+ if (s[0] != '-') {
+ stunnel_pem = strdup(s);
+ i++;
+ }
+ }
} else if (!strcmp(arg, "-nopw")) {
nopw = 1;
} else if (!strcmp(arg, "-storepasswd")) {
@@ -1825,8 +1863,8 @@ int main(int argc, char* argv[]) {
if (!strcmp(arg, "-deferupdate")) {
got_deferupdate = 1;
}
- if (!strcmp(arg, "-rfbport")) {
- got_rfbport = 1;
+ if (!strcmp(arg, "-rfbport") && i < argc-1) {
+ got_rfbport = atoi(argv[i+1]);
}
if (!strcmp(arg, "-alwaysshared ")) {
got_alwaysshared = 1;
@@ -1999,9 +2037,9 @@ int main(int argc, char* argv[]) {
}
if (!got_passwd && !got_rfbauth && (!got_passwdfile || !passwd_list)
- && !query_cmd && !remote_cmd) {
- char message[] =
- "-rfbauth, -passwdfile, or -passwd password required.";
+ && !query_cmd && !remote_cmd && !unixpw) {
+ char message[] = "-rfbauth, -passwdfile, -passwd password, "
+ "or -unixpw required.";
if (! nopw) {
nopassword_warning_msg(got_localhost);
}
@@ -2032,6 +2070,33 @@ int main(int argc, char* argv[]) {
launch_gui = 0;
}
+ if (! inetd) {
+ if (unixpw) {
+ if (! got_localhost && ! getenv("UNIXPW_DISABLE_LOCALHOST")) {
+ if (! quiet) {
+ rfbLog("Setting -localhost in -unixpw mode.\n");
+ }
+ allow_list = strdup("127.0.0.1");
+ got_localhost = 1;
+ }
+ if (! got_stunnel && ! getenv("UNIXPW_DISABLE_STUNNEL")) {
+ if (! quiet) {
+ rfbLog("Setting -stunnel in -unixpw mode.\n");
+ }
+ use_stunnel = 1;
+ }
+ } else if (use_stunnel) {
+
+ if (! got_localhost && ! getenv("STUNNEL_DISABLE_LOCALHOST")) {
+ if (! quiet) {
+ rfbLog("Setting -localhost in -stunnel mode.\n");
+ }
+ allow_list = strdup("127.0.0.1");
+ got_localhost = 1;
+ }
+ }
+ }
+
/* fixup settings that do not make sense */
if (use_threads && nofb && cursor_pos_updates) {
@@ -2082,6 +2147,7 @@ int main(int argc, char* argv[]) {
shared = 0;
connect_once = 1;
bg = 0;
+ use_stunnel = 0;
/* others? */
}
@@ -2591,11 +2657,6 @@ int main(int argc, char* argv[]) {
}
#endif
- if (filexfer) {
-#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER
- rfbRegisterTightVNCFileTransferExtension();
-#endif
- }
if (! quiet) {
rfbLog("--------------------------------------------------------\n");
@@ -2604,6 +2665,13 @@ int main(int argc, char* argv[]) {
raw_fb_pass_go_and_collect_200_dollars:
+#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER
+ if (filexfer) {
+ rfbRegisterTightVNCFileTransferExtension();
+ } else {
+ rfbUnregisterTightVNCFileTransferExtension();
+ }
+#endif
if (! dt) {
static char str[] = "-desktop";
argv_vnc[argc_vnc++] = str;
@@ -2655,7 +2723,8 @@ int main(int argc, char* argv[]) {
}
if (! quiet) {
rfbLog("screen setup finished.\n");
- if (!got_passwd && !got_rfbauth && !got_passwdfile && !nopw) {
+ if (!got_passwd && !got_rfbauth && !got_passwdfile && !unixpw
+ && !nopw) {
rfbLog("\n");
rfbLog("WARNING: You are running x11vnc WITHOUT"
" a password. See\n");
diff --git a/x11vnc/x11vnc.h b/x11vnc/x11vnc.h
index 3707c75..e59a2a6 100644
--- a/x11vnc/x11vnc.h
+++ b/x11vnc/x11vnc.h
@@ -435,6 +435,7 @@ typedef struct _ClientData {
double latency;
int cmp_bytes_sent;
int raw_bytes_sent;
+
} ClientData;
#include "params.h"
diff --git a/x11vnc/x11vnc_defs.c b/x11vnc/x11vnc_defs.c
index 6fcc96e..e8db360 100644
--- a/x11vnc/x11vnc_defs.c
+++ b/x11vnc/x11vnc_defs.c
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int xdamage_base_event_type = 0;
/* date +'lastmod: %Y-%m-%d' */
-char lastmod[] = "0.8.1 lastmod: 2006-02-20";
+char lastmod[] = "0.8.1 lastmod: 2006-02-24";
/* X display info */
diff --git a/x11vnc/xdamage.c b/x11vnc/xdamage.c
index 5b13d05..0c3e5d5 100644
--- a/x11vnc/xdamage.c
+++ b/x11vnc/xdamage.c
@@ -3,6 +3,7 @@
#include "x11vnc.h"
#include "xwrappers.h"
#include "userinput.h"
+#include "unixpw.h"
#if LIBVNCSERVER_HAVE_LIBXDAMAGE
Damage xdamage = 0;
@@ -177,6 +178,7 @@ void clear_xdamage_mark_region(sraRegionPtr markregion, int flush) {
if (! xdamage_base_event_type) {
return;
}
+ if (unixpw_in_progress) return;
X_LOCK;
if (flush) {
diff --git a/x11vnc/xevents.c b/x11vnc/xevents.c
index e25a118..58b9a55 100644
--- a/x11vnc/xevents.c
+++ b/x11vnc/xevents.c
@@ -11,6 +11,7 @@
#include "cursor.h"
#include "gui.h"
#include "connections.h"
+#include "unixpw.h"
/* XXX CHECK BEFORE RELEASE */
int grab_buster = 0;
@@ -553,6 +554,8 @@ void check_keycode_state(void) {
if (raw_fb && ! dpy) return; /* raw_fb hack */
+ if (unixpw_in_progress) return;
+
/*
* periodically update our model of the keycode_state[]
* by correlating with the Xserver. wait for a pause in
@@ -578,6 +581,9 @@ void check_autorepeat(void) {
if (now <= last_check + 1) {
return;
}
+
+ if (unixpw_in_progress) return;
+
last_check = now;
autorepeat_is_on = get_autorepeat_state();
@@ -651,6 +657,8 @@ void check_xevents(void) {
if (raw_fb && ! dpy) return; /* raw_fb hack */
+ if (unixpw_in_progress) return;
+
if (now > last_init_check+1) {
last_init_check = now;
initialize_xevents();
@@ -935,6 +943,8 @@ void xcut_receive(char *text, int len, rfbClientPtr cl) {
if (raw_fb && ! dpy) return; /* raw_fb hack */
+ if (unixpw_in_progress) return;
+
if (!watch_selection) {
return;
}
@@ -945,8 +955,7 @@ void xcut_receive(char *text, int len, rfbClientPtr cl) {
return;
}
get_allowed_input(cl, &input);
- if (!input.keystroke && !input.motion && !input.button) {
- /* maybe someday KMBC for cut text... */
+ if (!input.clipboard) {
return;
}
diff --git a/x11vnc/xrecord.c b/x11vnc/xrecord.c
index 7162167..b388c3a 100644
--- a/x11vnc/xrecord.c
+++ b/x11vnc/xrecord.c
@@ -7,6 +7,7 @@
#include "userinput.h"
#include "winattr_t.h"
#include "scrollevent_t.h"
+#include "unixpw.h"
#define SCR_EV_MAX 128
scroll_event_t scr_ev[SCR_EV_MAX];
@@ -1303,6 +1304,7 @@ static void check_xrecord_grabserver(void) {
if (!gdpy_ctrl || !gdpy_data) {
return;
}
+ if (unixpw_in_progress) return;
dtime0(&d);
XFlush(gdpy_ctrl);
@@ -1437,6 +1439,8 @@ void check_xrecord_reset(int force) {
return;
}
+ if (unixpw_in_progress) return;
+
#if LIBVNCSERVER_HAVE_RECORD
if (! rc_scroll) {
return;
OpenPOWER on IntegriCloud