summaryrefslogtreecommitdiffstats
path: root/x11vnc
diff options
context:
space:
mode:
authorrunge <runge>2005-07-18 02:21:14 +0000
committerrunge <runge>2005-07-18 02:21:14 +0000
commit37f23b2c074e6cde6d5fa0387cdef1517bdedb0c (patch)
tree6a637d1427d9409bb55c224ed51feef5ffabfaa1 /x11vnc
parent57d2ea65910a122d6011e205e20388518b9d68e5 (diff)
downloadlibtdevnc-37f23b2c074e6cde6d5fa0387cdef1517bdedb0c.tar.gz
libtdevnc-37f23b2c074e6cde6d5fa0387cdef1517bdedb0c.zip
x11vnc: more gui fixes, gui requests via client_sock, PASSWD_REQUIRED build opt.
Diffstat (limited to 'x11vnc')
-rw-r--r--x11vnc/ChangeLog4
-rw-r--r--x11vnc/README1534
-rwxr-xr-xx11vnc/tkx11vnc454
-rw-r--r--x11vnc/tkx11vnc.h454
-rw-r--r--x11vnc/x11vnc.12
-rw-r--r--x11vnc/x11vnc.c478
6 files changed, 1858 insertions, 1068 deletions
diff --git a/x11vnc/ChangeLog b/x11vnc/ChangeLog
index b19664d..2c4d32c 100644
--- a/x11vnc/ChangeLog
+++ b/x11vnc/ChangeLog
@@ -1,3 +1,7 @@
+2005-07-17 Karl Runge <runge@karlrunge.com>
+ * more improvements to gui UE. gui requests via client_sock
+ PASSWD_REQUIRED and PASSWD_UNLESS_NOPW build options.
+
2005-07-12 Karl Runge <runge@karlrunge.com>
* gui: remove nevershared etc., parse cmd line, bug fixes.
* x11vnc: fix pointer queue buildup under -viewonly.
diff --git a/x11vnc/README b/x11vnc/README
index f379e4d..b557a69 100644
--- a/x11vnc/README
+++ b/x11vnc/README
@@ -1,5 +1,5 @@
-x11vnc README file Date: Wed Jul 13 14:54:06 EDT 2005
+x11vnc README file Date: Sun Jul 17 21:27:25 EDT 2005
The following information is taken from these URLs:
@@ -117,6 +117,7 @@ x11vnc: a VNC server for real X displays
.
13/05/2004 14:59:54 Autoprobing selected port 5900
13/05/2004 14:59:54 screen setup finished.
+ 13/05/2004 14:59:54
13/05/2004 14:59:54 The VNC desktop is far-away:0
PORT=5900
@@ -171,8 +172,8 @@ x11vnc: a VNC server for real X displays
remote machines (certainly when going over the internet) it is best to
use ssh, or use a VPN. For x11vnc one can tunnel the VNC protocol
through the encrypted ssh channel. It would look something like this:
- sitting-here> ssh -L 5900:localhost:5900 far-away.east 'x11vnc -display :0 -l
-ocalhost'
+ sitting-here> ssh -L 5900:localhost:5900 far-away.east 'x11vnc -localhost -di
+splay :0'
(you will likely have to provide passwords/passphrases for the ssh
login) and then in another terminal window on sitting-here run the
@@ -185,11 +186,16 @@ ocalhost'
encoding will be extremely slow over a networked link, so you need to
force the issue with -encodings "copyrect tight ...".
+ 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 [23]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 [23]inetd(1)). See the 3rd
- script example [24]below for more info.
+ far-away.east or having it started by [24]inetd(1)). See the 3rd
+ script example [25]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
@@ -198,7 +204,7 @@ ocalhost'
(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 [25]chaining ssh's below
+ inside the firewall) see [26]chaining ssh's below
_________________________________________________________________
@@ -207,7 +213,7 @@ ocalhost'
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 [26]-bg (forks into background after connection to the
+ x11vnc option [27]-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.
_________________________________________________________________
@@ -238,7 +244,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 [27]-connect option:
+ using the [28]-connect option:
#!/bin/sh
# usage: x11vnc_ssh <host>:<xdisplay>
# e.g.: x11vnc_ssh snoopy.peanuts.com:0
@@ -280,7 +286,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 [28]inetd(1)), you can simply
+ connections (or have it started out of [29]inetd(1)), you can simply
use the TightVNC "vncviewer -via gateway host:port" in its default
mode to provide secure ssh tunnelling.
_________________________________________________________________
@@ -288,11 +294,11 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer.
VNC password file: Also note in the #1. example script that the
- [29]option "-rfbauth .vnc/passwd" provides additional protection by
+ [30]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 [30]-storepasswd
+ vncpasswd or storepasswd programs, or the x11vnc [31]-storepasswd
option can be used to create the password file. x11vnc also has the
- slightly less secure [31]-passwdfile and "-passwd XXXXX" [32]options
+ slightly less secure [32]-passwdfile and "-passwd XXXXX" [33]options
to specify passwords.
Very Important: It is up to YOU to tell x11vnc to use password
@@ -300,7 +306,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 [33]options and building x11vnc with [34]tcp_wrappers
+ and -localhost [34]options and building x11vnc with [35]tcp_wrappers
support to limit host access.
@@ -344,27 +350,27 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \
Downloading x11vnc:
- x11vnc is a contributed program to the [35]LibVNCServer project at
+ x11vnc is a contributed program to the [36]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 Jul 2005, the [36]x11vnc-0.7.2.tar.gz source package is
- released (recommended download) . The [37]x11vnc 0.7.2 release notes.
+ link. As of Jul 2005, the [37]x11vnc-0.7.2.tar.gz source package is
+ released (recommended download) . The [38]x11vnc 0.7.2 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 [38]x11vnc-0.7.3.tar.gz tarball to build the most up to
+ bleeding edge [39]x11vnc-0.7.3.tar.gz tarball to build the most up to
date one.
- Precompiled Binaries/Packages: See the [39]FAQ below for information
+ Precompiled Binaries/Packages: See the [40]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:
- * [40]http://www.tightvnc.com/download.html
- * [41]http://www.realvnc.com/download-free.html
- * [42]http://sourceforge.net/projects/cotvnc/
+ * [41]http://www.tightvnc.com/download.html
+ * [42]http://www.realvnc.com/download-free.html
+ * [43]http://sourceforge.net/projects/cotvnc/
More tools: Here is a rsh/ssh wrapper script rx11vnc that attempts to
@@ -375,8 +381,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:
- * [43]rx11vnc wrapper script
- * [44]rx11vnc.pl wrapper script to tunnel traffic thru ssh
+ * [44]rx11vnc wrapper script
+ * [45]rx11vnc.pl wrapper script to tunnel traffic thru ssh
_________________________________________________________________
@@ -406,14 +412,14 @@ 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 often
fails to run properly. For Solaris pre-built gcc binaries are at
- [45]http://www.sunfreeware.com/ However, one user reports it does
+ [46]http://www.sunfreeware.com/ However, one user reports it does
work fine when built with Sun Studio 10, so YMMV.
_________________________________________________________________
Misc. Build problems: We collect here rare build problems some users
have reported and the corresponding workarounds. See also the
- [46]FAQ's on building.
+ [47]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
@@ -471,9 +477,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
- [47]ftp://ftp.uu.net/graphics/jpeg/ and zlib at
- [48]http://www.gzip.org/zlib/. See also
- [49]http://www.sunfreeware.com/ for Solaris binary packages of these
+ [48]ftp://ftp.uu.net/graphics/jpeg/ and zlib at
+ [49]http://www.gzip.org/zlib/. See also
+ [50]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.
@@ -539,7 +545,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 [50]this workaround FAQ.
+ OS's, see [51]this workaround FAQ.
Building on FreeBSD, OpenBSD, ...: The jpeg libraries seem to be in
@@ -577,11 +583,26 @@ make
Since 0.7.2 is released Jul/2005, there are no plans when 0.7.3 will
be released. In any event I'll keep the current tarball here:
- [51]x11vnc-0.7.3.tar.gz
+ [52]x11vnc-0.7.3.tar.gz
There are also some Linux, Solaris, and other OS test binaries
- [52]here. Please kick the tires and report bugs, performance
- regressions, undesired behavior, etc. to [53]me.
+ [53]here. Please kick the tires and report bugs, performance
+ regressions, undesired behavior, etc. to [54]me.
+
+ Here are some notes about features added in 0.7.2. Checking them is
+ still useful and appreciated:
+
+ Note that the [55]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
+ [56]wireframe move/resize, the [57]wireframe copyrect translation, and
+ the [58]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
+ its screen). The scroll copyrect is currently the least stable, you
+ can toggle it off via "-noscr" or via the gui (all of the other new
+ features can also be toggled by cmdline option or gui, see -help
+ output for more info).
_________________________________________________________________
@@ -610,10 +631,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
- [54]-solid [color] option that works on recent GNOME, KDE, and CDE and
+ [59]-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 [55]TightVNC encoding gives the best response for my
+ I also find the [60]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.
@@ -625,16 +646,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 "[56]-rfbport NNNN"
+ far-away.east:1. You can force the port with the "[61]-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 [57]command line options. Useful options are, e.g., -scale to
+ via its [62]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
- [58]-storepasswd option can be used to create the password file).
+ [63]-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
@@ -661,15 +682,15 @@ 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 [59]even more interesting
+ window manager decorations. There will be an [64]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!
SunRay notes: You can run x11vnc on your (connected or disconnected)
- [60]SunRay session (Please remember to use [61]-nap and maybe
- [62]-wait 200 to avoid being a resource hog! It also helps to have a
+ [65]SunRay session (Please remember to use [66]-nap and maybe
+ [67]-wait 200 to avoid being a resource hog! It also helps to have a
solid background color). You have to know the name of the machine your
SunRay session X server is running on. You also need to know the X11
DISPLAY number for the session: on a SunRay it could be a large
@@ -692,7 +713,7 @@ 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
- [63]-rfbport NNNN option.
+ [68]-rfbport NNNN option.
SunRay Gotcha #2: If you get an error like:
shmget(tile) failed.
@@ -705,7 +726,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 [64]shm_clear that finds the
+ the ipcrm command. I wrote a script [69]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
@@ -719,7 +740,7 @@ make
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
- [65]-scrollcopyrect and [66]-wireframe speedups using the CopyRect
+ [70]-scrollcopyrect and [71]-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
@@ -766,14 +787,14 @@ make
instead of using vncserver/Xvnc, but we mention it because it may
be of use for special purpose applications. Also, a faster and
more accurate way is to use the "dummy" XFree86/Xorg device
- driver. See [67]this FAQ for details.
+ driver. See [72]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" [68]options, however, for a partial hack for
+ X" and "-cursor some" [73]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 [69]-overlay option is also supplied. A similar thing is done
+ the [74]-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
@@ -785,16 +806,16 @@ make
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 [70]-scrollcopyrect option
+ * The scroll detection algorithm for the [75]-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 [71]contact me if you have any questions,
+ Please feel free to [76]contact me if you have any questions,
problems, or comments about x11vnc, etc.
- Also, some people ask if they can make a donation, see [72]this link
+ Also, some people ask if they can make a donation, see [77]this link
for that.
_________________________________________________________________
@@ -803,288 +824,288 @@ make
[Building and Starting]
- [73]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed
+ [78]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?
- [74]Q-2: I can't get x11vnc and/or libvncserver to compile.
+ [79]Q-2: I can't get x11vnc and/or libvncserver to compile.
- [75]Q-3: I just built x11vnc successfully, but when I use it my
+ [80]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).
- [76]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old
+ [81]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old
Unix/Linux) and it doesn't compile!
- [77]Q-5: Where can I get a precompiled x11vnc binary for my Operating
+ [82]Q-5: Where can I get a precompiled x11vnc binary for my Operating
System?
- [78]Q-6: Where can I get a VNC Viewer binary (or source code) for the
+ [83]Q-6: Where can I get a VNC Viewer binary (or source code) for the
Operating System I will be viewing from?
- [79]Q-7: How can I see all of x11vnc's command line options and
+ [84]Q-7: How can I see all of x11vnc's command line options and
documentation on how to use them?
- [80]Q-8: I don't like typing arcane command line options every time I
+ [85]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?
- [81]Q-9: How can I get the GUI to run in the System Tray, or at least
+ [86]Q-9: How can I get the GUI to run in the System Tray, or at least
be a smaller, simpler icon?
- [82]Q-10: Can I make x11vnc more quiet and also go into the background
+ [87]Q-10: Can I make x11vnc more quiet and also go into the background
after starting up?
- [83]Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies
+ [88]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.
- [84]Q-12: Are there any build-time customizations possible, e.g.
+ [89]Q-12: Are there any build-time customizations possible, e.g.
change defaults, create a smaller binary, etc?
[Win2VNC Related]
- [85]Q-13: I have two separate machine displays in front of me, one
+ [90]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?
- [86]Q-14: I am running Win2VNC on my Windows machine and "x11vnc
+ [91]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]
- [87]Q-15: The X display I run x11vnc on is only 8 bits per pixel (bpp)
+ [92]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.
- [88]Q-16: Color problems: Why are the colors for some windows
+ [93]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.
- [89]Q-17: How do I figure out the window id to supply to the -id
+ [94]Q-17: How do I figure out the window id to supply to the -id
windowid option?
- [90]Q-18: Why don't menus or other transient windows come up when I am
+ [95]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?
- [91]Q-19: My X display is depth 24 at 24bpp (instead of the normal
+ [96]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]
- [92]Q-20: Can I use x11vnc to view and interact with an Xterminal
+ [97]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?
- [93]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file)
+ [98]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file)
correct for a Unix/Linux machine acting as an Xterminal?
[Remote Control]
- [94]Q-22: How do I stop x11vnc once it is running in the background?
+ [99]Q-22: How do I stop x11vnc once it is running in the background?
- [95]Q-23: Can I change settings in x11vnc without having to restart
+ [100]Q-23: Can I change settings in x11vnc without having to restart
it? Can I remote control it?
[Security and Permissions]
- [96]Q-24: How do I create a VNC password for use with x11vnc?
+ [101]Q-24: How do I create a VNC password for use with x11vnc?
- [97]Q-25: Can I have two passwords for VNC viewers, one for full
+ [102]Q-25: Can I have two passwords for VNC viewers, one for full
access and the other for view-only access to the display?
- [98]Q-26: Can I fine tune what types of user input are allowed? E.g.
+ [103]Q-26: 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?
- [99]Q-27: Why does x11vnc exit as soon as the VNC viewer disconnects?
+ [104]Q-27: 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?
- [100]Q-28: Can I limit which machines incoming VNC clients can connect
+ [105]Q-28: Can I limit which machines incoming VNC clients can connect
from?
- [101]Q-29: How do I build x11vnc/libvncserver with libwrap
+ [106]Q-29: How do I build x11vnc/libvncserver with libwrap
(tcp_wrappers) support?
- [102]Q-30: Can I have x11vnc only listen on one network interface
+ [107]Q-30: 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?
- [103]Q-31: Now that -localhost implies listening only on the loopback
+ [108]Q-31: 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?
- [104]Q-32: How can I tunnel my connection to x11vnc via an encrypted
+ [109]Q-32: How can I tunnel my connection to x11vnc via an encrypted
SSH channel between two Unix machines?
- [105]Q-33: How can I tunnel my connection to x11vnc via an encrypted
+ [110]Q-33: How can I tunnel my connection to x11vnc via an encrypted
SSH channel from Windows using an SSH client like Putty?
- [106]Q-34: Can I prompt the user at the local X display whether the
+ [111]Q-34: 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?
- [107]Q-35: Does x11vnc support Unix usernames and passwords? Can I
+ [112]Q-35: Does x11vnc support Unix usernames and passwords? Can I
further limit the set of Unix usernames who can connect to the VNC
desktop?
- [108]Q-36: I start x11vnc as root because it is launched via inetd(1)
+ [113]Q-36: 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?
- [109]Q-37: I use a screen-lock when I leave my workstation (e.g.
+ [114]Q-37: 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?
- [110]Q-38: Can I have x11vnc automatically lock the screen when I
+ [115]Q-38: Can I have x11vnc automatically lock the screen when I
disconnect the VNC viewer?
[Display Managers and Services]
- [111]Q-39: How can I run x11vnc as a "service" that is always
+ [116]Q-39: How can I run x11vnc as a "service" that is always
available?
- [112]Q-40: How can I use x11vnc to connect to an X login screen like
+ [117]Q-40: 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).
- [113]Q-41: Can I run x11vnc out of inetd(1)? How about xinetd(1)?
+ [118]Q-41: Can I run x11vnc out of inetd(1)? How about xinetd(1)?
- [114]Q-42: How do I make x11vnc work with the Java VNC viewer applet
+ [119]Q-42: How do I make x11vnc work with the Java VNC viewer applet
in a web browser?
- [115]Q-43: Are reverse connections (i.e. the VNC server connecting to
+ [120]Q-43: Are reverse connections (i.e. the VNC server connecting to
the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported?
- [116]Q-44: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a
+ [121]Q-44: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a
real display, but for a virtual one I keep around).
- [117]Q-45: How can I use x11vnc on "headless" machines? Why might I
+ [122]Q-45: How can I use x11vnc on "headless" machines? Why might I
want to?
[Resource Usage and Performance]
- [118]Q-46: I have lots of memory, but why does x11vnc fail with
+ [123]Q-46: 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)?
- [119]Q-47: How can I make x11vnc use less system resources?
+ [124]Q-47: How can I make x11vnc use less system resources?
- [120]Q-48: How can I make x11vnc use MORE system resources?
+ [125]Q-48: How can I make x11vnc use MORE system resources?
- [121]Q-49: I use x11vnc over a slow link with high latency (e.g.
+ [126]Q-49: I use x11vnc over a slow link with high latency (e.g.
dialup modem), is there anything I can do to speed things up?
- [122]Q-50: Does x11vnc support the X DAMAGE Xserver extension to find
+ [127]Q-50: Does x11vnc support the X DAMAGE Xserver extension to find
modified regions of the screen quickly and efficiently?
- [123]Q-51: When I drag windows around with the mouse or scroll up and
+ [128]Q-51: 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?
- [124]Q-52: Why not do something like wireframe animations to avoid the
+ [129]Q-52: Why not do something like wireframe animations to avoid the
windows "lurching" when being moved or resized?
- [125]Q-53: Can x11vnc try to apply heuristics to detect when an window
+ [130]Q-53: 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]
- [126]Q-54: Why isn't the mouse cursor shape (the little icon shape
+ [131]Q-54: Why isn't the mouse cursor shape (the little icon shape
where the mouse pointer is) correct as I move from window to window?
- [127]Q-55: When using XFIXES cursorshape mode, some of the cursors
+ [132]Q-55: 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?
- [128]Q-56: In XFIXES mode, are there any hacks to handle cursor
+ [133]Q-56: In XFIXES mode, are there any hacks to handle cursor
transparency ("alpha channel") exactly?
[Mouse Pointer]
- [129]Q-57: Why does the mouse arrow just stay in one corner in my
+ [134]Q-57: Why does the mouse arrow just stay in one corner in my
vncviewer, whereas my cursor (that does move) is just a dot?
- [130]Q-58: Can I take advantage of the TightVNC extension to the VNC
+ [135]Q-58: 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)?
- [131]Q-59: Is it possible to swap the mouse buttons (e.g. left-handed
+ [136]Q-59: 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]
- [132]Q-60: How can I get my AltGr and Shift modifiers to work between
+ [137]Q-60: How can I get my AltGr and Shift modifiers to work between
keyboards for different languages?
- [133]Q-61: When I try to type a "<" (i.e. less than) instead I get ">"
+ [138]Q-61: When I try to type a "<" (i.e. less than) instead I get ">"
(i.e. greater than)! Strangely, typing ">" works OK!!
- [134]Q-62: When I try to type a "<" (i.e. less than) instead I get
+ [139]Q-62: When I try to type a "<" (i.e. less than) instead I get
"<," (i.e. an extra comma).
- [135]Q-63: I'm using an "international" keyboard (e.g. German "de", or
+ [140]Q-63: 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?
- [136]Q-64: When typing I sometimes get double, triple, or more of my
+ [141]Q-64: 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?
- [137]Q-65: The x11vnc -norepeat mode is in effect, but I still get
+ [142]Q-65: The x11vnc -norepeat mode is in effect, but I still get
repeated keystrokes!!
- [138]Q-66: The machine where I run x11vnc has an AltGr key, but the
+ [143]Q-66: 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?
- [139]Q-67: I have a Sun machine I run x11vnc on. Its Sun keyboard has
+ [144]Q-67: 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)
- [140]Q-68: Can I map a keystroke to a mouse button click on the remote
+ [145]Q-68: Can I map a keystroke to a mouse button click on the remote
machine?
[Screen Related Issues and Features]
- [141]Q-69: The remote display is larger (in number of pixels) than the
+ [146]Q-69: 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?
- [142]Q-70: Does x11vnc support server-side framebuffer scaling? (E.g.
+ [147]Q-70: Does x11vnc support server-side framebuffer scaling? (E.g.
to make the desktop smaller).
- [143]Q-71: Does x11vnc work with Xinerama? (i.e. multiple monitors
+ [148]Q-71: Does x11vnc work with Xinerama? (i.e. multiple monitors
joined together to form one big, single screen).
- [144]Q-72: Can I use x11vnc on a multi-headed display that is not
+ [149]Q-72: Can I use x11vnc on a multi-headed display that is not
Xinerama (i.e. separate screens :0.0, :0.1, ... for each monitor)?
- [145]Q-73: Can x11vnc show only a portion of the display? (E.g. for a
+ [150]Q-73: Can x11vnc show only a portion of the display? (E.g. for a
special purpose rfb application).
- [146]Q-74: Does x11vnc support the XRANDR (X Resize, Rotate and
+ [151]Q-74: Does x11vnc support the XRANDR (X Resize, Rotate and
Reflection) extension? Whenever I rotate or resize the screen x11vnc
just seems to crash.
- [147]Q-75: Why is the view in my VNC viewer completely black? Or why
+ [152]Q-75: Why is the view in my VNC viewer completely black? Or why
is everything flashing around randomly?
- [148]Q-76: I use Linux Virtual Consoles (VC's) to implement 'Fast User
+ [153]Q-76: 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
@@ -1092,12 +1113,12 @@ make
otherwise all messed up unless the X session x11vnc is attached to is
in the active VC?
- [149]Q-77: Can I use x11vnc to view my VMWare session remotely?
+ [154]Q-77: Can I use x11vnc to view my VMWare session remotely?
- [150]Q-78: Can non-X devices (e.g. a raw framebuffer) be viewed and/or
+ [155]Q-78: Can non-X devices (e.g. a raw framebuffer) be viewed and/or
controlled by x11vnc?
- [151]Q-79: I am using x11vnc where my local machine has "popup/hidden
+ [156]Q-79: 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
@@ -1105,13 +1126,13 @@ make
[Misc: Clipboard, Beeps, Thanks, etc.]
- [152]Q-80: Does the Clipboard/Selection get transferred between the
+ [157]Q-80: Does the Clipboard/Selection get transferred between the
vncviewer and the X display?
- [153]Q-81: Why don't I hear the "Beeps" in my X session (e.g. when
+ [158]Q-81: Why don't I hear the "Beeps" in my X session (e.g. when
typing tput bel in an xterm)?
- [154]Q-82: Thanks for your program and for your help! Can I make a
+ [159]Q-82: Thanks for your program and for your help! Can I make a
donation?
_________________________________________________________________
@@ -1124,7 +1145,7 @@ make
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 [155]-display
+ on). Set your DISPLAY environment variable or use the [160]-display
option to specify it. Nearly always the correct value will be ":0"
@@ -1141,7 +1162,7 @@ make
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 [156]-auth option to
+ your XAUTHORITY environment variable or use the [161]-auth option to
point to the correct MIT-MAGIC-COOKIE file (e.g. /home/joe/.Xauthority
or /var/gdm/:0.Xauth), or simply be sure you run x11vnc as the correct
user (i.e. the user who owns the X session you wish to view).
@@ -1157,7 +1178,7 @@ make
solution:
x11vnc -display :0 -auth /var/gdm/:0.Xauth
- (this is for the display manager gdm, see [157]this faq for other
+ (this is for the display manager gdm, see [162]this faq for other
display manager cookie file names).
Less safe, but to avoid figuring out where the XAUTHORITY file is, if
@@ -1166,7 +1187,7 @@ make
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 [158]-users option).
+ documentation on the [163]-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
@@ -1278,7 +1299,7 @@ h
earlier and perhaps non-Solaris):
First use the environment settings (CPPFLAGS, LDFLAGS, etc.) in the
- above [159]Solaris build script to run the configure command. That
+ above [164]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
@@ -1304,7 +1325,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
- [160]SunOS 4.x
+ [165]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
@@ -1314,23 +1335,23 @@ typedef unsigned int in_addr_t;
Q-5: Where can I get a precompiled x11vnc binary for my Operating
System?
- Hopefully the [161]build steps above and [162]FAQ provide enough info
+ Hopefully the [166]build steps above and [167]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) [163]http://packages.debian.org/x11vnc
+ Debian: (.deb) [168]http://packages.debian.org/x11vnc
- Slackware: (.tgz) [164]http://www.linuxpackages.net/ Redhat/Fedora:
- (.rpm) [165]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm)
- [166]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg)
- [167]http://www.sunfreeware.com/ wwexptools: (.tgz)
- [168]http://www.bell-labs.com/project/wwexptools/packages.html
+ Slackware: (.tgz) [169]http://www.linuxpackages.net/ Redhat/Fedora:
+ (.rpm) [170]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm)
+ [171]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg)
+ [172]http://www.sunfreeware.com/ wwexptools: (.tgz)
+ [173]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 [169]my collection of
+ (and all else fails!) you can try one of [174]my collection of
binaries for various OS's and x11vnc releases.
As a general note, the x11vnc program is simple enough you don't
@@ -1351,9 +1372,9 @@ typedef unsigned int in_addr_t;
To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix)
try here:
- * [170]http://www.tightvnc.com/download.html
- * [171]http://www.realvnc.com/download-free.html
- * [172]http://sourceforge.net/projects/cotvnc/
+ * [175]http://www.tightvnc.com/download.html
+ * [176]http://www.realvnc.com/download-free.html
+ * [177]http://sourceforge.net/projects/cotvnc/
Q-7: How can I see all of x11vnc's command line options and
@@ -1361,7 +1382,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
- [173]here as well.
+ [178]here as well.
Q-8: I don't like typing arcane command line options every time I
@@ -1392,10 +1413,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
- [174]-gui option for more info. Examples: "x11vnc ... -gui" and
+ [179]-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
- "[175]-gui tray" system tray mode.
+ "[180]-gui tray" system tray mode.
Q-9: How can I get the GUI to run in the System Tray, or at least be a
@@ -1422,11 +1443,11 @@ display :0
Q-10: Can I make x11vnc more quiet and also go into the background
after starting up?
- Use the [176]-q and [177]-bg options, respectively. (also: -quiet is
+ Use the [181]-q and [182]-bg options, respectively. (also: -quiet is
an alias for -q)
Note that under -bg the stderr messages will be lost unless you use
- the "[178]-o logfile" option.
+ the "[183]-o logfile" option.
Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with
@@ -1447,11 +1468,15 @@ 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 [179]build
+ environment variable before running configure (see the [184]build
notes for general background).
* -DVNCSHARED=1 make -shared the default.
* -DFOREVER=1 make -forever the default.
* -DREMOTE_CONTROL=0 disable the remote control mechanism.
+ * -DPASSWD_REQUIRED=1 require a password be supplied (-rfbauth,
+ -passwdfile, ...)
+ * -DPASSWD_UNLESS_NOPW=1 require a password unless -nopw is
+ explicitly supplied.
* -DSMALL_FOOTPRINT=1 strip out help text, gui, etc to make a
smaller binary (e.g. for PDA or embedded system with low disk
space). Also be sure to strip(1) the binary. Set to 2 or 3 to cut
@@ -1463,6 +1488,9 @@ display :0
If other things (e.g. "-I ...") are needed in CPPFLAGS add them as
well.
+ On some systems is seems you need to set LC_ALL=C for configure to
+ work properly...
+
Be careful the the following two variables: HARDWIRE_PASSWD and
HARDWIRE_VIEWPASSWD. If set (remember to include the double quotes
around the string), they will be used as default values for the
@@ -1478,7 +1506,8 @@ display :0
EXTERNAL_COMMANDS, VIEWONLY, WIREFRAME, WIREFRAME_PARMS,
WIREFRAME_COPYRECT, SCROLL_COPYRECT_PARMS, SCROLL_COPYRECT,
SCALING_COPYRECT, NOREPEAT, SKIPDUPS, ADDKEYSYMS,
- POINTER_MODE_DEFAULT, DEBUG_XEVENTS, BOLDLY_CLOSE_DISPLAY
+ POINTER_MODE_DEFAULT, DEBUG_XEVENTS, BOLDLY_CLOSE_DISPLAY, NOPW,
+ PASSWD_REQUIRED, PASSWD_UNLESS_NOPW
[Win2VNC Related]
@@ -1488,21 +1517,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 "[180]-nofb" option
+ Yes, for best response start up x11vnc with the "[185]-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 [181]x2vnc, however you would
+ This will also work X11 to X11 using [186]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:
- * [182]Original Win2VNC
- * [183]Enhanced Win2VNC and [184]sourceforge link
- * [185]x2vnc
- * [186]x2x also [187]here
- * [188]zvnc (MorphOS)
+ * [187]Original Win2VNC
+ * [188]Enhanced Win2VNC and [189]sourceforge link
+ * [190]x2vnc
+ * [191]x2x also [192]here
+ * [193]zvnc (MorphOS)
All of them will work with x11vnc (except x2x where it is not needed).
@@ -1522,7 +1551,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 [189]-visual option to allow you to
+ libvncserver CVS, x11vnc has the [194]-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:
@@ -1537,7 +1566,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 [190]-flashcmap option to have x11vnc watch for changes in the
+ Use the [195]-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
@@ -1546,7 +1575,7 @@ display :0
example of this. Consider reconfiguring the system to 16 bpp or depth
24 TrueColor if at all possible.
- Also note that in some rare cases the [191]-notruecolor option has
+ Also note that in some rare cases the [196]-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.
@@ -1557,10 +1586,10 @@ 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 [192]previous question regarding 8 bpp
+ You may want to review the [197]previous question regarding 8 bpp
PseudoColor.
- On some hardware (Sun/SPARC, Sgi), the [193]-overlay option discussed
+ On some hardware (Sun/SPARC, Sgi), the [198]-overlay option discussed
a couple paragraphs down may solve this for you (you may want to skip
to it directly).
@@ -1598,7 +1627,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 [194]-overlay x11vnc option (Aug/2004) to have x11vnc use the
+ use the [199]-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
@@ -1620,7 +1649,7 @@ TrueColor defdepth 24
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 [195]-id option to
+ possible workaround in this case is to use the [200]-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).
@@ -1628,7 +1657,7 @@ TrueColor defdepth 24
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. Fortunately the
- [196]-overlay option works for Solaris machines with overlay visuals
+ [201]-overlay option works for Solaris machines with overlay visuals
where most of this problem occurs.
@@ -1639,9 +1668,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 [197]color problems.
+ debugging x11vnc [202]color problems.
- Also, as of Dec/2004 libvncserver CVS you can use "[198]-id pick" to
+ Also, as of Dec/2004 libvncserver CVS you can use "[203]-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.
@@ -1659,7 +1688,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 [199]-sid windowid option ("shifted" windowid).
+ polling, try the [204]-sid windowid option ("shifted" windowid).
Q-19: My X display is depth 24 at 24bpp (instead of the normal depth
@@ -1709,15 +1738,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 [200]-display option to point the display to that of
+ machine. Use the [205]-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 [201]-noshm option (this enables the polling over
+ and also supply the [206]-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 [202]-flipbyteorder if the
+ on the polling rate. You may also need [207]-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
@@ -1741,7 +1770,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
- [203]-auth option to point to the correct file). Other options include
+ [208]-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 -
@@ -1753,7 +1782,7 @@ TrueColor defdepth 24
details.
If the display name in the cookie file needs to be changed between the
- two hosts, see [204]this note on the "xauth add ..." command.
+ two hosts, see [209]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
@@ -1767,7 +1796,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 [205]poll
+ Not recommended, but as a last resort, you could have x11vnc [210]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...)
@@ -1798,17 +1827,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
- [206]-remote and [207]-query options. To shut down the running x11vnc
+ [211]-remote and [212]-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 [208]-forever option has not been supplied, x11vnc will
+ If the [213]-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 [209]-bg option
+ If you have not put x11vnc in the background via the [214]-bg option
or shell & operator, then simply press Ctrl-C in the shell where
x11vnc is running to stop it.
@@ -1818,15 +1847,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 [210]-clear_mods
- option and [211]-clear_keys option can be used to release pressed keys
+ by tapping Ctrl, Shift, and Alt. Alternatively, the [215]-clear_mods
+ option and [216]-clear_keys option can be used to release pressed keys
at startup and exit.
Q-23: Can I change settings in x11vnc without having to restart it?
Can I remote control it?
- Look at the [212]-remote (same as -R) and [213]-query (same as -Q)
+ Look at the [217]-remote (same as -R) and [218]-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
@@ -1838,7 +1867,7 @@ TrueColor defdepth 24
be possible.
There is also a simple Tcl/Tk gui based on this remote control
- mechanism. See the [214]-gui option for more info. You will need to
+ mechanism. See the [219]-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".
@@ -1853,12 +1882,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" [215]option, which is the the same
+ the -storepasswd "pass" "file" [220]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: [216]-rfbauth
+ You then use the password via the x11vnc option: [221]-rfbauth
$HOME/myvncpasswd
Compared to vncpasswd(1) the latter two methods are a somewhat unsafe
@@ -1867,7 +1896,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 [217]-passwdfile and -passwd/-viewpasswd plain
+ x11vnc also has the [222]-passwdfile and -passwd/-viewpasswd plain
text (i.e. not obscured like the -rfbauth VNC passwords) password
options.
@@ -1876,13 +1905,13 @@ TrueColor defdepth 24
and the other for view-only access to the display?
Yes, as of May/2004 in the libvncserver CVS there is the
- [218]-viewpasswd option to supply the view-only password. Note the
- full-access password option [219]-passwd must be supplied at the same
+ [223]-viewpasswd option to supply the view-only password. Note the
+ full-access password option [224]-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
- [220]-passwdfile option to specify a file containing plain text
+ [225]-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
@@ -1890,7 +1919,7 @@ TrueColor defdepth 24
it is taken as the view-only password. (use "__EMPTY__" to supply an
empty one).
- View-only passwords currently do not work for the [221]-rfbauth
+ View-only passwords currently do not work for the [226]-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
@@ -1904,7 +1933,7 @@ TrueColor defdepth 24
some users just be able to move the mouse, but not click or type
anything?
- As of Feb/2005, the [222]-input option allows you to do this. "K",
+ As of Feb/2005, the [227]-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
@@ -1920,15 +1949,15 @@ TrueColor defdepth 24
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 [223]-forever option (aka -many) to have
+ periods of time. Use the [228]-forever option (aka -many) to have
x11vnc wait for more connections after the first client disconnects.
- Use the [224]-shared option to have x11vnc allow multiple clients to
+ Use the [229]-shared option to have x11vnc allow multiple clients to
connect simultaneously.
- Recommended additional safety measures include using ssh ([225]see
+ Recommended additional safety measures include using ssh ([230]see
above), stunnel, or a VPN to authenticate and encrypt the viewer
- connections or to at least use the -rfbauth passwd-file [226]option to
- use VNC password protection (or [227]-passwdfile) It is up to YOU to
+ connections or to at least use the -rfbauth passwd-file [231]option to
+ use VNC password protection (or [232]-passwdfile) It is up to YOU to
apply these security measures, they will not be done for you
automatically.
@@ -1936,7 +1965,7 @@ TrueColor defdepth 24
Q-28: Can I limit which machines incoming VNC clients can connect
from?
- Yes, look at the [228]-allow and [229]-localhost options to limit
+ Yes, look at the [233]-allow and [234]-localhost options to limit
connections by hostname or IP address. E.g.
x11vnc -allow 192.168.0.1,192.168.0.2
@@ -1948,7 +1977,7 @@ TrueColor defdepth 24
Note that -localhost is the same as "-allow 127.0.0.1"
For more control, build libvncserver with libwrap support
- [230](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5)
+ [235](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5)
for complete details.
@@ -1968,7 +1997,7 @@ TrueColor defdepth 24
is "vnc", e.g.:
vnc: 192.168.100.3 .example.com
- Note that if you run x11vnc out of [231]inetd you do not need to build
+ Note that if you run x11vnc out of [236]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.
@@ -1977,16 +2006,16 @@ TrueColor defdepth 24
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 "[232]-listen
+ As of Mar/2005 in the libvncserver CVS, there is the "[237]-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 "[233]-allow host1,..." option to allow only specific hosts
+ use the "[238]-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 [234]-localhost now implies "-listen localhost" since that
+ The option [239]-localhost now implies "-listen localhost" since that
is what most people expect it to do.
@@ -1994,24 +2023,24 @@ TrueColor defdepth 24
interface, how I can occasionally allow in a non-localhost via the -R
allowonce remote control command?
- To do this specify "[235]-allow localhost". Unlike [236]-localhost
+ To do this specify "[240]-allow localhost". Unlike [241]-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
- ([237]-listen option) via remote control or gui, you may need to also
- manually adjust the [238]-allow list if you unexpectedly get into a
+ ([242]-listen option) via remote control or gui, you may need to also
+ manually adjust the [243]-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 [239]-localhost on
+ in on the listening interface. If you just toggle [244]-localhost on
and off x11vnc should see to it that you never get into such a state.
Q-32: 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 [240]how to tunnel VNC via
+ See the description earlier on this page on [245]how to tunnel VNC via
SSH from Unix to Unix. A number of ways are described along with some
issues you may encounter.
@@ -2022,7 +2051,7 @@ TrueColor defdepth 24
Q-33: How can I tunnel my connection to x11vnc via an encrypted SSH
channel from Windows using an SSH client like Putty?
- [241]Above we described how to tunnel VNC via SSH from Unix to Unix,
+ [246]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
@@ -2045,8 +2074,8 @@ TrueColor defdepth 24
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 [242]-localhost
- and [243]-rfbauth/[244]-passwdfile options.
+ For extra protection feel free to run x11vnc with the [247]-localhost
+ and [248]-rfbauth/[249]-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
@@ -2054,11 +2083,11 @@ TrueColor defdepth 24
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 [245]chaining ssh's.
+ automated by [250]chaining ssh's.
- As discussed [246]above another option is to first start the VNC
+ As discussed [251]above another option is to first start the VNC
viewer in "listen" mode, and then launch x11vnc with the
- "[247]-connect localhost" option to establish the reverse connection.
+ "[252]-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).
@@ -2069,7 +2098,7 @@ TrueColor defdepth 24
some clients view-only? How about running an arbitrary program to make
the decisions?
- Yes, look at the "[248]-accept command" option, it allows you to
+ Yes, look at the "[253]-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
@@ -2088,7 +2117,7 @@ TrueColor defdepth 24
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 [249]-viewonly option has been
+ mouse on the "View" button. If the [254]-viewonly option has been
supplied, the "View" action will not be present: the whole display is
view only in that case.
@@ -2104,7 +2133,7 @@ TrueColor defdepth 24
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 [250]ftp://ftp.x.org/
+ is available at [255]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
@@ -2143,7 +2172,7 @@ elif [ $rc = 4 ]; then
fi
exit 1
- Stefan Radman has written a nice dtksh script [251]dtVncPopup for use
+ Stefan Radman has written a nice dtksh script [256]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.
@@ -2152,7 +2181,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 "[252]-gone
+ To run a command when a client disconnects, use the "[257]-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
@@ -2167,13 +2196,13 @@ exit 1
such support.
One approximate method involves starting x11vnc with the
- [253]-localhost option. This basically requires the viewer user to log
+ [258]-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 [254]elsewhere on this page. Of course a malicious user
+ mentioned [259]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
@@ -2182,7 +2211,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 [255]-accept option that runs a program to examine
+ involves using the [260]-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
@@ -2215,7 +2244,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 [256]-users option that allows things
+ As of Feb/2005 x11vnc has the [261]-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.
@@ -2237,7 +2266,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 [257]blockdpy.c The idea behind it is simple (but
+ source for it is [262]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
@@ -2253,8 +2282,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 [258]-accept option and told
- to exit via the [259]-gone option (the vnc client user should
+ The blockdpy utility is launched by the [263]-accept option and told
+ to exit via the [264]-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.
@@ -2262,7 +2291,7 @@ exit 1 # reject it
Q-38: Can I have x11vnc automatically lock the screen when I
disconnect the VNC viewer?
- Yes, a user mentions he uses the [260]-gone option under CDE to run a
+ Yes, a user mentions he uses the [265]-gone option under CDE to run a
screen lock program:
x11vnc -display :0 -forever -gone 'dtaction LockDisplay'
@@ -2285,11 +2314,11 @@ exit 1 # reject it
need to have sufficient permissions to connect to the X display.
Here are some ideas:
- * Use the description under "Continuously" in the [261]FAQ on x11vnc
+ * Use the description under "Continuously" in the [266]FAQ on x11vnc
and Display Managers
- * Use the description in the [262]FAQ on x11vnc and inetd(1)
+ * Use the description in the [267]FAQ on x11vnc and inetd(1)
* Start x11vnc from your $HOME/.xsession (or $HOME/.xinitrc)
- * Although less reliable, see the [263]x11vnc_loop rc.local hack
+ * Although less reliable, see the [268]x11vnc_loop rc.local hack
below.
The display manager scheme will not be specific to which user has the
@@ -2320,7 +2349,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 [264]-auth option sets the XAUTHORITY variable for you).
+ (the [269]-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
@@ -2345,7 +2374,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
- [265]the example at the end of this FAQ). Then restart dtlogin, e.g.:
+ [270]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
@@ -2408,7 +2437,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 [266]full details
+ killed immediately after the user logs in. Here are [271]full details
on how to configure gdm
_________________________________________________________________
@@ -2450,13 +2479,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: [267]x11vnc_loop It will need some local
+ file like rc.local: [272]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
- [268]this FAQ.
+ [273]this FAQ.
Q-41: Can I run x11vnc out of inetd(1)? How about xinetd(1)?
@@ -2466,7 +2495,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 [269]-inetd
+ where the shell script /usr/local/bin/x11vnc_sh uses the [274]-inetd
option and looks something like (you'll need to customize to your
settings).
#!/bin/sh
@@ -2479,7 +2508,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 [270]-quiet) option: "/usr/local/bin/x11vnc -q
+ specify the -q (aka [275]-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
@@ -2487,7 +2516,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 [271]-auth to point to the
+ Note also the need to set XAUTHORITY via [276]-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
@@ -2555,7 +2584,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 [272]option:
+ that connect to it, run x11vnc with this [277]option:
-httpdir /path/to/the/java/classes/dir
(this directory will contain the files index.vnc and, for example,
@@ -2574,7 +2603,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 [273]-http option will try to guess where the Java
+ As of May/2005 the [278]-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
@@ -2588,7 +2617,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 [274]-connect option. To connect immediately
+ starts up x11vnc with the [279]-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
@@ -2596,7 +2625,7 @@ service x11vncservice
hosts to connect to.
To use the vncconnect(1) program (from the core VNC package at
- www.realvnc.com) specify the [275]-vncconnect option to x11vnc (Note:
+ www.realvnc.com) specify the [280]-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
@@ -2640,7 +2669,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
- [276]-add_keysyms option to have keysyms added automatically. Also, to
+ [281]-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"
@@ -2660,7 +2689,7 @@ xmodmap -e "add Control = Control_L Control_R"
server code is closely correlated with the real XFree86/Xorg Xserver
unlike Xvfb. 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) [277]switching even though it
+ Linux Virtual Console/Terminal (VC/VT) [282]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.
@@ -2687,7 +2716,7 @@ startx -- :1 -config /etc/X11/xorg.conf.dummy
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 [278]this FAQ) and access it from
+ display via x11vnc (e.g. see [283]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
@@ -2730,7 +2759,7 @@ startx -- :1 -config /etc/X11/xorg.conf.dummy
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 [279]shm_clear to list and prompt for removal
+ Here is a shell script [284]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,
@@ -2764,36 +2793,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
- [280]-onetile option (corresponds to only 3 shm segments used, and
+ [285]-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
- [281]-noshm option. Performance will be somewhat degraded but when
+ [286]-noshm option. Performance will be somewhat degraded but when
done over local machine sockets it should be acceptable (see an
- [282]earlier question discussing -noshm).
+ [287]earlier question discussing -noshm).
Q-47: How can I make x11vnc use less system resources?
- The [283]-nap and "[284]-wait n" (where n is the sleep between polls
+ The [288]-nap and "[289]-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
- [285]-onetile option will use less memory and use fewer shared memory
- slots (add [286]-fs 1.0 for one less slot).
+ [290]-onetile option will use less memory and use fewer shared memory
+ slots (add [291]-fs 1.0 for one less slot).
Q-48: How can I make x11vnc use MORE system resources?
- You can try [287]-threads and dial down the wait time (e.g. -wait 1)
- and possibly dial down [288]-defer as well. Note that if you try to
+ You can try [292]-threads and dial down the wait time (e.g. -wait 1)
+ and possibly dial down [293]-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 [289]-id option) can be streamed over a LAN or wireless at
+ the x11vnc [294]-id option) can be streamed over a LAN or wireless at
a reasonable frame rate.
@@ -2809,16 +2838,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
- [290]-solid [color] option to try to do this automatically.
+ [295]-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 [291]-scrollcopyrect is active and
+ problem in x11vnc 0.7.2 if [296]-scrollcopyrect is active and
detecting scrolls for the application).
- * If the [292]-wireframe option is not available (earlier than
+ * If the [297]-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)
@@ -2838,7 +2867,7 @@ ied)
noticed.
VNC viewer parameters:
- * Use a [293]TightVNC enabled viewer! (Actually, RealVNC 4.x viewer
+ * Use a [298]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
@@ -2861,28 +2890,28 @@ ied)
file.
x11vnc parameters:
- * Try using [294]-nodragging (no screen updates when dragging mouse,
+ * Try using [299]-nodragging (no screen updates when dragging mouse,
but sometimes you miss visual feedback)
- * Make sure the [295]-wireframe option is active (it should be on by
+ * Make sure the [300]-wireframe option is active (it should be on by
default) and you have Opaque Moves/Resizes Enabled in the window
manager.
- * Make sure the [296]-scrollcopyrect option is active (it should be
+ * Make sure the [301]-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 [297]-fs 1.0 (disables fullscreen updates)
- * Try increasing [298]-wait or [299]-defer (reduces the maximum
+ * Set [302]-fs 1.0 (disables fullscreen updates)
+ * Try increasing [303]-wait or [304]-defer (reduces the maximum
"frame rate", but won't help much for large screen changes)
- * Try the [300]-progressive pixelheight mode with the block
+ * Try the [305]-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 [301]-id (cuts
+ * If you just want to watch one (simple) window use [306]-id (cuts
down extraneous polling and updates, but can be buggy or
insufficient)
- * Set [302]-nosel (disables all clipboard selection exchange)
- * Use [303]-nocursor and [304]-nocursorpos (repainting the remote
+ * Set [307]-nosel (disables all clipboard selection exchange)
+ * Use [308]-nocursor and [309]-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
- [305]-readtimeout n setting if it sometimes takes more than 20sec
+ [310]-readtimeout n setting if it sometimes takes more than 20sec
to paint the full screen, etc.
@@ -2904,7 +2933,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 [306]slow (e.g.
+ in main memory. So reading the fb is still painfully [311]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
@@ -2922,27 +2951,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 "[307]-xd_area A" option to adjust the size
+ skipped). You can use the "[312]-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 "[308]-xd_mem f" may also be of use in tuning the
- algorithm. To disable using DAMAGE entirely use "[309]-noxdamage".
+ The option "[313]-xd_mem f" may also be of use in tuning the
+ algorithm. To disable using DAMAGE entirely use "[314]-noxdamage".
Q-51: 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 [310]slow hardware read rates from
+ This problem is primarily due to [315]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
- [311]-pointer_mode option for more info. The next bottleneck is
+ [316]-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
@@ -2952,26 +2981,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 "[312]-pointer_mode 1" option.
+ way via the "[317]-pointer_mode 1" option.
- Also added was the [313]-nodragging option that disables all screen
+ Also added was the [318]-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 [314]-pointer_mode n option
+ As of Dec/2004 in the libvncserver CVS the [319]-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 [315]-threads option can improve
+ Also, in some circumstances the [320]-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
- [316]wireframe FAQ and [317]scrollcopyrect FAQ below) provide schemes
+ [321]wireframe FAQ and [322]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.
@@ -2987,8 +3016,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 [318]slow video
- card read rates (see [319]here too). A displacement, even a small one,
+ of the intermediate steps. BTW the lurching is due to [323]slow video
+ card read rates (see [324]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.
@@ -2996,7 +3025,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 [320]-nowireframe option
+ with the problem. It can be disabled with the [325]-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
@@ -3041,13 +3070,13 @@ ied)
* Maximum time to show a wireframe animation.
* Minimum time between sending wireframe outlines.
- See the [321]"-wireframe tweaks" option for more details. On a slow
+ See the [326]"-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
- [322]"-wirecopyrect mode" option. It is also on by default. This
+ [327]"-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
@@ -3095,7 +3124,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 [323]slow).
+ the hardware framebuffer is [328]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.
@@ -3117,10 +3146,10 @@ ied)
the X server display: if one falls too far behind it could become a
mess...
- The initial implementation of [324]-scrollcopyrect option is useful in
+ The initial implementation of [329]-scrollcopyrect option is useful in
that it detects many scrolls and thus gives a much nicer working
- environment (especially when combined with the [325]-wireframe
- [326]-wirecopyrect [327]options, which are also on by default; and if
+ environment (especially when combined with the [330]-wireframe
+ [331]-wirecopyrect [332]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.
@@ -3153,10 +3182,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: [328]-fixscreen
+ also: [333]-fixscreen
* Some applications, notably OpenOffice, do XCopyArea scrolls in
weird ways that assume ancestor window clipping is taking place.
- See the [329]-scr_skip option for ways to tweak this on a
+ See the [334]-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
@@ -3173,7 +3202,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 [330]-scale option there will be a quick CopyRect
+ * When using the [335]-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
@@ -3186,7 +3215,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 [331]-noscrollcopyrect (or -noscr for short). If you find
+ with the [336]-noscrollcopyrect (or -noscr for short). If you find
some extremely bad and repeatable behavior for -scrollcopyrect please
report a bug.
@@ -3225,16 +3254,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 "[332]-cursor X" option that
+ A simple kludge is provided by the "[337]-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 "[333]-cursor some" option for
+ work for those cases. Also see the "[338]-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 [334]-overlay option is supplied. See [335]this FAQ
+ cursor when the [339]-overlay option is supplied. See [340]this FAQ
for more info.
Also as of Dec/2004 in the libvncserver CVS XFIXES X extension support
@@ -3242,7 +3271,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 [336]Solaris 10.
+ distros and [341]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
@@ -3250,7 +3279,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. [337]Details can be found here.
+ hidden alpha channel data under 32bpp. [342]Details can be found here.
Q-55: When using XFIXES cursorshape mode, some of the cursors look
@@ -3283,17 +3312,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 "[338]-alphacut n" option lets
+ course!) some tunable parameters. The "[343]-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 "[339]-alphafrac f" option tries to correct individual
+ 240. The "[344]-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 [340]-alpharemove that is useful for
+ Finally, there is an option [345]-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
@@ -3319,11 +3348,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 [341]-nocursorshape x11vnc option.
+ disabled for all clients with the [346]-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
- [342]-noalphablend option to disable this behavior (always approximate
+ [347]-noalphablend option to disable this behavior (always approximate
transparent cursors with opaque RGB values).
The CursorShapeUpdates VNC extension complicates matters because the
@@ -3351,9 +3380,9 @@ ied)
Q-57: 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 [343]tightvnc extension
+ This default takes advantage of a [348]tightvnc extension
(CursorShapeUpdates) that allows specifying a cursor image shape for
- the local VNC viewer. You may disable it with the [344]-nocursor
+ the local VNC viewer. You may disable it with the [349]-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
@@ -3367,18 +3396,18 @@ ied)
clients (i.e. passive viewers can see the mouse cursor being moved
around by another viewer)?
- Use the [345]-cursorpos option when starting x11vnc. A VNC viewer must
+ Use the [350]-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 [346]-nocursorpos
- and [347]-nocursorshape.
+ libvncserver CVS -cursorpos is the default. See also [351]-nocursorpos
+ and [352]-nocursorshape.
Q-59: 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: [348]-buttonmap
+ You can remap the mouse buttons via something like: [353]-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.
@@ -3386,7 +3415,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 [349]-debug_pointer option prints out much info for
+ Note that the [354]-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
@@ -3408,7 +3437,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 [350]-buttonmap but rather configuring the X server
+ consider not using [355]-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"').
@@ -3438,7 +3467,7 @@ ied)
Q-60: How can I get my AltGr and Shift modifiers to work between
keyboards for different languages?
- The option [351]-modtweak should help here. It is a mode that monitors
+ The option [356]-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.
@@ -3447,17 +3476,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 [352]this FAQ
+ and ">" it. This key does not exist on the keyboard (see [357]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 [353]FAQ about the -xkb option for a more powerful method
+ Also see the [358]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
- [354]-debug_keyboard option prints out much info for every keystroke
+ [359]-debug_keyboard option prints out much info for every keystroke
and so can be useful debugging things.
@@ -3469,9 +3498,9 @@ ied)
(e.g. pc105 in the XF86Config file when it should be something else,
say pc104).
- Short Cut: Try the [355]-xkb or [356]-sloppy_keys options and see if
+ Short Cut: Try the [360]-xkb or [361]-sloppy_keys options and see if
that helps the situation. The discussion below is a bit outdated (e.g.
- [357]-modtweak is now the default) but is useful reference for various
+ [362]-modtweak is now the default) but is useful reference for various
tricks and so is kept.
@@ -3514,17 +3543,17 @@ ied)
-remap less-comma
These are convenient in that they do not modify the actual X server
- settings. The former ([358]-modtweak) is a mode that monitors the
+ settings. The former ([363]-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 ([359]-remap less-comma) is an immediate remapping of the
+ The latter ([364]-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 [360]FAQ about the -xkb option as a possible workaround
+ See also the [365]FAQ about the -xkb option as a possible workaround
using the XKEYBOARD extension.
- Note that the [361]-debug_keyboard option prints out much info for
+ Note that the [366]-debug_keyboard option prints out much info for
every keystroke to aid debugging keyboard problems.
@@ -3532,13 +3561,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 [362]keymapping
+ the Shift key before releasing the "<". Because of a [367]keymapping
ambiguity the last event "< up" is interpreted as "," because that key
unshifted is the comma.
- This should not happen in [363]-xkb mode, because it works hard to
+ This should not happen in [368]-xkb mode, because it works hard to
resolve the ambiguities. If you do not want to use -xkb, try the
- option [364]-sloppy_keys to attempt a similar type of algorithm.
+ option [369]-sloppy_keys to attempt a similar type of algorithm.
Q-63: I'm using an "international" keyboard (e.g. German "de", or
@@ -3562,7 +3591,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 [365]-modtweak
+ This all worked fine with x11vnc running with the [370]-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
@@ -3580,7 +3609,7 @@ ied)
* there is a new option -xkb to use the XKEYBOARD extension API to
do the Modifier key tweaking.
- The [366]-xkb option seems to fix all of the missing keys: "@", "<",
+ The [371]-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
@@ -3588,7 +3617,7 @@ ied)
debugging output (send it along with any problems you report).
Update: as of Jun/2005 x11vnc will try to automatically enable
- [367]-xkb if it appears that would be beneficial (e.g. if it sees any
+ [372]-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.
@@ -3603,7 +3632,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:
- [368]-skip_keycodes 93
+ [373]-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
@@ -3620,16 +3649,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 [369]-remap x11vnc option:
+ created using the [374]-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
- [370]-add_keysyms option in the next paragraph.
- Update: for convenience "[371]-remap DEAD" does many of these
+ [375]-add_keysyms option in the next paragraph.
+ Update: for convenience "[376]-remap DEAD" does many of these
mappings at once.
- * To complement the above workaround using the [372]-remap, an
- option [373]-add_keysyms was added. This option instructs x11vnc
+ * To complement the above workaround using the [377]-remap, an
+ option [378]-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
@@ -3648,7 +3677,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) [374]-norepeat x11vnc option. You will still
+ use the new (Jul/2004) [379]-norepeat x11vnc option. You will still
have autorepeating because that is taken care of on your VNC viewer
side.
@@ -3672,7 +3701,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 [375]-norepeat (which has since Dec/2004 been
+ needed, or to use the [380]-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
@@ -3683,7 +3712,7 @@ ied)
keystrokes!!
Are you using x11vnc to log in to an X session? (as described in
- [376]this FAQ) If so, x11vnc is starting before your session and it
+ [381]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
@@ -3707,7 +3736,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 "[377]-remap Super_R-Mode_switch" x11vnc option may
+ Something like "[382]-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)).
@@ -3730,7 +3759,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 [378]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones
+ the [383]-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.
@@ -3741,7 +3770,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 [379]-remap
+ have x11vnc do the remapping. This can be done via the [384]-remap
option using the fake "keysyms" Button1, Button2, etc. as the "to"
keys (i.e. the ones after the "-")
@@ -3750,7 +3779,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:
- [380]-remap Super_R-Button2
+ [385]-remap Super_R-Button2
maps the Super_R "flag" key press to the Button2 click, thereby making
X pasting a bit easier.
@@ -3780,7 +3809,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
- [381]this FAQ on x11vnc scaling.
+ [386]this FAQ on x11vnc scaling.
Q-70: Does x11vnc support server-side framebuffer scaling? (E.g. to
@@ -3788,7 +3817,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 "[382]-scale fraction"
+ per-client setting. To enable it use the "[387]-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.
@@ -3809,7 +3838,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
- [383]applications. Since with integer scale factors the framebuffers
+ [388]applications. Since with integer scale factors the framebuffers
become huge and scaling operations time consuming, be sure to use
":nb" for the fastest response.
@@ -3835,12 +3864,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 ([384]-rfbport option,
+ different scalings listening on separate ports ([389]-rfbport option,
etc.).
BTW, whenever you run two or more x11vnc's on the same X display and
- use the [385]GUI, then to avoid all of the x11vnc's simultaneously
- answering the gui you will need to use something like [386]"-connect
+ use the [390]GUI, then to avoid all of the x11vnc's simultaneously
+ answering the gui you will need to use something like [391]"-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
@@ -3849,7 +3878,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 [387]"-scale_cursor frac" option to set the cursor
+ want that, use the [392]"-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).
@@ -3871,16 +3900,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 [388]-blackout x11vnc option
+ may be distracting to the viewer. The [393]-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
- [389]-xinerama x11vnc option can be used to have it automatically
+ [394]-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 [390]-xwarppointer
+ of the large display. If this happens try using the [395]-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
@@ -3905,23 +3934,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 [391]FAQ to increase the limit. It
- is probably also a good idea to run with the [392]-onetile option in
+ /etc/system as mentioned in another [396]FAQ to increase the limit. It
+ is probably also a good idea to run with the [397]-onetile option in
this case (to limit each x11vnc to 3 shm segments), or even
- [393]-noshm to use no shm segments.
+ [398]-noshm to use no shm segments.
Q-73: 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 "[394]-clip
+ As of Mar/2005 in the libvncserver CVS x11vnc has the "[399]-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 [395]Xinerama screen into two more managable smaller screens.
+ large [400]Xinerama screen into two more managable smaller screens.
This also works to view a sub-region of a single application window if
- the [396]-id or [397]-sid options are used. The offset is measured
+ the [401]-id or [402]-sid options are used. The offset is measured
from the upper left corner of the selected window.
@@ -3930,7 +3959,7 @@ ied)
crash.
As of Dec/2004 in the libvncserver CVS x11vnc supports XRANDR. You
- enable it with the [398]-xrandr option to make x11vnc monitor XRANDR
+ enable it with the [403]-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.
@@ -3940,7 +3969,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 [399]-padgeom option to make the region big
+ viewers you can try the [404]-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
@@ -3994,9 +4023,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 [400]this FAQ
+ desktop in a separate Virtual Console (e.g. VC 8) (see [405]this FAQ
on VC's for background). Unfortunately, this Fullscreen VC is not an X
- server. So x11vnc cannot access it (however, [401]see this for a
+ server. So x11vnc cannot access it (however, [406]see this for a
possible partial workaround). x11vnc works fine with "Normal X
application window" and "Quick-Switch mode" because these use X.
@@ -4013,13 +4042,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 [402]is in the active VC.
+ as long as the VMWare X session [407]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 [403]-id windowid option. The
+ the VMWare menu buttons) by use of the [408]-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
@@ -4100,7 +4129,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 [404]X API, but you get
+ of Xvfb x11vnc can poll it much better via the [409]X API, but you get
the idea.
By default in -rawfb mode x11vnc will actually close any X display it
@@ -4153,7 +4182,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 [405]active VC) one
+ view and interact with VC #2 (assuming it is the [410]active VC) one
can run something like:
x11vnc -rawfb map:/dev/fb0@1024x768x16 -pipeinput './vcinject.pl 2'
@@ -4166,7 +4195,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
- [406]VMWare Fullscreen mode is actually viewable under -rawfb. But
+ [411]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...
@@ -4198,10 +4227,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 [407]-nosel option. If you
+ the Clipboard/Selection exchanged use the [412]-nosel option. If you
don't want the PRIMARY selection to be polled for changes use the
- [408]-noprimary option. You can also fine-tune it a bit with the
- [409]-seldir dir option.
+ [413]-noprimary option. You can also fine-tune it a bit with the
+ [414]-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
@@ -4216,7 +4245,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 [410]-nobell option. If
+ If you don't want to hear the beeps use the [415]-nobell option. If
you want to hear the audio from the remote applications, consider
trying a redirector such as esd.
@@ -4232,7 +4261,7 @@ ied)
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
- [411]email!
+ [416]email!
[PayPal]
@@ -4260,395 +4289,400 @@ References
20. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
21. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file
22. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 23. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 24. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via
- 25. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
- 26. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
- 27. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 28. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 29. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 30. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 31. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 32. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 33. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
- 34. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
- 35. http://sourceforge.net/projects/libvncserver/
- 36. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=341817
- 37. http://sourceforge.net/project/shownotes.php?group_id=32584&release_id=341817
- 38. http://www.karlrunge.com/x11vnc/x11vnc-0.7.3.tar.gz
- 39. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
- 40. http://www.tightvnc.com/download.html
- 41. http://www.realvnc.com/download-free.html
- 42. http://sourceforge.net/projects/cotvnc/
- 43. http://www.karlrunge.com/x11vnc/rx11vnc
- 44. http://www.karlrunge.com/x11vnc/rx11vnc.pl
- 45. http://www.sunfreeware.com/
- 46. http://www.karlrunge.com/x11vnc/index.html#faq-build
- 47. ftp://ftp.uu.net/graphics/jpeg/
- 48. http://www.gzip.org/zlib/
- 49. http://www.sunfreeware.com/
- 50. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
- 51. http://www.karlrunge.com/x11vnc/x11vnc-0.7.3.tar.gz
- 52. http://www.karlrunge.com/x11vnc/bins
- 53. mailto:x11vnc-beta@karlrunge.com
- 54. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
- 55. http://www.tightvnc.com/
- 56. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
- 57. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
- 58. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 59. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg
- 60. http://wwws.sun.com/sunray/index.html
- 61. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap
- 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
- 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
- 64. http://www.karlrunge.com/x11vnc/shm_clear
- 65. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 66. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 67. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
- 68. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
- 69. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 23. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file
+ 24. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 25. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via
+ 26. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
+ 27. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
+ 28. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 29. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 30. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 31. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 32. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 33. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 34. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
+ 35. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
+ 36. http://sourceforge.net/projects/libvncserver/
+ 37. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=341817
+ 38. http://sourceforge.net/project/shownotes.php?group_id=32584&release_id=341817
+ 39. http://www.karlrunge.com/x11vnc/x11vnc-0.7.3.tar.gz
+ 40. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
+ 41. http://www.tightvnc.com/download.html
+ 42. http://www.realvnc.com/download-free.html
+ 43. http://sourceforge.net/projects/cotvnc/
+ 44. http://www.karlrunge.com/x11vnc/rx11vnc
+ 45. http://www.karlrunge.com/x11vnc/rx11vnc.pl
+ 46. http://www.sunfreeware.com/
+ 47. http://www.karlrunge.com/x11vnc/index.html#faq-build
+ 48. ftp://ftp.uu.net/graphics/jpeg/
+ 49. http://www.gzip.org/zlib/
+ 50. http://www.sunfreeware.com/
+ 51. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
+ 52. http://www.karlrunge.com/x11vnc/x11vnc-0.7.3.tar.gz
+ 53. http://www.karlrunge.com/x11vnc/bins
+ 54. mailto:x11vnc-beta@karlrunge.com
+ 55. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
+ 56. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 57. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect
+ 58. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
+ 59. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
+ 60. http://www.tightvnc.com/
+ 61. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
+ 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
+ 63. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 64. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg
+ 65. http://wwws.sun.com/sunray/index.html
+ 66. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap
+ 67. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 68. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
+ 69. http://www.karlrunge.com/x11vnc/shm_clear
70. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 71. mailto:xvml@karlrunge.com
- 72. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
- 73. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
- 74. http://www.karlrunge.com/x11vnc/index.html#faq-build
- 75. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest
- 76. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
- 77. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
- 78. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download
- 79. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts
- 80. http://www.karlrunge.com/x11vnc/index.html#faq-config-file
- 81. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
- 82. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg
- 83. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe
- 84. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations
- 85. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc
- 86. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp
- 87. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
- 88. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
- 89. http://www.karlrunge.com/x11vnc/index.html#faq-windowid
- 90. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id
- 91. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp
- 92. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
- 93. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
- 94. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg
- 95. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control
- 96. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 97. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 98. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt
- 99. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared
- 100. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
- 101. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
- 102. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface
- 103. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost
- 104. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix
- 105. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty
- 106. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt
- 107. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords
- 108. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt
- 109. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy
- 110. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock
- 111. http://www.karlrunge.com/x11vnc/index.html#faq-service
- 112. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
- 113. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 114. http://www.karlrunge.com/x11vnc/index.html#faq-java-http
- 115. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect
- 116. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
- 117. http://www.karlrunge.com/x11vnc/index.html#faq-headless
- 118. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
- 119. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource
- 120. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource
- 121. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link
- 122. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
- 123. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
- 124. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 125. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
- 126. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape
- 127. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha
- 128. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
- 129. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow
- 130. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions
- 131. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt
- 132. http://www.karlrunge.com/x11vnc/index.html#faq-altgr
- 133. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
- 134. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy
- 135. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
- 136. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys
- 137. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still
- 138. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt
- 139. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta
- 140. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click
- 141. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars
- 142. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
- 143. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
- 144. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen
- 145. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen
- 146. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr
- 147. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen
- 148. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 149. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
- 150. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
- 151. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars
- 152. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard
- 153. http://www.karlrunge.com/x11vnc/index.html#faq-beeps
- 154. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
- 155. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
- 156. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 157. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
- 158. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
- 159. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
- 160. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html
- 161. http://www.karlrunge.com/x11vnc/index.html#building
- 162. http://www.karlrunge.com/x11vnc/index.html#faq-build
- 163. http://packages.debian.org/x11vnc
- 164. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc
- 165. http://dag.wieers.com/packages/x11vnc/
- 166. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/
- 167. http://www.sunfreeware.com/
- 168. http://www.bell-labs.com/project/wwexptools/packages.html
- 169. http://www.karlrunge.com/x11vnc/bins
- 170. http://www.tightvnc.com/download.html
- 171. http://www.realvnc.com/download-free.html
- 172. http://sourceforge.net/projects/cotvnc/
- 173. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
- 174. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
- 175. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
- 176. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
- 177. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
- 178. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o
- 179. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
- 180. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb
- 181. http://fredrik.hubbe.net/x2vnc.html
- 182. http://www.hubbe.net/~hubbe/win2vnc.html
- 183. http://www.deboer.gmxhome.de/
- 184. http://sourceforge.net/projects/win2vnc/
- 185. http://fredrik.hubbe.net/x2vnc.html
- 186. http://freshmeat.net/projects/x2x/
- 187. http://ftp.digital.com/pub/Digital/SRC/x2x/
- 188. http://zapek.com/software/zvnc/
- 189. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual
- 190. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap
- 191. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor
- 192. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
- 193. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 194. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 195. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 196. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 197. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
- 198. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 199. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid
- 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
- 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
- 202. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder
- 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 204. http://www.karlrunge.com/x11vnc/index.html#xauth_pain
- 205. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
- 206. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
- 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
- 208. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
- 209. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
- 210. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods
- 211. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys
- 212. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
- 213. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
- 214. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
- 215. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd
- 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 217. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd
- 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd
- 220. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 71. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 72. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 73. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
+ 74. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 75. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 76. mailto:xvml@karlrunge.com
+ 77. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
+ 78. http://www.karlrunge.com/x11vnc/index.html#faq-xperms
+ 79. http://www.karlrunge.com/x11vnc/index.html#faq-build
+ 80. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest
+ 81. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build
+ 82. http://www.karlrunge.com/x11vnc/index.html#faq-binaries
+ 83. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download
+ 84. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts
+ 85. http://www.karlrunge.com/x11vnc/index.html#faq-config-file
+ 86. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
+ 87. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg
+ 88. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe
+ 89. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations
+ 90. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc
+ 91. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp
+ 92. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
+ 93. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
+ 94. http://www.karlrunge.com/x11vnc/index.html#faq-windowid
+ 95. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id
+ 96. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp
+ 97. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
+ 98. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
+ 99. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg
+ 100. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control
+ 101. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 102. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 103. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt
+ 104. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared
+ 105. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt
+ 106. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
+ 107. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface
+ 108. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost
+ 109. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix
+ 110. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty
+ 111. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt
+ 112. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords
+ 113. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt
+ 114. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy
+ 115. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock
+ 116. http://www.karlrunge.com/x11vnc/index.html#faq-service
+ 117. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
+ 118. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 119. http://www.karlrunge.com/x11vnc/index.html#faq-java-http
+ 120. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect
+ 121. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 122. http://www.karlrunge.com/x11vnc/index.html#faq-headless
+ 123. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
+ 124. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource
+ 125. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource
+ 126. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link
+ 127. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage
+ 128. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
+ 129. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 130. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
+ 131. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape
+ 132. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha
+ 133. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
+ 134. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow
+ 135. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions
+ 136. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt
+ 137. http://www.karlrunge.com/x11vnc/index.html#faq-altgr
+ 138. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
+ 139. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy
+ 140. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
+ 141. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys
+ 142. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still
+ 143. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt
+ 144. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta
+ 145. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click
+ 146. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars
+ 147. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
+ 148. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
+ 149. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen
+ 150. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen
+ 151. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr
+ 152. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen
+ 153. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 154. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
+ 155. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
+ 156. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars
+ 157. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard
+ 158. http://www.karlrunge.com/x11vnc/index.html#faq-beeps
+ 159. http://www.karlrunge.com/x11vnc/index.html#faq-thanks
+ 160. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
+ 161. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 162. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
+ 163. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
+ 164. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
+ 165. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html
+ 166. http://www.karlrunge.com/x11vnc/index.html#building
+ 167. http://www.karlrunge.com/x11vnc/index.html#faq-build
+ 168. http://packages.debian.org/x11vnc
+ 169. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc
+ 170. http://dag.wieers.com/packages/x11vnc/
+ 171. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/
+ 172. http://www.sunfreeware.com/
+ 173. http://www.bell-labs.com/project/wwexptools/packages.html
+ 174. http://www.karlrunge.com/x11vnc/bins
+ 175. http://www.tightvnc.com/download.html
+ 176. http://www.realvnc.com/download-free.html
+ 177. http://sourceforge.net/projects/cotvnc/
+ 178. http://www.karlrunge.com/x11vnc/x11vnc_opts.html
+ 179. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
+ 180. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray
+ 181. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
+ 182. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
+ 183. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o
+ 184. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding
+ 185. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb
+ 186. http://fredrik.hubbe.net/x2vnc.html
+ 187. http://www.hubbe.net/~hubbe/win2vnc.html
+ 188. http://www.deboer.gmxhome.de/
+ 189. http://sourceforge.net/projects/win2vnc/
+ 190. http://fredrik.hubbe.net/x2vnc.html
+ 191. http://freshmeat.net/projects/x2x/
+ 192. http://ftp.digital.com/pub/Digital/SRC/x2x/
+ 193. http://zapek.com/software/zvnc/
+ 194. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual
+ 195. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap
+ 196. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor
+ 197. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp
+ 198. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 199. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 202. http://www.karlrunge.com/x11vnc/index.html#faq-overlays
+ 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 204. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid
+ 205. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display
+ 206. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
+ 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder
+ 208. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 209. http://www.karlrunge.com/x11vnc/index.html#xauth_pain
+ 210. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
+ 211. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
+ 212. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
+ 213. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
+ 214. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg
+ 215. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods
+ 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys
+ 217. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote
+ 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query
+ 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
+ 220. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd
221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input
- 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
- 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared
- 225. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 226. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
- 227. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
- 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
- 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 230. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
- 231. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 232. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
+ 222. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
+ 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd
+ 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd
+ 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 226. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 227. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input
+ 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever
+ 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared
+ 230. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 231. http://www.karlrunge.com/x11vnc/index.html#faq-passwd
+ 232. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile
233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
- 236. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 235. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers
+ 236. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
237. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
238. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
239. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 240. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 241. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
- 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
- 245. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
+ 240. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
+ 241. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen
+ 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow
+ 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 245. http://www.karlrunge.com/x11vnc/index.html#tunnelling
246. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 247. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly
- 250. ftp://ftp.x.org/
- 251. http://www.karlrunge.com/x11vnc/dtVncPopup
- 252. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
- 253. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
- 254. http://www.karlrunge.com/x11vnc/index.html#tunnelling
- 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 256. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
- 257. http://www.karlrunge.com/x11vnc/blockdpy.c
- 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
- 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
- 260. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
- 261. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
- 262. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
- 263. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop
- 264. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 265. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris
- 266. http://www.jirka.org/gdm-documentation/x241.html
- 267. http://www.karlrunge.com/x11vnc/x11vnc_loop
- 268. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
- 269. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd
- 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
- 271. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
- 272. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir
- 273. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http
- 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect
- 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
- 277. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 278. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
- 279. http://www.karlrunge.com/x11vnc/shm_clear
- 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
- 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
- 282. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
- 283. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap
- 284. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 247. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth
+ 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile
+ 250. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh
+ 251. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 252. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 253. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
+ 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly
+ 255. ftp://ftp.x.org/
+ 256. http://www.karlrunge.com/x11vnc/dtVncPopup
+ 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
+ 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost
+ 259. http://www.karlrunge.com/x11vnc/index.html#tunnelling
+ 260. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
+ 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users
+ 262. http://www.karlrunge.com/x11vnc/blockdpy.c
+ 263. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept
+ 264. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
+ 265. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone
+ 266. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
+ 267. http://www.karlrunge.com/x11vnc/index.html#faq-inetd
+ 268. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop
+ 269. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 270. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris
+ 271. http://www.jirka.org/gdm-documentation/x241.html
+ 272. http://www.karlrunge.com/x11vnc/x11vnc_loop
+ 273. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth
+ 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd
+ 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q
+ 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth
+ 277. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir
+ 278. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http
+ 279. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect
+ 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
+ 282. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 283. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously
+ 284. http://www.karlrunge.com/x11vnc/shm_clear
285. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
- 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
- 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
- 288. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
- 289. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
- 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 293. http://www.tightvnc.com/
- 294. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
- 295. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
+ 287. http://www.karlrunge.com/x11vnc/index.html#faq-noshm
+ 288. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap
+ 289. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
+ 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
+ 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
+ 293. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
+ 294. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 295. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid
296. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 297. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
- 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
- 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
- 300. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive
- 301. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 302. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
- 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
- 304. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
- 305. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout
- 306. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area
- 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem
- 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage
- 310. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 311. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
- 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
- 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
- 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
- 315. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
- 316. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 317. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
- 318. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
- 319. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 320. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 321. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 322. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 323. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
- 324. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 297. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 298. http://www.tightvnc.com/
+ 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
+ 300. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 301. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 302. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs
+ 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait
+ 304. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer
+ 305. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive
+ 306. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
+ 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
+ 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
+ 310. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout
+ 311. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
+ 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area
+ 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem
+ 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage
+ 315. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
+ 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
+ 317. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
+ 318. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging
+ 319. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode
+ 320. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads
+ 321. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 322. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect
+ 323. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode
+ 324. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
325. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
- 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect
- 327. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
- 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen
- 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip
- 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
- 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
- 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
- 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
- 334. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
- 335. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode
- 336. http://www.karlrunge.com/x11vnc/index.html#solaris10-build
- 337. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
- 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut
- 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac
- 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove
- 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
- 342. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend
- 343. http://www.tightvnc.com/
- 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
- 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos
- 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
- 347. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
- 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
- 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer
- 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
- 351. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 352. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
- 353. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
- 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
- 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
- 357. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 358. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 359. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 360. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
- 361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
- 362. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
- 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 364. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
- 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
- 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 367. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
- 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes
- 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
- 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
- 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
- 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
- 376. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
+ 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 327. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 328. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow
+ 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe
+ 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect
+ 332. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe
+ 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen
+ 334. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip
+ 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
+ 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect
+ 337. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
+ 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor
+ 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay
+ 340. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode
+ 341. http://www.karlrunge.com/x11vnc/index.html#solaris10-build
+ 342. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks
+ 343. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut
+ 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac
+ 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove
+ 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
+ 347. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend
+ 348. http://www.tightvnc.com/
+ 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor
+ 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos
+ 351. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos
+ 352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape
+ 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
+ 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer
+ 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap
+ 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 357. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
+ 358. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
+ 359. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
+ 360. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
+ 362. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 364. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 365. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak
+ 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard
+ 367. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless
+ 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys
+ 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak
+ 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb
+ 373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes
+ 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
+ 376. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
377. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 378. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
- 381. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
- 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
- 383. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html
- 384. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
- 385. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
- 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
- 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor
- 388. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout
- 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama
- 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer
- 391. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
- 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
- 393. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
- 394. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip
- 395. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
- 396. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 397. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 398. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr
- 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom
- 400. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 401. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
- 402. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 403. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
- 404. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 378. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms
+ 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
+ 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat
+ 381. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager
+ 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 383. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 384. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 385. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap
+ 386. http://www.karlrunge.com/x11vnc/index.html#faq-scaling
+ 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale
+ 388. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html
+ 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport
+ 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui
+ 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect
+ 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor
+ 393. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout
+ 394. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama
+ 395. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer
+ 396. http://www.karlrunge.com/x11vnc/index.html#faq-solshm
+ 397. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile
+ 398. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm
+ 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip
+ 400. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama
+ 401. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 402. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 403. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr
+ 404. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom
405. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
- 406. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
- 407. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
- 408. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary
- 409. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir
- 410. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell
- 411. mailto:xvml@karlrunge.com
+ 406. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb
+ 407. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 408. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id
+ 409. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb
+ 410. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc
+ 411. http://www.karlrunge.com/x11vnc/index.html#faq-vmware
+ 412. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel
+ 413. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary
+ 414. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir
+ 415. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell
+ 416. mailto:xvml@karlrunge.com
=======================================================================
@@ -4661,7 +4695,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.7.3 lastmod: 2005-07-13
+x11vnc: allow VNC connections to real X11 displays. 0.7.3 lastmod: 2005-07-17
x11vnc options:
-display disp -auth file
@@ -4763,7 +4797,7 @@ libvncserver options:
% x11vnc -help
-x11vnc: allow VNC connections to real X11 displays. 0.7.3 lastmod: 2005-07-13
+x11vnc: allow VNC connections to real X11 displays. 0.7.3 lastmod: 2005-07-17
Typical usage is:
diff --git a/x11vnc/tkx11vnc b/x11vnc/tkx11vnc
index 4549c11..b642909 100755
--- a/x11vnc/tkx11vnc
+++ b/x11vnc/tkx11vnc
@@ -22,7 +22,7 @@ catch {rename send {}}
# USA.
#
-# tkx11vnc v0.1
+# tkx11vnc v0.2
# This is a simple frontend to x11vnc. It uses the remote control
# and query features (-remote/-query aka -R/-Q) to interact with it.
# It is just a quick-n-dirty hack (it parses -help output, etc), but
@@ -559,7 +559,9 @@ of actions:
Pressing \"OK\" will initiate the reverse
connection. Use a blank hostname to skip it.
- Disconnect All - Disconnects all current VNC viewers.
+ Disconnect - Shows a popup menu of connected clients. Click on
+ one to disconnect it, or click on \"All Clients\"
+ disconnect all clients.
Window View - Switch between the \"full\" gui (also known as
\"Advanced\"), \"icon\" mode (small icon window with
@@ -571,11 +573,29 @@ of actions:
and then exit. The tray/icon GUI then exits as well.
+Termination:
+
If the x11vnc server stops for any reason, the tray/icon gui will exit.
If you delete the tray/icon (e.g. X out button), that is the same
as the \"Stop x11vnc\" action in the menu. (This will disconnect any
-VNC viewer you are currently using to access the display).
+VNC viewer you are currently using to access the display since the
+x11vnc server is terminated).
+
+To terminate the tray/icon gui window but not the x11vnc server press
+Control-C on the tray/icon window. You can also do this (and much
+more) via Properties -> Advanced -> Actions -> Quit
+"
+
+ set helptext(NewClient) "
+ New Client - Presents an entry box where you type in the name
+ of a computer that is running a VNC viewer in
+ \"listen\" mode (e.g. vncviewer -listen). For a
+ non-standard listening port use \"host:port\".
+
+ Pressing \"OK\" will initiate the reverse
+ connection. Use a blank hostname to skip it.
+
"
set helptext(Properties) "
@@ -622,7 +642,39 @@ the ViewOnly log in aspect: \"Password\" is still required to log in.
- The \"Advanced ...\" button replaces the Properties dialog with the full
tkx11vnc GUI. All dynamic settings can be modified in the full GUI.
-"
+
+
+--------------------------------------------------------------------
+Don't Lock Yourself Out:
+
+ If you are sitting at the physical X display you cannot get into too
+ much trouble setting the Properties dialog values.
+
+ However IF you are using a VNC Viewer to REMOTELY access the X display
+ some items in the Properties dialog can lock you out of further access:
+
+ \"Accept Connections\" if you disable this remotely, and
+ accidentally disconnect your VNC viewer then you will not be
+ able to reconnect.
+
+ \"Ask for Confirmation\" if you enable this only someone
+ sitting at the X display can confirm any new VNC connections.
+ Furthermore, any current VNC viewers will be blocked while
+ waiting for the confirmation (times out in 120 sec by default).
+
+ \"All Clients ViewOnly\" if you enable this remotely, well
+ you can no longer provide input to disable it.
+
+ If you do lock yourself out you could log in remotely and start up
+ a second x11vnc and connect to that one to try to fix things in the
+ first one.
+
+ Note that if there are two or more x11vnc's on the same display the
+ use of the GUI may be ill-behaved. Terminate the second x11vnc as
+ soon as you have fixed the setting in the first one. Use of a remote
+ control command, e.g. \"x11vnc -R noviewonly\" or \"x11vnc -R unlock\"
+ is a good way to avoid this problem.
+"
set helptext(all) $helpall
@@ -1099,10 +1151,11 @@ proc set_name {name} {
if {![info exists full_win]} {
return
}
+ set w "."
if {$icon_mode} {
+ wm title $w "$name"
+ wm iconname $w "$name"
set w $full_win
- } else {
- set w "."
}
wm title $w "$name"
wm iconname $w "$name"
@@ -2635,14 +2688,32 @@ proc append_text {str} {
proc show_all_settings {} {
global all_settings
- set txt "\nRead-Write setting:\n\n"
+ global client_sock client_tail
+ global x11vnc_client_file
+
+ set txt "\nRead-Write settings:\n\n"
foreach item [split_query $all_settings] {
regsub {:} $item {: } item
append txt " $item\n"
if {[regexp {noremote} $item]} {
- append txt "\nRead-Only setting:\n\n"
+ append txt "\nRead-Only settings:\n\n"
}
}
+ append txt "\nInternal settings:\n\n"
+ append txt "x11vnc_client_file: $x11vnc_client_file\n"
+ if {[info exists client_tail]} {
+ append txt "client_tail: $client_tail\n"
+ } else {
+ append txt "client_tail: unset\n"
+ }
+ if {[info exists client_sock]} {
+ append txt "client_sock: $client_sock\n"
+ } else {
+ append txt "client_sock: unset\n"
+ }
+ set estr ""
+ catch {set estr [exec env | grep -i X11VNC]}
+ append txt "$estr\n"
textwin "Settings" "All Current Settings" $txt
}
@@ -3573,16 +3644,15 @@ proc make_menu_items {} {
}
}
-proc menu_posted {} {
+proc check_update_vars {} {
global last_query_all_time query_all_freq icon_mode
- global connected_to_x11vnc client_tail
+ global connected_to_x11vnc client_tail client_sock
set now [clock seconds]
- if {$icon_mode && $client_tail != ""} {
+ set delay $query_all_freq
+ if {$client_tail != "" && $client_sock == ""} {
set delay [expr 2 * $query_all_freq]
- } else {
- set delay $query_all_freq
}
if {$connected_to_x11vnc} {
@@ -3602,6 +3672,10 @@ proc menu_posted {} {
}
}
+proc menu_posted {} {
+ check_update_vars
+}
+
proc props_widgets {state} {
global props_buttons
foreach w $props_buttons {
@@ -3616,20 +3690,30 @@ proc props_apply {} {
global prop0_accept prop0_confirm prop0_viewonly prop0_shared
global prop0_passwd prop0_viewpasswd
global menu_var
+ global client_sock
props_widgets disabled
+ set aft 500
+ if {[info exists client_sock]} {
+ if {$client_sock != ""} {
+ set aft 150
+ }
+ }
+ set did 0
+
if {$props_accept != $prop0_accept} {
+ if {$did > 0} {after $aft}; incr did
if {$props_accept} {
push_new_value "unlock" "unlock" 1 0
} else {
push_new_value "lock" "lock" 1 0
}
set prop0_accept $props_accept
- after 500
}
if {$props_confirm != $prop0_confirm} {
+ if {$did > 0} {after $aft}; incr did
if {$props_confirm} {
push_new_value "accept" "accept" "popup" 1
} else {
@@ -3641,10 +3725,10 @@ proc props_apply {} {
set props_confirm 0
}
set prop0_confirm $props_confirm
- after 500
}
if {$props_viewonly != $prop0_viewonly} {
+ if {$did > 0} {after $aft}; incr did
if {$props_viewonly} {
push_new_value "viewonly" "viewonly" 1 1
} else {
@@ -3656,10 +3740,10 @@ proc props_apply {} {
set props_viewonly 0
}
set prop0_viewonly $props_viewonly
- after 500
}
if {$props_shared != $prop0_shared} {
+ if {$did > 0} {after $aft}; incr did
if {$props_shared} {
push_new_value "shared" "shared" 1 1
} else {
@@ -3671,7 +3755,6 @@ proc props_apply {} {
set props_shared 0
}
set prop0_shared $props_shared
- after 500
}
set fpw 0
@@ -3736,14 +3819,14 @@ proc props_apply {} {
foreach case $pw_ord {
if {$case == "fpw"} {
+ if {$did > 0} {after $aft}; incr did
push_new_value "passwd" "passwd" "$props_passwd" 1
set prop0_passwd $props_passwd
- after 500
}
if {$case == "vpw"} {
+ if {$did > 0} {after $aft}; incr did
push_new_value "viewpasswd" "viewpasswd" "$props_viewpasswd" 1
set prop0_viewpasswd $props_viewpasswd
- after 500
}
}
@@ -3779,6 +3862,8 @@ proc do_props {{msg ""}} {
global have_labelframes ffont bfont
global props_buttons icon_noadvanced
+ check_update_vars
+
if [info exists menu_var(deny)] {
if {$menu_var(deny) == $unset_str || $menu_var(deny) == 0} {
set props_accept 1
@@ -3856,6 +3941,8 @@ proc do_props {{msg ""}} {
button $b1.cancel -text Cancel -command "destroy $w" -font $bfont
button $b1.apply -text Apply -command "props_apply" -font $bfont
+ bind $w <KeyPress-Escape> "destroy $w"
+
pack $b1.apply $b1.cancel $b1.ok -side right -expand 1
lappend props_buttons $b1.apply $b1.cancel $b1.ok
@@ -3965,11 +4052,12 @@ proc do_new_client {} {
set newclient ""
entry $w.e -width 16 -textvariable newclient -font $bfont
button $w.b -text OK -command "destroy $w" -font $bfont
+ button $w.h -text Help -command "menu_help NewClient" -font $bfont
bind $w.e <Return> "update; after 100; destroy $w"
wm title $w "New Client"
- pack $w.l $w.e $w.b -side left -pady 1m -padx 1m
+ pack $w.l $w.e $w.h $w.b -side left -pady 1m -padx 0.5m
focus $w.e
center_win $w
update
@@ -3987,6 +4075,43 @@ proc do_disconnect_all {} {
push_new_value "disconnect" "disconnect" "all" 1
}
+proc do_disconnect_client {id} {
+ push_new_value "disconnect" "disconnect" "$id" 1
+}
+
+proc popup_post {m} {
+ global popup_cascade_posted client_balloon
+ global client_id_list
+
+ set popup_cascade_posted 0
+
+ set wd "$m.disconnect"
+
+ if {![winfo exists $wd]} {
+ return
+ }
+
+ catch {$wd delete 0 end}
+
+ $wd add command -label "Disconnect client:"
+ $wd add separator
+ $wd add command -label "All Clients" -command do_disconnect_all
+
+ if {![info exists client_id_list]} {
+ return
+ }
+
+ foreach client $client_id_list {
+ if {$client == ""} {
+ continue
+ }
+ if {[regexp {^([^:]*):(.*)$} $client mat id lab]} {
+ $wd add command -label "$lab" \
+ -command "do_disconnect_client $id"
+ }
+ }
+}
+
proc pmenu {m x y} {
if {![winfo exists $m]} {
return
@@ -3998,6 +4123,9 @@ proc pmenu {m x y} {
proc set_client_balloon {str} {
global client_balloon vnc_display
+ global client_id_list
+
+ set client_id_list [list]
set client_balloon "$vnc_display"
set count 0
@@ -4023,8 +4151,10 @@ proc set_client_balloon {str} {
set client_balloon "${client_balloon}\n$user\@$host"
if {$vo == "1"} {
set client_balloon "${client_balloon} - view"
+ lappend client_id_list "$id:$user\@$host - view"
} else {
set client_balloon "${client_balloon} - full"
+ lappend client_id_list "$id:$user\@$host - full"
}
} else {
set i [expr $count+1]
@@ -4038,26 +4168,37 @@ proc set_client_balloon {str} {
icon_win_cfg $count
}
-proc read_client_info {} {
- global x11vnc_client_file client_tail client_str
- global client_tail_read
+proc read_client_info {channel} {
+ global x11vnc_client_file client_str client_info_read
+ global read_client_info_lock
set db 0
- if {$client_tail != ""} {
+ if {![info exists read_client_info_lock]} {
+ set read_client_info_lock 0
+ }
+
+ if {$channel != ""} {
+
+ if {$read_client_info_lock} {
+ return
+ }
+ set read_client_info_lock 1
after 100
set str ""
- set count [gets $client_tail str]
- if {$db} {puts stderr "read_client_info: $str"}
+ set count [gets $channel str]
+ if {$db} {puts stderr "read_client_info-$channel: $str"}
- if {$count == -1 || [eof $client_tail]} {
- close $client_tail
+ if {$count == -1 || [eof $channel]} {
+ close $channel
catch {file delete $x11vnc_client_file}
+ set read_client_info_lock 0
clean_icon_exit
}
if {$count > 0 && ![regexp {^[ ]*$} $str]} {
- set client_tail_read 1
+ set client_info_read 1
if {$str == "quit"} {
catch {file delete $x11vnc_client_file}
+ set read_client_info_lock 0
clean_icon_exit
} elseif {$str != "skip"} {
if {$str == "none"} {
@@ -4068,6 +4209,23 @@ proc read_client_info {} {
set_client_balloon $str
}
}
+ set read_client_info_lock 0
+ }
+}
+
+proc read_client_tail {} {
+ global client_tail
+
+ if {$client_tail != ""} {
+ read_client_info $client_tail
+ }
+}
+
+proc read_client_sock {} {
+ global client_sock
+
+ if {$client_sock != ""} {
+ read_client_info $client_sock
}
}
@@ -4129,20 +4287,30 @@ proc kill_client_balloon {} {
}
proc icon_win_cfg {clients} {
- global icon_win client_tail client_tail_read
+ global icon_win client_tail client_sock client_info_read
+
+ if {![info exists icon_win]} {
+ return
+ }
+ if {$icon_win == ""} {
+ return
+ }
if {$clients > 0} {
$icon_win configure -bg black -fg white
} else {
$icon_win configure -bg white -fg black
}
- if {$client_tail == "" || !$client_tail_read} {
- $icon_win configure -fg red
+
+ if {$client_tail == "" || !$client_info_read} {
+ if {$client_sock == ""} {
+ $icon_win configure -fg red
+ }
}
}
proc server_accept {sock addr port} {
global socket_cookie server socket_got_callback
- global client_tail
+ global client_tail client_sock
set db 0
if {$db} {puts stderr "sock=$sock addr=$addr port=$port"}
@@ -4156,8 +4324,8 @@ proc server_accept {sock addr port} {
set str [string trim $str]
if {$db} {puts stderr "server_accept: \"$str\""}
if {$str == "COOKIE:$socket_cookie"} {
- set client_tail $sock
- if {$db} {puts stderr "cookie matched. $client_tail"}
+ set client_sock $sock
+ if {$db} {puts stderr "cookie matched. $client_sock"}
} else {
if {$db} {puts stderr "cookie NO matched."}
}
@@ -4169,17 +4337,39 @@ proc server_accept {sock addr port} {
proc try_client_info_sock {} {
global socket_cookie server socket_got_callback
- global x11vnc_started hostname
+ global x11vnc_started x11vnc_xdisplay hostname client_sock
+ global x11vnc_xdisplay0 menu_var
+
+ set db 0
set start 13037
set tries 100
set socket_got_callback 0
+ set xd $x11vnc_xdisplay
+ if {$xd == "" && $x11vnc_xdisplay0 != ""} {
+ set xd $x11vnc_xdisplay0
+ }
+ if {$xd == "" && [info exists menu_var(display)]} {
+ set xd $menu_var(display)
+ }
+
+ set myaddr ""
+ regsub {\..*$} $hostname "" shost
if {$x11vnc_started} {
set myaddr "127.0.0.1"
+ } elseif {$xd != ""} {
+ if {[regexp {^:} $xd]} {
+ set myaddr "127.0.0.1"
+ } elseif {[regexp -nocase "^$shost" $xd]} {
+ set myaddr "127.0.0.1"
+ } elseif {[regexp -nocase "^localhost" $xd]} {
+ set myaddr "127.0.0.1"
+ } else {
+ set myaddr $hostname
+ }
} else {
set myaddr $hostname
}
- set socket_cookie [clock clicks]
for {set i 0} {$i <= $tries} {incr i} {
set port [expr $start + $i]
@@ -4203,8 +4393,25 @@ proc try_client_info_sock {} {
}
run_remote_cmd [list "-nosync" "-R" "noop"]
after 500
+
+ # set the cookie to some obscured randomness
+ set socket_cookie [clock clicks]
+ set r [expr rand()]
+ if {$r != ""} {
+ append socket_cookie $r
+ }
+ set r ""
+ catch {set r [winfo id .]}
+ if {$r != ""} {
+ append socket_cookie $r
+ }
+ if {[regexp {([0-9])([0-9])$} [clock clicks] m m1 m2]} {
+ regsub -all {\.} $socket_cookie $m1 socket_cookie
+ regsub -all {x} $socket_cookie $m2 socket_cookie
+ }
run_remote_cmd [list "-nosync" "-R" \
"client_info_sock:$myaddr:$port:$socket_cookie"]
+ if {$db} {puts "client_info_sock:$myaddr:$port:$socket_cookie"}
after 500
set aftid ""
@@ -4221,7 +4428,7 @@ proc try_client_info_sock {} {
puts stderr "try_client_info_sock failed: no callback\n"
catch {close $server}
} else {
- setup_client_tail
+ setup_client_sock 1
}
}
@@ -4252,11 +4459,11 @@ proc get_icon_label {{set 0}} {
}
proc lmenu {menu} {
- global window_view_posted
+ global popup_cascade_posted
after 100
- if {!$window_view_posted} {
+ if {!$popup_cascade_posted} {
after 100
- if {!$window_view_posted} {
+ if {!$popup_cascade_posted} {
$menu unpost
return
}
@@ -4286,11 +4493,11 @@ proc old_balloon {} {
proc make_icon {} {
global icon_mode icon_embed_id icon_win props_win full_win
global tray_embed tray_running env
- global x11vnc_client_file client_tail client_str saved_clients_str
+ global x11vnc_client_file client_tail client_sock client_str saved_clients_str
global client_balloon_id
global bfont sfont snfont ffont
global icon_minimal gui_start_mode
- global window_view_posted menu_var x11vnc_gui_geom
+ global popup_cascade_posted menu_var x11vnc_gui_geom
set min_x 24
set min_y 24
@@ -4331,28 +4538,37 @@ proc make_icon {} {
icon_win_cfg 0
- set window_view_posted 0
+ set popup_cascade_posted 0
pack $l -fill both -expand 1
set menu "$l.menu"
- menu $menu -tearoff 0 -postcommand {set window_view_posted 0}
+ menu $menu -tearoff 0 -postcommand "popup_post $menu"
$menu add command -font $mfont -label "Properties" -command do_props
$menu add command -font $mfont -label "Help" -command "menu_help Tray"
$menu add separator
$menu add command -font $mfont -label "New Client" -command do_new_client
- $menu add command -font $mfont -label "Disconnect All" -command do_disconnect_all
+
+ set wd "$menu.disconnect"
+ catch {destroy $wd}
+ menu $wd -tearoff 0 -font $ffont \
+ -postcommand {set popup_cascade_posted 1}
+ $wd add command -label "Disconnect client:"
+ $wd add separator
+ $wd add command -label "All Clients" -command do_disconnect_all
+ $menu add cascade -font $mfont -label "Disconnect:" -menu $wd
+
$menu add separator
- set wv "$menu.casc1"
+ set wv "$menu.windowview"
catch {destroy $wv}
menu $wv -tearoff 0 -font $ffont \
- -postcommand {set window_view_posted 1}
+ -postcommand {set popup_cascade_posted 1}
foreach val {full icon tray} {
$wv add radiobutton -label "$val" \
-value "$val" -font $ffont \
-command "do_var WindowView" \
-variable menu_var(WindowView)
}
- $menu add cascade -font $mfont -label "Window View" -menu $wv
+ $menu add cascade -font $mfont -label "Window View:" -menu $wv
$menu add command -font $mfont -label "Stop x11vnc" -command clean_icon_exit
@@ -4363,7 +4579,9 @@ proc make_icon {} {
bind $icon_win <Leave> {kill_client_balloon}
bind $icon_win <ButtonPress-2> {kill_client_balloon; show_client_balloon}
bind $menu <Leave> "lmenu $menu"
- bind $menu <KeyPress-Escape> "$menu unpost"
+## bind $menu <KeyPress-Escape> "$menu unpost"
+
+ bind . <Control-KeyPress-c> {destroy .; exit 0}
if {!$tray_embed || !$tray_running} {
global x11vnc_gui_geom
@@ -4379,18 +4597,27 @@ proc make_icon {} {
}
}
}
+ wm iconname . "tkx11vnc"
+ wm title . "tkx11vnc"
wm deiconify .
- if {$client_tail == "" } {
+ old_balloon
+}
+
+proc setup_client_channel {} {
+ global client_sock client_tail
+
+# XXX/setup_client_channel
+ if {$client_sock == "" } {
stop_watch on
try_client_info_sock
- if {$client_tail == "" } {
+ if {$client_sock == "" } {
after 500
try_client_info_sock
}
stop_watch off
}
- if {$client_tail == "" } {
+ if {$client_tail == "" && $client_sock == ""} {
set m "\n"
set m "${m}tkx11vnc:\n"
set m "${m}\n"
@@ -4405,12 +4632,10 @@ proc make_icon {} {
textwin "Warning" "Warning" $m
update
}
-
- old_balloon
}
proc clean_client_tail {} {
- global client_tail client_tail_read
+ global client_tail client_info_read
if [info exists client_tail] {
if {$client_tail != ""} {
set p ""
@@ -4422,7 +4647,7 @@ proc clean_client_tail {} {
set client_tail ""
}
}
- set client_tail_read 0
+ set client_info_read 0
}
proc clean_icon_exit {} {
@@ -4521,6 +4746,7 @@ proc make_gui {mode} {
center_win .
}
+
if {$make_gui_count == 1} {
copy_default_vars
if {$x11vnc_connect} {
@@ -4531,13 +4757,13 @@ proc make_gui {mode} {
} else {
set_name "RESTORE"
}
+
+ setup_client_tail
+
set_widgets
- if {$mode == "icon" || $mode == "tray"} {
- setup_client_tail
- if {$mode == "tray"} {
- setup_tray_embed
- }
+ if {$mode == "tray"} {
+ setup_tray_embed
}
}
@@ -4776,7 +5002,7 @@ proc key_bindings {} {
global env menus_disabled
if {[info exists env(USER)] && $env(USER) == "runge"} {
# quick restart
- bind . <Control-KeyPress-c> {exec $argv0 $argv &; destroy .}
+ bind . <Control-KeyPress-k> {exec $argv0 $argv &; destroy .}
}
bind . <Control-KeyPress-p> { \
global menus_disabled; \
@@ -5172,9 +5398,67 @@ proc start_x11vnc {} {
}
}
+proc run_remote_cmd_via_sock {opts} {
+ global client_sock
+
+ set db 0
+ if {[eof $client_sock]} {
+ close $client_sock
+ set client_sock ""
+ return "fail"
+ }
+ set result ""
+
+ setup_client_sock 0
+
+ set docmd ""
+ foreach opt $opts {
+ if {$opt == "-R"} {
+ set docmd "-R"
+ continue
+ } elseif {$opt == "-Q"} {
+ set docmd "-Q"
+ continue
+ }
+
+ if {$docmd == ""} {
+ continue
+ } elseif {$docmd == "-R"} {
+ set str "cmd=$opt"
+ } elseif {$docmd == "-Q"} {
+ set str "qry=$opt"
+ } else {
+ set docmd ""
+ continue
+ }
+
+ if {$db} {puts stderr "run_remote_cmd_via_sock: $docmd \"$str\""}
+ puts $client_sock $str
+ if {$db} {puts stderr "run_remote_cmd_via_sock: flush"}
+ flush $client_sock
+ if {$db} {puts stderr "run_remote_cmd_via_sock: gets"}
+ gets $client_sock res
+ if {$db} {puts stderr "run_remote_cmd_via_sock: \"$res\""}
+ set res [string trim $res]
+
+ set docmd ""
+
+ if {$res != ""} {
+ append result "$res\n"
+ }
+ }
+
+ setup_client_sock 1
+
+ set result [string trim $result]
+
+ return $result
+}
+
proc run_remote_cmd {opts} {
global menu_var x11vnc_prog x11vnc_cmdline x11vnc_xdisplay
global x11vnc_auth_file x11vnc_connect_file
+ global client_sock
set debug [in_debug_mode]
@@ -5189,6 +5473,17 @@ proc run_remote_cmd {opts} {
}
}
+ if {$client_sock != ""} {
+ menus_disable
+ stop_watch on
+ set result [run_remote_cmd_via_sock $opts]
+ stop_watch off
+ menus_enable
+ if {$result != "fail"} {
+ return $result
+ }
+ }
+
set cmd ""
lappend cmd $x11vnc_prog;
@@ -5212,7 +5507,6 @@ proc run_remote_cmd {opts} {
}
lappend cmd "2>"
lappend cmd "/dev/null"
-# lappend cmd "/tmp/nono"
if {0 || $debug} {
set str [join $cmd]
@@ -5228,7 +5522,6 @@ proc run_remote_cmd {opts} {
stop_watch on
catch {set output [eval exec $cmd]}
stop_watch off
-#puts stderr [exec cat /tmp/nono]
menus_enable
if {$debug} {
@@ -5259,6 +5552,8 @@ proc try_connect {} {
global x11vnc_xdisplay connected_to_x11vnc reply_xdisplay
global menu_var unset_str
+ set db 0
+
if {! $connected_to_x11vnc} {
if {[info exists menu_var(display)]} {
set d $menu_var(display)
@@ -5273,12 +5568,19 @@ proc try_connect {} {
set rargs [list "-Q" "ping"]
set result [run_remote_cmd $rargs]
+ if {$db} {puts "try_connect: \"$result\""}
+
if {[regexp {^ans=ping:} $result]} {
regsub {^ans=ping:} $result {} reply_xdisplay
set msg "Connected to $reply_xdisplay"
set_info $msg
append_text "$msg\n"
set_connected yes
+
+ setup_client_channel
+ setup_client_sock 1
+ setup_client_tail
+
fetch_displays
return 1
} else {
@@ -5344,7 +5646,18 @@ proc change_view_state {} {
proc setup_client_tail {} {
global client_tail
if {$client_tail != ""} {
- fileevent $client_tail readable read_client_info
+ fileevent $client_tail readable read_client_tail
+ }
+}
+
+proc setup_client_sock {{enable 1}} {
+ global client_sock
+ if {$client_sock != ""} {
+ if {$enable} {
+ fileevent $client_sock readable read_client_sock
+ } else {
+ fileevent $client_sock readable ""
+ }
}
}
@@ -5438,6 +5751,7 @@ proc undo_tray_embed {} {
# main:
global env x11vnc_prog x11vnc_cmdline x11vnc_xdisplay x11vnc_connect;
+global x11vnc_xdisplay0
global x11vnc_client_file x11vnc_gui_geom x11vnc_started vnc_url
global x11vnc_gui_params
global x11vnc_auth_file x11vnc_connect_file beginner_mode simple_gui_created
@@ -5449,7 +5763,7 @@ global bfont ffont sfont snfont old_labels have_labelframes
global connected_to_x11vnc
global delay_sleep extra_sleep extra_sleep_split
global cache_all_query_vars
-global last_query_all_time query_all_freq client_tail client_tail_read
+global last_query_all_time query_all_freq client_tail client_sock client_info_read
global icon_mode tray_embed tray_running icon_setpasswd icon_embed_id
global icon_noadvanced icon_minimal
global make_gui_count text_area_str
@@ -5473,7 +5787,8 @@ set cache_all_query_vars ""
set query_all_freq 120
set last_query_all_time [clock seconds]
set client_tail ""
-set client_tail_read 0
+set client_sock ""
+set client_info_read 0
set make_gui_count 0
set text_area_str ""
set gui_argv0 $argv0
@@ -5539,6 +5854,7 @@ if {[info exists env(X11VNC_CLIENT_FILE)]} {
if {$client_tail != ""} {
gets $client_tail tmp
if [eof $client_tail] {
+puts "eof $client_tail"
clean_client_tail
set client_tail ""
}
@@ -5586,6 +5902,7 @@ if {[info exists env(X11VNC_STARTED)]} {
set x11vnc_started 1
}
+set x11vnc_xdisplay ""
if {[info exists env(X11VNC_XDISPLAY)]} {
set x11vnc_xdisplay $env(X11VNC_XDISPLAY);
set x11vnc_connect 1
@@ -5600,6 +5917,7 @@ if {[info exists env(X11VNC_XDISPLAY)]} {
} else {
set x11vnc_xdisplay ":0";
}
+set x11vnc_xdisplay0 $x11vnc_xdisplay
if {[info exists env(X11VNC_AUTH_FILE)]} {
set x11vnc_auth_file $env(X11VNC_AUTH_FILE)
diff --git a/x11vnc/tkx11vnc.h b/x11vnc/tkx11vnc.h
index 97d3ae5..9aaf5fa 100644
--- a/x11vnc/tkx11vnc.h
+++ b/x11vnc/tkx11vnc.h
@@ -28,7 +28,7 @@
"# USA.\n"
"\n"
"#\n"
-"# tkx11vnc v0.1\n"
+"# tkx11vnc v0.2\n"
"# This is a simple frontend to x11vnc. It uses the remote control\n"
"# and query features (-remote/-query aka -R/-Q) to interact with it. \n"
"# It is just a quick-n-dirty hack (it parses -help output, etc), but\n"
@@ -565,7 +565,9 @@
" Pressing \\\"OK\\\" will initiate the reverse\n"
" connection. Use a blank hostname to skip it.\n"
" \n"
-" Disconnect All - Disconnects all current VNC viewers.\n"
+" Disconnect - Shows a popup menu of connected clients. Click on\n"
+" one to disconnect it, or click on \\\"All Clients\\\"\n"
+" disconnect all clients.\n"
"\n"
" Window View - Switch between the \\\"full\\\" gui (also known as\n"
" \\\"Advanced\\\"), \\\"icon\\\" mode (small icon window with\n"
@@ -577,11 +579,29 @@
" and then exit. The tray/icon GUI then exits as well.\n"
"\n"
"\n"
+"Termination:\n"
+"\n"
"If the x11vnc server stops for any reason, the tray/icon gui will exit.\n"
"\n"
"If you delete the tray/icon (e.g. X out button), that is the same\n"
"as the \\\"Stop x11vnc\\\" action in the menu. (This will disconnect any\n"
-"VNC viewer you are currently using to access the display).\n"
+"VNC viewer you are currently using to access the display since the\n"
+"x11vnc server is terminated).\n"
+"\n"
+"To terminate the tray/icon gui window but not the x11vnc server press\n"
+"Control-C on the tray/icon window. You can also do this (and much\n"
+"more) via Properties -> Advanced -> Actions -> Quit\n"
+"\"\n"
+"\n"
+" set helptext(NewClient) \"\n"
+" New Client - Presents an entry box where you type in the name\n"
+" of a computer that is running a VNC viewer in\n"
+" \\\"listen\\\" mode (e.g. vncviewer -listen). For a\n"
+" non-standard listening port use \\\"host:port\\\".\n"
+"\n"
+" Pressing \\\"OK\\\" will initiate the reverse\n"
+" connection. Use a blank hostname to skip it.\n"
+" \n"
"\"\n"
"\n"
" set helptext(Properties) \"\n"
@@ -628,7 +648,39 @@
" \n"
" - The \\\"Advanced ...\\\" button replaces the Properties dialog with the full\n"
" tkx11vnc GUI. All dynamic settings can be modified in the full GUI.\n"
-"\" \n"
+"\n"
+"\n"
+"--------------------------------------------------------------------\n"
+"Don't Lock Yourself Out:\n"
+"\n"
+" If you are sitting at the physical X display you cannot get into too\n"
+" much trouble setting the Properties dialog values.\n"
+"\n"
+" However IF you are using a VNC Viewer to REMOTELY access the X display\n"
+" some items in the Properties dialog can lock you out of further access:\n"
+"\n"
+" \\\"Accept Connections\\\" if you disable this remotely, and\n"
+" accidentally disconnect your VNC viewer then you will not be\n"
+" able to reconnect.\n"
+" \n"
+" \\\"Ask for Confirmation\\\" if you enable this only someone\n"
+" sitting at the X display can confirm any new VNC connections.\n"
+" Furthermore, any current VNC viewers will be blocked while\n"
+" waiting for the confirmation (times out in 120 sec by default). \n"
+" \n"
+" \\\"All Clients ViewOnly\\\" if you enable this remotely, well\n"
+" you can no longer provide input to disable it.\n"
+" \n"
+" If you do lock yourself out you could log in remotely and start up\n"
+" a second x11vnc and connect to that one to try to fix things in the\n"
+" first one.\n"
+"\n"
+" Note that if there are two or more x11vnc's on the same display the\n"
+" use of the GUI may be ill-behaved. Terminate the second x11vnc as\n"
+" soon as you have fixed the setting in the first one. Use of a remote\n"
+" control command, e.g. \\\"x11vnc -R noviewonly\\\" or \\\"x11vnc -R unlock\\\"\n"
+" is a good way to avoid this problem.\n"
+"\"\n"
"\n"
" set helptext(all) $helpall\n"
"\n"
@@ -1105,10 +1157,11 @@
" if {![info exists full_win]} {\n"
" return\n"
" }\n"
+" set w \".\"\n"
" if {$icon_mode} {\n"
+" wm title $w \"$name\"\n"
+" wm iconname $w \"$name\"\n"
" set w $full_win\n"
-" } else {\n"
-" set w \".\"\n"
" }\n"
" wm title $w \"$name\"\n"
" wm iconname $w \"$name\"\n"
@@ -2641,14 +2694,32 @@
"\n"
"proc show_all_settings {} {\n"
" global all_settings\n"
-" set txt \"\\nRead-Write setting:\\n\\n\"\n"
+" global client_sock client_tail\n"
+" global x11vnc_client_file\n"
+"\n"
+" set txt \"\\nRead-Write settings:\\n\\n\"\n"
" foreach item [split_query $all_settings] {\n"
" regsub {:} $item {: } item\n"
" append txt \" $item\\n\"\n"
" if {[regexp {noremote} $item]} {\n"
-" append txt \"\\nRead-Only setting:\\n\\n\"\n"
+" append txt \"\\nRead-Only settings:\\n\\n\"\n"
" }\n"
" }\n"
+" append txt \"\\nInternal settings:\\n\\n\"\n"
+" append txt \"x11vnc_client_file: $x11vnc_client_file\\n\"\n"
+" if {[info exists client_tail]} {\n"
+" append txt \"client_tail: $client_tail\\n\"\n"
+" } else {\n"
+" append txt \"client_tail: unset\\n\"\n"
+" }\n"
+" if {[info exists client_sock]} {\n"
+" append txt \"client_sock: $client_sock\\n\"\n"
+" } else {\n"
+" append txt \"client_sock: unset\\n\"\n"
+" }\n"
+" set estr \"\"\n"
+" catch {set estr [exec env | grep -i X11VNC]}\n"
+" append txt \"$estr\\n\"\n"
" textwin \"Settings\" \"All Current Settings\" $txt\n"
"}\n"
"\n"
@@ -3579,16 +3650,15 @@
" }\n"
"}\n"
"\n"
-"proc menu_posted {} {\n"
+"proc check_update_vars {} {\n"
" global last_query_all_time query_all_freq icon_mode\n"
-" global connected_to_x11vnc client_tail\n"
+" global connected_to_x11vnc client_tail client_sock\n"
"\n"
" set now [clock seconds]\n"
"\n"
-" if {$icon_mode && $client_tail != \"\"} {\n"
+" set delay $query_all_freq\n"
+" if {$client_tail != \"\" && $client_sock == \"\"} {\n"
" set delay [expr 2 * $query_all_freq]\n"
-" } else {\n"
-" set delay $query_all_freq\n"
" }\n"
"\n"
" if {$connected_to_x11vnc} {\n"
@@ -3608,6 +3678,10 @@
" }\n"
"}\n"
"\n"
+"proc menu_posted {} {\n"
+" check_update_vars\n"
+"}\n"
+"\n"
"proc props_widgets {state} {\n"
" global props_buttons\n"
" foreach w $props_buttons {\n"
@@ -3622,20 +3696,30 @@
" global prop0_accept prop0_confirm prop0_viewonly prop0_shared\n"
" global prop0_passwd prop0_viewpasswd\n"
" global menu_var\n"
+" global client_sock\n"
"\n"
" props_widgets disabled\n"
"\n"
+" set aft 500\n"
+" if {[info exists client_sock]} {\n"
+" if {$client_sock != \"\"} {\n"
+" set aft 150\n"
+" }\n"
+" }\n"
+" set did 0\n"
+"\n"
" if {$props_accept != $prop0_accept} {\n"
+" if {$did > 0} {after $aft}; incr did\n"
" if {$props_accept} {\n"
" push_new_value \"unlock\" \"unlock\" 1 0\n"
" } else {\n"
" push_new_value \"lock\" \"lock\" 1 0\n"
" }\n"
" set prop0_accept $props_accept\n"
-" after 500\n"
" }\n"
"\n"
" if {$props_confirm != $prop0_confirm} {\n"
+" if {$did > 0} {after $aft}; incr did\n"
" if {$props_confirm} {\n"
" push_new_value \"accept\" \"accept\" \"popup\" 1\n"
" } else {\n"
@@ -3647,10 +3731,10 @@
" set props_confirm 0\n"
" }\n"
" set prop0_confirm $props_confirm\n"
-" after 500\n"
" }\n"
"\n"
" if {$props_viewonly != $prop0_viewonly} {\n"
+" if {$did > 0} {after $aft}; incr did\n"
" if {$props_viewonly} {\n"
" push_new_value \"viewonly\" \"viewonly\" 1 1\n"
" } else {\n"
@@ -3662,10 +3746,10 @@
" set props_viewonly 0\n"
" }\n"
" set prop0_viewonly $props_viewonly\n"
-" after 500\n"
" }\n"
"\n"
" if {$props_shared != $prop0_shared} {\n"
+" if {$did > 0} {after $aft}; incr did\n"
" if {$props_shared} {\n"
" push_new_value \"shared\" \"shared\" 1 1\n"
" } else {\n"
@@ -3677,7 +3761,6 @@
" set props_shared 0\n"
" }\n"
" set prop0_shared $props_shared\n"
-" after 500\n"
" }\n"
"\n"
" set fpw 0\n"
@@ -3742,14 +3825,14 @@
"\n"
" foreach case $pw_ord {\n"
" if {$case == \"fpw\"} {\n"
+" if {$did > 0} {after $aft}; incr did\n"
" push_new_value \"passwd\" \"passwd\" \"$props_passwd\" 1\n"
" set prop0_passwd $props_passwd\n"
-" after 500\n"
" }\n"
" if {$case == \"vpw\"} {\n"
+" if {$did > 0} {after $aft}; incr did\n"
" push_new_value \"viewpasswd\" \"viewpasswd\" \"$props_viewpasswd\" 1\n"
" set prop0_viewpasswd $props_viewpasswd\n"
-" after 500\n"
" }\n"
" }\n"
"\n"
@@ -3785,6 +3868,8 @@
" global have_labelframes ffont bfont\n"
" global props_buttons icon_noadvanced\n"
"\n"
+" check_update_vars\n"
+"\n"
" if [info exists menu_var(deny)] {\n"
" if {$menu_var(deny) == $unset_str || $menu_var(deny) == 0} {\n"
" set props_accept 1\n"
@@ -3862,6 +3947,8 @@
" button $b1.cancel -text Cancel -command \"destroy $w\" -font $bfont\n"
" button $b1.apply -text Apply -command \"props_apply\" -font $bfont\n"
"\n"
+" bind $w <KeyPress-Escape> \"destroy $w\"\n"
+"\n"
" pack $b1.apply $b1.cancel $b1.ok -side right -expand 1\n"
" lappend props_buttons $b1.apply $b1.cancel $b1.ok\n"
"\n"
@@ -3971,11 +4058,12 @@
" set newclient \"\"\n"
" entry $w.e -width 16 -textvariable newclient -font $bfont \n"
" button $w.b -text OK -command \"destroy $w\" -font $bfont\n"
+" button $w.h -text Help -command \"menu_help NewClient\" -font $bfont\n"
" bind $w.e <Return> \"update; after 100; destroy $w\"\n"
"\n"
" wm title $w \"New Client\"\n"
"\n"
-" pack $w.l $w.e $w.b -side left -pady 1m -padx 1m\n"
+" pack $w.l $w.e $w.h $w.b -side left -pady 1m -padx 0.5m\n"
" focus $w.e\n"
" center_win $w\n"
" update \n"
@@ -3993,6 +4081,43 @@
" push_new_value \"disconnect\" \"disconnect\" \"all\" 1\n"
"}\n"
"\n"
+"proc do_disconnect_client {id} {\n"
+" push_new_value \"disconnect\" \"disconnect\" \"$id\" 1\n"
+"}\n"
+"\n"
+"proc popup_post {m} {\n"
+" global popup_cascade_posted client_balloon\n"
+" global client_id_list\n"
+"\n"
+" set popup_cascade_posted 0\n"
+" \n"
+" set wd \"$m.disconnect\"\n"
+"\n"
+" if {![winfo exists $wd]} {\n"
+" return\n"
+" }\n"
+"\n"
+" catch {$wd delete 0 end}\n"
+"\n"
+" $wd add command -label \"Disconnect client:\"\n"
+" $wd add separator\n"
+" $wd add command -label \"All Clients\" -command do_disconnect_all\n"
+"\n"
+" if {![info exists client_id_list]} {\n"
+" return\n"
+" }\n"
+"\n"
+" foreach client $client_id_list {\n"
+" if {$client == \"\"} {\n"
+" continue\n"
+" }\n"
+" if {[regexp {^([^:]*):(.*)$} $client mat id lab]} {\n"
+" $wd add command -label \"$lab\" \\\n"
+" -command \"do_disconnect_client $id\"\n"
+" }\n"
+" }\n"
+"}\n"
+"\n"
"proc pmenu {m x y} {\n"
" if {![winfo exists $m]} {\n"
" return\n"
@@ -4004,6 +4129,9 @@
"\n"
"proc set_client_balloon {str} {\n"
" global client_balloon vnc_display\n"
+" global client_id_list\n"
+"\n"
+" set client_id_list [list]\n"
" \n"
" set client_balloon \"$vnc_display\"\n"
" set count 0\n"
@@ -4029,8 +4157,10 @@
" set client_balloon \"${client_balloon}\\n$user\\@$host\"\n"
" if {$vo == \"1\"} {\n"
" set client_balloon \"${client_balloon} - view\"\n"
+" lappend client_id_list \"$id:$user\\@$host - view\"\n"
" } else {\n"
" set client_balloon \"${client_balloon} - full\"\n"
+" lappend client_id_list \"$id:$user\\@$host - full\"\n"
" }\n"
" } else {\n"
" set i [expr $count+1]\n"
@@ -4044,26 +4174,37 @@
" icon_win_cfg $count\n"
"}\n"
"\n"
-"proc read_client_info {} {\n"
-" global x11vnc_client_file client_tail client_str\n"
-" global client_tail_read\n"
+"proc read_client_info {channel} {\n"
+" global x11vnc_client_file client_str client_info_read\n"
+" global read_client_info_lock\n"
" set db 0\n"
"\n"
-" if {$client_tail != \"\"} {\n"
+" if {![info exists read_client_info_lock]} {\n"
+" set read_client_info_lock 0\n"
+" }\n"
+"\n"
+" if {$channel != \"\"} {\n"
+"\n"
+" if {$read_client_info_lock} {\n"
+" return\n"
+" }\n"
+" set read_client_info_lock 1\n"
" after 100\n"
" set str \"\"\n"
-" set count [gets $client_tail str]\n"
-" if {$db} {puts stderr \"read_client_info: $str\"}\n"
+" set count [gets $channel str]\n"
+" if {$db} {puts stderr \"read_client_info-$channel: $str\"}\n"
"\n"
-" if {$count == -1 || [eof $client_tail]} {\n"
-" close $client_tail\n"
+" if {$count == -1 || [eof $channel]} {\n"
+" close $channel\n"
" catch {file delete $x11vnc_client_file}\n"
+" set read_client_info_lock 0\n"
" clean_icon_exit\n"
" }\n"
" if {$count > 0 && ![regexp {^[ ]*$} $str]} {\n"
-" set client_tail_read 1\n"
+" set client_info_read 1\n"
" if {$str == \"quit\"} {\n"
" catch {file delete $x11vnc_client_file}\n"
+" set read_client_info_lock 0\n"
" clean_icon_exit\n"
" } elseif {$str != \"skip\"} {\n"
" if {$str == \"none\"} {\n"
@@ -4074,6 +4215,23 @@
" set_client_balloon $str\n"
" }\n"
" }\n"
+" set read_client_info_lock 0\n"
+" }\n"
+"}\n"
+"\n"
+"proc read_client_tail {} {\n"
+" global client_tail\n"
+"\n"
+" if {$client_tail != \"\"} {\n"
+" read_client_info $client_tail\n"
+" }\n"
+"}\n"
+"\n"
+"proc read_client_sock {} {\n"
+" global client_sock\n"
+"\n"
+" if {$client_sock != \"\"} {\n"
+" read_client_info $client_sock\n"
" }\n"
"}\n"
"\n"
@@ -4135,20 +4293,30 @@
"}\n"
"\n"
"proc icon_win_cfg {clients} {\n"
-" global icon_win client_tail client_tail_read\n"
+" global icon_win client_tail client_sock client_info_read\n"
+"\n"
+" if {![info exists icon_win]} {\n"
+" return\n"
+" }\n"
+" if {$icon_win == \"\"} {\n"
+" return\n"
+" }\n"
" if {$clients > 0} {\n"
" $icon_win configure -bg black -fg white\n"
" } else {\n"
" $icon_win configure -bg white -fg black\n"
" }\n"
-" if {$client_tail == \"\" || !$client_tail_read} {\n"
-" $icon_win configure -fg red\n"
+"\n"
+" if {$client_tail == \"\" || !$client_info_read} {\n"
+" if {$client_sock == \"\"} {\n"
+" $icon_win configure -fg red\n"
+" }\n"
" }\n"
"}\n"
"\n"
"proc server_accept {sock addr port} {\n"
" global socket_cookie server socket_got_callback\n"
-" global client_tail\n"
+" global client_tail client_sock\n"
" set db 0\n"
"\n"
" if {$db} {puts stderr \"sock=$sock addr=$addr port=$port\"}\n"
@@ -4162,8 +4330,8 @@
" set str [string trim $str]\n"
" if {$db} {puts stderr \"server_accept: \\\"$str\\\"\"}\n"
" if {$str == \"COOKIE:$socket_cookie\"} {\n"
-" set client_tail $sock\n"
-" if {$db} {puts stderr \"cookie matched. $client_tail\"}\n"
+" set client_sock $sock\n"
+" if {$db} {puts stderr \"cookie matched. $client_sock\"}\n"
" } else {\n"
" if {$db} {puts stderr \"cookie NO matched.\"}\n"
" }\n"
@@ -4175,17 +4343,39 @@
"\n"
"proc try_client_info_sock {} {\n"
" global socket_cookie server socket_got_callback\n"
-" global x11vnc_started hostname\n"
+" global x11vnc_started x11vnc_xdisplay hostname client_sock\n"
+" global x11vnc_xdisplay0 menu_var\n"
+"\n"
+" set db 0\n"
" set start 13037\n"
" set tries 100\n"
" set socket_got_callback 0\n"
"\n"
+" set xd $x11vnc_xdisplay\n"
+" if {$xd == \"\" && $x11vnc_xdisplay0 != \"\"} {\n"
+" set xd $x11vnc_xdisplay0\n"
+" }\n"
+" if {$xd == \"\" && [info exists menu_var(display)]} {\n"
+" set xd $menu_var(display)\n"
+" }\n"
+"\n"
+" set myaddr \"\"\n"
+" regsub {\\..*$} $hostname \"\" shost\n"
" if {$x11vnc_started} {\n"
" set myaddr \"127.0.0.1\"\n"
+" } elseif {$xd != \"\"} {\n"
+" if {[regexp {^:} $xd]} {\n"
+" set myaddr \"127.0.0.1\"\n"
+" } elseif {[regexp -nocase \"^$shost\" $xd]} {\n"
+" set myaddr \"127.0.0.1\"\n"
+" } elseif {[regexp -nocase \"^localhost\" $xd]} {\n"
+" set myaddr \"127.0.0.1\"\n"
+" } else {\n"
+" set myaddr $hostname\n"
+" }\n"
" } else {\n"
" set myaddr $hostname\n"
" }\n"
-" set socket_cookie [clock clicks]\n"
" \n"
" for {set i 0} {$i <= $tries} {incr i} {\n"
" set port [expr $start + $i]\n"
@@ -4209,8 +4399,25 @@
" }\n"
" run_remote_cmd [list \"-nosync\" \"-R\" \"noop\"]\n"
" after 500\n"
+"\n"
+" # set the cookie to some obscured randomness\n"
+" set socket_cookie [clock clicks]\n"
+" set r [expr rand()]\n"
+" if {$r != \"\"} {\n"
+" append socket_cookie $r\n"
+" }\n"
+" set r \"\"\n"
+" catch {set r [winfo id .]}\n"
+" if {$r != \"\"} {\n"
+" append socket_cookie $r\n"
+" }\n"
+" if {[regexp {([0-9])([0-9])$} [clock clicks] m m1 m2]} {\n"
+" regsub -all {\\.} $socket_cookie $m1 socket_cookie\n"
+" regsub -all {x} $socket_cookie $m2 socket_cookie\n"
+" }\n"
" run_remote_cmd [list \"-nosync\" \"-R\" \\\n"
" \"client_info_sock:$myaddr:$port:$socket_cookie\"]\n"
+" if {$db} {puts \"client_info_sock:$myaddr:$port:$socket_cookie\"}\n"
" after 500\n"
"\n"
" set aftid \"\"\n"
@@ -4227,7 +4434,7 @@
" puts stderr \"try_client_info_sock failed: no callback\\n\"\n"
" catch {close $server}\n"
" } else {\n"
-" setup_client_tail\n"
+" setup_client_sock 1\n"
" }\n"
"}\n"
"\n"
@@ -4258,11 +4465,11 @@
"}\n"
"\n"
"proc lmenu {menu} {\n"
-" global window_view_posted\n"
+" global popup_cascade_posted\n"
" after 100\n"
-" if {!$window_view_posted} {\n"
+" if {!$popup_cascade_posted} {\n"
" after 100\n"
-" if {!$window_view_posted} {\n"
+" if {!$popup_cascade_posted} {\n"
" $menu unpost\n"
" return\n"
" }\n"
@@ -4292,11 +4499,11 @@
"proc make_icon {} {\n"
" global icon_mode icon_embed_id icon_win props_win full_win\n"
" global tray_embed tray_running env\n"
-" global x11vnc_client_file client_tail client_str saved_clients_str\n"
+" global x11vnc_client_file client_tail client_sock client_str saved_clients_str\n"
" global client_balloon_id\n"
" global bfont sfont snfont ffont\n"
" global icon_minimal gui_start_mode\n"
-" global window_view_posted menu_var x11vnc_gui_geom\n"
+" global popup_cascade_posted menu_var x11vnc_gui_geom\n"
" set min_x 24\n"
" set min_y 24\n"
" \n"
@@ -4337,28 +4544,37 @@
" icon_win_cfg 0\n"
"\n"
"\n"
-" set window_view_posted 0\n"
+" set popup_cascade_posted 0\n"
" pack $l -fill both -expand 1\n"
" set menu \"$l.menu\"\n"
-" menu $menu -tearoff 0 -postcommand {set window_view_posted 0}\n"
+" menu $menu -tearoff 0 -postcommand \"popup_post $menu\"\n"
" $menu add command -font $mfont -label \"Properties\" -command do_props\n"
" $menu add command -font $mfont -label \"Help\" -command \"menu_help Tray\"\n"
" $menu add separator\n"
" $menu add command -font $mfont -label \"New Client\" -command do_new_client\n"
-" $menu add command -font $mfont -label \"Disconnect All\" -command do_disconnect_all\n"
+"\n"
+" set wd \"$menu.disconnect\"\n"
+" catch {destroy $wd}\n"
+" menu $wd -tearoff 0 -font $ffont \\\n"
+" -postcommand {set popup_cascade_posted 1}\n"
+" $wd add command -label \"Disconnect client:\"\n"
+" $wd add separator\n"
+" $wd add command -label \"All Clients\" -command do_disconnect_all\n"
+" $menu add cascade -font $mfont -label \"Disconnect:\" -menu $wd\n"
+"\n"
" $menu add separator\n"
"\n"
-" set wv \"$menu.casc1\"\n"
+" set wv \"$menu.windowview\"\n"
" catch {destroy $wv}\n"
" menu $wv -tearoff 0 -font $ffont \\\n"
-" -postcommand {set window_view_posted 1}\n"
+" -postcommand {set popup_cascade_posted 1}\n"
" foreach val {full icon tray} {\n"
" $wv add radiobutton -label \"$val\" \\\n"
" -value \"$val\" -font $ffont \\\n"
" -command \"do_var WindowView\" \\\n"
" -variable menu_var(WindowView)\n"
" }\n"
-" $menu add cascade -font $mfont -label \"Window View\" -menu $wv\n"
+" $menu add cascade -font $mfont -label \"Window View:\" -menu $wv\n"
"\n"
" $menu add command -font $mfont -label \"Stop x11vnc\" -command clean_icon_exit\n"
"\n"
@@ -4369,7 +4585,9 @@
" bind $icon_win <Leave> {kill_client_balloon}\n"
" bind $icon_win <ButtonPress-2> {kill_client_balloon; show_client_balloon}\n"
" bind $menu <Leave> \"lmenu $menu\"\n"
-" bind $menu <KeyPress-Escape> \"$menu unpost\"\n"
+"## bind $menu <KeyPress-Escape> \"$menu unpost\"\n"
+"\n"
+" bind . <Control-KeyPress-c> {destroy .; exit 0}\n"
"\n"
" if {!$tray_embed || !$tray_running} {\n"
" global x11vnc_gui_geom\n"
@@ -4385,18 +4603,27 @@
" }\n"
" }\n"
" }\n"
+" wm iconname . \"tkx11vnc\"\n"
+" wm title . \"tkx11vnc\"\n"
" wm deiconify .\n"
"\n"
-" if {$client_tail == \"\" } {\n"
+" old_balloon\n"
+"}\n"
+"\n"
+"proc setup_client_channel {} {\n"
+" global client_sock client_tail\n"
+"\n"
+"# XXX/setup_client_channel\n"
+" if {$client_sock == \"\" } {\n"
" stop_watch on\n"
" try_client_info_sock\n"
-" if {$client_tail == \"\" } {\n"
+" if {$client_sock == \"\" } {\n"
" after 500\n"
" try_client_info_sock\n"
" }\n"
" stop_watch off\n"
" }\n"
-" if {$client_tail == \"\" } {\n"
+" if {$client_tail == \"\" && $client_sock == \"\"} {\n"
" set m \"\\n\"\n"
" set m \"${m}tkx11vnc:\\n\"\n"
" set m \"${m}\\n\"\n"
@@ -4411,12 +4638,10 @@
" textwin \"Warning\" \"Warning\" $m\n"
" update\n"
" }\n"
-"\n"
-" old_balloon\n"
"}\n"
"\n"
"proc clean_client_tail {} {\n"
-" global client_tail client_tail_read\n"
+" global client_tail client_info_read\n"
" if [info exists client_tail] {\n"
" if {$client_tail != \"\"} {\n"
" set p \"\"\n"
@@ -4428,7 +4653,7 @@
" set client_tail \"\"\n"
" }\n"
" }\n"
-" set client_tail_read 0\n"
+" set client_info_read 0\n"
"}\n"
"\n"
"proc clean_icon_exit {} {\n"
@@ -4527,6 +4752,7 @@
" center_win .\n"
" }\n"
"\n"
+"\n"
" if {$make_gui_count == 1} {\n"
" copy_default_vars\n"
" if {$x11vnc_connect} {\n"
@@ -4537,13 +4763,13 @@
" } else {\n"
" set_name \"RESTORE\"\n"
" }\n"
+"\n"
+" setup_client_tail\n"
+"\n"
" set_widgets\n"
"\n"
-" if {$mode == \"icon\" || $mode == \"tray\"} {\n"
-" setup_client_tail\n"
-" if {$mode == \"tray\"} {\n"
-" setup_tray_embed\n"
-" }\n"
+" if {$mode == \"tray\"} {\n"
+" setup_tray_embed\n"
" }\n"
"}\n"
"\n"
@@ -4782,7 +5008,7 @@
" global env menus_disabled\n"
" if {[info exists env(USER)] && $env(USER) == \"runge\"} {\n"
" # quick restart\n"
-" bind . <Control-KeyPress-c> {exec $argv0 $argv &; destroy .}\n"
+" bind . <Control-KeyPress-k> {exec $argv0 $argv &; destroy .}\n"
" }\n"
" bind . <Control-KeyPress-p> { \\\n"
" global menus_disabled; \\\n"
@@ -5178,9 +5404,67 @@
" }\n"
"}\n"
"\n"
+"proc run_remote_cmd_via_sock {opts} {\n"
+" global client_sock\n"
+"\n"
+" set db 0\n"
+" if {[eof $client_sock]} {\n"
+" close $client_sock\n"
+" set client_sock \"\"\n"
+" return \"fail\"\n"
+" }\n"
+" set result \"\"\n"
+" \n"
+" setup_client_sock 0\n"
+"\n"
+" set docmd \"\"\n"
+" foreach opt $opts {\n"
+" if {$opt == \"-R\"} {\n"
+" set docmd \"-R\"\n"
+" continue\n"
+" } elseif {$opt == \"-Q\"} {\n"
+" set docmd \"-Q\"\n"
+" continue\n"
+" }\n"
+"\n"
+" if {$docmd == \"\"} {\n"
+" continue\n"
+" } elseif {$docmd == \"-R\"} {\n"
+" set str \"cmd=$opt\"\n"
+" } elseif {$docmd == \"-Q\"} {\n"
+" set str \"qry=$opt\"\n"
+" } else {\n"
+" set docmd \"\"\n"
+" continue\n"
+" }\n"
+"\n"
+" if {$db} {puts stderr \"run_remote_cmd_via_sock: $docmd \\\"$str\\\"\"}\n"
+" puts $client_sock $str\n"
+" if {$db} {puts stderr \"run_remote_cmd_via_sock: flush\"}\n"
+" flush $client_sock\n"
+" if {$db} {puts stderr \"run_remote_cmd_via_sock: gets\"}\n"
+" gets $client_sock res\n"
+" if {$db} {puts stderr \"run_remote_cmd_via_sock: \\\"$res\\\"\"}\n"
+" set res [string trim $res]\n"
+"\n"
+" set docmd \"\"\n"
+"\n"
+" if {$res != \"\"} {\n"
+" append result \"$res\\n\"\n"
+" }\n"
+" }\n"
+" \n"
+" setup_client_sock 1\n"
+"\n"
+" set result [string trim $result]\n"
+"\n"
+" return $result\n"
+"}\n"
+"\n"
"proc run_remote_cmd {opts} {\n"
" global menu_var x11vnc_prog x11vnc_cmdline x11vnc_xdisplay\n"
" global x11vnc_auth_file x11vnc_connect_file\n"
+" global client_sock\n"
"\n"
" set debug [in_debug_mode]\n"
"\n"
@@ -5195,6 +5479,17 @@
" }\n"
" }\n"
"\n"
+" if {$client_sock != \"\"} {\n"
+" menus_disable\n"
+" stop_watch on\n"
+" set result [run_remote_cmd_via_sock $opts]\n"
+" stop_watch off\n"
+" menus_enable\n"
+" if {$result != \"fail\"} {\n"
+" return $result\n"
+" }\n"
+" }\n"
+"\n"
" set cmd \"\"\n"
"\n"
" lappend cmd $x11vnc_prog;\n"
@@ -5218,7 +5513,6 @@
" }\n"
" lappend cmd \"2>\"\n"
" lappend cmd \"/dev/null\"\n"
-"# lappend cmd \"/tmp/nono\"\n"
"\n"
" if {0 || $debug} {\n"
" set str [join $cmd]\n"
@@ -5234,7 +5528,6 @@
" stop_watch on\n"
" catch {set output [eval exec $cmd]}\n"
" stop_watch off\n"
-"#puts stderr [exec cat /tmp/nono]\n"
"\n"
" menus_enable\n"
" if {$debug} {\n"
@@ -5265,6 +5558,8 @@
" global x11vnc_xdisplay connected_to_x11vnc reply_xdisplay\n"
" global menu_var unset_str\n"
"\n"
+" set db 0\n"
+"\n"
" if {! $connected_to_x11vnc} {\n"
" if {[info exists menu_var(display)]} {\n"
" set d $menu_var(display)\n"
@@ -5279,12 +5574,19 @@
" set rargs [list \"-Q\" \"ping\"]\n"
" set result [run_remote_cmd $rargs]\n"
"\n"
+" if {$db} {puts \"try_connect: \\\"$result\\\"\"}\n"
+"\n"
" if {[regexp {^ans=ping:} $result]} {\n"
" regsub {^ans=ping:} $result {} reply_xdisplay\n"
" set msg \"Connected to $reply_xdisplay\"\n"
" set_info $msg\n"
" append_text \"$msg\\n\"\n"
" set_connected yes\n"
+"\n"
+" setup_client_channel\n"
+" setup_client_sock 1\n"
+" setup_client_tail\n"
+"\n"
" fetch_displays\n"
" return 1\n"
" } else {\n"
@@ -5350,7 +5652,18 @@
"proc setup_client_tail {} {\n"
" global client_tail\n"
" if {$client_tail != \"\"} {\n"
-" fileevent $client_tail readable read_client_info\n"
+" fileevent $client_tail readable read_client_tail\n"
+" }\n"
+"}\n"
+"\n"
+"proc setup_client_sock {{enable 1}} {\n"
+" global client_sock\n"
+" if {$client_sock != \"\"} {\n"
+" if {$enable} {\n"
+" fileevent $client_sock readable read_client_sock\n"
+" } else {\n"
+" fileevent $client_sock readable \"\"\n"
+" }\n"
" }\n"
"}\n"
"\n"
@@ -5444,6 +5757,7 @@
"# main:\n"
"\n"
"global env x11vnc_prog x11vnc_cmdline x11vnc_xdisplay x11vnc_connect;\n"
+"global x11vnc_xdisplay0\n"
"global x11vnc_client_file x11vnc_gui_geom x11vnc_started vnc_url\n"
"global x11vnc_gui_params\n"
"global x11vnc_auth_file x11vnc_connect_file beginner_mode simple_gui_created\n"
@@ -5455,7 +5769,7 @@
"global connected_to_x11vnc\n"
"global delay_sleep extra_sleep extra_sleep_split\n"
"global cache_all_query_vars\n"
-"global last_query_all_time query_all_freq client_tail client_tail_read\n"
+"global last_query_all_time query_all_freq client_tail client_sock client_info_read\n"
"global icon_mode tray_embed tray_running icon_setpasswd icon_embed_id\n"
"global icon_noadvanced icon_minimal\n"
"global make_gui_count text_area_str\n"
@@ -5479,7 +5793,8 @@
"set query_all_freq 120\n"
"set last_query_all_time [clock seconds]\n"
"set client_tail \"\"\n"
-"set client_tail_read 0\n"
+"set client_sock \"\"\n"
+"set client_info_read 0\n"
"set make_gui_count 0\n"
"set text_area_str \"\"\n"
"set gui_argv0 $argv0\n"
@@ -5545,6 +5860,7 @@
" if {$client_tail != \"\"} {\n"
" gets $client_tail tmp\n"
" if [eof $client_tail] {\n"
+"puts \"eof $client_tail\"\n"
" clean_client_tail\n"
" set client_tail \"\"\n"
" }\n"
@@ -5592,6 +5908,7 @@
" set x11vnc_started 1\n"
"}\n"
"\n"
+"set x11vnc_xdisplay \"\"\n"
"if {[info exists env(X11VNC_XDISPLAY)]} {\n"
" set x11vnc_xdisplay $env(X11VNC_XDISPLAY);\n"
" set x11vnc_connect 1\n"
@@ -5606,6 +5923,7 @@
"} else {\n"
" set x11vnc_xdisplay \":0\";\n"
"}\n"
+"set x11vnc_xdisplay0 $x11vnc_xdisplay\n"
"\n"
"if {[info exists env(X11VNC_AUTH_FILE)]} {\n"
" set x11vnc_auth_file $env(X11VNC_AUTH_FILE)\n"
diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1
index 1f2f541..bab06e5 100644
--- a/x11vnc/x11vnc.1
+++ b/x11vnc/x11vnc.1
@@ -2,7 +2,7 @@
.TH X11VNC "1" "July 2005" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
- version: 0.7.3, lastmod: 2005-07-13
+ version: 0.7.3, lastmod: 2005-07-17
.SH SYNOPSIS
.B x11vnc
[OPTION]...
diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c
index 42e37a0..a84d0bd 100644
--- a/x11vnc/x11vnc.c
+++ b/x11vnc/x11vnc.c
@@ -167,6 +167,8 @@
* -DHARDWIRE_PASSWD=... hardwired passwords, quoting necessary.
* -DHARDWIRE_VIEWPASSWD=...
* -DNOPW=1 make -nopw the default (skip warning)
+ * -DPASSWD_REQUIRED=1 exit unless a password is supplied.
+ * -DPASSWD_UNLESS_NOPW=1 exit unless a password is supplied and no -nopw.
*
* -DWIREFRAME=0 to have -nowireframe as the default.
* -DWIREFRAME_COPYRECT=0 to have -nowirecopyrect as the default.
@@ -199,6 +201,14 @@
#define NOPW 0
#endif
+#ifndef PASSWD_REQUIRED
+#define PASSWD_REQUIRED 0
+#endif
+
+#ifndef PASSWD_UNLESS_NOPW
+#define PASSWD_UNLESS_NOPW 0
+#endif
+
/*
* Beginning of support for small binary footprint build for embedded
* systems, PDA's etc. It currently just cuts out the low-hanging
@@ -387,7 +397,7 @@ double xdamage_scheduled_mark = 0.0;
sraRegionPtr xdamage_scheduled_mark_region = NULL;
/* date +'lastmod: %Y-%m-%d' */
-char lastmod[] = "0.7.3 lastmod: 2005-07-13";
+char lastmod[] = "0.7.3 lastmod: 2005-07-17";
int hack_val = 0;
/* X display info */
@@ -579,6 +589,7 @@ char *bitprint(unsigned int, int);
void blackout_tiles(void);
void solid_bg(int);
void check_connect_inputs(void);
+void check_gui_inputs(void);
void check_padded_fb(void);
void clean_up_exit(int);
void clear_modifiers(int init);
@@ -6758,6 +6769,8 @@ void read_vnc_connect_prop(void) {
;
} else if (strstr(vnc_connect_str, "qry=stop,quit,exit")) {
;
+ } else if (strstr(vnc_connect_str, "ack=") == vnc_connect_str) {
+ ;
} else if (strstr(vnc_connect_str, "cmd=") &&
strstr(vnc_connect_str, "passwd")) {
rfbLog("read VNC_CONNECT: *\n");
@@ -6780,7 +6793,8 @@ static void send_client_connect(void) {
char *str = client_connect;
if (strstr(str, "cmd=") == str || strstr(str, "qry=") == str) {
process_remote_cmd(client_connect, 0);
- } else if (strstr(str, "ans=") || strstr(str, "aro=") == str) {
+ } else if (strstr(str, "ans=") == str
+ || strstr(str, "aro=") == str) {
;
} else if (strstr(str, "ack=") == str) {
;
@@ -6814,6 +6828,77 @@ void check_connect_inputs(void) {
send_client_connect();
}
+void check_gui_inputs(void) {
+ int i, nmax = 0, n = 0, nfds;
+ int socks[ICON_MODE_SOCKS];
+ fd_set fds;
+ struct timeval tv;
+ char buf[VNC_CONNECT_MAX+1];
+ ssize_t nbytes;
+
+ for (i=0; i<ICON_MODE_SOCKS; i++) {
+ if (icon_mode_socks[i] >= 0) {
+ socks[n++] = i;
+ if (icon_mode_socks[i] > nmax) {
+ nmax = icon_mode_socks[i];
+ }
+ }
+ }
+
+ if (! n) {
+ return;
+ }
+
+ FD_ZERO(&fds);
+ for (i=0; i<n; i++) {
+ FD_SET(icon_mode_socks[socks[i]], &fds);
+ }
+ tv.tv_sec = 0;
+ tv.tv_usec = 0;
+
+ nfds = select(nmax+1, &fds, NULL, NULL, &tv);
+ if (nfds <= 0) {
+ return;
+ }
+
+ for (i=0; i<n; i++) {
+ int k, fd = icon_mode_socks[socks[i]];
+ char *p;
+ if (! FD_ISSET(fd, &fds)) {
+ continue;
+ }
+ for (k=0; k<=VNC_CONNECT_MAX; k++) {
+ buf[k] = '\0';
+ }
+ nbytes = read(fd, buf, VNC_CONNECT_MAX);
+ if (nbytes <= 0) {
+ close(fd);
+ icon_mode_socks[socks[i]] = -1;
+ continue;
+ }
+
+ p = strtok(buf, "\r\n");
+ while (p) {
+ if (strstr(p, "cmd=") == p ||
+ strstr(p, "qry=") == p) {
+ char *str = process_remote_cmd(p, 1);
+ if (! str) {
+ str = strdup("");
+ }
+ nbytes = write(fd, str, strlen(str));
+ write(fd, "\n", 1);
+ free(str);
+ if (nbytes < 0) {
+ close(fd);
+ icon_mode_socks[socks[i]] = -1;
+ break;
+ }
+ }
+ p = strtok(NULL, "\r\n");
+ }
+ }
+}
+
/*
* libvncserver callback for when a new client connects
*/
@@ -23991,8 +24076,8 @@ char gui_code[] = "";
#include "tkx11vnc.h"
#endif
-void run_gui(char *gui_xdisplay, int connect_to_x11vnc, int simple_gui,
- pid_t parent, char *gui_opts) {
+void run_gui(char *gui_xdisplay, int connect_to_x11vnc, int start_x11vnc,
+ int simple_gui, pid_t parent, char *gui_opts) {
char *x11vnc_xdisplay = NULL;
char extra_path[] = ":/usr/local/bin:/usr/bin/X11:/usr/sfw/bin"
":/usr/X11R6/bin:/usr/openwin/bin:/usr/dt/bin";
@@ -24145,7 +24230,7 @@ void run_gui(char *gui_xdisplay, int connect_to_x11vnc, int simple_gui,
if (gui_geometry) {
set_env("X11VNC_GUI_GEOM", gui_geometry);
}
- if (connect_to_x11vnc) {
+ if (start_x11vnc) {
set_env("X11VNC_STARTED", "1");
}
if (icon_mode) {
@@ -24416,8 +24501,8 @@ void do_gui(char *opts, int sleep) {
if (sleep > 0) {
usleep(sleep * 1000 * 1000);
}
- run_gui(gui_xdisplay, connect_to_x11vnc, simple_gui,
- parent, opts);
+ run_gui(gui_xdisplay, connect_to_x11vnc, start_x11vnc,
+ simple_gui, parent, opts);
exit(1);
}
#else
@@ -24427,7 +24512,8 @@ void do_gui(char *opts, int sleep) {
#endif
}
if (!start_x11vnc) {
- run_gui(gui_xdisplay, connect_to_x11vnc, simple_gui, 0, opts);
+ run_gui(gui_xdisplay, connect_to_x11vnc, start_x11vnc,
+ simple_gui, 0, opts);
exit(1);
}
if (old_xauth) {
@@ -29715,6 +29801,7 @@ if (debug_scroll) fprintf(stderr, "watch_loop: LOOP-BACK: %d\n", ret);
check_autorepeat();
check_keycode_state();
check_connect_inputs();
+ check_gui_inputs();
check_padded_fb();
check_fixscreen();
check_xdamage_state();
@@ -32273,6 +32360,175 @@ void xopen_display_fail_message(char *disp) {
fprintf(stderr, "See also: http://www.karlrunge.com/x11vnc/#faq\n");
}
+void print_settings(int try_http, int bg, char *gui_str) {
+
+ fprintf(stderr, "\n");
+ fprintf(stderr, "Settings:\n");
+ fprintf(stderr, " display: %s\n", use_dpy ? use_dpy
+ : "null");
+ fprintf(stderr, " authfile: %s\n", auth_file ? auth_file
+ : "null");
+ fprintf(stderr, " subwin: 0x%lx\n", subwin);
+ fprintf(stderr, " -sid mode: %d\n", rootshift);
+ fprintf(stderr, " clip: %s\n", clip_str ? clip_str
+ : "null");
+ fprintf(stderr, " flashcmap: %d\n", flash_cmap);
+ fprintf(stderr, " shiftcmap: %d\n", shift_cmap);
+ fprintf(stderr, " force_idx: %d\n", force_indexed_color);
+ fprintf(stderr, " visual: %s\n", visual_str ? visual_str
+ : "null");
+ fprintf(stderr, " overlay: %d\n", overlay);
+ fprintf(stderr, " ovl_cursor: %d\n", overlay_cursor);
+ fprintf(stderr, " scaling: %d %.4f\n", scaling, scale_fac);
+ fprintf(stderr, " viewonly: %d\n", view_only);
+ fprintf(stderr, " shared: %d\n", shared);
+ fprintf(stderr, " conn_once: %d\n", connect_once);
+ fprintf(stderr, " timeout: %d\n", first_conn_timeout);
+ fprintf(stderr, " inetd: %d\n", inetd);
+ fprintf(stderr, " http: %d\n", try_http);
+ fprintf(stderr, " connect: %s\n", client_connect
+ ? client_connect : "null");
+ fprintf(stderr, " connectfile %s\n", client_connect_file
+ ? client_connect_file : "null");
+ fprintf(stderr, " vnc_conn: %d\n", vnc_connect);
+ fprintf(stderr, " allow: %s\n", allow_list ? allow_list
+ : "null");
+ fprintf(stderr, " input: %s\n", allowed_input_str
+ ? allowed_input_str : "null");
+ fprintf(stderr, " passfile: %s\n", passwdfile ? passwdfile
+ : "null");
+ fprintf(stderr, " accept: %s\n", accept_cmd ? accept_cmd
+ : "null");
+ fprintf(stderr, " gone: %s\n", gone_cmd ? gone_cmd
+ : "null");
+ fprintf(stderr, " users: %s\n", users_list ? users_list
+ : "null");
+ fprintf(stderr, " using_shm: %d\n", using_shm);
+ fprintf(stderr, " flipbytes: %d\n", flip_byte_order);
+ fprintf(stderr, " onetile: %d\n", single_copytile);
+ fprintf(stderr, " solid: %s\n", solid_str
+ ? solid_str : "null");
+ fprintf(stderr, " blackout: %s\n", blackout_str
+ ? blackout_str : "null");
+ fprintf(stderr, " xinerama: %d\n", xinerama);
+ fprintf(stderr, " xtrap: %d\n", xtrap_input);
+ fprintf(stderr, " xrandr: %d\n", xrandr);
+ fprintf(stderr, " xrandrmode: %s\n", xrandr_mode ? xrandr_mode
+ : "null");
+ fprintf(stderr, " padgeom: %s\n", pad_geometry
+ ? pad_geometry : "null");
+ fprintf(stderr, " logfile: %s\n", logfile ? logfile
+ : "null");
+ fprintf(stderr, " logappend: %d\n", logfile_append);
+ fprintf(stderr, " flag: %s\n", flagfile ? flagfile
+ : "null");
+ fprintf(stderr, " rc_file: \"%s\"\n", rc_rcfile ? rc_rcfile
+ : "null");
+ fprintf(stderr, " norc: %d\n", rc_norc);
+ fprintf(stderr, " dbg: %d\n", crash_debug);
+ fprintf(stderr, " bg: %d\n", bg);
+ fprintf(stderr, " mod_tweak: %d\n", use_modifier_tweak);
+ fprintf(stderr, " isolevel3: %d\n", use_iso_level3);
+ fprintf(stderr, " xkb: %d\n", use_xkb_modtweak);
+ fprintf(stderr, " skipkeys: %s\n",
+ skip_keycodes ? skip_keycodes : "null");
+ fprintf(stderr, " sloppykeys: %d\n", sloppy_keys);
+ fprintf(stderr, " skip_dups: %d\n", skip_duplicate_key_events);
+ fprintf(stderr, " addkeysyms: %d\n", add_keysyms);
+ fprintf(stderr, " xkbcompat: %d\n", xkbcompat);
+ fprintf(stderr, " clearmods: %d\n", clear_mods);
+ fprintf(stderr, " remap: %s\n", remap_file ? remap_file
+ : "null");
+ fprintf(stderr, " norepeat: %d\n", no_autorepeat);
+ fprintf(stderr, " norepeatcnt:%d\n", no_repeat_countdown);
+ fprintf(stderr, " nofb: %d\n", nofb);
+ fprintf(stderr, " watchbell: %d\n", watch_bell);
+ fprintf(stderr, " watchsel: %d\n", watch_selection);
+ fprintf(stderr, " watchprim: %d\n", watch_primary);
+ fprintf(stderr, " seldir: %s\n", sel_direction ?
+ sel_direction : "null");
+ fprintf(stderr, " cursor: %d\n", show_cursor);
+ fprintf(stderr, " multicurs: %d\n", show_multiple_cursors);
+ fprintf(stderr, " curs_mode: %s\n", multiple_cursors_mode
+ ? multiple_cursors_mode : "null");
+ fprintf(stderr, " arrow: %d\n", alt_arrow);
+ fprintf(stderr, " xfixes: %d\n", use_xfixes);
+ fprintf(stderr, " alphacut: %d\n", alpha_threshold);
+ fprintf(stderr, " alphafrac: %.2f\n", alpha_frac);
+ fprintf(stderr, " alpharemove:%d\n", alpha_remove);
+ fprintf(stderr, " alphablend: %d\n", alpha_blend);
+ fprintf(stderr, " cursorshape:%d\n", cursor_shape_updates);
+ fprintf(stderr, " cursorpos: %d\n", cursor_pos_updates);
+ fprintf(stderr, " xwarpptr: %d\n", use_xwarppointer);
+ fprintf(stderr, " buttonmap: %s\n", pointer_remap
+ ? pointer_remap : "null");
+ fprintf(stderr, " dragging: %d\n", show_dragging);
+ fprintf(stderr, " wireframe: %s\n", wireframe_str ?
+ wireframe_str : WIREFRAME_PARMS);
+ fprintf(stderr, " wirecopy: %s\n", wireframe_copyrect ?
+ wireframe_copyrect : wireframe_copyrect_default);
+ fprintf(stderr, " scrollcopy: %s\n", scroll_copyrect ?
+ scroll_copyrect : scroll_copyrect_default);
+ fprintf(stderr, " scr_area: %d\n", scrollcopyrect_min_area);
+ fprintf(stderr, " scr_skip: %s\n", scroll_skip_str ?
+ scroll_skip_str : scroll_skip_str0);
+ fprintf(stderr, " scr_inc: %s\n", scroll_good_str ?
+ scroll_good_str : scroll_good_str0);
+ fprintf(stderr, " scr_keys: %s\n", scroll_key_list_str ?
+ scroll_key_list_str : "null");
+ fprintf(stderr, " scr_term: %s\n", scroll_term_str ?
+ scroll_term_str : "null");
+ fprintf(stderr, " scr_keyrep: %s\n", max_keyrepeat_str ?
+ max_keyrepeat_str : "null");
+ fprintf(stderr, " scr_parms: %s\n", scroll_copyrect_str ?
+ scroll_copyrect_str : SCROLL_COPYRECT_PARMS);
+ fprintf(stderr, " fixscreen: %s\n", screen_fixup_str ?
+ screen_fixup_str : "null");
+ fprintf(stderr, " noxrecord: %d\n", noxrecord);
+ fprintf(stderr, " grabbuster: %d\n", grab_buster);
+ fprintf(stderr, " ptr_mode: %d\n", pointer_mode);
+ fprintf(stderr, " inputskip: %d\n", ui_skip);
+ fprintf(stderr, " speeds: %s\n", speeds_str
+ ? speeds_str : "null");
+ fprintf(stderr, " wmdt: %s\n", wmdt_str
+ ? wmdt_str : "null");
+ fprintf(stderr, " debug_ptr: %d\n", debug_pointer);
+ fprintf(stderr, " debug_key: %d\n", debug_keyboard);
+ fprintf(stderr, " defer: %d\n", defer_update);
+ fprintf(stderr, " waitms: %d\n", waitms);
+ fprintf(stderr, " wait_ui: %.2f\n", wait_ui);
+ fprintf(stderr, " nowait_bog: %d\n", !wait_bog);
+ fprintf(stderr, " readtimeout: %d\n", rfbMaxClientWait/1000);
+ fprintf(stderr, " take_naps: %d\n", take_naps);
+ fprintf(stderr, " sb: %d\n", screen_blank);
+ fprintf(stderr, " xdamage: %d\n", use_xdamage);
+ fprintf(stderr, " xd_area: %d\n", xdamage_max_area);
+ fprintf(stderr, " xd_mem: %.3f\n", xdamage_memory);
+ fprintf(stderr, " sigpipe: %s\n", sigpipe
+ ? sigpipe : "null");
+ fprintf(stderr, " threads: %d\n", use_threads);
+ fprintf(stderr, " fs_frac: %.2f\n", fs_frac);
+ fprintf(stderr, " gaps_fill: %d\n", gaps_fill);
+ fprintf(stderr, " grow_fill: %d\n", grow_fill);
+ fprintf(stderr, " tile_fuzz: %d\n", tile_fuzz);
+ fprintf(stderr, " snapfb: %d\n", use_snapfb);
+ fprintf(stderr, " rawfb: %s\n", raw_fb_str
+ ? raw_fb_str : "null");
+ fprintf(stderr, " pipeinput: %s\n", pipeinput_str
+ ? pipeinput_str : "null");
+ fprintf(stderr, " gui: %d\n", launch_gui);
+ fprintf(stderr, " gui_mode: %s\n", gui_str
+ ? gui_str : "null");
+ fprintf(stderr, " noremote: %d\n", !accept_remote_cmds);
+ fprintf(stderr, " unsafe: %d\n", !safe_remote_only);
+ fprintf(stderr, " privremote: %d\n", priv_remote);
+ fprintf(stderr, " safer: %d\n", more_safe);
+ fprintf(stderr, " nocmds: %d\n", no_external_cmds);
+ fprintf(stderr, " deny_all: %d\n", deny_all);
+ fprintf(stderr, "\n");
+ rfbLog("x11vnc version: %s\n", lastmod);
+}
+
void nopassword_warning_msg(int gotloc) {
char str1[] =
@@ -32308,8 +32564,15 @@ void nopassword_warning_msg(int gotloc) {
"#@ Make sure any -rfbauth and -passwdfile password files @#\n"
"#@ cannot be read by untrusted users. @#\n"
"#@ @#\n"
+"#@ Even with a password, the subsequent VNC traffic is @#\n"
+"#@ sent in the clear. Consider tunnelling via ssh(1): @#\n"
+"#@ @#\n"
+"#@ http://www.karlrunge.com/x11vnc/#tunnelling @#\n"
+"#@ @#\n"
"#@ Please Read the documention for more info about @#\n"
"#@ passwords, security, and encryption. @#\n"
+"#@ @#\n"
+"#@ http://www.karlrunge.com/x11vnc/#faq-passwd @#\n"
;
char str3[] =
"#@ @#\n"
@@ -32333,15 +32596,18 @@ void nopassword_warning_msg(int gotloc) {
fprintf(stderr, "%s", str1);
fflush(stderr);
+#if !PASSWD_REQUIRED
usleep(2000 * 1000);
+#endif
fprintf(stderr, "%s", str2);
if (gotloc) {
fprintf(stderr, "%s", str3);
}
fprintf(stderr, "%s", str4);
fflush(stderr);
+#if !PASSWD_REQUIRED
usleep(500 * 1000);
-
+#endif
}
int main(int argc, char* argv[]) {
@@ -32355,7 +32621,6 @@ 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 running_without_passwd = 0;
int vpw_loc = -1;
int dt = 0, bg = 0;
int got_rfbwait = 0;
@@ -33018,16 +33283,16 @@ int main(int argc, char* argv[]) {
}
}
}
- if (!got_passwd && !got_rfbauth && !got_passwdfile && !nopw) {
- running_without_passwd = 1;
- }
if (launch_gui && (query_cmd || remote_cmd)) {
launch_gui = 0;
gui_str = NULL;
}
+ if (more_safe) {
+ launch_gui = 0;
+ }
if (launch_gui) {
int sleep = 0;
- if (running_without_passwd && !quiet) {
+ if (!got_passwd && !got_rfbauth && !got_passwdfile && !nopw) {
sleep = 3;
}
do_gui(gui_str, sleep);
@@ -33207,8 +33472,23 @@ int main(int argc, char* argv[]) {
exit(1);
}
- if (!got_passwd && !got_rfbauth && !got_passwdfile && !nopw) {
- nopassword_warning_msg(got_localhost);
+ if (!got_passwd && !got_rfbauth && !got_passwdfile) {
+ char message[] =
+ "-rfbauth, -passwdfile, or -passwd password required.";
+ if (! nopw) {
+ nopassword_warning_msg(got_localhost);
+ }
+#if PASSWD_REQUIRED
+ rfbLog("%s\n", message);
+ exit(1);
+#endif
+#if PASSWD_UNLESS_NOPW
+ if (! nopw) {
+ rfbLog("%s\n", message);
+ exit(1);
+ }
+#endif
+ if (0) message[0] = '\0';
}
if (more_safe) {
@@ -33340,171 +33620,7 @@ int main(int argc, char* argv[]) {
initialize_crash_handler();
if (! quiet) {
- fprintf(stderr, "\n");
- fprintf(stderr, "Settings:\n");
- fprintf(stderr, " display: %s\n", use_dpy ? use_dpy
- : "null");
- fprintf(stderr, " authfile: %s\n", auth_file ? auth_file
- : "null");
- fprintf(stderr, " subwin: 0x%lx\n", subwin);
- fprintf(stderr, " -sid mode: %d\n", rootshift);
- fprintf(stderr, " clip: %s\n", clip_str ? clip_str
- : "null");
- fprintf(stderr, " flashcmap: %d\n", flash_cmap);
- fprintf(stderr, " shiftcmap: %d\n", shift_cmap);
- fprintf(stderr, " force_idx: %d\n", force_indexed_color);
- fprintf(stderr, " visual: %s\n", visual_str ? visual_str
- : "null");
- fprintf(stderr, " overlay: %d\n", overlay);
- fprintf(stderr, " ovl_cursor: %d\n", overlay_cursor);
- fprintf(stderr, " scaling: %d %.5f\n", scaling, scale_fac);
- fprintf(stderr, " viewonly: %d\n", view_only);
- fprintf(stderr, " shared: %d\n", shared);
- fprintf(stderr, " conn_once: %d\n", connect_once);
- fprintf(stderr, " timeout: %d\n", first_conn_timeout);
- fprintf(stderr, " inetd: %d\n", inetd);
- fprintf(stderr, " http: %d\n", try_http);
- fprintf(stderr, " connect: %s\n", client_connect
- ? client_connect : "null");
- fprintf(stderr, " connectfile %s\n", client_connect_file
- ? client_connect_file : "null");
- fprintf(stderr, " vnc_conn: %d\n", vnc_connect);
- fprintf(stderr, " allow: %s\n", allow_list ? allow_list
- : "null");
- fprintf(stderr, " input: %s\n", allowed_input_str
- ? allowed_input_str : "null");
- fprintf(stderr, " passfile: %s\n", passwdfile ? passwdfile
- : "null");
- fprintf(stderr, " accept: %s\n", accept_cmd ? accept_cmd
- : "null");
- fprintf(stderr, " gone: %s\n", gone_cmd ? gone_cmd
- : "null");
- fprintf(stderr, " users: %s\n", users_list ? users_list
- : "null");
- fprintf(stderr, " using_shm: %d\n", using_shm);
- fprintf(stderr, " flipbytes: %d\n", flip_byte_order);
- fprintf(stderr, " onetile: %d\n", single_copytile);
- fprintf(stderr, " solid: %s\n", solid_str
- ? solid_str : "null");
- fprintf(stderr, " blackout: %s\n", blackout_str
- ? blackout_str : "null");
- fprintf(stderr, " xinerama: %d\n", xinerama);
- fprintf(stderr, " xtrap: %d\n", xtrap_input);
- fprintf(stderr, " xrandr: %d\n", xrandr);
- fprintf(stderr, " xrandrmode: %s\n", xrandr_mode ? xrandr_mode
- : "null");
- fprintf(stderr, " padgeom: %s\n", pad_geometry
- ? pad_geometry : "null");
- fprintf(stderr, " logfile: %s\n", logfile ? logfile
- : "null");
- fprintf(stderr, " logappend: %d\n", logfile_append);
- fprintf(stderr, " flag: %s\n", flagfile ? flagfile
- : "null");
- fprintf(stderr, " rc_file: \"%s\"\n", rc_rcfile ? rc_rcfile
- : "null");
- fprintf(stderr, " norc: %d\n", rc_norc);
- fprintf(stderr, " dbg: %d\n", crash_debug);
- fprintf(stderr, " bg: %d\n", bg);
- fprintf(stderr, " mod_tweak: %d\n", use_modifier_tweak);
- fprintf(stderr, " isolevel3: %d\n", use_iso_level3);
- fprintf(stderr, " xkb: %d\n", use_xkb_modtweak);
- fprintf(stderr, " skipkeys: %s\n",
- skip_keycodes ? skip_keycodes : "null");
- fprintf(stderr, " sloppykeys: %d\n", sloppy_keys);
- fprintf(stderr, " skip_dups: %d\n", skip_duplicate_key_events);
- fprintf(stderr, " addkeysyms: %d\n", add_keysyms);
- fprintf(stderr, " xkbcompat: %d\n", xkbcompat);
- fprintf(stderr, " clearmods: %d\n", clear_mods);
- fprintf(stderr, " remap: %s\n", remap_file ? remap_file
- : "null");
- fprintf(stderr, " norepeat: %d\n", no_autorepeat);
- fprintf(stderr, " norepeatcnt:%d\n", no_repeat_countdown);
- fprintf(stderr, " nofb: %d\n", nofb);
- fprintf(stderr, " watchbell: %d\n", watch_bell);
- fprintf(stderr, " watchsel: %d\n", watch_selection);
- fprintf(stderr, " watchprim: %d\n", watch_primary);
- fprintf(stderr, " seldir: %s\n", sel_direction ?
- sel_direction : "null");
- fprintf(stderr, " cursor: %d\n", show_cursor);
- fprintf(stderr, " multicurs: %d\n", show_multiple_cursors);
- fprintf(stderr, " curs_mode: %s\n", multiple_cursors_mode
- ? multiple_cursors_mode : "null");
- fprintf(stderr, " arrow: %d\n", alt_arrow);
- fprintf(stderr, " xfixes: %d\n", use_xfixes);
- fprintf(stderr, " alphacut: %d\n", alpha_threshold);
- fprintf(stderr, " alphafrac: %.2f\n", alpha_frac);
- fprintf(stderr, " alpharemove:%d\n", alpha_remove);
- fprintf(stderr, " alphablend: %d\n", alpha_blend);
- fprintf(stderr, " cursorshape:%d\n", cursor_shape_updates);
- fprintf(stderr, " cursorpos: %d\n", cursor_pos_updates);
- fprintf(stderr, " xwarpptr: %d\n", use_xwarppointer);
- fprintf(stderr, " buttonmap: %s\n", pointer_remap
- ? pointer_remap : "null");
- fprintf(stderr, " dragging: %d\n", show_dragging);
- fprintf(stderr, " wireframe: %s\n", wireframe_str ?
- wireframe_str : WIREFRAME_PARMS);
- fprintf(stderr, " wirecopy: %s\n", wireframe_copyrect ?
- wireframe_copyrect : wireframe_copyrect_default);
- fprintf(stderr, " scrollcopy: %s\n", scroll_copyrect ?
- scroll_copyrect : scroll_copyrect_default);
- fprintf(stderr, " scr_area: %d\n", scrollcopyrect_min_area);
- fprintf(stderr, " scr_skip: %s\n", scroll_skip_str ?
- scroll_skip_str : scroll_skip_str0);
- fprintf(stderr, " scr_inc: %s\n", scroll_good_str ?
- scroll_good_str : scroll_good_str0);
- fprintf(stderr, " scr_keys: %s\n", scroll_key_list_str ?
- scroll_key_list_str : "null");
- fprintf(stderr, " scr_term: %s\n", scroll_term_str ?
- scroll_term_str : "null");
- fprintf(stderr, " scr_keyrep: %s\n", max_keyrepeat_str ?
- max_keyrepeat_str : "null");
- fprintf(stderr, " scr_parms: %s\n", scroll_copyrect_str ?
- scroll_copyrect_str : SCROLL_COPYRECT_PARMS);
- fprintf(stderr, " fixscreen: %s\n", screen_fixup_str ?
- screen_fixup_str : "null");
- fprintf(stderr, " noxrecord: %d\n", noxrecord);
- fprintf(stderr, " grabbuster: %d\n", grab_buster);
- fprintf(stderr, " ptr_mode: %d\n", pointer_mode);
- fprintf(stderr, " inputskip: %d\n", ui_skip);
- fprintf(stderr, " speeds: %s\n", speeds_str
- ? speeds_str : "null");
- fprintf(stderr, " wmdt: %s\n", wmdt_str
- ? wmdt_str : "null");
- fprintf(stderr, " debug_ptr: %d\n", debug_pointer);
- fprintf(stderr, " debug_key: %d\n", debug_keyboard);
- fprintf(stderr, " defer: %d\n", defer_update);
- fprintf(stderr, " waitms: %d\n", waitms);
- fprintf(stderr, " wait_ui: %.2f\n", wait_ui);
- fprintf(stderr, " nowait_bog: %d\n", !wait_bog);
- fprintf(stderr, " readtimeout: %d\n", rfbMaxClientWait/1000);
- fprintf(stderr, " take_naps: %d\n", take_naps);
- fprintf(stderr, " sb: %d\n", screen_blank);
- fprintf(stderr, " xdamage: %d\n", use_xdamage);
- fprintf(stderr, " xd_area: %d\n", xdamage_max_area);
- fprintf(stderr, " xd_mem: %.3f\n", xdamage_memory);
- fprintf(stderr, " sigpipe: %s\n", sigpipe
- ? sigpipe : "null");
- fprintf(stderr, " threads: %d\n", use_threads);
- fprintf(stderr, " fs_frac: %.2f\n", fs_frac);
- fprintf(stderr, " gaps_fill: %d\n", gaps_fill);
- fprintf(stderr, " grow_fill: %d\n", grow_fill);
- fprintf(stderr, " tile_fuzz: %d\n", tile_fuzz);
- fprintf(stderr, " snapfb: %d\n", use_snapfb);
- fprintf(stderr, " rawfb: %s\n", raw_fb_str
- ? raw_fb_str : "null");
- fprintf(stderr, " pipeinput: %s\n", pipeinput_str
- ? pipeinput_str : "null");
- fprintf(stderr, " gui: %d\n", launch_gui);
- fprintf(stderr, " gui_mode: %s\n", gui_str
- ? gui_str : "null");
- fprintf(stderr, " noremote: %d\n", !accept_remote_cmds);
- fprintf(stderr, " unsafe: %d\n", !safe_remote_only);
- fprintf(stderr, " privremote: %d\n", priv_remote);
- fprintf(stderr, " safer: %d\n", more_safe);
- fprintf(stderr, " nocmds: %d\n", no_external_cmds);
- fprintf(stderr, " deny_all: %d\n", deny_all);
- fprintf(stderr, "\n");
- rfbLog("x11vnc version: %s\n", lastmod);
+ print_settings(try_http, bg, gui_str);
} else {
rfbLogEnable(0);
}