diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | x11vnc/ChangeLog | 7 | ||||
-rw-r--r-- | x11vnc/README | 1771 | ||||
-rwxr-xr-x | x11vnc/tkx11vnc | 160 | ||||
-rw-r--r-- | x11vnc/tkx11vnc.h | 160 | ||||
-rw-r--r-- | x11vnc/x11vnc.1 | 37 | ||||
-rw-r--r-- | x11vnc/x11vnc.c | 297 |
7 files changed, 1483 insertions, 952 deletions
@@ -1,3 +1,6 @@ +2005-10-22 Karl Runge <runge@karlrunge.com> + * x11vnc: -filexfer file transfer, -slow_fb, -blackout noptr... + 2005-10-06 Johannes E. Schindelin <Johannes.Schindelin@gmx.de> * many a files: kill BackChannel and CustomClientMessage support. The new extension mechanism is much more versatile. diff --git a/x11vnc/ChangeLog b/x11vnc/ChangeLog index 2c4d32c..752bd0e 100644 --- a/x11vnc/ChangeLog +++ b/x11vnc/ChangeLog @@ -1,3 +1,10 @@ +2005-10-22 Karl Runge <runge@karlrunge.com> + * add tightVNC FileTransfer (-filexfer) and -DFILEXFER=1 + * -slow_fb for special purpose infrequent polling. + * make -blackout work with copyrect clipping. + * -blackout noptr,WxH+X+Y,... to prevent pointer from going + into a blacked out region. + 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. diff --git a/x11vnc/README b/x11vnc/README index b557a69..7711338 100644 --- a/x11vnc/README +++ b/x11vnc/README @@ -1,5 +1,5 @@ -x11vnc README file Date: Sun Jul 17 21:27:25 EDT 2005 +x11vnc README file Date: Sat Oct 22 21:30:39 EDT 2005 The following information is taken from these URLs: @@ -86,8 +86,9 @@ x11vnc: a VNC server for real X displays Step 1. By some means log in to far-away.east and get a command shell running there. You can use ssh, rlogin, telnet, or any other method to - do this. x11vnc needs to be run on the same machine the X server - process is running on (otherwise things would be extremely slow). + do this. The x11vnc process needs to be run on the same machine the X + server process is running on (otherwise things would be extremely + slow). Step 2. In that far-away.east shell (with command prompt "far-away>" in this example) run x11vnc directed at the far-away.east X session @@ -99,17 +100,20 @@ x11vnc: a VNC server for real X displays using -display. This step attaches x11vnc to the far-away.east:0 X display (i.e. no viewer clients yet). - To get X11 permissions right, you may also need to set the XAUTHORITY - environment variable (or use the [13]-auth option) to point to the - correct MIT-MAGIC-COOKIE file (e.g. /home/joe/.Xauthority). More on - this [14]below. + Common Gotcha: To get X11 permissions right, you may also need to set + the XAUTHORITY environment variable (or use the [13]-auth option) to + point to the correct MIT-MAGIC-COOKIE file (e.g. + /home/joe/.Xauthority). If x11vnc does not have the authority to + connect to the display it exits immediately. More on how to fix this + [14]below. If you suspect an X11 permissions problem do this simple test: while sitting at the physical X display open a terminal window - (gnome-terminal, xterm, etc). You should be able to start x11vnc - without any need for command line options in that terminal. If that - works OK then you know X11 permissions are the only thing preventing - it from working when you try to start x11vnc via a remote shell. + (gnome-terminal, xterm, etc). You should be able to run x11vnc + successfully in that terminal without any need for command line + options. If that works OK then you know X11 permissions are the only + thing preventing it from working when you try to start x11vnc via a + remote shell. Then fix this with the tips [15]below. When x11vnc starts up there will then be much chatter printed out, until it finally says something like: @@ -128,8 +132,8 @@ x11vnc: a VNC server for real X displays viewers for Unix, Windows, MacOS, Java-enabled web browsers, and even for PDA's like the Palm Pilot! You can use any of them to connect to x11vnc (see the above VNC links under "Background:" on how to obtain a - viewer for your platform or see [15]this FAQ. For Solaris, vncviewer - is available in the [16]Companion CD package SFWvnc ). + viewer for your platform or see [16]this FAQ. For Solaris, vncviewer + is available in the [17]Companion CD package SFWvnc ). In this example we'll use the Unix vncviewer program on sitting-here by typing the following command in a second terminal window: @@ -139,13 +143,13 @@ x11vnc: a VNC server for real X displays That should pop up a viewer window on sitting-here.west showing and allowing interaction with the far-away.east:0 X11 desktop. Pretty nifty! When finished, exit the viewer: the remote x11vnc process will - shutdown automatically (or you can use the [17]-forever option to have + shutdown automatically (or you can use the [18]-forever option to have it wait for additional viewer connections). Shortcut: Of course if you left x11vnc running on far-away.east:0 in a - terminal window with the [18]-forever option or as a [19]service, + terminal window with the [19]-forever option or as a [20]service, you'd only have to do Step 3 as you moved around. Be sure to use a VNC - [20]Password or [21]other measures if you do that. + [21]Password or [22]other measures if you do that. Desktop Sharing: The above more or less assumed nobody was sitting at @@ -161,7 +165,7 @@ x11vnc: a VNC server for real X displays For these cases it should be obvious how it is done. The above steps will work, but more easily the user sitting at far-away.east:0 simply starts up x11vnc from a terminal window, after which the guests would - start their VNC viewers. For this usage mode the "[22]-connect + start their VNC viewers. For this usage mode the "[23]-connect host1,host2" option may be of use automatically connect to vncviewers in "-listen" mode on the list of hosts. _________________________________________________________________ @@ -189,13 +193,13 @@ splay :0' Note that "x11vnc -localhost ..." limits incoming vncviewer connections to only those from the same machine. This is very natural for ssh tunnelling (the redirection appears to come from the same - machine). Use of a [23]VNC password is also strongly recommended. + machine). Use of a [24]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 [24]inetd(1)). See the 3rd - script example [25]below for more info. + far-away.east or having it started by [25]inetd(1)). See the 3rd + script example [26]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 @@ -204,7 +208,7 @@ splay :0' (ssh, rsh, etc.) to the workstation machine 'otherhost' and then start up x11vnc on it (if it isn't already running). For an automatic way to use a gateway and have all the network traffic encrypted (including - inside the firewall) see [26]chaining ssh's below + inside the firewall) see [27]chaining ssh's below _________________________________________________________________ @@ -213,7 +217,7 @@ splay :0' above port and display numbers may change a bit (e.g. -> 5901 and :1). However, if you "know" port 5900 will be free on the local and remote machines, you can easily automate the above two steps by using the - x11vnc option [27]-bg (forks into background after connection to the + x11vnc option [28]-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. _________________________________________________________________ @@ -244,7 +248,7 @@ done #2. Another method is to start the VNC viewer in listen mode "vncviewer -listen" and have x11vnc initiate a reverse connection - using the [28]-connect option: + using the [29]-connect option: #!/bin/sh # usage: x11vnc_ssh <host>:<xdisplay> # e.g.: x11vnc_ssh snoopy.peanuts.com:0 @@ -286,7 +290,7 @@ export VNC_VIA_CMD vncviewer -via $host localhost:0 # must be TightVNC vncviewer. Of course if you already have the x11vnc running waiting for - connections (or have it started out of [29]inetd(1)), you can simply + connections (or have it started out of [30]inetd(1)), you can simply use the TightVNC "vncviewer -via gateway host:port" in its default mode to provide secure ssh tunnelling. _________________________________________________________________ @@ -294,11 +298,11 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. VNC password file: Also note in the #1. example script that the - [30]option "-rfbauth .vnc/passwd" provides additional protection by + [31]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 [31]-storepasswd + vncpasswd or storepasswd programs, or the x11vnc [32]-storepasswd option can be used to create the password file. x11vnc also has the - slightly less secure [32]-passwdfile and "-passwd XXXXX" [33]options + slightly less secure [33]-passwdfile and "-passwd XXXXX" [34]options to specify passwords. Very Important: It is up to YOU to tell x11vnc to use password @@ -306,7 +310,7 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. automatically or force you to. The same goes for encrypting the channel between the viewer and x11vnc: it is up to you to use ssh, stunnel, VPN, etc. For additional safety, also look into the -allow - and -localhost [34]options and building x11vnc with [35]tcp_wrappers + and -localhost [35]options and building x11vnc with [36]tcp_wrappers support to limit host access. @@ -350,27 +354,27 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ Downloading x11vnc: - x11vnc is a contributed program to the [36]LibVNCServer project at + x11vnc is a contributed program to the [37]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 [37]x11vnc-0.7.2.tar.gz source package is - released (recommended download) . The [38]x11vnc 0.7.2 release notes. + link. As of Jul 2005, the [38]x11vnc-0.7.2.tar.gz source package is + released (recommended download) . The [39]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 [39]x11vnc-0.7.3.tar.gz tarball to build the most up to + bleeding edge [40]x11vnc-0.7.3.tar.gz tarball to build the most up to date one. - Precompiled Binaries/Packages: See the [40]FAQ below for information + Precompiled Binaries/Packages: See the [41]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: - * [41]http://www.tightvnc.com/download.html - * [42]http://www.realvnc.com/download-free.html - * [43]http://sourceforge.net/projects/cotvnc/ + * [42]http://www.tightvnc.com/download.html + * [43]http://www.realvnc.com/download-free.html + * [44]http://sourceforge.net/projects/cotvnc/ More tools: Here is a rsh/ssh wrapper script rx11vnc that attempts to @@ -381,8 +385,8 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ rx11vnc.pl that attempts to tunnel the vnc traffic through an ssh port redirection (and does not assume port 5900 is free). Have a look at them to see what they do and customize as needed: - * [44]rx11vnc wrapper script - * [45]rx11vnc.pl wrapper script to tunnel traffic thru ssh + * [45]rx11vnc wrapper script + * [46]rx11vnc.pl wrapper script to tunnel traffic thru ssh _________________________________________________________________ @@ -405,21 +409,21 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ # cp ./x11vnc/x11vnc $HOME/bin Or do make install, it will probably install to /usr/local/bin (run - ./configure --help for information on customizing your configuration). - You can now run it via typing "x11vnc", "x11vnc -help", "x11vnc - -forever -shared -display :0", etc. + ./configure --help for information on customizing your configuration, + e.g. --prefix=/my/place). You can now run it via typing "x11vnc", + "x11vnc -help | more", "x11vnc -forever -shared -display :0", etc. 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 - [46]http://www.sunfreeware.com/ However, one user reports it does + [47]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 - [47]FAQ's on building. + [48]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 @@ -477,9 +481,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 - [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 + [49]ftp://ftp.uu.net/graphics/jpeg/ and zlib at + [50]http://www.gzip.org/zlib/. See also + [51]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. @@ -545,7 +549,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 [51]this workaround FAQ. + OS's, see [52]this workaround FAQ. Building on FreeBSD, OpenBSD, ...: The jpeg libraries seem to be in @@ -583,19 +587,19 @@ 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: - [52]x11vnc-0.7.3.tar.gz + [53]x11vnc-0.7.3.tar.gz There are also some Linux, Solaris, and other OS test binaries - [53]here. Please kick the tires and report bugs, performance - regressions, undesired behavior, etc. to [54]me. + [54]here. Please kick the tires and report bugs, performance + regressions, undesired behavior, etc. to [55]me. - Here are some notes about features added in 0.7.2. Checking them is - still useful and appreciated: + Here are some notes about features added in 0.7.2. Checking/Testing + them is still useful and appreciated: - Note that the [55]X DAMAGE feature will be on by default and so I am + Note that the [56]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 + [57]wireframe move/resize, the [58]wireframe copyrect translation, and + the [59]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 @@ -631,10 +635,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 - [59]-solid [color] option that works on recent GNOME, KDE, and CDE and + [60]-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 [60]TightVNC encoding gives the best response for my + I also find the [61]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. @@ -646,16 +650,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 "[61]-rfbport NNNN" + far-away.east:1. You can force the port with the "[62]-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 [62]command line options. Useful options are, e.g., -scale to + via its [63]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 - [63]-storepasswd option can be used to create the password file). + [64]-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 @@ -682,15 +686,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 [64]even more interesting + window manager decorations. There will be an [65]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) - [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 + [66]SunRay session (Please remember to use [67]-nap and maybe + [68]-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 @@ -713,7 +717,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 - [68]-rfbport NNNN option. + [69]-rfbport NNNN option. SunRay Gotcha #2: If you get an error like: shmget(tile) failed. @@ -726,7 +730,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 [69]shm_clear that finds the + the ipcrm command. I wrote a script [70]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 @@ -740,7 +744,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 - [70]-scrollcopyrect and [71]-wireframe speedups using the CopyRect + [71]-scrollcopyrect and [72]-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 @@ -785,16 +789,17 @@ make It's not exactly clear why one would want to do this (perhaps to take advantage of an x11vnc feature, such as framebuffer scaling), 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 [72]this FAQ for details. + be of use for special purpose applications. + Also, a faster and more accurate way is to use the "dummy" + XFree86/Xorg device driver (or our Xdummy wrapper script). See + [73]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" [73]options, however, for a partial hack for + X" and "-cursor some" [74]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 [74]-overlay option is also supplied. A similar thing is done + the [75]-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 @@ -806,16 +811,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 [75]-scrollcopyrect option + * The scroll detection algorithm for the [76]-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 [76]contact me if you have any questions, + Please feel free to [77]contact me if you have any questions, problems, or comments about x11vnc, etc. - Also, some people ask if they can make a donation, see [77]this link + Also, some people ask if they can make a donation, see [78]this link for that. _________________________________________________________________ @@ -824,288 +829,288 @@ make [Building and Starting] - [78]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed + [79]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? - [79]Q-2: I can't get x11vnc and/or libvncserver to compile. + [80]Q-2: I can't get x11vnc and/or libvncserver to compile. - [80]Q-3: I just built x11vnc successfully, but when I use it my + [81]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). - [81]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old + [82]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old Unix/Linux) and it doesn't compile! - [82]Q-5: Where can I get a precompiled x11vnc binary for my Operating + [83]Q-5: Where can I get a precompiled x11vnc binary for my Operating System? - [83]Q-6: Where can I get a VNC Viewer binary (or source code) for the + [84]Q-6: Where can I get a VNC Viewer binary (or source code) for the Operating System I will be viewing from? - [84]Q-7: How can I see all of x11vnc's command line options and + [85]Q-7: How can I see all of x11vnc's command line options and documentation on how to use them? - [85]Q-8: I don't like typing arcane command line options every time I + [86]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? - [86]Q-9: How can I get the GUI to run in the System Tray, or at least + [87]Q-9: How can I get the GUI to run in the System Tray, or at least be a smaller, simpler icon? - [87]Q-10: Can I make x11vnc more quiet and also go into the background + [88]Q-10: Can I make x11vnc more quiet and also go into the background after starting up? - [88]Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies + [89]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. - [89]Q-12: Are there any build-time customizations possible, e.g. + [90]Q-12: Are there any build-time customizations possible, e.g. change defaults, create a smaller binary, etc? [Win2VNC Related] - [90]Q-13: I have two separate machine displays in front of me, one + [91]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? - [91]Q-14: I am running Win2VNC on my Windows machine and "x11vnc + [92]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] - [92]Q-15: The X display I run x11vnc on is only 8 bits per pixel (bpp) + [93]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. - [93]Q-16: Color problems: Why are the colors for some windows + [94]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. - [94]Q-17: How do I figure out the window id to supply to the -id + [95]Q-17: How do I figure out the window id to supply to the -id windowid option? - [95]Q-18: Why don't menus or other transient windows come up when I am + [96]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? - [96]Q-19: My X display is depth 24 at 24bpp (instead of the normal + [97]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] - [97]Q-20: Can I use x11vnc to view and interact with an Xterminal + [98]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? - [98]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file) + [99]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] - [99]Q-22: How do I stop x11vnc once it is running in the background? + [100]Q-22: How do I stop x11vnc once it is running in the background? - [100]Q-23: Can I change settings in x11vnc without having to restart + [101]Q-23: Can I change settings in x11vnc without having to restart it? Can I remote control it? [Security and Permissions] - [101]Q-24: How do I create a VNC password for use with x11vnc? + [102]Q-24: How do I create a VNC password for use with x11vnc? - [102]Q-25: Can I have two passwords for VNC viewers, one for full + [103]Q-25: Can I have two passwords for VNC viewers, one for full access and the other for view-only access to the display? - [103]Q-26: Can I fine tune what types of user input are allowed? E.g. + [104]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? - [104]Q-27: Why does x11vnc exit as soon as the VNC viewer disconnects? + [105]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? - [105]Q-28: Can I limit which machines incoming VNC clients can connect + [106]Q-28: Can I limit which machines incoming VNC clients can connect from? - [106]Q-29: How do I build x11vnc/libvncserver with libwrap + [107]Q-29: How do I build x11vnc/libvncserver with libwrap (tcp_wrappers) support? - [107]Q-30: Can I have x11vnc only listen on one network interface + [108]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? - [108]Q-31: Now that -localhost implies listening only on the loopback + [109]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? - [109]Q-32: How can I tunnel my connection to x11vnc via an encrypted + [110]Q-32: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - [110]Q-33: How can I tunnel my connection to x11vnc via an encrypted + [111]Q-33: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [111]Q-34: Can I prompt the user at the local X display whether the + [112]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? - [112]Q-35: Does x11vnc support Unix usernames and passwords? Can I + [113]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? - [113]Q-36: I start x11vnc as root because it is launched via inetd(1) + [114]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? - [114]Q-37: I use a screen-lock when I leave my workstation (e.g. + [115]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? - [115]Q-38: Can I have x11vnc automatically lock the screen when I + [116]Q-38: Can I have x11vnc automatically lock the screen when I disconnect the VNC viewer? [Display Managers and Services] - [116]Q-39: How can I run x11vnc as a "service" that is always + [117]Q-39: How can I run x11vnc as a "service" that is always available? - [117]Q-40: How can I use x11vnc to connect to an X login screen like + [118]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). - [118]Q-41: Can I run x11vnc out of inetd(1)? How about xinetd(1)? + [119]Q-41: Can I run x11vnc out of inetd(1)? How about xinetd(1)? - [119]Q-42: How do I make x11vnc work with the Java VNC viewer applet + [120]Q-42: How do I make x11vnc work with the Java VNC viewer applet in a web browser? - [120]Q-43: Are reverse connections (i.e. the VNC server connecting to + [121]Q-43: Are reverse connections (i.e. the VNC server connecting to the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported? - [121]Q-44: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a + [122]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). - [122]Q-45: How can I use x11vnc on "headless" machines? Why might I + [123]Q-45: How can I use x11vnc on "headless" machines? Why might I want to? [Resource Usage and Performance] - [123]Q-46: I have lots of memory, but why does x11vnc fail with + [124]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)? - [124]Q-47: How can I make x11vnc use less system resources? + [125]Q-47: How can I make x11vnc use less system resources? - [125]Q-48: How can I make x11vnc use MORE system resources? + [126]Q-48: How can I make x11vnc use MORE system resources? - [126]Q-49: I use x11vnc over a slow link with high latency (e.g. + [127]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? - [127]Q-50: Does x11vnc support the X DAMAGE Xserver extension to find + [128]Q-50: Does x11vnc support the X DAMAGE Xserver extension to find modified regions of the screen quickly and efficiently? - [128]Q-51: When I drag windows around with the mouse or scroll up and + [129]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? - [129]Q-52: Why not do something like wireframe animations to avoid the + [130]Q-52: Why not do something like wireframe animations to avoid the windows "lurching" when being moved or resized? - [130]Q-53: Can x11vnc try to apply heuristics to detect when an window + [131]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] - [131]Q-54: Why isn't the mouse cursor shape (the little icon shape + [132]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? - [132]Q-55: When using XFIXES cursorshape mode, some of the cursors + [133]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? - [133]Q-56: In XFIXES mode, are there any hacks to handle cursor + [134]Q-56: In XFIXES mode, are there any hacks to handle cursor transparency ("alpha channel") exactly? [Mouse Pointer] - [134]Q-57: Why does the mouse arrow just stay in one corner in my + [135]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? - [135]Q-58: Can I take advantage of the TightVNC extension to the VNC + [136]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)? - [136]Q-59: Is it possible to swap the mouse buttons (e.g. left-handed + [137]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] - [137]Q-60: How can I get my AltGr and Shift modifiers to work between + [138]Q-60: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - [138]Q-61: When I try to type a "<" (i.e. less than) instead I get ">" + [139]Q-61: When I try to type a "<" (i.e. less than) instead I get ">" (i.e. greater than)! Strangely, typing ">" works OK!! - [139]Q-62: When I try to type a "<" (i.e. less than) instead I get + [140]Q-62: When I try to type a "<" (i.e. less than) instead I get "<," (i.e. an extra comma). - [140]Q-63: I'm using an "international" keyboard (e.g. German "de", or + [141]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? - [141]Q-64: When typing I sometimes get double, triple, or more of my + [142]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? - [142]Q-65: The x11vnc -norepeat mode is in effect, but I still get + [143]Q-65: The x11vnc -norepeat mode is in effect, but I still get repeated keystrokes!! - [143]Q-66: The machine where I run x11vnc has an AltGr key, but the + [144]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? - [144]Q-67: I have a Sun machine I run x11vnc on. Its Sun keyboard has + [145]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) - [145]Q-68: Can I map a keystroke to a mouse button click on the remote + [146]Q-68: Can I map a keystroke to a mouse button click on the remote machine? [Screen Related Issues and Features] - [146]Q-69: The remote display is larger (in number of pixels) than the + [147]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? - [147]Q-70: Does x11vnc support server-side framebuffer scaling? (E.g. + [148]Q-70: Does x11vnc support server-side framebuffer scaling? (E.g. to make the desktop smaller). - [148]Q-71: Does x11vnc work with Xinerama? (i.e. multiple monitors + [149]Q-71: Does x11vnc work with Xinerama? (i.e. multiple monitors joined together to form one big, single screen). - [149]Q-72: Can I use x11vnc on a multi-headed display that is not + [150]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)? - [150]Q-73: Can x11vnc show only a portion of the display? (E.g. for a + [151]Q-73: Can x11vnc show only a portion of the display? (E.g. for a special purpose rfb application). - [151]Q-74: Does x11vnc support the XRANDR (X Resize, Rotate and + [152]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. - [152]Q-75: Why is the view in my VNC viewer completely black? Or why + [153]Q-75: Why is the view in my VNC viewer completely black? Or why is everything flashing around randomly? - [153]Q-76: I use Linux Virtual Consoles (VC's) to implement 'Fast User + [154]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 @@ -1113,12 +1118,12 @@ make otherwise all messed up unless the X session x11vnc is attached to is in the active VC? - [154]Q-77: Can I use x11vnc to view my VMWare session remotely? + [155]Q-77: Can I use x11vnc to view my VMWare session remotely? - [155]Q-78: Can non-X devices (e.g. a raw framebuffer) be viewed and/or + [156]Q-78: Can non-X devices (e.g. a raw framebuffer) be viewed and/or controlled by x11vnc? - [156]Q-79: I am using x11vnc where my local machine has "popup/hidden + [157]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 @@ -1126,13 +1131,13 @@ make [Misc: Clipboard, Beeps, Thanks, etc.] - [157]Q-80: Does the Clipboard/Selection get transferred between the + [158]Q-80: Does the Clipboard/Selection get transferred between the vncviewer and the X display? - [158]Q-81: Why don't I hear the "Beeps" in my X session (e.g. when + [159]Q-81: Why don't I hear the "Beeps" in my X session (e.g. when typing tput bel in an xterm)? - [159]Q-82: Thanks for your program and for your help! Can I make a + [160]Q-82: Thanks for your program and for your help! Can I make a donation? _________________________________________________________________ @@ -1145,7 +1150,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 [160]-display + on). Set your DISPLAY environment variable or use the [161]-display option to specify it. Nearly always the correct value will be ":0" @@ -1154,21 +1159,22 @@ make To make sure X11 permissions are the problem do this simple test: while sitting at the physical X display open a terminal window - (gnome-terminal, xterm, etc). You should be able to start x11vnc - without any need for special steps or command line options in that - terminal. If that works OK then you know X11 permissions are the only - thing preventing it from working when you try to start x11vnc via, - say, a remote shell. + (gnome-terminal, xterm, etc). You should be able to run x11vnc + successfully without any need for special steps or command line + options in that terminal. If that works OK then you know X11 + permissions are the only thing preventing it from working when you try + to start x11vnc via, say, a remote shell. 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 [161]-auth option to + your XAUTHORITY environment variable or use the [162]-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). + or /var/gdm/:0.Xauth or /var/lib/kdm/A:0-crWk72K), or simply be sure + you run x11vnc as the correct user (i.e. the user who is logged into + the X session you wish to view). - The cookie file contains the secret key that allows x11vnc to connect - to the desired X display. + The MIT cookie file contains the secret key that allows x11vnc to + connect to the desired X display. If, say, sshd has set XAUTHORITY to point to a random file it has created for X forwarding that will cause problems. (Under some @@ -1178,16 +1184,17 @@ make solution: x11vnc -display :0 -auth /var/gdm/:0.Xauth - (this is for the display manager gdm, see [162]this faq for other - display manager cookie file names). + (this is for the display manager gdm and requires root permission to + read the gdm cookie file, see [163]this faq for other display manager + cookie file names). - Less safe, but to avoid figuring out where the XAUTHORITY file is, if - the person sitting at the X session types "xhost +localhost" then one - should be able to attach x11vnc to the session (from the same - machine). The person could then type "xhost -localhost" after x11vnc - has connected to go back to the default permissions. Also, for some - situations the "-users lurk=" option may be of use (please read the - documentation on the [163]-users option). + Less safe, but to avoid figuring out where the correct XAUTHORITY file + is, if the person sitting at the physical X session types "xhost + +localhost" then one should be able to attach x11vnc to the session + (from the same machine). The person could then type "xhost -localhost" + after x11vnc has connected to go back to the default permissions. + Also, for some situations the "-users lurk=" option may be of use + (please read the documentation on the [164]-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 @@ -1299,7 +1306,7 @@ h earlier and perhaps non-Solaris): First use the environment settings (CPPFLAGS, LDFLAGS, etc.) in the - above [164]Solaris build script to run the configure command. That + above [165]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 @@ -1325,7 +1332,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 - [165]SunOS 4.x + [166]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 @@ -1335,23 +1342,23 @@ typedef unsigned int in_addr_t; Q-5: Where can I get a precompiled x11vnc binary for my Operating System? - Hopefully the [166]build steps above and [167]FAQ provide enough info + Hopefully the [167]build steps above and [168]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) [168]http://packages.debian.org/x11vnc + Debian: (.deb) [169]http://packages.debian.org/x11vnc - 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 + Slackware: (.tgz) [170]http://www.linuxpackages.net/ Redhat/Fedora: + (.rpm) [171]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm) + [172]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg) + [173]http://www.sunfreeware.com/ wwexptools: (.tgz) + [174]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 [174]my collection of + (and all else fails!) you can try one of [175]my collection of binaries for various OS's and x11vnc releases. As a general note, the x11vnc program is simple enough you don't @@ -1372,9 +1379,9 @@ typedef unsigned int in_addr_t; To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try here: - * [175]http://www.tightvnc.com/download.html - * [176]http://www.realvnc.com/download-free.html - * [177]http://sourceforge.net/projects/cotvnc/ + * [176]http://www.tightvnc.com/download.html + * [177]http://www.realvnc.com/download-free.html + * [178]http://sourceforge.net/projects/cotvnc/ Q-7: How can I see all of x11vnc's command line options and @@ -1382,7 +1389,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 - [178]here as well. + [179]here as well. Q-8: I don't like typing arcane command line options every time I @@ -1413,10 +1420,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 - [179]-gui option for more info. Examples: "x11vnc ... -gui" and + [180]-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 - "[180]-gui tray" system tray mode. + "[181]-gui tray" system tray mode. Q-9: How can I get the GUI to run in the System Tray, or at least be a @@ -1443,11 +1450,11 @@ display :0 Q-10: Can I make x11vnc more quiet and also go into the background after starting up? - Use the [181]-q and [182]-bg options, respectively. (also: -quiet is + Use the [182]-q and [183]-bg options, respectively. (also: -quiet is an alias for -q) Note that under -bg the stderr messages will be lost unless you use - the "[183]-o logfile" option. + the "[184]-o logfile" option. Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with @@ -1468,7 +1475,7 @@ display :0 As of Mar/2004 in the libvncserver cvs there are a few such options. They are enabled by adding something like -Dxxxx=1 to the CPPFLAGS - environment variable before running configure (see the [184]build + environment variable before running configure (see the [185]build notes for general background). * -DVNCSHARED=1 make -shared the default. * -DFOREVER=1 make -forever the default. @@ -1517,21 +1524,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 "[185]-nofb" option + Yes, for best response start up x11vnc with the "[186]-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 [186]x2vnc, however you would + This will also work X11 to X11 using [187]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: - * [187]Original Win2VNC - * [188]Enhanced Win2VNC and [189]sourceforge link - * [190]x2vnc - * [191]x2x also [192]here - * [193]zvnc (MorphOS) + * [188]Original Win2VNC + * [189]Enhanced Win2VNC and [190]sourceforge link + * [191]x2vnc + * [192]x2x also [193]here + * [194]zvnc (MorphOS) All of them will work with x11vnc (except x2x where it is not needed). @@ -1551,7 +1558,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 [194]-visual option to allow you to + libvncserver CVS, x11vnc has the [195]-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: @@ -1566,7 +1573,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 [195]-flashcmap option to have x11vnc watch for changes in the + Use the [196]-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 @@ -1575,7 +1582,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 [196]-notruecolor option has + Also note that in some rare cases the [197]-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. @@ -1586,10 +1593,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 [197]previous question regarding 8 bpp + You may want to review the [198]previous question regarding 8 bpp PseudoColor. - On some hardware (Sun/SPARC, Sgi), the [198]-overlay option discussed + On some hardware (Sun/SPARC, Sgi), the [199]-overlay option discussed a couple paragraphs down may solve this for you (you may want to skip to it directly). @@ -1627,7 +1634,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 [199]-overlay x11vnc option (Aug/2004) to have x11vnc use the + use the [200]-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 @@ -1649,7 +1656,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 [200]-id option to + possible workaround in this case is to use the [201]-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). @@ -1657,7 +1664,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 - [201]-overlay option works for Solaris machines with overlay visuals + [202]-overlay option works for Solaris machines with overlay visuals where most of this problem occurs. @@ -1668,9 +1675,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 [202]color problems. + debugging x11vnc [203]color problems. - Also, as of Dec/2004 libvncserver CVS you can use "[203]-id pick" to + Also, as of Dec/2004 libvncserver CVS you can use "[204]-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. @@ -1688,7 +1695,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 [204]-sid windowid option ("shifted" windowid). + polling, try the [205]-sid windowid option ("shifted" windowid). Q-19: My X display is depth 24 at 24bpp (instead of the normal depth @@ -1738,15 +1745,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 [205]-display option to point the display to that of + machine. Use the [206]-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 [206]-noshm option (this enables the polling over + and also supply the [207]-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 [207]-flipbyteorder if the + on the polling rate. You may also need [208]-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 @@ -1770,7 +1777,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 - [208]-auth option to point to the correct file). Other options include + [209]-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 - @@ -1782,7 +1789,7 @@ TrueColor defdepth 24 details. If the display name in the cookie file needs to be changed between the - two hosts, see [209]this note on the "xauth add ..." command. + two hosts, see [210]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 @@ -1796,7 +1803,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 [210]poll + Not recommended, but as a last resort, you could have x11vnc [211]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...) @@ -1827,17 +1834,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 - [211]-remote and [212]-query options. To shut down the running x11vnc + [212]-remote and [213]-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 [213]-forever option has not been supplied, x11vnc will + If the [214]-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 [214]-bg option + If you have not put x11vnc in the background via the [215]-bg option or shell & operator, then simply press Ctrl-C in the shell where x11vnc is running to stop it. @@ -1847,15 +1854,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 [215]-clear_mods - option and [216]-clear_keys option can be used to release pressed keys + by tapping Ctrl, Shift, and Alt. Alternatively, the [216]-clear_mods + option and [217]-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 [217]-remote (same as -R) and [218]-query (same as -Q) + Look at the [218]-remote (same as -R) and [219]-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 @@ -1867,7 +1874,7 @@ TrueColor defdepth 24 be possible. There is also a simple Tcl/Tk gui based on this remote control - mechanism. See the [219]-gui option for more info. You will need to + mechanism. See the [220]-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". @@ -1882,12 +1889,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" [220]option, which is the the same + the -storepasswd "pass" "file" [221]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: [221]-rfbauth + You then use the password via the x11vnc option: [222]-rfbauth $HOME/myvncpasswd Compared to vncpasswd(1) the latter two methods are a somewhat unsafe @@ -1896,7 +1903,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 [222]-passwdfile and -passwd/-viewpasswd plain + x11vnc also has the [223]-passwdfile and -passwd/-viewpasswd plain text (i.e. not obscured like the -rfbauth VNC passwords) password options. @@ -1905,13 +1912,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 - [223]-viewpasswd option to supply the view-only password. Note the - full-access password option [224]-passwd must be supplied at the same + [224]-viewpasswd option to supply the view-only password. Note the + full-access password option [225]-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 - [225]-passwdfile option to specify a file containing plain text + [226]-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 @@ -1919,7 +1926,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 [226]-rfbauth + View-only passwords currently do not work for the [227]-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 @@ -1933,7 +1940,7 @@ TrueColor defdepth 24 some users just be able to move the mouse, but not click or type anything? - As of Feb/2005, the [227]-input option allows you to do this. "K", + As of Feb/2005, the [228]-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 @@ -1949,15 +1956,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 [228]-forever option (aka -many) to have + periods of time. Use the [229]-forever option (aka -many) to have x11vnc wait for more connections after the first client disconnects. - Use the [229]-shared option to have x11vnc allow multiple clients to + Use the [230]-shared option to have x11vnc allow multiple clients to connect simultaneously. - Recommended additional safety measures include using ssh ([230]see + Recommended additional safety measures include using ssh ([231]see above), stunnel, or a VPN to authenticate and encrypt the viewer - 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 + connections or to at least use the -rfbauth passwd-file [232]option to + use VNC password protection (or [233]-passwdfile) It is up to YOU to apply these security measures, they will not be done for you automatically. @@ -1965,7 +1972,7 @@ TrueColor defdepth 24 Q-28: Can I limit which machines incoming VNC clients can connect from? - Yes, look at the [233]-allow and [234]-localhost options to limit + Yes, look at the [234]-allow and [235]-localhost options to limit connections by hostname or IP address. E.g. x11vnc -allow 192.168.0.1,192.168.0.2 @@ -1977,7 +1984,7 @@ TrueColor defdepth 24 Note that -localhost is the same as "-allow 127.0.0.1" For more control, build libvncserver with libwrap support - [235](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5) + [236](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5) for complete details. @@ -1997,7 +2004,7 @@ TrueColor defdepth 24 is "vnc", e.g.: vnc: 192.168.100.3 .example.com - Note that if you run x11vnc out of [236]inetd you do not need to build + Note that if you run x11vnc out of [237]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. @@ -2006,16 +2013,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 "[237]-listen + As of Mar/2005 in the libvncserver CVS, there is the "[238]-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 "[238]-allow host1,..." option to allow only specific hosts + use the "[239]-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 [239]-localhost now implies "-listen localhost" since that + The option [240]-localhost now implies "-listen localhost" since that is what most people expect it to do. @@ -2023,24 +2030,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 "[240]-allow localhost". Unlike [241]-localhost + To do this specify "[241]-allow localhost". Unlike [242]-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 - ([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 + ([243]-listen option) via remote control or gui, you may need to also + manually adjust the [244]-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 [244]-localhost on + in on the listening interface. If you just toggle [245]-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 [245]how to tunnel VNC via + See the description earlier on this page on [246]how to tunnel VNC via SSH from Unix to Unix. A number of ways are described along with some issues you may encounter. @@ -2051,7 +2058,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? - [246]Above we described how to tunnel VNC via SSH from Unix to Unix, + [247]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 @@ -2074,8 +2081,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 [247]-localhost - and [248]-rfbauth/[249]-passwdfile options. + For extra protection feel free to run x11vnc with the [248]-localhost + and [249]-rfbauth/[250]-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 @@ -2083,11 +2090,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 [250]chaining ssh's. + automated by [251]chaining ssh's. - As discussed [251]above another option is to first start the VNC + As discussed [252]above another option is to first start the VNC viewer in "listen" mode, and then launch x11vnc with the - "[252]-connect localhost" option to establish the reverse connection. + "[253]-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). @@ -2098,7 +2105,7 @@ TrueColor defdepth 24 some clients view-only? How about running an arbitrary program to make the decisions? - Yes, look at the "[253]-accept command" option, it allows you to + Yes, look at the "[254]-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 @@ -2117,7 +2124,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 [254]-viewonly option has been + mouse on the "View" button. If the [255]-viewonly option has been supplied, the "View" action will not be present: the whole display is view only in that case. @@ -2133,7 +2140,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 [255]ftp://ftp.x.org/ + is available at [256]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 @@ -2172,7 +2179,7 @@ elif [ $rc = 4 ]; then fi exit 1 - Stefan Radman has written a nice dtksh script [256]dtVncPopup for use + Stefan Radman has written a nice dtksh script [257]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. @@ -2181,7 +2188,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 "[257]-gone + To run a command when a client disconnects, use the "[258]-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 @@ -2196,13 +2203,13 @@ exit 1 such support. One approximate method involves starting x11vnc with the - [258]-localhost option. This basically requires the viewer user to log + [259]-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 [259]elsewhere on this page. Of course a malicious user + mentioned [260]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 @@ -2211,7 +2218,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 [260]-accept option that runs a program to examine + involves using the [261]-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 @@ -2244,7 +2251,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 [261]-users option that allows things + As of Feb/2005 x11vnc has the [262]-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. @@ -2266,7 +2273,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 [262]blockdpy.c The idea behind it is simple (but + source for it is [263]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 @@ -2282,8 +2289,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 [263]-accept option and told - to exit via the [264]-gone option (the vnc client user should + The blockdpy utility is launched by the [264]-accept option and told + to exit via the [265]-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. @@ -2291,7 +2298,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 [265]-gone option under CDE to run a + Yes, a user mentions he uses the [266]-gone option under CDE to run a screen lock program: x11vnc -display :0 -forever -gone 'dtaction LockDisplay' @@ -2314,11 +2321,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 [266]FAQ on x11vnc + * Use the description under "Continuously" in the [267]FAQ on x11vnc and Display Managers - * Use the description in the [267]FAQ on x11vnc and inetd(1) + * Use the description in the [268]FAQ on x11vnc and inetd(1) * Start x11vnc from your $HOME/.xsession (or $HOME/.xinitrc) - * Although less reliable, see the [268]x11vnc_loop rc.local hack + * Although less reliable, see the [269]x11vnc_loop rc.local hack below. The display manager scheme will not be specific to which user has the @@ -2349,7 +2356,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 [269]-auth option sets the XAUTHORITY variable for you). + (the [270]-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 @@ -2374,7 +2381,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 - [270]the example at the end of this FAQ). Then restart dtlogin, e.g.: + [271]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 @@ -2437,7 +2444,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 [271]full details + killed immediately after the user logs in. Here are [272]full details on how to configure gdm _________________________________________________________________ @@ -2479,13 +2486,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: [272]x11vnc_loop It will need some local + file like rc.local: [273]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 - [273]this FAQ. + [274]this FAQ. Q-41: Can I run x11vnc out of inetd(1)? How about xinetd(1)? @@ -2495,7 +2502,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 [274]-inetd + where the shell script /usr/local/bin/x11vnc_sh uses the [275]-inetd option and looks something like (you'll need to customize to your settings). #!/bin/sh @@ -2508,7 +2515,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 [275]-quiet) option: "/usr/local/bin/x11vnc -q + specify the -q (aka [276]-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 @@ -2516,7 +2523,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 [276]-auth to point to the + Note also the need to set XAUTHORITY via [277]-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 @@ -2584,7 +2591,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 [277]option: + that connect to it, run x11vnc with this [278]option: -httpdir /path/to/the/java/classes/dir (this directory will contain the files index.vnc and, for example, @@ -2603,7 +2610,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 [278]-http option will try to guess where the Java + As of May/2005 the [279]-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 @@ -2617,7 +2624,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 [279]-connect option. To connect immediately + starts up x11vnc with the [280]-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 @@ -2625,7 +2632,7 @@ service x11vncservice hosts to connect to. To use the vncconnect(1) program (from the core VNC package at - www.realvnc.com) specify the [280]-vncconnect option to x11vnc (Note: + www.realvnc.com) specify the [281]-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 @@ -2669,7 +2676,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 - [281]-add_keysyms option to have keysyms added automatically. Also, to + [282]-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" @@ -2687,21 +2694,32 @@ xmodmap -e "add Control = Control_L Control_R" need to set VideoRam NNN to be large enough to hold the framebuffer. The framebuffer is kept in main memory like Xvfb except that the server code is closely correlated with the real XFree86/Xorg Xserver - unlike Xvfb. The main drawback to this method (besides requiring extra + 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) [282]switching even though it + Linux Virtual Console/Terminal (VC/VT) [283]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. - - One way to start the "dummy" driver would be: + server that turn off the VT usage in the X server. Update: As of + Jul/2005 we have an LD_PRELOAD script [284]Xdummy that allows you to + use a stock (i.e. unpatched) Xorg or XFree86 server with the "dummy" + driver and not have any VT switching problems! Currently Xdummy needs + to be run as root, but with some luck that may be relaxed in the + future. + + The standard way to start the "dummy" driver would be: startx -- :1 -config /etc/X11/xorg.conf.dummy where the file /etc/X11/xorg.conf.dummy has its Device Section - modified as described above. + modified as described above. To use the LD_PRELOAD wrapper script: +startx -- /path/to/Xdummy :1 + + An xdm(1) example is also provided. - In general, one can use this sort of scheme to export other virtual X - sessions, say Xnest or even Xvnc itself (useful for testing x11vnc). + In general, one can use these sorts of schemes to use x11vnc to export + other virtual X sessions, say Xnest or even Xvnc itself (useful for + testing x11vnc). Q-45: How can I use x11vnc on "headless" machines? Why might I want @@ -2716,7 +2734,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 [283]this FAQ) and access it from + display via x11vnc (e.g. see [285]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 @@ -2759,7 +2777,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 [284]shm_clear to list and prompt for removal + Here is a shell script [286]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, @@ -2793,36 +2811,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 - [285]-onetile option (corresponds to only 3 shm segments used, and + [287]-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 - [286]-noshm option. Performance will be somewhat degraded but when + [288]-noshm option. Performance will be somewhat degraded but when done over local machine sockets it should be acceptable (see an - [287]earlier question discussing -noshm). + [289]earlier question discussing -noshm). Q-47: How can I make x11vnc use less system resources? - The [288]-nap and "[289]-wait n" (where n is the sleep between polls + The [290]-nap and "[291]-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 - [290]-onetile option will use less memory and use fewer shared memory - slots (add [291]-fs 1.0 for one less slot). + [292]-onetile option will use less memory and use fewer shared memory + slots (add [293]-fs 1.0 for one less slot). Q-48: How can I make x11vnc use MORE system resources? - 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 + You can try [294]-threads and dial down the wait time (e.g. -wait 1) + and possibly dial down [295]-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 [294]-id option) can be streamed over a LAN or wireless at + the x11vnc [296]-id option) can be streamed over a LAN or wireless at a reasonable frame rate. @@ -2838,16 +2856,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 - [295]-solid [color] option to try to do this automatically. + [297]-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 [296]-scrollcopyrect is active and + problem in x11vnc 0.7.2 if [298]-scrollcopyrect is active and detecting scrolls for the application). - * If the [297]-wireframe option is not available (earlier than + * If the [299]-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) @@ -2867,7 +2885,7 @@ ied) noticed. VNC viewer parameters: - * Use a [298]TightVNC enabled viewer! (Actually, RealVNC 4.x viewer + * Use a [300]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 @@ -2890,28 +2908,28 @@ ied) file. x11vnc parameters: - * Try using [299]-nodragging (no screen updates when dragging mouse, + * Try using [301]-nodragging (no screen updates when dragging mouse, but sometimes you miss visual feedback) - * Make sure the [300]-wireframe option is active (it should be on by + * Make sure the [302]-wireframe option is active (it should be on by default) and you have Opaque Moves/Resizes Enabled in the window manager. - * Make sure the [301]-scrollcopyrect option is active (it should be + * Make sure the [303]-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 [302]-fs 1.0 (disables fullscreen updates) - * Try increasing [303]-wait or [304]-defer (reduces the maximum + * Set [304]-fs 1.0 (disables fullscreen updates) + * Try increasing [305]-wait or [306]-defer (reduces the maximum "frame rate", but won't help much for large screen changes) - * Try the [305]-progressive pixelheight mode with the block + * Try the [307]-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 [306]-id (cuts + * If you just want to watch one (simple) window use [308]-id (cuts down extraneous polling and updates, but can be buggy or insufficient) - * Set [307]-nosel (disables all clipboard selection exchange) - * Use [308]-nocursor and [309]-nocursorpos (repainting the remote + * Set [309]-nosel (disables all clipboard selection exchange) + * Use [310]-nocursor and [311]-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 - [310]-readtimeout n setting if it sometimes takes more than 20sec + [312]-readtimeout n setting if it sometimes takes more than 20sec to paint the full screen, etc. @@ -2933,7 +2951,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 [311]slow (e.g. + in main memory. So reading the fb is still painfully [313]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 @@ -2951,27 +2969,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 "[312]-xd_area A" option to adjust the size + skipped). You can use the "[314]-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 "[313]-xd_mem f" may also be of use in tuning the - algorithm. To disable using DAMAGE entirely use "[314]-noxdamage". + The option "[315]-xd_mem f" may also be of use in tuning the + algorithm. To disable using DAMAGE entirely use "[316]-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 [315]slow hardware read rates from + This problem is primarily due to [317]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 - [316]-pointer_mode option for more info. The next bottleneck is + [318]-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 @@ -2981,26 +2999,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 "[317]-pointer_mode 1" option. + way via the "[319]-pointer_mode 1" option. - Also added was the [318]-nodragging option that disables all screen + Also added was the [320]-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 [319]-pointer_mode n option + As of Dec/2004 in the libvncserver CVS the [321]-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 [320]-threads option can improve + Also, in some circumstances the [322]-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 - [321]wireframe FAQ and [322]scrollcopyrect FAQ below) provide schemes + [323]wireframe FAQ and [324]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. @@ -3016,8 +3034,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 [323]slow video - card read rates (see [324]here too). A displacement, even a small one, + of the intermediate steps. BTW the lurching is due to [325]slow video + card read rates (see [326]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. @@ -3025,7 +3043,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 [325]-nowireframe option + with the problem. It can be disabled with the [327]-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 @@ -3070,13 +3088,13 @@ ied) * Maximum time to show a wireframe animation. * Minimum time between sending wireframe outlines. - See the [326]"-wireframe tweaks" option for more details. On a slow + See the [328]"-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 - [327]"-wirecopyrect mode" option. It is also on by default. This + [329]"-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 @@ -3124,7 +3142,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 [328]slow). + the hardware framebuffer is [330]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. @@ -3146,10 +3164,10 @@ ied) the X server display: if one falls too far behind it could become a mess... - The initial implementation of [329]-scrollcopyrect option is useful in + The initial implementation of [331]-scrollcopyrect option is useful in that it detects many scrolls and thus gives a much nicer working - environment (especially when combined with the [330]-wireframe - [331]-wirecopyrect [332]options, which are also on by default; and if + environment (especially when combined with the [332]-wireframe + [333]-wirecopyrect [334]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. @@ -3182,10 +3200,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: [333]-fixscreen + also: [335]-fixscreen * Some applications, notably OpenOffice, do XCopyArea scrolls in weird ways that assume ancestor window clipping is taking place. - See the [334]-scr_skip option for ways to tweak this on a + See the [336]-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 @@ -3202,7 +3220,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 [335]-scale option there will be a quick CopyRect + * When using the [337]-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 @@ -3215,7 +3233,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 [336]-noscrollcopyrect (or -noscr for short). If you find + with the [338]-noscrollcopyrect (or -noscr for short). If you find some extremely bad and repeatable behavior for -scrollcopyrect please report a bug. @@ -3254,16 +3272,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 "[337]-cursor X" option that + A simple kludge is provided by the "[339]-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 "[338]-cursor some" option for + work for those cases. Also see the "[340]-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 [339]-overlay option is supplied. See [340]this FAQ + cursor when the [341]-overlay option is supplied. See [342]this FAQ for more info. Also as of Dec/2004 in the libvncserver CVS XFIXES X extension support @@ -3271,7 +3289,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 [341]Solaris 10. + distros and [343]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 @@ -3279,7 +3297,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. [342]Details can be found here. + hidden alpha channel data under 32bpp. [344]Details can be found here. Q-55: When using XFIXES cursorshape mode, some of the cursors look @@ -3312,17 +3330,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 "[343]-alphacut n" option lets + course!) some tunable parameters. The "[345]-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 "[344]-alphafrac f" option tries to correct individual + 240. The "[346]-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 [345]-alpharemove that is useful for + Finally, there is an option [347]-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 @@ -3348,11 +3366,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 [346]-nocursorshape x11vnc option. + disabled for all clients with the [348]-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 - [347]-noalphablend option to disable this behavior (always approximate + [349]-noalphablend option to disable this behavior (always approximate transparent cursors with opaque RGB values). The CursorShapeUpdates VNC extension complicates matters because the @@ -3380,9 +3398,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 [348]tightvnc extension + This default takes advantage of a [350]tightvnc extension (CursorShapeUpdates) that allows specifying a cursor image shape for - the local VNC viewer. You may disable it with the [349]-nocursor + the local VNC viewer. You may disable it with the [351]-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 @@ -3396,18 +3414,18 @@ ied) clients (i.e. passive viewers can see the mouse cursor being moved around by another viewer)? - Use the [350]-cursorpos option when starting x11vnc. A VNC viewer must + Use the [352]-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 [351]-nocursorpos - and [352]-nocursorshape. + libvncserver CVS -cursorpos is the default. See also [353]-nocursorpos + and [354]-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: [353]-buttonmap + You can remap the mouse buttons via something like: [355]-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. @@ -3415,7 +3433,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 [354]-debug_pointer option prints out much info for + Note that the [356]-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 @@ -3437,7 +3455,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 [355]-buttonmap but rather configuring the X server + consider not using [357]-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"'). @@ -3467,7 +3485,7 @@ ied) Q-60: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - The option [356]-modtweak should help here. It is a mode that monitors + The option [358]-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. @@ -3476,17 +3494,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 [357]this FAQ + and ">" it. This key does not exist on the keyboard (see [359]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 [358]FAQ about the -xkb option for a more powerful method + Also see the [360]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 - [359]-debug_keyboard option prints out much info for every keystroke + [361]-debug_keyboard option prints out much info for every keystroke and so can be useful debugging things. @@ -3498,9 +3516,9 @@ ied) (e.g. pc105 in the XF86Config file when it should be something else, say pc104). - Short Cut: Try the [360]-xkb or [361]-sloppy_keys options and see if + Short Cut: Try the [362]-xkb or [363]-sloppy_keys options and see if that helps the situation. The discussion below is a bit outdated (e.g. - [362]-modtweak is now the default) but is useful reference for various + [364]-modtweak is now the default) but is useful reference for various tricks and so is kept. @@ -3543,17 +3561,17 @@ ied) -remap less-comma These are convenient in that they do not modify the actual X server - settings. The former ([363]-modtweak) is a mode that monitors the + settings. The former ([365]-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 ([364]-remap less-comma) is an immediate remapping of the + The latter ([366]-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 [365]FAQ about the -xkb option as a possible workaround + See also the [367]FAQ about the -xkb option as a possible workaround using the XKEYBOARD extension. - Note that the [366]-debug_keyboard option prints out much info for + Note that the [368]-debug_keyboard option prints out much info for every keystroke to aid debugging keyboard problems. @@ -3561,13 +3579,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 [367]keymapping + the Shift key before releasing the "<". Because of a [369]keymapping ambiguity the last event "< up" is interpreted as "," because that key unshifted is the comma. - This should not happen in [368]-xkb mode, because it works hard to + This should not happen in [370]-xkb mode, because it works hard to resolve the ambiguities. If you do not want to use -xkb, try the - option [369]-sloppy_keys to attempt a similar type of algorithm. + option [371]-sloppy_keys to attempt a similar type of algorithm. Q-63: I'm using an "international" keyboard (e.g. German "de", or @@ -3591,7 +3609,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 [370]-modtweak + This all worked fine with x11vnc running with the [372]-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 @@ -3609,7 +3627,7 @@ ied) * there is a new option -xkb to use the XKEYBOARD extension API to do the Modifier key tweaking. - The [371]-xkb option seems to fix all of the missing keys: "@", "<", + The [373]-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 @@ -3617,7 +3635,7 @@ ied) debugging output (send it along with any problems you report). Update: as of Jun/2005 x11vnc will try to automatically enable - [372]-xkb if it appears that would be beneficial (e.g. if it sees any + [374]-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. @@ -3632,7 +3650,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: - [373]-skip_keycodes 93 + [375]-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 @@ -3649,16 +3667,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 [374]-remap x11vnc option: + created using the [376]-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 - [375]-add_keysyms option in the next paragraph. - Update: for convenience "[376]-remap DEAD" does many of these + [377]-add_keysyms option in the next paragraph. + Update: for convenience "[378]-remap DEAD" does many of these mappings at once. - * To complement the above workaround using the [377]-remap, an - option [378]-add_keysyms was added. This option instructs x11vnc + * To complement the above workaround using the [379]-remap, an + option [380]-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 @@ -3677,7 +3695,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) [379]-norepeat x11vnc option. You will still + use the new (Jul/2004) [381]-norepeat x11vnc option. You will still have autorepeating because that is taken care of on your VNC viewer side. @@ -3701,7 +3719,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 [380]-norepeat (which has since Dec/2004 been + needed, or to use the [382]-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 @@ -3712,7 +3730,7 @@ ied) keystrokes!! Are you using x11vnc to log in to an X session? (as described in - [381]this FAQ) If so, x11vnc is starting before your session and it + [383]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 @@ -3736,7 +3754,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 "[382]-remap Super_R-Mode_switch" x11vnc option may + Something like "[384]-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)). @@ -3759,7 +3777,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 [383]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones + the [385]-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. @@ -3770,7 +3788,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 [384]-remap + have x11vnc do the remapping. This can be done via the [386]-remap option using the fake "keysyms" Button1, Button2, etc. as the "to" keys (i.e. the ones after the "-") @@ -3779,7 +3797,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: - [385]-remap Super_R-Button2 + [387]-remap Super_R-Button2 maps the Super_R "flag" key press to the Button2 click, thereby making X pasting a bit easier. @@ -3809,7 +3827,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 - [386]this FAQ on x11vnc scaling. + [388]this FAQ on x11vnc scaling. Q-70: Does x11vnc support server-side framebuffer scaling? (E.g. to @@ -3817,7 +3835,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 "[387]-scale fraction" + per-client setting. To enable it use the "[389]-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. @@ -3838,7 +3856,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 - [388]applications. Since with integer scale factors the framebuffers + [390]applications. Since with integer scale factors the framebuffers become huge and scaling operations time consuming, be sure to use ":nb" for the fastest response. @@ -3864,12 +3882,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 ([389]-rfbport option, + different scalings listening on separate ports ([391]-rfbport option, etc.). BTW, whenever you run two or more x11vnc's on the same X display and - 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 + use the [392]GUI, then to avoid all of the x11vnc's simultaneously + answering the gui you will need to use something like [393]"-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 @@ -3878,7 +3896,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 [392]"-scale_cursor frac" option to set the cursor + want that, use the [394]"-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). @@ -3900,16 +3918,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 [393]-blackout x11vnc option + may be distracting to the viewer. The [395]-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 - [394]-xinerama x11vnc option can be used to have it automatically + [396]-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 [395]-xwarppointer + of the large display. If this happens try using the [397]-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 @@ -3934,23 +3952,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 [396]FAQ to increase the limit. It - is probably also a good idea to run with the [397]-onetile option in + /etc/system as mentioned in another [398]FAQ to increase the limit. It + is probably also a good idea to run with the [399]-onetile option in this case (to limit each x11vnc to 3 shm segments), or even - [398]-noshm to use no shm segments. + [400]-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 "[399]-clip + As of Mar/2005 in the libvncserver CVS x11vnc has the "[401]-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 [400]Xinerama screen into two more managable smaller screens. + large [402]Xinerama screen into two more managable smaller screens. This also works to view a sub-region of a single application window if - the [401]-id or [402]-sid options are used. The offset is measured + the [403]-id or [404]-sid options are used. The offset is measured from the upper left corner of the selected window. @@ -3959,7 +3977,7 @@ ied) crash. As of Dec/2004 in the libvncserver CVS x11vnc supports XRANDR. You - enable it with the [403]-xrandr option to make x11vnc monitor XRANDR + enable it with the [405]-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. @@ -3969,7 +3987,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 [404]-padgeom option to make the region big + viewers you can try the [406]-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 @@ -4023,9 +4041,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 [405]this FAQ + desktop in a separate Virtual Console (e.g. VC 8) (see [407]this FAQ on VC's for background). Unfortunately, this Fullscreen VC is not an X - server. So x11vnc cannot access it (however, [406]see this for a + server. So x11vnc cannot access it (however, [408]see this for a possible partial workaround). x11vnc works fine with "Normal X application window" and "Quick-Switch mode" because these use X. @@ -4042,13 +4060,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 [407]is in the active VC. + as long as the VMWare X session [409]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 [408]-id windowid option. The + the VMWare menu buttons) by use of the [410]-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 @@ -4129,7 +4147,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 [409]X API, but you get + of Xvfb x11vnc can poll it much better via the [411]X API, but you get the idea. By default in -rawfb mode x11vnc will actually close any X display it @@ -4182,7 +4200,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 [410]active VC) one + view and interact with VC #2 (assuming it is the [412]active VC) one can run something like: x11vnc -rawfb map:/dev/fb0@1024x768x16 -pipeinput './vcinject.pl 2' @@ -4195,7 +4213,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 - [411]VMWare Fullscreen mode is actually viewable under -rawfb. But + [413]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... @@ -4227,10 +4245,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 [412]-nosel option. If you + the Clipboard/Selection exchanged use the [414]-nosel option. If you don't want the PRIMARY selection to be polled for changes use the - [413]-noprimary option. You can also fine-tune it a bit with the - [414]-seldir dir option. + [415]-noprimary option. You can also fine-tune it a bit with the + [416]-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 @@ -4245,7 +4263,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 [415]-nobell option. If + If you don't want to hear the beeps use the [417]-nobell option. If you want to hear the audio from the remote applications, consider trying a redirector such as esd. @@ -4261,7 +4279,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 - [416]email! + [418]email! [PayPal] @@ -4281,408 +4299,410 @@ References 12. http://www.tightvnc.com/download.html 13. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth 14. http://www.karlrunge.com/x11vnc/index.html#faq-xperms - 15. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download - 16. http://www.sun.com/software/solaris/freeware/ - 17. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 15. http://www.karlrunge.com/x11vnc/index.html#faq-xperms + 16. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download + 17. http://www.sun.com/software/solaris/freeware/ 18. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever - 19. http://www.karlrunge.com/x11vnc/index.html#faq-service - 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#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. 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 + 19. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 20. http://www.karlrunge.com/x11vnc/index.html#faq-service + 21. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 22. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file + 23. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 24. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file + 25. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 26. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via + 27. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh + 28. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 29. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 30. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 31. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 32. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 33. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 34. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 35. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt + 36. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 37. http://sourceforge.net/projects/libvncserver/ + 38. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=341817 + 39. http://sourceforge.net/project/shownotes.php?group_id=32584&release_id=341817 + 40. http://www.karlrunge.com/x11vnc/x11vnc-0.7.3.tar.gz + 41. http://www.karlrunge.com/x11vnc/index.html#faq-binaries + 42. http://www.tightvnc.com/download.html + 43. http://www.realvnc.com/download-free.html + 44. http://sourceforge.net/projects/cotvnc/ + 45. http://www.karlrunge.com/x11vnc/rx11vnc + 46. http://www.karlrunge.com/x11vnc/rx11vnc.pl + 47. http://www.sunfreeware.com/ + 48. http://www.karlrunge.com/x11vnc/index.html#faq-build + 49. ftp://ftp.uu.net/graphics/jpeg/ + 50. http://www.gzip.org/zlib/ + 51. http://www.sunfreeware.com/ + 52. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build + 53. http://www.karlrunge.com/x11vnc/x11vnc-0.7.3.tar.gz + 54. http://www.karlrunge.com/x11vnc/bins + 55. mailto:x11vnc-beta@karlrunge.com + 56. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage + 57. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 58. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect + 59. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 60. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 61. http://www.tightvnc.com/ + 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 64. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 65. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg + 66. http://wwws.sun.com/sunray/index.html + 67. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap + 68. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 69. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 70. http://www.karlrunge.com/x11vnc/shm_clear + 71. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 72. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 73. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 74. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 75. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 76. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 77. mailto:xvml@karlrunge.com + 78. http://www.karlrunge.com/x11vnc/index.html#faq-thanks + 79. http://www.karlrunge.com/x11vnc/index.html#faq-xperms + 80. http://www.karlrunge.com/x11vnc/index.html#faq-build + 81. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest + 82. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build + 83. http://www.karlrunge.com/x11vnc/index.html#faq-binaries + 84. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download + 85. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts + 86. http://www.karlrunge.com/x11vnc/index.html#faq-config-file + 87. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray + 88. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg + 89. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe + 90. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations + 91. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc + 92. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp + 93. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp + 94. http://www.karlrunge.com/x11vnc/index.html#faq-overlays + 95. http://www.karlrunge.com/x11vnc/index.html#faq-windowid + 96. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id + 97. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp + 98. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 99. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth + 100. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg + 101. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control + 102. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 103. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 104. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt + 105. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared + 106. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt + 107. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 108. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface + 109. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost + 110. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix + 111. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty + 112. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt + 113. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords + 114. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt + 115. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy + 116. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock + 117. http://www.karlrunge.com/x11vnc/index.html#faq-service + 118. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 119. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 120. http://www.karlrunge.com/x11vnc/index.html#faq-java-http + 121. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect + 122. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 123. http://www.karlrunge.com/x11vnc/index.html#faq-headless + 124. http://www.karlrunge.com/x11vnc/index.html#faq-solshm + 125. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource + 126. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource + 127. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link + 128. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage + 129. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode + 130. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 131. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 132. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape + 133. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha + 134. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks + 135. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow + 136. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions + 137. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt + 138. http://www.karlrunge.com/x11vnc/index.html#faq-altgr + 139. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 140. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy + 141. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 142. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys + 143. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still + 144. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt + 145. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta + 146. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click + 147. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars + 148. http://www.karlrunge.com/x11vnc/index.html#faq-scaling + 149. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama + 150. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen + 151. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen + 152. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr + 153. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen + 154. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 155. http://www.karlrunge.com/x11vnc/index.html#faq-vmware + 156. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 157. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars + 158. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard + 159. http://www.karlrunge.com/x11vnc/index.html#faq-beeps + 160. http://www.karlrunge.com/x11vnc/index.html#faq-thanks + 161. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display + 162. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 163. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 164. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users + 165. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 166. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html + 167. http://www.karlrunge.com/x11vnc/index.html#building + 168. http://www.karlrunge.com/x11vnc/index.html#faq-build + 169. http://packages.debian.org/x11vnc + 170. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc + 171. http://dag.wieers.com/packages/x11vnc/ + 172. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/ + 173. http://www.sunfreeware.com/ + 174. http://www.bell-labs.com/project/wwexptools/packages.html + 175. http://www.karlrunge.com/x11vnc/bins + 176. http://www.tightvnc.com/download.html + 177. http://www.realvnc.com/download-free.html + 178. http://sourceforge.net/projects/cotvnc/ + 179. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 180. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 181. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray + 182. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q + 183. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 184. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o + 185. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 186. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb + 187. http://fredrik.hubbe.net/x2vnc.html + 188. http://www.hubbe.net/~hubbe/win2vnc.html + 189. http://www.deboer.gmxhome.de/ + 190. http://sourceforge.net/projects/win2vnc/ + 191. http://fredrik.hubbe.net/x2vnc.html + 192. http://freshmeat.net/projects/x2x/ + 193. http://ftp.digital.com/pub/Digital/SRC/x2x/ + 194. http://zapek.com/software/zvnc/ + 195. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual + 196. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap + 197. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor + 198. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp 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/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/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/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 + 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 202. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 203. http://www.karlrunge.com/x11vnc/index.html#faq-overlays + 204. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 205. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid + 206. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display + 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 208. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder + 209. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 210. http://www.karlrunge.com/x11vnc/index.html#xauth_pain + 211. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 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-forever + 215. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods + 217. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys + 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote + 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query + 220. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd + 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 223. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd + 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd + 226. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 227. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input + 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 230. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared + 231. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 232. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 233. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 236. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 237. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 238. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen + 239. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 240. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 241. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen + 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 245. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost 246. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 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 + 247. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 250. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 251. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh + 252. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 253. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly + 256. ftp://ftp.x.org/ + 257. http://www.karlrunge.com/x11vnc/dtVncPopup + 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 260. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 262. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users + 263. http://www.karlrunge.com/x11vnc/blockdpy.c + 264. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept 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-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-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 + 266. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 267. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously + 268. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 269. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop + 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 271. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris + 272. http://www.jirka.org/gdm-documentation/x241.html + 273. http://www.karlrunge.com/x11vnc/x11vnc_loop + 274. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth + 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd + 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q + 277. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 278. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir + 279. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http + 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect + 282. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 283. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 284. http://www.karlrunge.com/x11vnc/Xdummy + 285. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously + 286. http://www.karlrunge.com/x11vnc/shm_clear + 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 288. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 289. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap + 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 293. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs + 294. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads + 295. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer + 296. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 297. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 300. http://www.tightvnc.com/ + 301. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 302. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 304. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs + 305. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 306. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer + 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive + 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel + 310. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor + 311. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos + 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout + 313. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area + 315. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem + 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage + 317. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 318. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode 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-wireframe + 320. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 321. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode + 322. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads + 323. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 324. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 325. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode + 326. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow 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 + 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 330. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect + 334. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen + 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip + 337. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale + 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 342. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode + 343. http://www.karlrunge.com/x11vnc/index.html#solaris10-build + 344. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks + 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut + 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac + 347. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove + 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape + 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend + 350. http://www.tightvnc.com/ + 351. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor + 352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos + 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos + 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape 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 + 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer + 357. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap + 358. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 359. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 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/x11vnc_opts.html#opt-xkb + 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys + 364. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 367. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard + 369. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys + 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes 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-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 + 377. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 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-add_keysyms + 381. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat + 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat + 383. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager 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-rawfb + 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 388. http://www.karlrunge.com/x11vnc/index.html#faq-scaling + 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale + 390. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html + 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 393. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 394. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor + 395. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout + 396. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama + 397. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer + 398. http://www.karlrunge.com/x11vnc/index.html#faq-solshm + 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 400. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 401. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip + 402. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama + 403. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 404. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 405. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr + 406. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom 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 + 408. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 409. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 410. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 411. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 412. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 413. http://www.karlrunge.com/x11vnc/index.html#faq-vmware + 414. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel + 415. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary + 416. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir + 417. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell + 418. mailto:xvml@karlrunge.com ======================================================================= @@ -4695,7 +4715,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-17 +x11vnc: allow VNC connections to real X11 displays. 0.7.3 lastmod: 2005-10-22 x11vnc options: -display disp -auth file @@ -4707,56 +4727,57 @@ x11vnc options: -scale_cursor frac -viewonly -shared -once -forever -timeout n - -inetd -http - -connect string -vncconnect - -novncconnect -allow host1[,host2..] - -localhost -nolookup - -input string -viewpasswd string - -passwdfile filename -nopw - -storepasswd pass file -accept string - -gone string -users list - -noshm -flipbyteorder - -onetile -solid [color] - -blackout string -xinerama - -xtrap -xrandr [mode] - -padgeom WxH -o logfile - -flag file -rc filename - -norc -h, -help - -?, -opts -V, -version - -dbg -q - -bg -modtweak - -nomodtweak -xkb - -noxkb -skip_keycodes string - -sloppy_keys -skip_dups - -noskip_dups -add_keysyms - -noadd_keysyms -clear_mods - -clear_keys -remap string - -norepeat -repeat - -nofb -nobell - -nosel -noprimary - -seldir string -cursor [mode] - -nocursor -arrow n - -noxfixes -alphacut n - -alphafrac fraction -alpharemove - -noalphablend -nocursorshape - -cursorpos -nocursorpos - -xwarppointer -buttonmap string - -nodragging -wireframe [str] - -nowireframe -wirecopyrect mode - -nowirecopyrect -debug_wireframe - -scrollcopyrect mode -noscrollcopyrect - -scr_area n -scr_skip list - -scr_inc list -scr_keys list - -scr_term list -scr_keyrepeat lo-hi - -scr_parms string -fixscreen string - -debug_scroll -noxrecord - -grab_buster -nograb_buster - -debug_grabs -pointer_mode n - -input_skip n -speeds rd,bw,lat - -wmdt string -debug_pointer - -debug_keyboard -defer time - -wait time -wait_ui factor - -nowait_bog -readtimeout n + -inetd -filexfer + -http -connect string + -vncconnect -novncconnect + -allow host1[,host2..] -localhost + -nolookup -input string + -viewpasswd string -passwdfile filename + -nopw -storepasswd pass file + -accept string -gone string + -users list -noshm + -flipbyteorder -onetile + -solid [color] -blackout string + -xinerama -xtrap + -xrandr [mode] -padgeom WxH + -o logfile -flag file + -rc filename -norc + -h, -help -?, -opts + -V, -version -dbg + -q -bg + -modtweak -nomodtweak + -xkb -noxkb + -skip_keycodes string -sloppy_keys + -skip_dups -noskip_dups + -add_keysyms -noadd_keysyms + -clear_mods -clear_keys + -remap string -norepeat + -repeat -nofb + -nobell -nosel + -noprimary -seldir string + -cursor [mode] -nocursor + -arrow n -noxfixes + -alphacut n -alphafrac fraction + -alpharemove -noalphablend + -nocursorshape -cursorpos + -nocursorpos -xwarppointer + -buttonmap string -nodragging + -wireframe [str] -nowireframe + -wirecopyrect mode -nowirecopyrect + -debug_wireframe -scrollcopyrect mode + -noscrollcopyrect -scr_area n + -scr_skip list -scr_inc list + -scr_keys list -scr_term list + -scr_keyrepeat lo-hi -scr_parms string + -fixscreen string -debug_scroll + -noxrecord -grab_buster + -nograb_buster -debug_grabs + -pointer_mode n -input_skip n + -speeds rd,bw,lat -wmdt string + -debug_pointer -debug_keyboard + -defer time -wait time + -wait_ui factor -nowait_bog + -slow_fb time -readtimeout n -nap -nonap -sb time -noxdamage -xd_area A -xd_mem f @@ -4797,7 +4818,7 @@ libvncserver options: % x11vnc -help -x11vnc: allow VNC connections to real X11 displays. 0.7.3 lastmod: 2005-07-17 +x11vnc: allow VNC connections to real X11 displays. 0.7.3 lastmod: 2005-10-22 Typical usage is: @@ -4979,6 +5000,7 @@ Options: option, otherwise the stderr goes to the viewer which will cause it to abort. Specifying both -inetd and -q and no -o will automatically close the stderr. +-filexfer Enable the TightVNC file transfer extension. -http Instead of using -httpdir (see below) to specify where the Java vncviewer applet is, have x11vnc try to *guess* where the directory is by looking relative @@ -5225,7 +5247,9 @@ Options: color with "gnome:", "kde:", "cde:" or "root:". -blackout string Black out rectangles on the screen. "string" is a comma separated list of WxH+X+Y type geometries for - each rectangle. + each rectangle. If one of the items on the list is the + string "noptr" the mouse pointer will not be allowed + to go into a blacked out region. -xinerama If your screen is composed of multiple monitors glued together via XINERAMA, and that screen is not a rectangle this option will try to guess the @@ -6014,6 +6038,10 @@ Options: (3 screen polls in a row each longer than 0.25 sec with no user input), and sleep up to 1.5 secs to let things "catch up". Use this option to disable that detection. +-slow_fb time Floating point time in seconds delay all screen polling. + For special purpose usage where a low frame rate is + acceptable and desirable, but you want the user input + processed at the normal rate so you cannot use -wait. -readtimeout n Set libvncserver rfbMaxClientWait to n seconds. On slow links that take a long time to paint the first screen libvncserver may hit the timeout and drop the @@ -6458,6 +6486,7 @@ n wait_ui:f set -wait_ui factor to f. wait_bog disable -nowait_bog mode. nowait_bog enable -nowait_bog mode. + slow_fb:f set -slow_fb to f seconds. readtimeout:n set read timeout to n seconds. nap enable -nap mode. nonap disable -nap mode. @@ -6571,14 +6600,14 @@ n nodragging wireframe_mode wireframe wf nowireframe nowf wirecopyrect wcr nowirecopyrect nowcr scr_area scr_skip scr_inc scr_keys scr_term scr_keyrepeat - scr_parms scrollcopyrect scr noscrollcopyrect - noscr fixscreen noxrecord xrecord reset_record - pointer_mode pm input_skip input client_input - speeds wmdt debug_pointer dp nodebug_pointer nodp - debug_keyboard dk nodebug_keyboard nodk deferupdate - defer wait_ui wait_bog nowait_bog wait readtimeout - nap nonap sb screen_blank fs gaps grow fuzz snapfb - nosnapfb rawfb progressive rfbport http nohttp httpport + scr_parms scrollcopyrect scr noscrollcopyrect noscr + fixscreen noxrecord xrecord reset_record pointer_mode + pm input_skip input client_input speeds wmdt + debug_pointer dp nodebug_pointer nodp debug_keyboard + dk nodebug_keyboard nodk deferupdate defer wait_ui + wait_bog nowait_bog slow_fb wait readtimeout nap nonap + sb screen_blank fs gaps grow fuzz snapfb nosnapfb + rawfb progressive rfbport http nohttp httpport httpdir enablehttpproxy noenablehttpproxy alwaysshared noalwaysshared nevershared noalwaysshared dontdisconnect nodontdisconnect desktop debug_xevents nodebug_xevents diff --git a/x11vnc/tkx11vnc b/x11vnc/tkx11vnc index b642909..07a12f0 100755 --- a/x11vnc/tkx11vnc +++ b/x11vnc/tkx11vnc @@ -55,6 +55,7 @@ catch {rename send {}} # 0 means to skip the item. # -- means add a separator # + proc set_template {} { global template set template " @@ -186,6 +187,8 @@ Misc -- =F rc: norc + filexfer + -- nofb =D nobell nolookup @@ -572,6 +575,22 @@ of actions: Stop x11vnc - Directs the x11vnc server to disconnect all vncviewers and then exit. The tray/icon GUI then exits as well. + Custom - If you have a \$HOME/.x11vnc.gui file each uncommented + line in it becomes an additional menu item for this + menu. The remote control command is run directly + via \"x11vnc -R <command>\", or if prefixed with + \"action:\" runs a gui internal action, or if \"sep\" + adds a separator. Set X11VNC_CUSTOM_GUI to use + a different filename. Example file contents: + + scale:3/4 + scale:1 + scale_cursor:1 + sep + action:all-settings + #debug_keyboard + sep + action:Quit Termination: @@ -1315,7 +1334,9 @@ proc help_win {item} { set ok 0 set text "Help on $item:\n\n" - if {[is_gui_internal $item]} { + if {$item == "NewClient"} { + ; + } elseif {[is_gui_internal $item]} { if {$item != "gui" && $item != "all" && $item != "Misc-Tuning:" \ && $item != "Properties" && $item != "Tray"} { append text " + Is a gui internal Action (cannot be set).\n"; @@ -1327,7 +1348,9 @@ proc help_win {item} { } else { append text " - Cannot be changed in a running x11vnc.\n"; } - if {[is_gui_internal $item]} { + if {$item == "NewClient"} { + ; + } elseif {[is_gui_internal $item]} { ; } elseif {[active_when_starting $item]} { append text " + Can be set at x11vnc startup.\n"; @@ -2860,6 +2883,9 @@ proc do_action {item} { } elseif {$item == "WindowView"} { change_view_state return + } elseif {$item == "quit" || $item == "Quit"} { + destroy . + exit 0 } elseif {$item == "stop+quit"} { do_stop_quit } @@ -3844,6 +3870,7 @@ proc props_advanced {} { } else { set first 0 } + update wm deiconify $full_win update @@ -4119,6 +4146,8 @@ proc pmenu {m x y} { set x [expr $x-10] set y [expr $y-10] $m post $x $y + # XXX more care needed + grab set -global $m } proc set_client_balloon {str} { @@ -4158,7 +4187,9 @@ proc set_client_balloon {str} { } } else { set i [expr $count+1] - set client_balloon "${client_balloon}\nunknown-host$i" + if {$i == 1} { + set client_balloon "${client_balloon}\nunknown-host$i" + } } incr count } @@ -4458,18 +4489,27 @@ proc get_icon_label {{set 0}} { return $lab } +# currently unused proc lmenu {menu} { global popup_cascade_posted + global left_iconwin_menu + set left_iconwin_menu 1 after 100 - if {!$popup_cascade_posted} { - after 100 - if {!$popup_cascade_posted} { + update + if {!$popup_cascade_posted && $left_iconwin_menu} { + for {set i 0} {$i < 3} {incr i} { + after 100 + update + } + if {!$popup_cascade_posted && $left_iconwin_menu} { $menu unpost return } } # kludge for WindowView - focus $menu + if {$popup_cascade_posted} { + focus $menu + } } proc old_balloon {} { @@ -4490,6 +4530,78 @@ proc old_balloon {} { } } +proc get_custom_menu_items {} { + global env custom_last_read + + if {![info exists custom_last_read]} { + set custom_last_read 0 + } + if {[info exists env(X11VNC_CUSTOM_GUI)]} { + set custom "$env(X11VNC_CUSTOM_GUI)" + } elseif {![info exists env(HOME)]} { + return [list "none"] + } else { + set custom "$env(HOME)/.x11vnc.gui" + } + if {![file exists $custom]} { + return [list "none"] + } + +# if {[file mtime $custom] <= $custom_last_read} { +# return [list "nochange"] +# } + + set in "" + catch {set in [open $custom "r"]} + if {$in == ""} { + return [list "none"] + } + + set custom_last_read [clock seconds] + + set count 0 + while {[gets $in line] > -1} { + if {[regexp {^[ \t]*#} $line]} { + continue + } + set line [string trim $line] + if {$line != ""} { + lappend items $line + incr count + } + } + close $in + + if {$count > 0} { + return $items + } else { + return [list "none"] + } +} + +proc make_custom_menu {menu font} { + set items [get_custom_menu_items] + set i0 [lindex $items 0] + catch {$menu delete 0 end} + if {$i0 != "none"} { + $menu add command -font $font -label "Custom items:" + $menu add separator + foreach item $items { + if {$item == "sep" || $item == "separator"} { + $menu add separator + continue + } + if {[regexp {^action:(.*)$} $item m action]} { + $menu add command -font $font -label "$action" \ + -command "do_var $action" + continue + } + $menu add command -font $font -label "$item" \ + -command "run_remote_cmd \[list \"-R\" \"$item\"\]" + } + } +} + proc make_icon {} { global icon_mode icon_embed_id icon_win props_win full_win global tray_embed tray_running env @@ -4572,13 +4684,25 @@ proc make_icon {} { $menu add command -font $mfont -label "Stop x11vnc" -command clean_icon_exit - bind $icon_win <ButtonPress-1> "pmenu $menu %X %Y" - bind $icon_win <ButtonPress-3> "pmenu $menu %X %Y" + set items [get_custom_menu_items] + set i0 [lindex $items 0] + if {$i0 != "none" && $i0 != "nochange"} { + $menu add separator + set cm "$menu.custom" + catch {destroy $cm} + menu $cm -tearoff 0 -font $ffont \ + -postcommand "set popup_cascade_posted 1; make_custom_menu $cm $ffont" + $menu add cascade -font $mfont -label "Custom:" -menu $cm + } + + bind $icon_win <ButtonRelease-1> "pmenu $menu %X %Y" + bind $icon_win <ButtonRelease-3> "pmenu $menu %X %Y" bind $icon_win <Enter> {set client_balloon_id [after 500 show_client_balloon]} bind $icon_win <Button> {kill_client_balloon} 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 <Leave> "lmenu $menu" +# bind $menu <Enter> "set left_iconwin_menu 0" ## bind $menu <KeyPress-Escape> "$menu unpost" bind . <Control-KeyPress-c> {destroy .; exit 0} @@ -4599,7 +4723,9 @@ proc make_icon {} { } wm iconname . "tkx11vnc" wm title . "tkx11vnc" + update wm deiconify . + update old_balloon } @@ -4739,6 +4865,7 @@ proc make_gui {mode} { set gui_current_state $mode + update wm deiconify . update idletasks wm minsize $w [winfo width $w] [winfo height $w] @@ -5195,9 +5322,10 @@ proc get_settings_rcfile {} { proc double_check_start_x11vnc {} { global hostname set msg [get_start_x11vnc_txt] + bell append msg "\n" - append msg "*** To run the above command on machine \"$hostname\" to\n" - append msg "*** start x11vnc press \"OK\" otherwise press \"Cancel\".\n" + append msg "*** To run the above command on machine \"$hostname\" (thereby\n" + append msg "*** starting x11vnc) press \"OK\", otherwise press \"Cancel\".\n" return [warning_dialog $msg "start"] } @@ -5402,8 +5530,12 @@ proc run_remote_cmd_via_sock {opts} { global client_sock set db 0 + if {[file channels $client_sock] == ""} { + set client_sock "" + return "fail" + } if {[eof $client_sock]} { - close $client_sock + catch {close $client_sock} set client_sock "" return "fail" } @@ -5750,6 +5882,8 @@ proc undo_tray_embed {} { ############################################################################ # main: +wm withdraw . + global env x11vnc_prog x11vnc_cmdline x11vnc_xdisplay x11vnc_connect; global x11vnc_xdisplay0 global x11vnc_client_file x11vnc_gui_geom x11vnc_started vnc_url diff --git a/x11vnc/tkx11vnc.h b/x11vnc/tkx11vnc.h index 9aaf5fa..ee6fe5d 100644 --- a/x11vnc/tkx11vnc.h +++ b/x11vnc/tkx11vnc.h @@ -61,6 +61,7 @@ "# 0 means to skip the item.\n" "# -- means add a separator\n" "#\n" +"\n" "proc set_template {} {\n" " global template\n" " set template \"\n" @@ -192,6 +193,8 @@ " --\n" " =F rc:\n" " norc\n" +" filexfer\n" +" --\n" " nofb\n" " =D nobell\n" " nolookup\n" @@ -578,6 +581,22 @@ " Stop x11vnc - Directs the x11vnc server to disconnect all vncviewers\n" " and then exit. The tray/icon GUI then exits as well.\n" "\n" +" Custom - If you have a \\$HOME/.x11vnc.gui file each uncommented\n" +" line in it becomes an additional menu item for this\n" +" menu. The remote control command is run directly\n" +" via \\\"x11vnc -R <command>\\\", or if prefixed with \n" +" \\\"action:\\\" runs a gui internal action, or if \\\"sep\\\"\n" +" adds a separator. Set X11VNC_CUSTOM_GUI to use\n" +" a different filename. Example file contents:\n" +"\n" +" scale:3/4\n" +" scale:1\n" +" scale_cursor:1\n" +" sep\n" +" action:all-settings\n" +" #debug_keyboard\n" +" sep\n" +" action:Quit\n" "\n" "Termination:\n" "\n" @@ -1321,7 +1340,9 @@ " set ok 0\n" " set text \"Help on $item:\\n\\n\"\n" "\n" -" if {[is_gui_internal $item]} {\n" +" if {$item == \"NewClient\"} {\n" +" ;\n" +" } elseif {[is_gui_internal $item]} {\n" " if {$item != \"gui\" && $item != \"all\" && $item != \"Misc-Tuning:\" \\\n" " && $item != \"Properties\" && $item != \"Tray\"} {\n" " append text \" + Is a gui internal Action (cannot be set).\\n\";\n" @@ -1333,7 +1354,9 @@ " } else {\n" " append text \" - Cannot be changed in a running x11vnc.\\n\";\n" " }\n" -" if {[is_gui_internal $item]} {\n" +" if {$item == \"NewClient\"} {\n" +" ;\n" +" } elseif {[is_gui_internal $item]} {\n" " ;\n" " } elseif {[active_when_starting $item]} {\n" " append text \" + Can be set at x11vnc startup.\\n\";\n" @@ -2866,6 +2889,9 @@ " } elseif {$item == \"WindowView\"} {\n" " change_view_state\n" " return\n" +" } elseif {$item == \"quit\" || $item == \"Quit\"} {\n" +" destroy .\n" +" exit 0\n" " } elseif {$item == \"stop+quit\"} {\n" " do_stop_quit\n" " }\n" @@ -3850,6 +3876,7 @@ " } else {\n" " set first 0\n" " }\n" +" update\n" " wm deiconify $full_win\n" " update\n" "\n" @@ -4125,6 +4152,8 @@ " set x [expr $x-10]\n" " set y [expr $y-10]\n" " $m post $x $y\n" +" # XXX more care needed\n" +" grab set -global $m\n" "}\n" "\n" "proc set_client_balloon {str} {\n" @@ -4164,7 +4193,9 @@ " }\n" " } else {\n" " set i [expr $count+1]\n" -" set client_balloon \"${client_balloon}\\nunknown-host$i\"\n" +" if {$i == 1} {\n" +" set client_balloon \"${client_balloon}\\nunknown-host$i\"\n" +" }\n" " }\n" " incr count\n" " }\n" @@ -4464,18 +4495,27 @@ " return $lab\n" "}\n" "\n" +"# currently unused\n" "proc lmenu {menu} {\n" " global popup_cascade_posted\n" +" global left_iconwin_menu\n" +" set left_iconwin_menu 1\n" " after 100\n" -" if {!$popup_cascade_posted} {\n" -" after 100\n" -" if {!$popup_cascade_posted} {\n" +" update\n" +" if {!$popup_cascade_posted && $left_iconwin_menu} {\n" +" for {set i 0} {$i < 3} {incr i} {\n" +" after 100\n" +" update\n" +" }\n" +" if {!$popup_cascade_posted && $left_iconwin_menu} {\n" " $menu unpost\n" " return\n" " }\n" " }\n" " # kludge for WindowView\n" -" focus $menu\n" +" if {$popup_cascade_posted} {\n" +" focus $menu\n" +" }\n" "}\n" "\n" "proc old_balloon {} {\n" @@ -4496,6 +4536,78 @@ " }\n" "}\n" "\n" +"proc get_custom_menu_items {} {\n" +" global env custom_last_read\n" +"\n" +" if {![info exists custom_last_read]} {\n" +" set custom_last_read 0\n" +" }\n" +" if {[info exists env(X11VNC_CUSTOM_GUI)]} {\n" +" set custom \"$env(X11VNC_CUSTOM_GUI)\"\n" +" } elseif {![info exists env(HOME)]} {\n" +" return [list \"none\"]\n" +" } else {\n" +" set custom \"$env(HOME)/.x11vnc.gui\"\n" +" }\n" +" if {![file exists $custom]} {\n" +" return [list \"none\"]\n" +" }\n" +"\n" +"# if {[file mtime $custom] <= $custom_last_read} {\n" +"# return [list \"nochange\"]\n" +"# }\n" +"\n" +" set in \"\"\n" +" catch {set in [open $custom \"r\"]} \n" +" if {$in == \"\"} {\n" +" return [list \"none\"]\n" +" }\n" +"\n" +" set custom_last_read [clock seconds]\n" +"\n" +" set count 0\n" +" while {[gets $in line] > -1} {\n" +" if {[regexp {^[ \\t]*#} $line]} {\n" +" continue\n" +" }\n" +" set line [string trim $line]\n" +" if {$line != \"\"} {\n" +" lappend items $line\n" +" incr count\n" +" }\n" +" }\n" +" close $in\n" +" \n" +" if {$count > 0} {\n" +" return $items\n" +" } else {\n" +" return [list \"none\"]\n" +" }\n" +"}\n" +"\n" +"proc make_custom_menu {menu font} {\n" +" set items [get_custom_menu_items]\n" +" set i0 [lindex $items 0]\n" +" catch {$menu delete 0 end}\n" +" if {$i0 != \"none\"} {\n" +" $menu add command -font $font -label \"Custom items:\"\n" +" $menu add separator\n" +" foreach item $items {\n" +" if {$item == \"sep\" || $item == \"separator\"} {\n" +" $menu add separator\n" +" continue\n" +" }\n" +" if {[regexp {^action:(.*)$} $item m action]} {\n" +" $menu add command -font $font -label \"$action\" \\\n" +" -command \"do_var $action\"\n" +" continue\n" +" }\n" +" $menu add command -font $font -label \"$item\" \\\n" +" -command \"run_remote_cmd \\[list \\\"-R\\\" \\\"$item\\\"\\]\"\n" +" }\n" +" }\n" +"}\n" +"\n" "proc make_icon {} {\n" " global icon_mode icon_embed_id icon_win props_win full_win\n" " global tray_embed tray_running env\n" @@ -4578,13 +4690,25 @@ "\n" " $menu add command -font $mfont -label \"Stop x11vnc\" -command clean_icon_exit\n" "\n" -" bind $icon_win <ButtonPress-1> \"pmenu $menu %X %Y\"\n" -" bind $icon_win <ButtonPress-3> \"pmenu $menu %X %Y\"\n" +" set items [get_custom_menu_items]\n" +" set i0 [lindex $items 0]\n" +" if {$i0 != \"none\" && $i0 != \"nochange\"} {\n" +" $menu add separator\n" +" set cm \"$menu.custom\"\n" +" catch {destroy $cm}\n" +" menu $cm -tearoff 0 -font $ffont \\\n" +" -postcommand \"set popup_cascade_posted 1; make_custom_menu $cm $ffont\"\n" +" $menu add cascade -font $mfont -label \"Custom:\" -menu $cm\n" +" }\n" +"\n" +" bind $icon_win <ButtonRelease-1> \"pmenu $menu %X %Y\"\n" +" bind $icon_win <ButtonRelease-3> \"pmenu $menu %X %Y\"\n" " bind $icon_win <Enter> {set client_balloon_id [after 500 show_client_balloon]}\n" " bind $icon_win <Button> {kill_client_balloon}\n" " 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 <Leave> \"lmenu $menu\"\n" +"# bind $menu <Enter> \"set left_iconwin_menu 0\"\n" "## bind $menu <KeyPress-Escape> \"$menu unpost\"\n" "\n" " bind . <Control-KeyPress-c> {destroy .; exit 0}\n" @@ -4605,7 +4729,9 @@ " }\n" " wm iconname . \"tkx11vnc\"\n" " wm title . \"tkx11vnc\"\n" +" update\n" " wm deiconify .\n" +" update\n" "\n" " old_balloon\n" "}\n" @@ -4745,6 +4871,7 @@ " set gui_current_state $mode\n" "\n" "\n" +" update\n" " wm deiconify .\n" " update idletasks\n" " wm minsize $w [winfo width $w] [winfo height $w]\n" @@ -5201,9 +5328,10 @@ "proc double_check_start_x11vnc {} {\n" " global hostname\n" " set msg [get_start_x11vnc_txt]\n" +" bell\n" " append msg \"\\n\"\n" -" append msg \"*** To run the above command on machine \\\"$hostname\\\" to\\n\"\n" -" append msg \"*** start x11vnc press \\\"OK\\\" otherwise press \\\"Cancel\\\".\\n\"\n" +" append msg \"*** To run the above command on machine \\\"$hostname\\\" (thereby\\n\"\n" +" append msg \"*** starting x11vnc) press \\\"OK\\\", otherwise press \\\"Cancel\\\".\\n\"\n" " return [warning_dialog $msg \"start\"]\n" "}\n" "\n" @@ -5408,8 +5536,12 @@ " global client_sock\n" "\n" " set db 0\n" +" if {[file channels $client_sock] == \"\"} {\n" +" set client_sock \"\"\n" +" return \"fail\"\n" +" }\n" " if {[eof $client_sock]} {\n" -" close $client_sock\n" +" catch {close $client_sock}\n" " set client_sock \"\"\n" " return \"fail\"\n" " }\n" @@ -5756,6 +5888,8 @@ "############################################################################\n" "# main:\n" "\n" +"wm withdraw .\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" diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1 index bab06e5..d112da9 100644 --- a/x11vnc/x11vnc.1 +++ b/x11vnc/x11vnc.1 @@ -1,8 +1,8 @@ .\" This file was automatically generated from x11vnc -help output. -.TH X11VNC "1" "July 2005" "x11vnc " "User Commands" +.TH X11VNC "1" "October 2005" "x11vnc " "User Commands" .SH NAME x11vnc - allow VNC connections to real X11 displays - version: 0.7.3, lastmod: 2005-07-17 + version: 0.7.3, lastmod: 2005-10-22 .SH SYNOPSIS .B x11vnc [OPTION]... @@ -253,6 +253,10 @@ option, otherwise the stderr goes to the viewer which will cause it to abort. Specifying both \fB-inetd\fR and \fB-q\fR and no \fB-o\fR will automatically close the stderr. .PP +\fB-filexfer\fR +.IP +Enable the TightVNC file transfer extension. +.PP \fB-http\fR .IP Instead of using \fB-httpdir\fR (see below) to specify @@ -577,7 +581,9 @@ color with "gnome:", "kde:", "cde:" or "root:". .IP Black out rectangles on the screen. \fIstring\fR is a comma separated list of WxH+X+Y type geometries for -each rectangle. +each rectangle. If one of the items on the list is the +string "noptr" the mouse pointer will not be allowed +to go into a blacked out region. .PP \fB-xinerama\fR .IP @@ -1545,6 +1551,13 @@ text output. By default x11vnc will try to detect this no user input), and sleep up to 1.5 secs to let things "catch up". Use this option to disable that detection. .PP +\fB-slow_fb\fR \fItime\fR +.IP +Floating point time in seconds delay all screen polling. +For special purpose usage where a low frame rate is +acceptable and desirable, but you want the user input +processed at the normal rate so you cannot use \fB-wait.\fR +.PP \fB-readtimeout\fR \fIn\fR .IP Set libvncserver rfbMaxClientWait to n seconds. On @@ -2190,6 +2203,8 @@ wait_bog disable \fB-nowait_bog\fR mode. .IP nowait_bog enable \fB-nowait_bog\fR mode. .IP +slow_fb:f set \fB-slow_fb\fR to f seconds. +.IP readtimeout:n set read timeout to n seconds. .IP nap enable \fB-nap\fR mode. @@ -2362,14 +2377,14 @@ xwarp noxwarppointer noxwarp buttonmap dragging nodragging wireframe_mode wireframe wf nowireframe nowf wirecopyrect wcr nowirecopyrect nowcr scr_area scr_skip scr_inc scr_keys scr_term scr_keyrepeat -scr_parms scrollcopyrect scr noscrollcopyrect -noscr fixscreen noxrecord xrecord reset_record -pointer_mode pm input_skip input client_input -speeds wmdt debug_pointer dp nodebug_pointer nodp -debug_keyboard dk nodebug_keyboard nodk deferupdate -defer wait_ui wait_bog nowait_bog wait readtimeout -nap nonap sb screen_blank fs gaps grow fuzz snapfb -nosnapfb rawfb progressive rfbport http nohttp httpport +scr_parms scrollcopyrect scr noscrollcopyrect noscr +fixscreen noxrecord xrecord reset_record pointer_mode +pm input_skip input client_input speeds wmdt +debug_pointer dp nodebug_pointer nodp debug_keyboard +dk nodebug_keyboard nodk deferupdate defer wait_ui +wait_bog nowait_bog slow_fb wait readtimeout nap nonap +sb screen_blank fs gaps grow fuzz snapfb nosnapfb +rawfb progressive rfbport http nohttp httpport httpdir enablehttpproxy noenablehttpproxy alwaysshared noalwaysshared nevershared noalwaysshared dontdisconnect nodontdisconnect desktop debug_xevents nodebug_xevents diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index a84d0bd..5737a90 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -35,8 +35,8 @@ * respectively. To increase portability it is written in plain C. * * Another goal is to improve performance and interactive response. - * The algorithm of x0rfbserver was used as a base. Additional heuristics - * are also applied. + * The algorithm of x0rfbserver was used as a base. Many additional + * heuristics are also applied. * * Another goal is to add many features that enable and incourage creative * usage and application of the tool. Apologies for the large number @@ -163,6 +163,7 @@ * -DREMOTE_DEFAULT=0 to disable remote-control on by default (-yesremote). * -DREMOTE_CONTROL=0 to disable remote-control mechanism completely. * -DEXTERNAL_COMMANDS=0 to disable the running of all external commands. + * -DFILEXFER=1 enable -filexfer as the default. * * -DHARDWIRE_PASSWD=... hardwired passwords, quoting necessary. * -DHARDWIRE_VIEWPASSWD=... @@ -397,7 +398,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-17"; +char lastmod[] = "0.7.3 lastmod: 2005-10-22"; int hack_val = 0; /* X display info */ @@ -669,7 +670,7 @@ void mark_hint(hint_t); void mark_rect_as_modified(int x1, int y1, int x2, int y2, int force); enum rfbNewClientAction new_client(rfbClientPtr client); -void set_nofb_params(void); +void set_nofb_params(int); void set_raw_fb_params(int); void nofb_hook(rfbClientPtr client); void pointer(int mask, int x, int y, rfbClientPtr client); @@ -786,6 +787,7 @@ int logfile_append = 0; char *flagfile = NULL; /* -flag */ char *passwdfile = NULL; /* -passwdfile */ char *blackout_str = NULL; /* -blackout */ +int blackout_ptr = 0; char *clip_str = NULL; /* -clip */ int use_solid_bg = 0; /* -solid */ char *solid_str = NULL; @@ -863,6 +865,10 @@ char *allowed_input_normal = NULL; char *allowed_input_str = NULL; char *viewonly_passwd = NULL; /* view only passwd. */ int inetd = 0; /* spawned from inetd(1) */ +#ifndef FILEXFER +#define FILEXFER 0 +#endif +int filexfer = FILEXFER; int first_conn_timeout = 0; /* -timeout */ int flash_cmap = 0; /* follow installed colormaps */ int shift_cmap = 0; /* ncells < 256 and needs shift of pixel values */ @@ -980,9 +986,11 @@ typedef struct winattr { winattr_t *stack_list = NULL; int stack_list_len = 0; int stack_list_num = 0; +#if 0 winattr_t *stack_clip = NULL; int stack_clip_len = 0; int stack_clip_num = 0; +#endif /* T+B+L+R,tkey+presist_key,tmouse+persist_mouse */ #ifndef SCROLL_COPYRECT_PARMS @@ -1104,6 +1112,7 @@ int flip_byte_order = 0; /* sometimes needed when using_shm = 0 */ */ int waitms = 30; double wait_ui = 2.0; +double slow_fb = 0.0; int wait_bog = 1; int defer_update = 30; /* deferUpdateTime ms to wait before sends. */ int got_defer = 0; @@ -6771,6 +6780,9 @@ void read_vnc_connect_prop(void) { ; } else if (strstr(vnc_connect_str, "ack=") == vnc_connect_str) { ; + } else if (quiet && strstr(vnc_connect_str, "qry=ping") == + vnc_connect_str) { + ; } else if (strstr(vnc_connect_str, "cmd=") && strstr(vnc_connect_str, "passwd")) { rfbLog("read VNC_CONNECT: *\n"); @@ -10206,6 +10218,12 @@ void initialize_pointer_map(char *pointer_remap) { } } +typedef struct bout { + int x1, y1, x2, y2; +} blackout_t; +int blackouts; +blackout_t blackr[]; + /* * For use in the -wireframe stuff, save the stacking order of the direct * children of the root window. Ideally done before we send ButtonPress @@ -10214,7 +10232,7 @@ void initialize_pointer_map(char *pointer_remap) { void snapshot_stack_list(int free_only, double allowed_age) { static double last_snap = 0.0, last_free = 0.0; double now; - int num, rc, i; + int num, rc, i, j; unsigned int ui; Window r, w; Window *list; @@ -10253,19 +10271,40 @@ void snapshot_stack_list(int free_only, double allowed_age) { } last_snap = now; - if (num > stack_list_len) { + if (num > stack_list_len + blackouts) { int n = 2*num; free(stack_list); stack_list = (winattr_t *) malloc(n*sizeof(winattr_t)); stack_list_len = n; } + j = 0; for (i=0; i<num; i++) { - stack_list[i].win = list[i]; - stack_list[i].fetched = 0; - stack_list[i].valid = 0; - stack_list[i].time = now; - } - stack_list_num = num; + stack_list[j].win = list[i]; + stack_list[j].fetched = 0; + stack_list[j].valid = 0; + stack_list[j].time = now; + j++; + } + for (i=0; i<blackouts; i++) { + stack_list[j].win = 0x1; + stack_list[j].fetched = 1; + stack_list[j].valid = 1; + stack_list[j].x = blackr[i].x1; + stack_list[j].y = blackr[i].y1; + stack_list[j].width = blackr[i].x2 - blackr[i].x1; + stack_list[j].height = blackr[i].y2 - blackr[i].y1; + stack_list[j].time = now; + stack_list[j].map_state = IsViewable; + stack_list[j].rx = -1; + stack_list[j].ry = -1; + j++; + +if (0) fprintf(stderr, "blackr: %d %dx%d+%d+%d\n", i, + stack_list[j-1].width, stack_list[j-1].height, + stack_list[j-1].x, stack_list[j-1].y); + + } + stack_list_num = num + blackouts; if (debug_wireframe > 1) { fprintf(stderr, "snapshot_stack_list: num=%d len=%d\n", stack_list_num, stack_list_len); @@ -10291,7 +10330,9 @@ void update_stack_list(void) { for (k=0; k < stack_list_num; k++) { Window win = stack_list[k].win; - if (!valid_window(win, &attr, 1)) { + if (win != None && win < 10) { + ; /* special, blackout */ + } else if (!valid_window(win, &attr, 1)) { stack_list[k].valid = 0; } else { stack_list[k].valid = 1; @@ -10685,6 +10726,31 @@ void pointer(int mask, int x, int y, rfbClientPtr client) { last_pointer_client = client; last_pointer_time = now; + + if (blackout_ptr && blackouts) { + int b, ok = 1; + /* see if it goes into the blacked out region */ + for (b=0; b < blackouts; b++) { + if (x < blackr[b].x1 || x > blackr[b].x2) { + continue; + } + if (y < blackr[b].y1 || y > blackr[b].y2) { + continue; + } + /* x1 <= x <= x2 and y1 <= y <= y2 */ + ok = 0; + break; + } + if (! ok) { + if (debug_pointer) { + rfbLog("pointer(): blackout_ptr skipping " + "x=%d y=%d in rectangle %d,%d %d,%d\n", x, y, + blackr[b].x1, blackr[b].y1, + blackr[b].x2, blackr[b].y2); + } + return; + } + } } /* @@ -13694,6 +13760,18 @@ char *process_remote_cmd(char *cmd, int stringonly) { first_conn_timeout = to; rfbLog("remote_cmd: set -timeout to %d\n", -to); +#if 0 + } else if (!strcmp(p, "filexfer")) { + /* does this work after rfbInitServer? */ + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, filexfer); + goto qry; + } + rfbLog("remote_cmd: enabling -filexfer.\n"); + filexfer = 1; + rfbRegisterTightVNCFileTransferExtension(); +#endif + } else if (!strcmp(p, "deny") || !strcmp(p, "lock")) { if (query) { snprintf(buf, bufn, "ans=%s:%d", p, deny_all); @@ -14559,6 +14637,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog(" overlay, shm, noonetile, nap, cursor\n"); rfbLog(" cursorpos, cursorshape, bell.\n"); nofb = 0; + set_nofb_params(1); do_new_fb(1); } } else if (!strcmp(p, "nofb")) { @@ -14574,7 +14653,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { nofb = 1; sound_bell = 0; initialize_watch_bell(); - set_nofb_params(); + set_nofb_params(0); do_new_fb(1); } @@ -15491,6 +15570,20 @@ char *process_remote_cmd(char *cmd, int stringonly) { wait_bog = 0; rfbLog("remote_cmd: setting wait_bog to %d\n", wait_bog); + } else if (strstr(p, "slow_fb") == p) { + double w; + COLON_CHECK("slow_fb:") + if (query) { + snprintf(buf, bufn, "ans=%s%s%.2f", p, co, slow_fb); + goto qry; + } + p += strlen("slow_fb:"); + w = atof(p); + if (w <= 0) w = 0.0; + rfbLog("remote_cmd: setting slow_fb factor %.2f -> %.2f\n", + slow_fb, w); + slow_fb = w; + } else if (strstr(p, "wait") == p) { int w; COLON_CHECK("wait:") @@ -18829,7 +18922,55 @@ void set_visual(char *str) { visual_id = vinfo.visualid; } -void set_nofb_params(void) { +void set_nofb_params(int restore) { + static int first = 1; + static int save[100]; + int i = 0; + + if (first) { + first = 0; + save[i++] = use_xfixes; + save[i++] = use_xdamage; + save[i++] = use_xrecord; + save[i++] = wireframe; + save[i++] = use_solid_bg; + save[i++] = overlay; + save[i++] = overlay_cursor; + save[i++] = using_shm; + save[i++] = single_copytile; + save[i++] = take_naps; + save[i++] = measure_speeds; + save[i++] = grab_buster; + save[i++] = show_cursor; + save[i++] = cursor_shape_updates; + save[i++] = cursor_pos_updates; + } + if (restore) { + i = 0; + use_xfixes = save[i++]; + use_xdamage = save[i++]; + use_xrecord = save[i++]; + wireframe = save[i++]; + use_solid_bg = save[i++]; + overlay = save[i++]; + overlay_cursor = save[i++]; + using_shm = save[i++]; + single_copytile = save[i++]; + take_naps = save[i++]; + measure_speeds = save[i++]; + grab_buster = save[i++]; + show_cursor = save[i++]; + cursor_shape_updates = save[i++]; + cursor_pos_updates = save[i++]; + + if (cursor_shape_updates) { + restore_cursor_shape_updates(screen); + } + initialize_cursors_mode(); + + return; + } + use_xfixes = 0; use_xdamage = 0; use_xrecord = 0; @@ -20289,6 +20430,9 @@ void initialize_screen(int *argc, char **argv, XImage *fb) { screen->ptrAddEvent = pointer; screen->setXCutText = xcut_receive; + if (filexfer) { + rfbRegisterTightVNCFileTransferExtension(); + } rfbInitServer(screen); if (viewonly_passwd) { @@ -21013,10 +21157,7 @@ void solid_bg(int restore) { */ /* blacked-out region (-blackout, -xinerama) */ -typedef struct bout { - int x1, y1, x2, y2; -} blackout_t; -#define BO_MAX 16 +#define BO_MAX 32 typedef struct tbout { blackout_t bo[BO_MAX]; /* hardwired max rectangles. */ int cover; @@ -21036,10 +21177,15 @@ void initialize_blackouts(char *list) { char *p, *blist = strdup(list); int x, y, X, Y, h, w, t; - blackouts = 0; - p = strtok(blist, ", \t"); while (p) { + if (!strcmp("noptr", p)) { + blackout_ptr = 1; + rfbLog("pointer will be blocked from blackout " + "regions\n"); + p = strtok(NULL, ", \t"); + continue; + } if (! parse_geom(p, &w, &h, &x, &y, dpy_x, dpy_y)) { if (*p != '\0') { rfbLog("skipping invalid geometry: %s\n", p); @@ -21325,6 +21471,10 @@ void initialize_xinerama (void) { } void initialize_blackouts_and_xinerama(void) { + + blackouts = 0; + blackout_ptr = 0; + if (blackout_str != NULL) { initialize_blackouts(blackout_str); } @@ -23693,6 +23843,16 @@ int scan_for_updates(int count_only) { double frac1 = 0.1; /* tweak parameter to try a 2nd scan_display() */ double frac2 = 0.35; /* or 3rd */ double frac3 = 0.02; /* do scan_display() again after copy_tiles() */ + static double last_poll = 0.0; + + if (slow_fb > 0.0) { + double now = dnow(); + if (now < last_poll + slow_fb) { + return 0; + } + last_poll = now; + } + for (i=0; i < ntiles; i++) { tile_has_diff[i] = 0; tile_has_xdamage_diff[i] = 0; @@ -24130,12 +24290,16 @@ void run_gui(char *gui_xdisplay, int connect_to_x11vnc, int start_x11vnc, } usleep(2200*1000); fprintf(stderr, "\n"); - rfbLog("gui: trying to contact a x11vnc server at X display " - "%s ...\n", NONUL(x11vnc_xdisplay)); + if (!quiet) { + rfbLog("gui: trying to contact a x11vnc server at X" + " display %s ...\n", NONUL(x11vnc_xdisplay)); + } for (i=0; i<try_max; i++) { usleep(sleep*1000); - rfbLog("gui: pinging %s try=%d ...\n", - NONUL(x11vnc_xdisplay), i+1); + if (!quiet) { + rfbLog("gui: pinging %s try=%d ...\n", + NONUL(x11vnc_xdisplay), i+1); + } rc = send_remote_cmd("qry=ping", 1, 1); if (rc == 0) { break; @@ -24424,7 +24588,10 @@ void do_gui(char *opts, int sleep) { " to display on.\n"); exit(1); } - fprintf(stderr, "starting gui, trying display: %s\n", gui_xdisplay); + if (!quiet) { + fprintf(stderr, "starting gui, trying display: %s\n", + gui_xdisplay); + } test_dpy = XOpenDisplay(gui_xdisplay); if (! test_dpy && auth_file) { if (getenv("XAUTHORITY") != NULL) { @@ -27389,6 +27556,17 @@ int try_copyrect(Window frame, int x, int y, int w, int h, int dx, int dy, y2 = crfix(nfix(y+h, dpy_y+1), dy, dpy_y+1); rect = sraRgnCreateRect(x1, y1, x2, y2); + + if (blackouts) { + int i; + sraRegionPtr bo_rect; + for (i=0; i<blackouts; i++) { + bo_rect = sraRgnCreateRect(blackr[i].x1, + blackr[i].y1, blackr[i].x2, blackr[i].y2); + sraRgnSubtract(rect, bo_rect); + sraRgnDestroy(bo_rect); + } + } do_copyregion(rect, dx, dy); sraRgnDestroy(rect); @@ -27440,12 +27618,17 @@ saw_me = 1; fprintf(stderr, " ----------\n"); break; } } +#if 0 +fprintf(stderr, "bo: %d/%lx\n", k, swin); +#endif /* skip some unwanted cases: */ if (swin == None) { continue; } - if (! stack_list[k].fetched || + if (swin < 10) { + ; /* blackouts */ + } else if (! stack_list[k].fetched || stack_list[k].time > tm + 2.0) { if (!valid_window(swin, &attr, 1)) { stack_list[k].valid = 0; @@ -29214,6 +29397,8 @@ void measure_send_rates(int init) { rfbClientPtr cl; int db = 0, msg = 0; +db = 0; + if (! measure_speeds) { return; } @@ -30090,6 +30275,7 @@ static void print_help(int mode) { " option, otherwise the stderr goes to the viewer which\n" " will cause it to abort. Specifying both -inetd and -q\n" " and no -o will automatically close the stderr.\n" +"-filexfer Enable the TightVNC file transfer extension.\n" "-http Instead of using -httpdir (see below) to specify\n" " where the Java vncviewer applet is, have x11vnc try\n" " to *guess* where the directory is by looking relative\n" @@ -30336,7 +30522,9 @@ static void print_help(int mode) { " color with \"gnome:\", \"kde:\", \"cde:\" or \"root:\".\n" "-blackout string Black out rectangles on the screen. \"string\" is a\n" " comma separated list of WxH+X+Y type geometries for\n" -" each rectangle.\n" +" each rectangle. If one of the items on the list is the\n" +" string \"noptr\" the mouse pointer will not be allowed\n" +" to go into a blacked out region.\n" "-xinerama If your screen is composed of multiple monitors\n" " glued together via XINERAMA, and that screen is\n" " not a rectangle this option will try to guess the\n" @@ -31133,6 +31321,10 @@ static void print_help(int mode) { " (3 screen polls in a row each longer than 0.25 sec with\n" " no user input), and sleep up to 1.5 secs to let things\n" " \"catch up\". Use this option to disable that detection.\n" +"-slow_fb time Floating point time in seconds delay all screen polling.\n" +" For special purpose usage where a low frame rate is\n" +" acceptable and desirable, but you want the user input\n" +" processed at the normal rate so you cannot use -wait.\n" "-readtimeout n Set libvncserver rfbMaxClientWait to n seconds. On\n" " slow links that take a long time to paint the first\n" " screen libvncserver may hit the timeout and drop the\n" @@ -31583,6 +31775,7 @@ static void print_help(int mode) { " wait_ui:f set -wait_ui factor to f.\n" " wait_bog disable -nowait_bog mode.\n" " nowait_bog enable -nowait_bog mode.\n" +" slow_fb:f set -slow_fb to f seconds.\n" " readtimeout:n set read timeout to n seconds.\n" " nap enable -nap mode.\n" " nonap disable -nap mode.\n" @@ -31696,14 +31889,14 @@ static void print_help(int mode) { " nodragging wireframe_mode wireframe wf nowireframe\n" " nowf wirecopyrect wcr nowirecopyrect nowcr scr_area\n" " scr_skip scr_inc scr_keys scr_term scr_keyrepeat\n" -" scr_parms scrollcopyrect scr noscrollcopyrect\n" -" noscr fixscreen noxrecord xrecord reset_record\n" -" pointer_mode pm input_skip input client_input\n" -" speeds wmdt debug_pointer dp nodebug_pointer nodp\n" -" debug_keyboard dk nodebug_keyboard nodk deferupdate\n" -" defer wait_ui wait_bog nowait_bog wait readtimeout\n" -" nap nonap sb screen_blank fs gaps grow fuzz snapfb\n" -" nosnapfb rawfb progressive rfbport http nohttp httpport\n" +" scr_parms scrollcopyrect scr noscrollcopyrect noscr\n" +" fixscreen noxrecord xrecord reset_record pointer_mode\n" +" pm input_skip input client_input speeds wmdt\n" +" debug_pointer dp nodebug_pointer nodp debug_keyboard\n" +" dk nodebug_keyboard nodk deferupdate defer wait_ui\n" +" wait_bog nowait_bog slow_fb wait readtimeout nap nonap\n" +" sb screen_blank fs gaps grow fuzz snapfb nosnapfb\n" +" rawfb progressive rfbport http nohttp httpport\n" " httpdir enablehttpproxy noenablehttpproxy alwaysshared\n" " noalwaysshared nevershared noalwaysshared dontdisconnect\n" " nodontdisconnect desktop debug_xevents nodebug_xevents\n" @@ -32385,6 +32578,7 @@ void print_settings(int try_http, int bg, char *gui_str) { fprintf(stderr, " conn_once: %d\n", connect_once); fprintf(stderr, " timeout: %d\n", first_conn_timeout); fprintf(stderr, " inetd: %d\n", inetd); + fprintf(stderr, " filexfer: %d\n", filexfer); fprintf(stderr, " http: %d\n", try_http); fprintf(stderr, " connect: %s\n", client_connect ? client_connect : "null"); @@ -32498,6 +32692,7 @@ void print_settings(int try_http, int bg, char *gui_str) { fprintf(stderr, " waitms: %d\n", waitms); fprintf(stderr, " wait_ui: %.2f\n", wait_ui); fprintf(stderr, " nowait_bog: %d\n", !wait_bog); + fprintf(stderr, " slow_fb: %.2f\n", slow_fb); fprintf(stderr, " readtimeout: %d\n", rfbMaxClientWait/1000); fprintf(stderr, " take_naps: %d\n", take_naps); fprintf(stderr, " sb: %d\n", screen_blank); @@ -32590,20 +32785,27 @@ void nopassword_warning_msg(int gotloc) { "#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#\n" "###############################################################\n" ; - if (quiet) { + char str5[] = +"###############################################################\n\n" +; + if (inetd) { return; } fprintf(stderr, "%s", str1); fflush(stderr); #if !PASSWD_REQUIRED - usleep(2000 * 1000); + usleep(2500 * 1000); #endif - fprintf(stderr, "%s", str2); - if (gotloc) { - fprintf(stderr, "%s", str3); + if (!quiet) { + fprintf(stderr, "%s", str2); + if (gotloc) { + fprintf(stderr, "%s", str3); + } + fprintf(stderr, "%s", str4); + } else { + fprintf(stderr, "%s", str5); } - fprintf(stderr, "%s", str4); fflush(stderr); #if !PASSWD_REQUIRED usleep(500 * 1000); @@ -32763,6 +32965,8 @@ int main(int argc, char* argv[]) { users_list = strdup(argv[++i]); } else if (!strcmp(arg, "-inetd")) { inetd = 1; + } else if (!strcmp(arg, "-filexfer")) { + filexfer = 1; } else if (!strcmp(arg, "-http")) { try_http = 1; } else if (!strcmp(arg, "-connect")) { @@ -33103,6 +33307,9 @@ int main(int argc, char* argv[]) { wait_ui = atof(argv[++i]); } else if (!strcmp(arg, "-nowait_bog")) { wait_bog = 0; + } else if (!strcmp(arg, "-slow_fb")) { + CHECK_ARGC + slow_fb = atof(argv[++i]); } else if (!strcmp(arg, "-readtimeout")) { CHECK_ARGC rfbMaxClientWait = atoi(argv[++i]) * 1000; @@ -33283,6 +33490,7 @@ int main(int argc, char* argv[]) { } } } + if (launch_gui && (query_cmd || remote_cmd)) { launch_gui = 0; gui_str = NULL; @@ -33472,7 +33680,8 @@ int main(int argc, char* argv[]) { exit(1); } - if (!got_passwd && !got_rfbauth && !got_passwdfile) { + if (!got_passwd && !got_rfbauth && !got_passwdfile && + !query_cmd && !remote_cmd) { char message[] = "-rfbauth, -passwdfile, or -passwd password required."; if (! nopw) { @@ -33569,7 +33778,7 @@ int main(int argc, char* argv[]) { if (nofb) { /* disable things that do not make sense with no fb */ - set_nofb_params(); + set_nofb_params(0); if (! got_deferupdate && ! got_defer) { /* reduce defer time under -nofb */ |