diff options
author | runge <runge> | 2005-06-18 16:47:48 +0000 |
---|---|---|
committer | runge <runge> | 2005-06-18 16:47:48 +0000 |
commit | 7b933e170e04576873bb9bcd3f4d19c8ffbf83af (patch) | |
tree | 2653076b422a726baceb6574dabde6fdf4bcada8 | |
parent | 543e64d3c6fa79126be5a5ec5f214a1a96f87335 (diff) | |
download | libvncserver-7b933e170e04576873bb9bcd3f4d19c8ffbf83af.zip libvncserver-7b933e170e04576873bb9bcd3f4d19c8ffbf83af.tar.gz |
configure.ac: HP-UX and OSF1 no -R, x11vnc: second round of beta-testing fixes.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 14 | ||||
-rw-r--r-- | x11vnc/ChangeLog | 5 | ||||
-rw-r--r-- | x11vnc/README | 1502 | ||||
-rw-r--r-- | x11vnc/x11vnc.1 | 8 | ||||
-rw-r--r-- | x11vnc/x11vnc.c | 89 |
6 files changed, 889 insertions, 735 deletions
@@ -1,3 +1,9 @@ +2005-06-18 Karl Runge <runge@karlrunge.com> + * configure.ac: don't use -R on HP-UX and OSF1. + * x11vnc: don't free the current cursor, close stderr + for -inetd -q and no -o logfile, set DISPLAY for -solid + external calls. + 2005-06-14 Karl Runge <runge@karlrunge.com> * configure.ac: XReadScreen and XReadDisplay checks. * libvncserver/cursor.c: fix unsigned long crash for 64bits. diff --git a/configure.ac b/configure.ac index 919f702..f134de5 100644 --- a/configure.ac +++ b/configure.ac @@ -184,7 +184,12 @@ if test "x$with_jpeg" != "xno"; then saved_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS -I$with_jpeg/include" LDFLAGS="$LDFLAGS -L$with_jpeg/lib" - if test "x$GCC" = "xyes"; then + uname_s=`(uname -s) 2>/dev/null` + if test "x$uname_s" = "xHP-UX"; then + : + elif test "x$uname_s" = "xOSF1"; then + : + elif test "x$GCC" = "xyes"; then # this is not complete... in general a rat's nest. LDFLAGS="$LDFLAGS -Xlinker -R$with_jpeg/lib" else @@ -229,7 +234,12 @@ if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then saved_LDFLAGS="$LDFLAGS" CPPFLAGS="$CPPFLAGS -I$with_zlib/include" LDFLAGS="$LDFLAGS -L$with_zlib/lib" - if test "x$GCC" = "xyes"; then + uname_s=`(uname -s) 2>/dev/null` + if test "x$uname_s" = "xHP-UX"; then + : + elif test "x$uname_s" = "xOSF1"; then + : + elif test "x$GCC" = "xyes"; then LDFLAGS="$LDFLAGS -Xlinker -R$with_zlib/lib" else LDFLAGS="$LDFLAGS -R$with_zlib/lib" diff --git a/x11vnc/ChangeLog b/x11vnc/ChangeLog index ff368b3..95456f0 100644 --- a/x11vnc/ChangeLog +++ b/x11vnc/ChangeLog @@ -1,3 +1,8 @@ +2005-06-18 Karl Runge <runge@karlrunge.com> + * clean up some malloc/free problems (don't free the current cursor) + * set DISPLAY before calling gconf, dcop under -solid + * -inetd -q and no -o logfile implies closing stderr. + 2005-06-14 Karl Runge <runge@karlrunge.com> * -DNOGUI and -DVIEWONLY build options * -noskip_dups the default (windows viewer sends no ups when diff --git a/x11vnc/README b/x11vnc/README index dda7b93..a5099a8 100644 --- a/x11vnc/README +++ b/x11vnc/README @@ -1,5 +1,5 @@ -x11vnc README file Date: Mon Jun 13 23:51:46 EDT 2005 +x11vnc README file Date: Sat Jun 18 12:32:19 EDT 2005 The following information is taken from these URLs: @@ -195,7 +195,9 @@ x11vnc: a VNC server for real X displays gateway machine), then you need to change the above to, e.g.: "-L 5900:otherhost:5900". Once logged in, you'll need to do a second login (ssh, rsh, etc.) to the workstation machine 'otherhost' and then start - up x11vnc on it if it isn't already running. + up x11vnc on it (if it isn't already running). For an automatic way to + use a gateway and have all the network traffic encrypted (including + inside the firewall) see [25]chaining ssh's below _________________________________________________________________ @@ -204,7 +206,7 @@ x11vnc: a VNC server for real X displays 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 [25]-bg (forks into background after connection to the + x11vnc option [26]-bg (forks into background after connection to the display is set up) or using the -f option of ssh. Three example scripts are shown below. _________________________________________________________________ @@ -235,7 +237,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 [26]-connect option: + using the [27]-connect option: #!/bin/sh # usage: x11vnc_ssh <host>:<xdisplay> # e.g.: x11vnc_ssh snoopy.peanuts.com:0 @@ -277,48 +279,84 @@ 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 [27]inetd(1)), you can simply + connections (or have it started out of [28]inetd(1)), you can simply use the TightVNC "vncviewer -via gateway host:port" in its default mode to provide secure ssh tunnelling. VNC password file: Also note in the #1. example script that the - [28]option "-rfbauth .vnc/passwd" provides additional protection by + [29]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 [29]-storepasswd + vncpasswd or storepasswd programs, or the x11vnc [30]-storepasswd option can be used to create the password file. x11vnc also has the - slightly less secure [30]-passwdfile and "-passwd XXXXX" [31]options + slightly less secure [31]-passwdfile and "-passwd XXXXX" [32]options to specify passwords. Important: It is up to you to tell x11vnc to use password protection, it will not do it for you 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. Also look into the -allow and - -localhost [32]options and building x11vnc with [33]tcp_wrappers + -localhost [33]options and building x11vnc with [34]tcp_wrappers support to limit host access. + + + Chaining ssh's: Note that for use of a ssh gateway and -L redirection + to a internal host (e.g. "-L 5900:otherhost:5900") the VNC traffic + inside the firewall is not encrypted and you have to manually log into + otherhost to start x11vnc. Kyle Amon shows a method where you chain + two ssh's together that encrypts all network traffic and also + automatically starts up x11vnc on the internal workstation: +#!/bin/sh +# +gateway="example.com" # or "user@example.com" +host="labyrinth" # or "user@hostname" +user="kyle" + +# Need to sleep long enough for all of the passwords and x11vnc to start up. +# The </dev/null below makes the vncviewer prompt for passwd via popup window. +# +(sleep 10; vncviewer -encodings "copyrect tight zrle zlib hextile" \ + localhost:0 </dev/null >/dev/null) & + +# Chain the vnc connection thru 2 ssh's, and connect x11vnc to user's display: +# +exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ + /usr/bin/ssh -t -L 5900:localhost:5900 $host \ + sudo /usr/bin/x11vnc -localhost -auth /home/$user/.Xauthority \ + -rfbauth .vnc/passwd -display :0 + + Also note the use of sudo(1) to switch to root so that the different + user's .Xauthority file can be accessed. See the visudo(8) manpage for + details on how to set this up. One can also chain together ssh's for + reverse connections with vncviewers using the -listen option. For this + case -R would replace the -L (and 5500 the 5900, see the #2 example + script above). If the gateway machine's sshd is configured with + GatewayPorts=no (the default) then the double chaining of "ssh -R ..." + will be required for reverse connections to work. + _________________________________________________________________ Downloading x11vnc: - x11vnc is a contributed program to the [34]LibVNCServer project at + x11vnc is a contributed program to the [35]LibVNCServer project at SourceForge.net. I use libvncserver for all of the VNC aspects; I couldn't have done without it. The full source code may be found and downloaded (either file-release tarball or CVS tree) from the above - link. As of Feb 2005, the [35]x11vnc-0.7.1.tar.gz source package is - released (recommended download) . The [36]x11vnc 0.7.1 release notes. + link. As of Feb 2005, the [36]x11vnc-0.7.1.tar.gz source package is + released (recommended download) . The [37]x11vnc 0.7.1 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 [37]x11vnc-0.7.2.tar.gz tarball. + bleeding edge [38]x11vnc-0.7.2.tar.gz tarball. - See the [38]FAQ below for information about where you might obtain a + See the [39]FAQ below for information about where you might obtain a precompiled x11vnc binary from 3rd parties. To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try these links: - * [39]http://www.tightvnc.com/download.html - * [40]http://www.realvnc.com/download-free.html - * [41]http://sourceforge.net/projects/cotvnc/ + * [40]http://www.tightvnc.com/download.html + * [41]http://www.realvnc.com/download-free.html + * [42]http://sourceforge.net/projects/cotvnc/ More tools: Here is a rsh/ssh wrapper script rx11vnc that attempts to @@ -329,8 +367,8 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. 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: - * [42]rx11vnc wrapper script - * [43]rx11vnc.pl wrapper script to tunnel traffic thru ssh + * [43]rx11vnc wrapper script + * [44]rx11vnc.pl wrapper script to tunnel traffic thru ssh _________________________________________________________________ @@ -360,14 +398,14 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. 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 - [44]http://www.sunfreeware.com/ However, one user reports it does + [45]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 - [45]FAQ's on building. + [46]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 @@ -428,9 +466,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 - [46]ftp://ftp.uu.net/graphics/jpeg/ and zlib at - [47]http://www.gzip.org/zlib/. See also - [48]http://www.sunfreeware.com/ for Solaris binary packages of these + [47]ftp://ftp.uu.net/graphics/jpeg/ and zlib at + [48]http://www.gzip.org/zlib/. See also + [49]http://www.sunfreeware.com/ for Solaris binary packages of these 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. @@ -496,7 +534,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 [49]this workaround FAQ. + OS's, see [50]this workaround FAQ. Building on FreeBSD, OpenBSD, ...: The jpeg libraries seem to be in /usr/local or /usr/pkg on these OS's. You won't need the openwin stuff @@ -540,18 +578,18 @@ make I'd like to release version 0.7.2 in Jun/2005 sometime, here is the current tarball: - RC-2 lastmod: 2005-06-10 [50]x11vnc-0.7.2.tar.gz + RC-3 lastmod: 2005-06-18 [51]x11vnc-0.7.2beta.tar.gz - There are also some Linux and Solaris test binaries [51]here. Please + There are also some Linux and Solaris test binaries [52]here. Please kick the tires and report bugs, performance regressions, undesired - behavior, etc. to [52]me. + behavior, etc. to [53]me. - Here is what is shaping up to be [53]the release notes for 0.7.2.. - Note that the [54]X DAMAGE feature will be on by default and so I am + Here is what is shaping up to be [54]the release notes for 0.7.2.. + Note that the [55]X DAMAGE feature will be on by default and so I am interested if that causes any problems. - I'd also like to have the new [55]wireframe move/resize, the - [56]wireframe copyrect translation, and the [57]scroll + I'd also like to have the new [56]wireframe move/resize, the + [57]wireframe copyrect translation, and the [58]scroll detection+copyrect features all on by default as well since when they work they give a great speedup! (CopyRect is a VNC encoding and is very fast because the viewer already has the image data that needs to @@ -560,10 +598,10 @@ make via "-noscr" or via the gui (all of the other new features can also be toggled by cmdline option or gui, see -help output for more info). - I sent [58]this email request to some folks. It contains additional + I sent [59]this email request to some folks. It contains additional info for beta-testing. - [59]Let me know of any bugs or undesired behavior you find for any of + [60]Let me know of any bugs or undesired behavior you find for any of these new features. Thanks! _________________________________________________________________ @@ -592,10 +630,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 - [60]-solid [color] option that works on recent GNOME, KDE, and CDE and + [61]-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 [61]TightVNC encoding gives the best response for my + I also find the [62]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. @@ -607,16 +645,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 issue with the "[62]-rfbport NNNN" + far-away.east:1. You can force the issue with the "[63]-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 [63]command line options. Useful options are, e.g., -scale to + via its [64]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 - [64]-storepasswd option can be used to create the password file). + [65]-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 @@ -643,15 +681,15 @@ make first testing out the programs. You get an interesting "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 [65]even more interesting effect if + decorations. There will be an [66]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) - [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 + [67]SunRay session (Please remember to use [68]-nap and maybe + [69]-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 @@ -674,7 +712,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 - [69]-rfbport NNNN option. + [70]-rfbport NNNN option. SunRay Gotcha #2: If you get an error like: shmget(tile) failed. @@ -687,7 +725,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 [70]shm_clear that finds the + the ipcrm command. I wrote a script [71]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 @@ -749,10 +787,10 @@ make * Somewhat surprisingly, the X11 mouse (cursor) shape is write-only and cannot be queried from the X server. So in x11vnc the cursor shape stays fixed at an arrow. (see the "-cursor X" and "-cursor - some" [71]options, however, for a partial hack for the root + some" [72]options, however, for a partial hack for the root window, etc.). Also, on Solaris using the SUN_OVL overlay extension, x11vnc can show the correct mouse cursor when the - [72]-overlay option is also supplied. A similar thing is done on + [73]-overlay option is also supplied. A similar thing is done on IRIX as well when -overlay is supplied. As of Dec/2004 x11vnc supports the XFIXES extension (in Xorg and Solaris 10) to query the X server for the exact cursor shape, this works pretty well @@ -767,9 +805,9 @@ make Evidently a timing related bug and difficult to reproduce... * Using -threads can expose some bugs in libvncserver. - Please feel free to [73]contact me if you have any questions, + Please feel free to [74]contact me if you have any questions, problems, or comments about x11vnc, etc. - Also, some people ask if they can make a donation, see [74]this link + Also, some people ask if they can make a donation, see [75]this link for that. _________________________________________________________________ @@ -778,282 +816,282 @@ make [Building and Starting] - [75]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed + [76]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? - [76]Q-2: I can't get x11vnc and/or libvncserver to compile. + [77]Q-2: I can't get x11vnc and/or libvncserver to compile. - [77]Q-3: I just built x11vnc successfully, but when I use it my + [78]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). - [78]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old + [79]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old Unix/Linux) and it doesn't compile! - [79]Q-5: Where can I get a precompiled x11vnc binary for my Operating + [80]Q-5: Where can I get a precompiled x11vnc binary for my Operating System? - [80]Q-6: Where can I get a VNC Viewer binary (or source code) for the + [81]Q-6: Where can I get a VNC Viewer binary (or source code) for the Operating System I will be viewing from? - [81]Q-7: How can I see all of x11vnc's command line options and + [82]Q-7: How can I see all of x11vnc's command line options and documentation on how to use them? - [82]Q-8: I don't like typing arcane command line options every time I + [83]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? - [83]Q-9: Can I make x11vnc more quiet and also go into the background + [84]Q-9: Can I make x11vnc more quiet and also go into the background after starting up? - [84]Q-10: Sometimes when a VNC viewer dies abruptly, x11vnc also dies + [85]Q-10: 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. - [85]Q-11: Are there any build-time customizations possible, e.g. + [86]Q-11: Are there any build-time customizations possible, e.g. change defaults, create a smaller binary, etc? [Win2VNC Related] - [86]Q-12: I have two separate machine displays in front of me, one + [87]Q-12: 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? - [87]Q-13: I am running Win2VNC on my Windows machine and "x11vnc + [88]Q-13: 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] - [88]Q-14: The X display I run x11vnc on is only 8 bits per pixel (bpp) + [89]Q-14: 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. - [89]Q-15: Color problems: Why are the colors for some windows messed + [90]Q-15: Color problems: Why are the colors for some windows messed up 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. - [90]Q-16: How do I figure out the window id to supply to the -id + [91]Q-16: How do I figure out the window id to supply to the -id windowid option? - [91]Q-17: Why don't menus or other transient windows come up when I am + [92]Q-17: Why don't menus or other transient windows come up when I am using the -id windowid option to view a single application window? - [92]Q-18: My X display is depth 24 at 24bpp (instead of the normal + [93]Q-18: 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] - [93]Q-19: Can I use x11vnc to view and interact with an Xterminal + [94]Q-19: 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? - [94]Q-20: How do I get my X permissions (MIT-MAGIC-COOKIE) correct for + [95]Q-20: How do I get my X permissions (MIT-MAGIC-COOKIE) correct for a Unix/Linux machine acting as an Xterminal? [Remote Control] - [95]Q-21: How do I stop x11vnc once it is running in the background? + [96]Q-21: How do I stop x11vnc once it is running in the background? - [96]Q-22: Can I change settings in x11vnc without having to restart + [97]Q-22: Can I change settings in x11vnc without having to restart it? Can I remote control it? [Security and Permissions] - [97]Q-23: How do I create a VNC password for use with x11vnc? + [98]Q-23: How do I create a VNC password for use with x11vnc? - [98]Q-24: Can I have two passwords for VNC viewers, one for full + [99]Q-24: Can I have two passwords for VNC viewers, one for full access and the other for view-only access to the display? - [99]Q-25: Can I fine tune what types of user input are allowed? E.g. + [100]Q-25: 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? - [100]Q-26: Why does x11vnc exit as soon as the VNC viewer disconnects? + [101]Q-26: 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? - [101]Q-27: Can I limit which machines incoming VNC clients can connect + [102]Q-27: Can I limit which machines incoming VNC clients can connect from? - [102]Q-28: How do I build x11vnc/libvncserver with libwrap + [103]Q-28: How do I build x11vnc/libvncserver with libwrap (tcp_wrappers) support? - [103]Q-29: Can I have x11vnc only listen on one network interface + [104]Q-29: 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? - [104]Q-30: Now that -localhost implies listening only on the loopback + [105]Q-30: Now that -localhost implies listening only on the loopback interface, how I can occasionally allow in a non-localhost via the allowonce remote control command? - [105]Q-31: How can I tunnel my connection to x11vnc via an encrypted + [106]Q-31: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - [106]Q-32: How can I tunnel my connection to x11vnc via an encrypted + [107]Q-32: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [107]Q-33: Can I prompt the user at the local X display whether the + [108]Q-33: 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? - [108]Q-34: Does x11vnc support Unix usernames and passwords? Can I + [109]Q-34: Does x11vnc support Unix usernames and passwords? Can I further limit the set of Unix usernames who can connect to the VNC desktop? - [109]Q-35: I start x11vnc as root because it is launched via inetd(1) + [110]Q-35: 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? - [110]Q-36: I use a screen-lock when I leave my workstation (e.g. + [111]Q-36: 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? - [111]Q-37: Can I have x11vnc automatically lock the screen when I + [112]Q-37: Can I have x11vnc automatically lock the screen when I disconnect the VNC viewer? [Display Managers and Services] - [112]Q-38: How can I run x11vnc as a "service" that is always + [113]Q-38: How can I run x11vnc as a "service" that is always available? - [113]Q-39: How can I use x11vnc to connect to an X login screen like + [114]Q-39: 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). - [114]Q-40: Can I run x11vnc out of inetd(1)? How about xinetd(1)? + [115]Q-40: Can I run x11vnc out of inetd(1)? How about xinetd(1)? - [115]Q-41: How do I make x11vnc work with the Java VNC viewer applet + [116]Q-41: How do I make x11vnc work with the Java VNC viewer applet in a web browser? - [116]Q-42: Are reverse connections (i.e. the VNC server connecting to + [117]Q-42: Are reverse connections (i.e. the VNC server connecting to the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported? - [117]Q-43: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a + [118]Q-43: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a real display, but for a virtual one I keep around). - [118]Q-44: How can I use x11vnc on "headless" machines? Why might I + [119]Q-44: How can I use x11vnc on "headless" machines? Why might I want to? [Resource Usage and Performance] - [119]Q-45: I have lots of memory, but why does x11vnc fail with + [120]Q-45: 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)? - [120]Q-46: How can I make x11vnc use less system resources? + [121]Q-46: How can I make x11vnc use less system resources? - [121]Q-47: How can I make x11vnc use MORE system resources? + [122]Q-47: How can I make x11vnc use MORE system resources? - [122]Q-48: I use x11vnc over a slow link with high latency (e.g. + [123]Q-48: I use x11vnc over a slow link with high latency (e.g. dialup modem), is there anything I can do to speed things up? - [123]Q-49: Does x11vnc support the X DAMAGE Xserver extension to find + [124]Q-49: Does x11vnc support the X DAMAGE Xserver extension to find modified regions of the screen quickly and efficiently? - [124]Q-50: When I drag windows around with the mouse or scroll up and + [125]Q-50: 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? - [125]Q-51: Why not do something like wireframe animations to avoid the + [126]Q-51: Why not do something like wireframe animations to avoid the windows "lurching" when being moved or resized? - [126]Q-52: Can x11vnc try to apply heuristics to detect when an window + [127]Q-52: 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] - [127]Q-53: Why isn't the mouse cursor shape (the little icon shape + [128]Q-53: Why isn't the mouse cursor shape (the little icon shape where the mouse pointer is) correct as I move from window to window? - [128]Q-54: When using XFIXES cursorshape mode, some of the cursors + [129]Q-54: 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? - [129]Q-55: In XFIXES mode, are there any hacks to handle cursor + [130]Q-55: In XFIXES mode, are there any hacks to handle cursor transparency ("alpha channel") exactly? [Mouse Pointer] - [130]Q-56: Why does the mouse arrow just stay in one corner in my + [131]Q-56: Why does the mouse arrow just stay in one corner in my vncviewer, whereas my cursor (that does move) is just a dot? - [131]Q-57: Can I take advantage of the TightVNC extension to the VNC + [132]Q-57: 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)? - [132]Q-58: Is it possible to swap the mouse buttons (e.g. left-handed + [133]Q-58: 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] - [133]Q-59: How can I get my AltGr and Shift modifiers to work between + [134]Q-59: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - [134]Q-60: When I try to type a "<" (i.e. less than) instead I get ">" + [135]Q-60: When I try to type a "<" (i.e. less than) instead I get ">" (i.e. greater than)! Strangely, typing ">" works OK!! - [135]Q-61: I'm using an "international" keyboard (e.g. German "de", or + [136]Q-61: I'm using an "international" keyboard (e.g. German "de", or Danish "dk") and the -modtweak mode works well if the VNC viewer is run on a Unix/Linux machine with a similar keyboard. But if I run the VNC viewer on Unix/Linux with a different keyboard (e.g. "us") or Windows with any keyboard, I can't type some keys like: "@", "$", "<", ">", etc. How can I fix this? - [136]Q-62: When typing I sometimes get double, triple, or more of my + [137]Q-62: When typing I sometimes get double, triple, or more of my keystrokes repeated. I'm sure I only typed them once, what can I do? - [137]Q-63: The x11vnc -norepeat mode is in effect, but I still get + [138]Q-63: The x11vnc -norepeat mode is in effect, but I still get repeated keystrokes!! - [138]Q-64: The machine where I run x11vnc has an AltGr key, but the + [139]Q-64: The machine where I run x11vnc has an AltGr key, but the local machine where I run the VNC viewer does not. Is there a way I can map a local unused key to send an AltGr? How about a Compose key as well? - [139]Q-65: I have a Sun machine I run x11vnc on. Its Sun keyboard has + [140]Q-65: I have a Sun machine I run x11vnc on. Its Sun keyboard has just one Alt key labelled "Alt" and two Meta keys labelled with little diamonds. The machine where I run the VNC viewer only has Alt keys. How can I send a Meta keypress? (e.g. emacs needs this) - [140]Q-66: Can I map a keystroke to a mouse button click on the remote + [141]Q-66: Can I map a keystroke to a mouse button click on the remote machine? [Screen Related Issues and Features] - [141]Q-67: The remote display is larger (in number of pixels) than the + [142]Q-67: The remote display is larger (in number of pixels) than the local display I am running the vncviewer on. I don't like the vncviewer scrollbars, what I can do? - [142]Q-68: Does x11vnc support server-side framebuffer scaling? (E.g. + [143]Q-68: Does x11vnc support server-side framebuffer scaling? (E.g. to make the desktop smaller). - [143]Q-69: Does x11vnc work with Xinerama? (i.e. multiple monitors + [144]Q-69: Does x11vnc work with Xinerama? (i.e. multiple monitors joined together to form one big, single screen). - [144]Q-70: Can I use x11vnc on a multi-headed display that is not + [145]Q-70: Can I use x11vnc on a multi-headed display that is not Xinerama (i.e. separate screens :0.0, :0.1, ... for each monitor)? - [145]Q-71: Can x11vnc show only a portion of the display? (E.g. for a + [146]Q-71: Can x11vnc show only a portion of the display? (E.g. for a special purpose rfb application). - [146]Q-72: Does x11vnc support the XRANDR (X Resize, Rotate and + [147]Q-72: Does x11vnc support the XRANDR (X Resize, Rotate and Reflection) extension? Whenever I rotate or resize the screen x11vnc just seems to crash. - [147]Q-73: Why is the view in my VNC viewer completely black? Or why + [148]Q-73: Why is the view in my VNC viewer completely black? Or why is everything flashing around randomly? - [148]Q-74: I use Linux Virtual Consoles (VC's) to implement 'Fast User + [149]Q-74: 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 @@ -1061,12 +1099,12 @@ make otherwise all messed up unless the X session x11vnc is attached to is in the active VC? - [149]Q-75: Can I use x11vnc to view my VMWare session remotely? + [150]Q-75: Can I use x11vnc to view my VMWare session remotely? - [150]Q-76: Can non-X devices (e.g. a raw framebuffer) be viewed and/or + [151]Q-76: Can non-X devices (e.g. a raw framebuffer) be viewed and/or controlled by x11vnc? - [151]Q-77: I am using x11vnc where my local machine has "popup/hidden + [152]Q-77: 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 @@ -1074,13 +1112,13 @@ make [Misc: Clipboard, Beeps, Thanks, etc.] - [152]Q-78: Does the Clipboard/Selection get transferred between the + [153]Q-78: Does the Clipboard/Selection get transferred between the vncviewer and the X display? - [153]Q-79: Why don't I hear the "Beeps" in my X session (e.g. when + [154]Q-79: Why don't I hear the "Beeps" in my X session (e.g. when typing tput bel in an xterm)? - [154]Q-80: Thanks for your program and for your help! Can I make a + [155]Q-80: Thanks for your program and for your help! Can I make a donation? _________________________________________________________________ @@ -1093,7 +1131,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 x11vnc is to run on). Set - your DISPLAY environment variable or use the [155]-display option to + your DISPLAY environment variable or use the [156]-display option to specify it. Nearly always the correct value will be ":0" For the latter error, you need to set up the X11 permissions @@ -1109,7 +1147,7 @@ make How to Solve: See the xauth(1), Xsecurity(7), and xhost(1) man pages for much info on X11 permissions. For example, you may need to set - your XAUTHORITY environment variable or use the [156]-auth option to + your XAUTHORITY environment variable or use the [157]-auth option to point to the correct 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). If sshd @@ -1119,7 +1157,7 @@ make display is. Example: x11vnc -display :0 -auth /var/gdm/:0.Xauth - (this is for the display manager gdm, see [157]this faq for other + (this is for the display manager gdm, see [158]this faq for other display manager cookie file names). Less safe, but to avoid figuring out where the XAUTHORITY file is, if @@ -1128,7 +1166,7 @@ make machine). The person could then type "xhost -localhost" after x11vnc has connected to go back to the default permissions. Also, for some situations the "-users lurk=" option may be of use (please read the - documentation on the [158]-users option). + documentation on the [159]-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 @@ -1240,7 +1278,7 @@ h earlier and perhaps non-Solaris): First use the environment settings (CPPFLAGS, LDFLAGS, etc.) in the - above [159]Solaris build script to run the configure command. That + above [160]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 @@ -1266,7 +1304,7 @@ typedef unsigned int in_addr_t; on other older OS (Solaris, Linux, ...) releases. Here are some notes for similar steps that need to be done to build on - [160]SunOS 4.x + [161]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 @@ -1276,20 +1314,20 @@ typedef unsigned int in_addr_t; Q-5: Where can I get a precompiled x11vnc binary for my Operating System? - Hopefully the [161]build steps above and [162]FAQ provide enough info + Hopefully the [162]build steps above and [163]FAQ provide enough info for a painless compile for most environments. Please report problems with the x11vnc configure, make, etc. on your system (if your system is known to compile other GNU packages successfully). There are precompiled x11vnc binaries built by other groups that are available at the following locations: - Debian: (.deb) [163]http://packages.debian.org/x11vnc + Debian: (.deb) [164]http://packages.debian.org/x11vnc - Slackware: (.tgz) [164]http://www.linuxpackages.net/ Redhat/Fedora: - (.rpm) [165]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm) - [166]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg) - [167]http://www.sunfreeware.com/ wwexptools: (.tgz) - [168]http://www.bell-labs.com/project/wwexptools/packages.html The + Slackware: (.tgz) [165]http://www.linuxpackages.net/ Redhat/Fedora: + (.rpm) [166]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm) + [167]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg) + [168]http://www.sunfreeware.com/ wwexptools: (.tgz) + [169]http://www.bell-labs.com/project/wwexptools/packages.html The last one, wwexptools, provides a variety of Unix binaries (Linux, Solaris, HP-UX, IRIX, ...) with the intent of being compatible on a wide range of OS releases. Find x11vnc near the bottom of that page @@ -1301,13 +1339,13 @@ typedef unsigned int in_addr_t; this by looking at the x11vnc output and if it says the encoding for a client is "hextile" then likely the fast compression encodings are missing. If you want optimal performance on your OS, you should see - the [169]build notes above for where to download libz and libjpeg, and + the [170]build notes above for where to download libz and libjpeg, and then build everything with gcc. For Solaris, the http://www.sunfreeware.com/ packages are built with libz and libjpeg. If the above binaries don't work and building x11vnc on your OS fails (and all else fails!) you can try one of my motley collection of - [170]test binaries. Some may be old, some may have extra debugging + [171]test binaries. Some may be old, some may have extra debugging output, etc. One of them may work on your OS... As a general note, the x11vnc program is simple enough you don't @@ -1328,9 +1366,9 @@ typedef unsigned int in_addr_t; To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try here: - * [171]http://www.tightvnc.com/download.html - * [172]http://www.realvnc.com/download-free.html - * [173]http://sourceforge.net/projects/cotvnc/ + * [172]http://www.tightvnc.com/download.html + * [173]http://www.realvnc.com/download-free.html + * [174]http://sourceforge.net/projects/cotvnc/ Q-7: How can I see all of x11vnc's command line options and @@ -1338,7 +1376,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 - [174]here as well. + [175]here as well. Q-8: I don't like typing arcane command line options every time I @@ -1371,7 +1409,7 @@ display :0 GUI based on the remote-control functionality that was added. It's 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 - [175]-gui option for more info. Examples: "x11vnc ... -gui" and + [176]-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. @@ -1379,11 +1417,11 @@ display :0 Q-9: Can I make x11vnc more quiet and also go into the background after starting up? - Use the [176]-q and [177]-bg options, respectively. (also: -quiet is + Use the [177]-q and [178]-bg options, respectively. (also: -quiet is an alias for -q) Note that under -bg the stderr messages will be lost unless you use - the "[178]-o logfile" option. + the "[179]-o logfile" option. Q-10: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with @@ -1404,7 +1442,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 [179]build + environment variable before running configure (see the [180]build notes for general background). * -DX11VNC_SHARED=1 make -shared the default. * -DX11VNC_FOREVER=1 make -forever the default. @@ -1451,21 +1489,21 @@ display :0 dual-screen mode to pass the keystrokes and mouse motions to the X11 display? - Yes, for best response start up x11vnc with the "[180]-nofb" option + Yes, for best response start up x11vnc with the "[181]-nofb" option (disables framebuffer polling, and does other optimizations) on the secondary display (X11) machine. Then start up Win2VNC on the primary display (Windows) referring it to the secondary display. - This will also work X11 to X11 using [181]x2vnc, however you would + This will also work X11 to X11 using [182]x2vnc, however you would probably just want to avoid VNC and use x2x for that. For reference, here are some links to Win2VNC-like programs for multiple monitor setups: - * [182]Original Win2VNC - * [183]Enhanced Win2VNC and [184]sourceforge link - * [185]x2vnc - * [186]x2x also [187]here - * [188]zvnc (MorphOS) + * [183]Original Win2VNC + * [184]Enhanced Win2VNC and [185]sourceforge link + * [186]x2vnc + * [187]x2x also [188]here + * [189]zvnc (MorphOS) All of them will work with x11vnc (except x2x where it is not needed). @@ -1485,7 +1523,7 @@ display :0 on your display to be depth 24 TrueColor? Sun machines often have 8+24 overlay/multi-depth visuals, and you can make the default visual depth 24 TrueColor (see fbconfig(1) and Xsun(1)). 2) As of Feb/2004, in the - libvncserver CVS, x11vnc has the [189]-visual option to allow you to + libvncserver CVS, x11vnc has the [190]-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: @@ -1500,7 +1538,7 @@ display :0 PseudoColor (i.e. only 256 distinct colors). The x11vnc colors may start out OK, but after a while they are incorrect in certain windows. - Use the [190]-flashcmap option to have x11vnc watch for changes in the + Use the [191]-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 @@ -1509,7 +1547,7 @@ display :0 example of this. Consider reconfiguring the system to 16 bpp or depth 24 TrueColor if at all possible. - Also note that in some rare cases the [191]-notruecolor option has + Also note that in some rare cases the [192]-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. @@ -1520,10 +1558,10 @@ display :0 different color depths: e.g. there are both depth 8 and 24 visuals available at the same time. - You may want to review the [192]previous question regarding 8 bpp + You may want to review the [193]previous question regarding 8 bpp PseudoColor. - On some hardware (Sun/SPARC, Sgi), the [193]-overlay option discussed + On some hardware (Sun/SPARC, Sgi), the [194]-overlay option discussed a couple paragraphs down may solve this for you (you may want to skip to it directly). @@ -1561,7 +1599,7 @@ TrueColor defdepth 24 The -overlay mode: Another option is if the system with overlay visuals is a Sun system running Solaris or Sgi running IRIX you can - use the [194]-overlay x11vnc option (Aug/2004) to have x11vnc use the + use the [195]-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 @@ -1583,7 +1621,7 @@ TrueColor defdepth 24 Colors still not working correctly? Run xwininfo on the application with the messed up colors to verify that the depth of its visual is different from the default visual depth (gotten from xdpyinfo). One - possible workaround in this case is to use the [195]-id option to + possible workaround in this case is to use the [196]-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). @@ -1591,7 +1629,7 @@ TrueColor defdepth 24 It is theoretically possible to solve this problem in general (see xwd(1) for example), but it does not seem trivial or sufficiently fast for x11vnc to be able to do so in real time. Fortunately the - [196]-overlay option works for Solaris machines with overlay visuals + [197]-overlay option works for Solaris machines with overlay visuals where most of this problem occurs. @@ -1602,13 +1640,13 @@ TrueColor defdepth 24 the desired application window. After clicking, it will print out much information, including the window id (e.g. 0x6000010). Also, the visual and depth of the window printed out is often useful in - debugging x11vnc [197]problems. + debugging x11vnc [198]problems. When using -id windowid, note that some VNC viewers will have problems rendering screens that have a width that is not a multiple of 4. Try to manually adjust the window width before starting x11vnc -id .... - Also, as of Dec/2004 libvncserver CVS you can use "[198]-id pick" to + Also, as of Dec/2004 libvncserver CVS you can use "[199]-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. @@ -1626,7 +1664,7 @@ TrueColor defdepth 24 be able to see these transient windows. If things are not working and you still want to do the single window - polling, try the [199]-sid windowid option ("shifted" windowid). + polling, try the [200]-sid windowid option ("shifted" windowid). x11vnc is known to crash under both -id and -sid, so both modes are still experimental. Please report any reproducible bugs. @@ -1679,15 +1717,15 @@ TrueColor defdepth 24 since you will be polling the X display over the network as opposed to over the local hardware. To do this, run x11vnc on a UNIX machine as close as possible network-wise (e.g. same switch) to the Xterminal - machine. Use the [200]-display option to point the display to that of + machine. Use the [201]-display option to point the display to that of the Xterminal (you'll of course need basic X11 permission to do that) - and also supply the [201]-noshm option (this enables the polling over + and also supply the [202]-noshm option (this enables the polling over the network). The response will likely be sluggish (maybe only one "frame" per second). This mode is not recommended except for "quick checks" of hard to get to X servers. Use something like -wait 150 to cut down on - the polling rate. You may also need [202]-flipbyteorder if the colors + the polling rate. You may also need [203]-flipbyteorder if the colors get messed up due to endian byte order differences. Q-20: How do I get my X permissions (MIT-MAGIC-COOKIE) correct for a @@ -1711,7 +1749,7 @@ TrueColor defdepth 24 copied to the Xterminal. If $HOME/.Xauthority is exported via NFS (this is insecure of course, but has been going on for decades), then x11vnc can simply pick it up via NFS (you may need to use the - [203]-auth option to point to the correct file). Other options include + [204]-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 - @@ -1723,7 +1761,7 @@ TrueColor defdepth 24 details. If the display name in the cookie file needs to be changed between the - two hosts, see [204]this note on the "xauth add ..." command. + two hosts, see [205]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 @@ -1737,7 +1775,7 @@ TrueColor defdepth 24 occasional app more efficiently locally on the Xterminal box (e.g. realplayer). - Not recommended, but as a last resort, you could have x11vnc [205]poll + Not recommended, but as a last resort, you could have x11vnc [206]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...) @@ -1768,17 +1806,17 @@ TrueColor defdepth 24 As of Dec/2004 in the libvncserver CVS there is a remote control feature. It can change a huge amount of things on the fly: see the - [206]-remote and [207]-query options. To shut down the running x11vnc + [207]-remote and [208]-query options. To shut down the running x11vnc server just type "x11vnc -R stop". To disconnect all clients do "x11vnc -R disconnect:all", etc. - For older versions: If the [208]-forever option has not been supplied, + For older versions: If the [209]-forever option has not been supplied, x11vnc will automatically exit after the first client disconnects. In general you will have to kill the x11vnc process This can be done via: "kill NNNNN" (where NNNNN is the x11vnc process id number found from ps(1)), or "pkill x11vnc", or "killall x11vnc" (Linux only). - If you have not put x11vnc in the background via the [209]-bg option + If you have not put x11vnc in the background via the [210]-bg option or shell & operator, then simply press Ctrl-C in the shell where x11vnc is running to stop it. Potential Gotcha: If somehow your Keypress of Ctrl-C went through x11vnc to the Xserver that then @@ -1787,14 +1825,14 @@ TrueColor defdepth 24 Tapping the stuck key (either via a new x11vnc or at the physical console) will release it from the stuck state. If the keyboard seems to be acting strangely it is often fixed by tapping Ctrl, Shift, and - Alt. Alternatively, the [210]-clear_mods option and [211]-clear_keys + Alt. Alternatively, the [211]-clear_mods option and [212]-clear_keys option can be used to release pressed keys at startup and exit. Q-22: Can I change settings in x11vnc without having to restart it? Can I remote control it? - Look at the [212]-remote (same as -R) and [213]-query (same as -Q) + Look at the [213]-remote (same as -R) and [214]-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 @@ -1806,7 +1844,7 @@ TrueColor defdepth 24 be possible. There is also a simple tcl/tk gui based on this remote control - mechanism. See the [214]-gui option for more info. + mechanism. See the [215]-gui option for more info. [Security and Permissions] @@ -1818,12 +1856,12 @@ TrueColor defdepth 24 vncpasswd(1) program from those packages. The libvncserver package also comes with a simple program: storepasswd in the examples directory. And as of Jun/2004 in the libvncserver CVS x11vnc supports - the -storepasswd "pass" "file" [215]option, which is the the same + the -storepasswd "pass" "file" [216]option, which is the the same functionality of storepasswd. Be sure to quote the "pass" if it contains shell meta characters, spaces, etc. Example: x11vnc -storepasswd 'sword*fish' $HOME/myvncpasswd - You then use the password via the x11vnc option: [216]-rfbauth + You then use the password via the x11vnc option: [217]-rfbauth $HOME/myvncpasswd Compared to vncpasswd(1) the latter two methods are a somewhat unsafe @@ -1832,7 +1870,7 @@ TrueColor defdepth 24 out for the command winding up in your shell's history file (history -c is often a way to clear it). - x11vnc also has the [217]-passwdfile and -passwd/-viewpasswd plain + x11vnc also has the [218]-passwdfile and -passwd/-viewpasswd plain text (i.e. not obscured like the -rfbauth VNC passwords) password options. @@ -1841,13 +1879,13 @@ TrueColor defdepth 24 and the other for view-only access to the display? Yes, as of May/2004 in the libvncserver CVS there is the - [218]-viewpasswd option to supply the view-only password. Note the - full-access password option [219]-passwd must be supplied at the same + [219]-viewpasswd option to supply the view-only password. Note the + full-access password option [220]-passwd must be supplied at the same time. E.g.: -passwd sword -viewpasswd fish. To avoid specifying the passwords on the command line (where they could be observed via the ps(1) command by any user) you can use the - [220]-passwdfile option to specify a file containing plain text + [221]-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 @@ -1855,7 +1893,7 @@ TrueColor defdepth 24 it is taken as the view-only password. (use "__EMPTY__" to supply an empty one). - View-only passwords currently do not work for the [221]-rfbauth + View-only passwords currently do not work for the [222]-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 @@ -1869,7 +1907,7 @@ TrueColor defdepth 24 some users just be able to move the mouse, but not click or type anything? - As of Feb/2005, the [222]-input option allows you to do this. "K", + As of Feb/2005, the [223]-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 @@ -1885,15 +1923,15 @@ TrueColor defdepth 24 These defaults are simple safety measures to avoid someone unknowingly leaving his X11 desktop exposed (to the internet, say) for long - periods of time. Use the [223]-forever option (aka -many) to have + periods of time. Use the [224]-forever option (aka -many) to have x11vnc wait for more connections after the first client disconnects. - Use the [224]-shared option to have x11vnc allow multiple clients to + Use the [225]-shared option to have x11vnc allow multiple clients to connect simultaneously. - Recommended additional safety measures include using ssh ([225]see + Recommended additional safety measures include using ssh ([226]see above), stunnel, or a VPN to authenticate and encrypt the viewer - connections or to at least use the -rfbauth passwd-file [226]option to - use VNC password protection (or [227]-passwdfile) It is up to you to + connections or to at least use the -rfbauth passwd-file [227]option to + use VNC password protection (or [228]-passwdfile) It is up to you to apply these security measures, they will not be done for you automatically. @@ -1901,7 +1939,7 @@ TrueColor defdepth 24 Q-27: Can I limit which machines incoming VNC clients can connect from? - Yes, look at the [228]-allow and [229]-localhost options to limit + Yes, look at the [229]-allow and [230]-localhost options to limit connections by hostname or IP address. E.g. x11vnc -allow 192.168.0.1,192.168.0.2 @@ -1913,7 +1951,7 @@ TrueColor defdepth 24 Note that -localhost is the same as "-allow 127.0.0.1" For more control, build libvncserver with libwrap support - [230](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5) + [231](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5) for complete details. @@ -1933,7 +1971,7 @@ TrueColor defdepth 24 is "vnc", e.g.: vnc: 192.168.100.3 .example.com - Note that if you run x11vnc out of [231]inetd you do not need to build + Note that if you run x11vnc out of [232]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. @@ -1942,16 +1980,16 @@ TrueColor defdepth 24 internal LAN) rather than having it listen on all network interfaces and relying on -allow to filter unwanted connections out? - As of Mar/2005 in the libvncserver CVS, there is the "[232]-listen + As of Mar/2005 in the libvncserver CVS, there is the "[233]-listen ipaddr" option that enables this. For ipaddr either supply the desired network interface's IP address (or use a hostname that resolves to it) or use the string "localhost". For additional filtering simultaneously - use the "[233]-allow host1,..." option to allow only specific hosts + use the "[234]-allow host1,..." option to allow only specific hosts in. This option is useful if you want insure that no one can even begin a dialog with x11vnc from untrusted network interfaces (e.g. ppp0). The - option [234]-localhost now implies "-listen localhost" since that is + option [235]-localhost now implies "-listen localhost" since that is what most people expect it to do. @@ -1959,24 +1997,24 @@ TrueColor defdepth 24 interface, how I can occasionally allow in a non-localhost via the allowonce remote control command? - To do this specify "[235]-allow localhost". Unlike [236]-localhost + To do this specify "[236]-allow localhost". Unlike [237]-localhost this will leave x11vnc listening on all interfaces (but of course only allowing in local connections, e.g. ssh redirs). Then you can later run "x11vnc -R allowonce:somehost" or use to gui to permit a one-shot connection from a remote host. Note that if you do a lot of changing of the listening interface - ([237]-listen option) via remote control or gui, you may need to also - manually adjust the [238]-allow list if you unexpectedly get into a + ([238]-listen option) via remote control or gui, you may need to also + manually adjust the [239]-allow list if you unexpectedly get into a state where the allow list cannot match any hosts that would be coming - in on the listening interface. If you just toggle [239]-localhost on + in on the listening interface. If you just toggle [240]-localhost on and off x11vnc should see to it that you never get into such a state. Q-31: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - See the description earlier on this page on [240]how to tunnel VNC via + See the description earlier on this page on [241]how to tunnel VNC via SSH from Unix to Unix. A number of ways are described along with some issues you may encounter. @@ -1987,7 +2025,7 @@ TrueColor defdepth 24 Q-32: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [241]Above we described how to tunnel VNC via SSH from Unix to Unix, + [242]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 @@ -2010,19 +2048,20 @@ TrueColor defdepth 24 process in a BAT file including launching the VNC viewer by using the plink Putty utility. Send us the script if you get that working. - For extra protection feel free to run x11vnc with the [242]-localhost - and [243]-rfbauth/[244]-passwdfile options. + For extra protection feel free to run x11vnc with the [243]-localhost + and [244]-rfbauth/[245]-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 access to a gateway machine), then you need to change the above Putty 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. + machine 'otherhost' and then start up x11vnc on it. This can also be + automated by [246]chaining ssh's. - As discussed [245]above another option is to first start the VNC + As discussed [247]above another option is to first start the VNC viewer in "listen" mode, and then launch x11vnc with the - "[246]-connect localhost" option to establish the reverse connection. + "[248]-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). @@ -2033,7 +2072,7 @@ TrueColor defdepth 24 some clients view-only? How about running an arbitrary program to make the decisions? - Yes, look at the "[247]-accept command" option, it allows you to + Yes, look at the "[249]-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 @@ -2052,7 +2091,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 [248]-viewonly option has been + mouse on the "View" button. If the [250]-viewonly option has been supplied, the "View" action will not be present: the whole display is view only in that case. @@ -2068,7 +2107,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 [249]ftp://ftp.x.org/ + is available at [251]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 @@ -2107,7 +2146,7 @@ elif [ $rc = 4 ]; then fi exit 1 - Stefan Radman has written a nice dtksh script [250]dtVncPopup for use + Stefan Radman has written a nice dtksh script [252]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. @@ -2116,7 +2155,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 "[251]-gone + To run a command when a client disconnects, use the "[253]-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 @@ -2131,13 +2170,13 @@ exit 1 such support. One approximate method involves starting x11vnc with the - [252]-localhost option. This basically requires the viewer user to log + [254]-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 [253]elsewhere on this page. Of course a malicious user + mentioned [255]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 @@ -2146,7 +2185,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 [254]-accept option that runs a program to examine + involves using the [256]-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 @@ -2179,7 +2218,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 [255]-users option that allows things + As of Feb/2005 x11vnc has the [257]-users option that allows things like this. Please read the documentation on it (in the x11vnc -help output) carefully for features and caveats. It's use can often decrease security unless care is taken. A nice use of it is "-users @@ -2200,7 +2239,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 [256]blockdpy.c The idea behind it is simple (but + source for it is [258]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 @@ -2216,8 +2255,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 [257]-accept option and told - to exit via the [258]-gone option (the vnc client user should + The blockdpy utility is launched by the [259]-accept option and told + to exit via the [260]-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. @@ -2225,7 +2264,7 @@ exit 1 # reject it Q-37: Can I have x11vnc automatically lock the screen when I disconnect the VNC viewer? - Yes, a user mentions he uses the [259]-gone option under CDE to run a + Yes, a user mentions he uses the [261]-gone option under CDE to run a screen lock program: x11vnc -display :0 -forever -gone 'dtaction LockDisplay' @@ -2248,11 +2287,11 @@ exit 1 # reject it permissions to connect to the X display. Here are some ideas: - * Use the description under "Continuously" in the [260]FAQ on x11vnc + * Use the description under "Continuously" in the [262]FAQ on x11vnc and Display Managers - * Use the description in the [261]FAQ on x11vnc and inetd(1) + * Use the description in the [263]FAQ on x11vnc and inetd(1) * Start x11vnc from your $HOME/.xsession (or $HOME/.xinitrc) - * Although less reliable, see the [262]x11vnc_loop rc.local hack + * Although less reliable, see the [264]x11vnc_loop rc.local hack below. The display manager scheme will not be specific to which user has the @@ -2283,7 +2322,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 [263]-auth option sets the XAUTHORITY variable for you). + (the [265]-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 @@ -2308,7 +2347,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 - [264]the example at the end of this FAQ). Then restart dtlogin, e.g.: + [266]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 @@ -2362,7 +2401,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 [265]full details + killed immediately after the user logs in. Here are [267]full details on how to configure gdm _________________________________________________________________ @@ -2404,13 +2443,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: [266]x11vnc_loop It will need some local + file like rc.local: [268]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 - [267]this FAQ. + [269]this FAQ. Q-40: Can I run x11vnc out of inetd(1)? How about xinetd(1)? @@ -2420,7 +2459,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 [268]-inetd + where the shell script /usr/local/bin/x11vnc_sh uses the [270]-inetd option and looks something like (you'll need to customize to your settings). #!/bin/sh @@ -2428,17 +2467,20 @@ rever -bg -rfbauth /home/fred/.vnc/passwd -o /tmp/x11vnc_sh.log Important: Note that you must redirect the standard error output to a - log file (e.g. -o file) or to /dev/null for proper operation via inetd - (otherwise the standard error also goes to the VNC vncviewer, and that - confuses it greatly). 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 [269]-quiet) - option: "/usr/local/bin/x11vnc -q -inetd ..." or use "-o logfile" to - collect the output in a file. The wrapper script with redirection to a - log file is the recommended method because the errors and warnings + log file (e.g. -o logfile) or "2>/dev/null" for proper operation via + inetd (otherwise the standard error also goes to the VNC vncviewer, + 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 [271]-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 + is to use "-o logfile" to collect the output in a file or wrapper + 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 [270]-auth to point to the + Note also the need to set XAUTHORITY via [272]-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 @@ -2448,6 +2490,10 @@ rever -bg /etc/inetd.conf, you'll need to replace it with a word like x11vnc an then put something like "x11vnc 5900/tcp" in /etc/services. + Since the process runs as root, it might be a bad idea to have the + logfile in a world-writable area like /tmp if there are untrustworthy + users on the machine. Perhaps /var/log would be a better place. + Be sure to look at your /etc/hosts.allow and /etc/hosts.deny settings to limit the machines that can connect to this service (your desktop!). For the above example with /etc/hosts.allow: @@ -2479,14 +2525,30 @@ service x11vncservice } With the contents of /usr/local/bin/x11vnc_sh similar to the example - given above. + given above. One user reports this works with avoiding the wrapper + script: +service x11vncservice +{ + port = 5900 + type = UNLISTED + socket_type = stream + protocol = tcp + wait = no + user = root + server = /usr/local/bin/x11vnc + server_args = -inetd -q -display :0 -auth /var/gdm/:0.Xauth + disable = no +} + + (or one can replace the -q with say "-o /var/log/x11vnc.log" to + capture a log) Q-41: How do I make x11vnc work with the Java VNC viewer applet in a web browser? To have x11vnc serve up a Java VNC viewer applet to any web browsers - that connect to it, run x11vnc with this [271]option: + that connect to it, run x11vnc with this [273]option: -httpdir /path/to/the/java/classes/dir (this directory will contain the files index.vnc and, for example, @@ -2516,7 +2578,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 [272]-connect option. To connect immediately + starts up x11vnc with the [274]-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 @@ -2524,7 +2586,7 @@ service x11vncservice hosts to connect to. To use the vncconnect(1) program (from the core VNC package at - www.realvnc.com) specify the [273]-vncconnect option to x11vnc (Note: + www.realvnc.com) specify the [275]-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 @@ -2566,7 +2628,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 - [274]-add_keysyms option to have keysyms added automatically. Also, to + [276]-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" @@ -2593,7 +2655,7 @@ xmodmap -e "add Control = Control_L Control_R" 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 [275]this FAQ) and access it from + display via x11vnc (e.g. see [277]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 @@ -2636,7 +2698,7 @@ xmodmap -e "add Control = Control_L Control_R" 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 [276]shm_clear to list and prompt for removal + Here is a shell script [278]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, @@ -2670,35 +2732,35 @@ ied) in /etc/system. See the next paragraph for more workarounds. To minimize the number of shm segments used by x11vnc try using the - [277]-onetile option (corresponds to only 3 shm segments used, and + [279]-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 - [278]-noshm option. Performance will be somewhat degraded but when + [280]-noshm option. Performance will be somewhat degraded but when done over local machine sockets it should be acceptable (see an - [279]earlier question discussing -noshm). + [281]earlier question discussing -noshm). Q-46: How can I make x11vnc use less system resources? - The [280]-nap and "[281]-wait n" (where n is the sleep between polls + The [282]-nap and "[283]-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. Using the - [282]-onetile option will use less memory and use fewer shared memory - slots (add [283]-fs 1.0 for one less slot). + [284]-onetile option will use less memory and use fewer shared memory + slots (add [285]-fs 1.0 for one less slot). Q-47: How can I make x11vnc use MORE system resources? - You can try [284]-threads and dial down the wait time (e.g. -wait 1) - and possibly dial down [285]-defer as well. Note that if you try to + You can try [286]-threads and dial down the wait time (e.g. -wait 1) + and possibly dial down [287]-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 [286]-id option) can be streamed over a LAN or wireless at + the x11vnc [288]-id option) can be streamed over a LAN or wireless at a reasonable frame rate. @@ -2714,7 +2776,7 @@ 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 - [287]-solid [color] option. + [289]-solid [color] option. * Configure your window manager or desktop "theme" to not use fancy images, shading, and gradients for the window decorations, etc. Disable Opaque moves, resizes, and animations. @@ -2730,7 +2792,7 @@ ied) worth it, but could be of use in some situations. VNC viewer parameters: - * Use a [288]TightVNC enabled viewer! + * Use a [290]TightVNC enabled viewer! * Make sure the tight encoding is being used (look at vncviewer and x11vnc outputs) * Request 8 bits per pixel using -bgr233 (up to 4X speedup over @@ -2748,19 +2810,19 @@ ied) vncviewer to be very slow) x11vnc parameters: - * Try using [289]-nodragging (no screen updates when dragging mouse, + * Try using [291]-nodragging (no screen updates when dragging mouse, but sometimes you miss visual feedback) - * Try the [290]-progressive pixelheight mode with the block + * Try the [292]-progressive pixelheight mode with the block pixelheight 100 or so (delays sending vertical blocks since they may change while viewer is receiving earlier ones) - * Set [291]-fs 1.0 (disables fullscreen updates) - * Try increasing [292]-wait or [293]-defer (reduces the maximum + * Set [293]-fs 1.0 (disables fullscreen updates) + * Try increasing [294]-wait or [295]-defer (reduces the maximum "frame rate", but won't help much for large screen changes) - * If you just want to watch one (simple) window use [294]-id (cuts + * If you just want to watch one (simple) window use [296]-id (cuts down extraneous polling and updates, but can be buggy or insufficient) - * Set [295]-nosel (disables all clipboard selection exchange) - * Use [296]-nocursor and [297]-nocursorpos (repainting the remote + * Set [297]-nosel (disables all clipboard selection exchange) + * Use [298]-nocursor and [299]-nocursorpos (repainting the remote cursor position and shape takes resources and round trips) @@ -2782,7 +2844,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 [298]slow (e.g. + in main memory. So reading the fb is still painfully [300]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. @@ -2798,27 +2860,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 "[299]-xd_area A" option to adjust the size + skipped). You can use the "[301]-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 "[300]-xd_mem f" may also be of use in tuning the - algorithm. To disable using DAMAGE entirely use "[301]-noxdamage". + The option "[302]-xd_mem f" may also be of use in tuning the + algorithm. To disable using DAMAGE entirely use "[303]-noxdamage". Q-50: 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 [302]slow hardware read rates from + This problem is primarily due to [304]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 - [303]-pointer_mode option for more info. The next bottleneck is + [305]-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 @@ -2828,25 +2890,25 @@ 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 "[304]-pointer_mode 1" option. + way via the "[306]-pointer_mode 1" option. - Also added was the [305]-nodragging option that disables all screen + Also added was the [307]-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 [306]-pointer_mode n option + As of Dec/2004 in the libvncserver CVS the [308]-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 [307]-threads option can improve + Also, in some circumstances the [309]-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). - See the [308]wireframe FAQ and [309]scrollcopyrect FAQ below for + See the [310]wireframe FAQ and [311]scrollcopyrect FAQ below for schemes to sweep this problem under the rug for window moves or resizes and for some window scrolls. @@ -2862,13 +2924,13 @@ 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 [310]slow video - card read rates (see [311]here too). A displacement, even a small one, + of the intermediate steps. BTW the lurching is due to [312]slow video + card read rates (see [313]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. The mode is currently on by default because most people are inflicted - with the problem. It can be disabled with the [312]-nowireframe option + with the problem. It can be disabled with the [314]-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 @@ -2909,13 +2971,13 @@ ied) * Maximum time to show a wireframe animation. * Minimum time between sending wireframe outlines. - See the [313]"-wireframe tweaks" option for more details. On a slow + See the [315]"-wireframe tweaks" option for more details. On a slow link, e.g. dialup modem, you may want to increase all four of these times, e.g. double them from the defaults. CopyRect encoding: In addition to the above there is the - [314]"-wirecopyrect mode" option. It is also on by default. This + [316]"-wirecopyrect mode" option. It is also on by default. This instructs x11vnc to not only show 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 @@ -2962,7 +3024,7 @@ ied) 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 - [315]slow). + [317]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. @@ -2984,10 +3046,10 @@ ied) the X server display: if one falls too far behind it could become a mess... - The initial implementation of [316]-scrollcopyrect option is useful in + The initial implementation of [318]-scrollcopyrect option is useful in that it detects many scrolls and thus gives a much nicer working - environment (especially when combined with the [317]-wireframe - [318]-wirecopyrect [319]options, which are also on by default). The + environment (especially when combined with the [319]-wireframe + [320]-wirecopyrect [321]options, which are also on by default). The fact that there aren't long delays or lurches during scrolling is the primary improvement. But there are some drawbacks: * Not all scrolls are detected. Some apps scroll windows in ways @@ -3017,10 +3079,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: [320]-fixscreen + also: [322]-fixscreen * Some applications, notably OpenOffice, do XCopyArea scrolls in weird ways that assume ancestor window clipping is taking place. - See the [321]-scr_skip option for ways to tweak this on a + See the [323]-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 @@ -3037,7 +3099,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 [322]-scale option there will be a quick CopyRect + * When using the [324]-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 @@ -3050,7 +3112,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 [323]-noscrollcopyrect or -noscr for short. If you find some + with the [325]-noscrollcopyrect or -noscr for short. If you find some extremely bad and repeatable behavior for -scrollcopyrect please report a bug. @@ -3088,16 +3150,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 "[324]-cursor X" option that + A simple kludge is provided by the "[326]-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 "[325]-cursor some" option for + work for those cases. Also see the "[327]-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 [326]-overlay option is supplied. See [327]this FAQ + cursor when the [328]-overlay option is supplied. See [329]this FAQ for more info. Also as of Dec/2004 in the libvncserver CVS XFIXES X extension support @@ -3105,7 +3167,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 [328]Solaris 10. + distros and [330]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 @@ -3113,7 +3175,7 @@ ied) 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. [329]Details can be found here. + under 32bpp. [331]Details can be found here. Q-54: When using XFIXES cursorshape mode, some of the cursors look @@ -3146,17 +3208,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 "[330]-alphacut n" option lets + course!) some tunable parameters. The "[332]-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 "[331]-alphafrac f" option tries to correct individual + 240. The "[333]-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 [332]-alpharemove that is useful for + Finally, there is an option [334]-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 @@ -3172,11 +3234,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 [333]-nocursorshape x11vnc option. + disabled for all clients with the [335]-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 - [334]-noalphablend option to disable this behavior (always approximate + [336]-noalphablend option to disable this behavior (always approximate transparent cursors with opaque RGB values). The CursorShapeUpdates VNC extension complicates matters because the @@ -3204,9 +3266,9 @@ ied) Q-56: 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 [335]tightvnc extension + This default takes advantage of a [337]tightvnc extension (CursorShapeUpdates) that allows specifying a cursor image shape for - the local VNC viewer. You may disable it with the [336]-nocursor + the local VNC viewer. You may disable it with the [338]-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 @@ -3220,18 +3282,18 @@ ied) clients (i.e. passive viewers can see the mouse cursor being moved around by another viewer)? - Use the [337]-cursorpos option when starting x11vnc. A VNC viewer must + Use the [339]-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 [338]-nocursorpos - and [339]-nocursorshape. + libvncserver CVS -cursorpos is the default. See also [340]-nocursorpos + and [341]-nocursorshape. Q-58: 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: [340]-buttonmap + You can remap the mouse buttons via something like: [342]-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. @@ -3239,7 +3301,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 [341]-debug_pointer option prints out much info for + Note that the [343]-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 @@ -3261,7 +3323,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 [342]-buttonmap but rather configuring the X server + consider not using [344]-buttonmap but rather configuring the X server to think it has a mouse with 5 buttons even though the physical mouse does not. @@ -3291,7 +3353,7 @@ ied) Q-59: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - The option [343]-modtweak should be of some use for this. It is a mode + The option [345]-modtweak should be of some use for this. 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. @@ -3300,17 +3362,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 [344]this FAQ + and ">" it. This key does not exist on the keyboard (see [346]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 [345]FAQ about the -xkb option for a more powerful method + Also see the [347]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 - [346]-debug_keyboard option prints out much info for every keystroke + [348]-debug_keyboard option prints out much info for every keystroke and so can be useful debugging things. @@ -3361,17 +3423,17 @@ ied) -remap less-comma These are convenient in that they do not modify the actual X server - settings. The former ([347]-modtweak) is a mode that monitors the + settings. The former ([349]-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 ([348]-remap less-comma) is an immediate remapping of the + The latter ([350]-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 [349]FAQ about the -xkb option as a possible workaround + See also the [351]FAQ about the -xkb option as a possible workaround using the XKEYBOARD extension. - Note that the [350]-debug_keyboard option prints out much info for + Note that the [352]-debug_keyboard option prints out much info for every keystroke to aid debugging keyboard problems. @@ -3396,7 +3458,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 [351]-modtweak + This all worked fine with x11vnc running with the [353]-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 @@ -3414,7 +3476,7 @@ ied) * there is a new option -xkb to use the XKEYBOARD extension API to do the Modifier key tweaking. - The [352]-xkb option seems to fix all of the missing keys: "@", "<", + The [354]-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 @@ -3432,7 +3494,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: - [353]-skip_keycodes 93 + [355]-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 @@ -3449,14 +3511,14 @@ 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 [354]-remap x11vnc option: + created using the [356]-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 - [355]-add_keysyms option in the next paragraph. - * To complement the above workaround using the [356]-remap, an - option [357]-add_keysyms was added. This option instructs x11vnc + [357]-add_keysyms option in the next paragraph. + * To complement the above workaround using the [358]-remap, an + option [359]-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 @@ -3473,7 +3535,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) [358]-norepeat x11vnc option. You will still + use the new (Jul/2004) [360]-norepeat x11vnc option. You will still have autorepeating because that is taken care of on your VNC viewer side. Update: as of Dec/2004 -norepeat is now the default. Use -repeat to disable it. @@ -3495,7 +3557,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 [359]-norepeat (which has since Dec/2004 been + needed, or to use the [361]-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 @@ -3506,7 +3568,7 @@ ied) keystrokes!! Are you using x11vnc to log in to an X session? (as described in - [360]this FAQ) If so, x11vnc is starting before your session and it + [362]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 @@ -3530,7 +3592,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 "[361]-remap Super_R-Mode_switch" x11vnc option may + Something like "[363]-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)). @@ -3553,7 +3615,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 [362]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones + the [364]-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. @@ -3564,7 +3626,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 [363]-remap + have x11vnc do the remapping. This can be done via the [365]-remap option using the fake "keysyms" Button1, Button2, etc. as the "to" keys (i.e. the ones after the "-") @@ -3572,7 +3634,7 @@ ied) a touchpad with only two buttons. It is difficult to do a middle button "paste" because (using XFree86 Emulate3Buttons) you have to click both buttons on the touch pad at the same time. This remapping: - [364]-remap Super_R-Button2 + [366]-remap Super_R-Button2 maps the Super_R "flag" key press to the Button2 click, thereby making X pasting a bit easier. @@ -3601,7 +3663,7 @@ ied) There may also be scaling viewers out there (e.g. TightVNC on Windows) that automatically shrink or expand the remote framebuffer to fit the - local display. Especially for hand-held devices. See also [365]this + local display. Especially for hand-held devices. See also [367]this FAQ on x11vnc scaling. @@ -3610,7 +3672,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 "[366]-scale fraction" + per-client setting. To enable it use the "[368]-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. @@ -3630,7 +3692,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 - [367]applications. Since with integer scale factors the framebuffers + [369]applications. Since with integer scale factors the framebuffers become huge and scaling operations time consuming, be sure to use ":nb" for the fastest response. @@ -3656,12 +3718,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 ([368]-rfbport option, + different scalings listening on separate ports ([370]-rfbport option, etc.). 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 [369]"-scale_cursor frac" option to set the cursor + that, use the [371]"-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). @@ -3678,16 +3740,16 @@ ied) 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 [370]-blackout x11vnc option allows you + distracting to the viewer. The [372]-blackout x11vnc option allows you to blacken-out rectangles by specifying their WxH+X+Y geometries. If - your system has the libXinerama library, the [371]-xinerama x11vnc + your system has the libXinerama library, the [373]-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 [372]-xwarppointer + of the large display. If this happens try using the [374]-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 @@ -3712,22 +3774,22 @@ 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 [373]FAQ to increase the limit. It - is probably also a good idea to run with the [374]-onetile option in + /etc/system as mentioned in another [375]FAQ to increase the limit. It + is probably also a good idea to run with the [376]-onetile option in this case (to limit each x11vnc to 3 shm segments), or even - [375]-noshm to use no shm segments. + [377]-noshm to use no shm segments. Q-71: 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 "[376]-clip + As of Mar/2005 in the libvncserver CVS x11vnc has the "[378]-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. This also works to view a sub-region of a single application window if - the [377]-id or [378]-sid options are used. The offset is measured + the [379]-id or [380]-sid options are used. The offset is measured from the upper left corner of the selected window. @@ -3736,7 +3798,7 @@ ied) crash. As of Dec/2004 in the libvncserver CVS x11vnc supports XRANDR. You - enable it with the [379]-xrandr option to make x11vnc monitor XRANDR + enable it with the [381]-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. If the @@ -3745,7 +3807,7 @@ ied) 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 - [380]-padgeom option to make the region big enough to hold all resizes + [382]-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 @@ -3799,9 +3861,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 [381]this FAQ + desktop in a separate Virtual Console (e.g. VC 8) (see [383]this FAQ on VC's for background). Unfortunately, this Fullscreen VC is not an X - server. So x11vnc cannot access it (however, [382]see this for a + server. So x11vnc cannot access it (however, [384]see this for a possible partial workaround). x11vnc works fine with "Normal X application window" and "Quick-Switch mode" because these use X. @@ -3818,13 +3880,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 [383]is in the active VC. + as long as the VMWare X session [385]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 [384]-id windowid option. The + the VMWare menu buttons) by use of the [386]-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 @@ -3905,7 +3967,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 [385]X API, but you get + of Xvfb x11vnc can poll it much better via the [387]X API, but you get the idea. By default in -rawfb mode x11vnc will actually close any X display it @@ -3958,7 +4020,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 [386]active VC) one + view and interact with VC #2 (assuming it is the [388]active VC) one can run something like: x11vnc -rawfb map:/dev/fb0@1024x768x16 -pipeinput './vcinject.pl 2' @@ -3971,7 +4033,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 - [387]VMWare Fullscreen mode is actually viewable under -rawfb. But + [389]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. @@ -4002,9 +4064,9 @@ 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 [388]-nosel option. If you + the Clipboard/Selection exchanged use the [390]-nosel option. If you don't want the PRIMARY selection to be polled for changes use the - [389]-noprimary option. + [391]-noprimary option. You may need to watch out for desktop utilities such as KDE's "Klipper" that do odd things with the selection, clipboard, and @@ -4019,7 +4081,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 [390]-nobell option. If + If you don't want to hear the beeps use the [392]-nobell option. If you want to hear the audio from the remote applications, consider trying a redirector such as esd. @@ -4035,7 +4097,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 - [391]email! + [393]email! [PayPal] @@ -4065,373 +4127,375 @@ References 22. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect 23. http://www.karlrunge.com/x11vnc/index.html#faq-inetd 24. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via - 25. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg - 26. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 27. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 28. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 29. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 30. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 31. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 32. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt - 33. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers - 34. http://sourceforge.net/projects/libvncserver/ - 35. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=307884 - 36. http://sourceforge.net/project/shownotes.php?group_id=32584&release_id=307884 - 37. http://www.karlrunge.com/x11vnc/x11vnc-0.7.2.tar.gz - 38. http://www.karlrunge.com/x11vnc/index.html#faq-binaries - 39. http://www.tightvnc.com/download.html - 40. http://www.realvnc.com/download-free.html - 41. http://sourceforge.net/projects/cotvnc/ - 42. http://www.karlrunge.com/x11vnc/rx11vnc - 43. http://www.karlrunge.com/x11vnc/rx11vnc.pl - 44. http://www.sunfreeware.com/ - 45. http://www.karlrunge.com/x11vnc/index.html#faq-build - 46. ftp://ftp.uu.net/graphics/jpeg/ - 47. http://www.gzip.org/zlib/ - 48. http://www.sunfreeware.com/ - 49. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build - 50. http://www.karlrunge.com/x11vnc/x11vnc-0.7.2.tar.gz - 51. http://www.karlrunge.com/x11vnc/bins - 52. mailto:x11vnc-beta@karlrunge.com - 53. http://www.karlrunge.com/x11vnc/next-rel.html - 54. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage - 55. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 56. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect - 57. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect - 58. http://www.karlrunge.com/x11vnc/beta-test-0.7.2.html - 59. mailto:x11vnc-beta@karlrunge.com - 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-cursor - 72. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 73. mailto:xvml@karlrunge.com - 74. http://www.karlrunge.com/x11vnc/index.html#faq-thanks - 75. http://www.karlrunge.com/x11vnc/index.html#faq-xperms - 76. http://www.karlrunge.com/x11vnc/index.html#faq-build - 77. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest - 78. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build - 79. http://www.karlrunge.com/x11vnc/index.html#faq-binaries - 80. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download - 81. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts - 82. http://www.karlrunge.com/x11vnc/index.html#faq-config-file - 83. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg - 84. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe - 85. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations - 86. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc - 87. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp - 88. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp - 89. http://www.karlrunge.com/x11vnc/index.html#faq-overlays - 90. http://www.karlrunge.com/x11vnc/index.html#faq-windowid - 91. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id - 92. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp - 93. http://www.karlrunge.com/x11vnc/index.html#faq-noshm - 94. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth - 95. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg - 96. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control - 97. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 98. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 99. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt - 100. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared - 101. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt - 102. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers - 103. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface - 104. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost - 105. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix - 106. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty - 107. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt - 108. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords - 109. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt - 110. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy - 111. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock - 112. http://www.karlrunge.com/x11vnc/index.html#faq-service - 113. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager - 114. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 115. http://www.karlrunge.com/x11vnc/index.html#faq-java-http - 116. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect - 117. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb - 118. http://www.karlrunge.com/x11vnc/index.html#faq-headless - 119. http://www.karlrunge.com/x11vnc/index.html#faq-solshm - 120. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource - 121. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource - 122. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link - 123. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage - 124. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode - 125. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 126. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect - 127. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape - 128. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha - 129. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks - 130. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow - 131. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions - 132. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt - 133. http://www.karlrunge.com/x11vnc/index.html#faq-altgr - 134. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless - 135. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak - 136. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys - 137. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still - 138. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt - 139. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta - 140. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click - 141. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars - 142. http://www.karlrunge.com/x11vnc/index.html#faq-scaling - 143. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama - 144. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen - 145. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen - 146. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr - 147. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen - 148. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 149. http://www.karlrunge.com/x11vnc/index.html#faq-vmware - 150. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb - 151. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars - 152. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard - 153. http://www.karlrunge.com/x11vnc/index.html#faq-beeps - 154. http://www.karlrunge.com/x11vnc/index.html#faq-thanks - 155. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display - 156. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 157. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager - 158. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users - 159. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 160. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html - 161. http://www.karlrunge.com/x11vnc/index.html#building - 162. http://www.karlrunge.com/x11vnc/index.html#faq-build - 163. http://packages.debian.org/x11vnc - 164. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc - 165. http://dag.wieers.com/packages/x11vnc/ - 166. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/ - 167. http://www.sunfreeware.com/ - 168. http://www.bell-labs.com/project/wwexptools/packages.html - 169. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 170. http://www.karlrunge.com/x11vnc/bins - 171. http://www.tightvnc.com/download.html - 172. http://www.realvnc.com/download-free.html - 173. http://sourceforge.net/projects/cotvnc/ - 174. http://www.karlrunge.com/x11vnc/x11vnc_opts.html - 175. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui - 176. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q - 177. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg - 178. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o - 179. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 180. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb - 181. http://fredrik.hubbe.net/x2vnc.html - 182. http://www.hubbe.net/~hubbe/win2vnc.html - 183. http://www.deboer.gmxhome.de/ - 184. http://sourceforge.net/projects/win2vnc/ - 185. http://fredrik.hubbe.net/x2vnc.html - 186. http://freshmeat.net/projects/x2x/ - 187. http://ftp.digital.com/pub/Digital/SRC/x2x/ - 188. http://zapek.com/software/zvnc/ - 189. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual - 190. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap - 191. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor - 192. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp - 193. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 25. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh + 26. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 27. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 28. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 29. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 30. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 31. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 32. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 33. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt + 34. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 35. http://sourceforge.net/projects/libvncserver/ + 36. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=307884 + 37. http://sourceforge.net/project/shownotes.php?group_id=32584&release_id=307884 + 38. http://www.karlrunge.com/x11vnc/x11vnc-0.7.2.tar.gz + 39. http://www.karlrunge.com/x11vnc/index.html#faq-binaries + 40. http://www.tightvnc.com/download.html + 41. http://www.realvnc.com/download-free.html + 42. http://sourceforge.net/projects/cotvnc/ + 43. http://www.karlrunge.com/x11vnc/rx11vnc + 44. http://www.karlrunge.com/x11vnc/rx11vnc.pl + 45. http://www.sunfreeware.com/ + 46. http://www.karlrunge.com/x11vnc/index.html#faq-build + 47. ftp://ftp.uu.net/graphics/jpeg/ + 48. http://www.gzip.org/zlib/ + 49. http://www.sunfreeware.com/ + 50. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build + 51. http://www.karlrunge.com/x11vnc/x11vnc-0.7.2beta.tar.gz + 52. http://www.karlrunge.com/x11vnc/bins + 53. mailto:x11vnc-beta@karlrunge.com + 54. http://www.karlrunge.com/x11vnc/next-rel.html + 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/beta-test-0.7.2.html + 60. mailto:x11vnc-beta@karlrunge.com + 61. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 62. http://www.tightvnc.com/ + 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 64. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 65. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 66. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg + 67. http://wwws.sun.com/sunray/index.html + 68. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap + 69. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 70. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 71. http://www.karlrunge.com/x11vnc/shm_clear + 72. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 73. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 74. mailto:xvml@karlrunge.com + 75. http://www.karlrunge.com/x11vnc/index.html#faq-thanks + 76. http://www.karlrunge.com/x11vnc/index.html#faq-xperms + 77. http://www.karlrunge.com/x11vnc/index.html#faq-build + 78. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest + 79. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build + 80. http://www.karlrunge.com/x11vnc/index.html#faq-binaries + 81. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download + 82. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts + 83. http://www.karlrunge.com/x11vnc/index.html#faq-config-file + 84. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg + 85. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe + 86. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations + 87. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc + 88. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp + 89. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp + 90. http://www.karlrunge.com/x11vnc/index.html#faq-overlays + 91. http://www.karlrunge.com/x11vnc/index.html#faq-windowid + 92. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id + 93. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp + 94. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 95. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth + 96. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg + 97. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control + 98. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 99. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 100. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt + 101. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared + 102. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt + 103. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 104. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface + 105. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost + 106. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix + 107. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty + 108. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt + 109. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords + 110. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt + 111. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy + 112. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock + 113. http://www.karlrunge.com/x11vnc/index.html#faq-service + 114. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 115. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 116. http://www.karlrunge.com/x11vnc/index.html#faq-java-http + 117. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect + 118. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 119. http://www.karlrunge.com/x11vnc/index.html#faq-headless + 120. http://www.karlrunge.com/x11vnc/index.html#faq-solshm + 121. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource + 122. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource + 123. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link + 124. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage + 125. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode + 126. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 127. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 128. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape + 129. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha + 130. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks + 131. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow + 132. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions + 133. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt + 134. http://www.karlrunge.com/x11vnc/index.html#faq-altgr + 135. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 136. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 137. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys + 138. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still + 139. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt + 140. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta + 141. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click + 142. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars + 143. http://www.karlrunge.com/x11vnc/index.html#faq-scaling + 144. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama + 145. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen + 146. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen + 147. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr + 148. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen + 149. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 150. http://www.karlrunge.com/x11vnc/index.html#faq-vmware + 151. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 152. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars + 153. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard + 154. http://www.karlrunge.com/x11vnc/index.html#faq-beeps + 155. http://www.karlrunge.com/x11vnc/index.html#faq-thanks + 156. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display + 157. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 158. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 159. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users + 160. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 161. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html + 162. http://www.karlrunge.com/x11vnc/index.html#building + 163. http://www.karlrunge.com/x11vnc/index.html#faq-build + 164. http://packages.debian.org/x11vnc + 165. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc + 166. http://dag.wieers.com/packages/x11vnc/ + 167. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/ + 168. http://www.sunfreeware.com/ + 169. http://www.bell-labs.com/project/wwexptools/packages.html + 170. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 171. http://www.karlrunge.com/x11vnc/bins + 172. http://www.tightvnc.com/download.html + 173. http://www.realvnc.com/download-free.html + 174. http://sourceforge.net/projects/cotvnc/ + 175. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 176. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 177. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q + 178. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 179. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o + 180. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 181. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb + 182. http://fredrik.hubbe.net/x2vnc.html + 183. http://www.hubbe.net/~hubbe/win2vnc.html + 184. http://www.deboer.gmxhome.de/ + 185. http://sourceforge.net/projects/win2vnc/ + 186. http://fredrik.hubbe.net/x2vnc.html + 187. http://freshmeat.net/projects/x2x/ + 188. http://ftp.digital.com/pub/Digital/SRC/x2x/ + 189. http://zapek.com/software/zvnc/ + 190. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual + 191. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap + 192. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor + 193. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp 194. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 195. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 196. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 197. http://www.karlrunge.com/x11vnc/index.html#faq-overlays - 198. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 199. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid - 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display - 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm - 202. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder - 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 204. http://www.karlrunge.com/x11vnc/index.html#xauth_pain - 205. http://www.karlrunge.com/x11vnc/index.html#faq-noshm - 206. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote - 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query - 208. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever - 209. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg - 210. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods - 211. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys - 212. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote - 213. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query - 214. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui - 215. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd - 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 217. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd - 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd - 220. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input - 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever - 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared - 225. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 226. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 227. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 230. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers - 231. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 232. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen - 233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 236. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 237. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen - 238. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 239. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 240. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 195. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 196. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 197. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 198. http://www.karlrunge.com/x11vnc/index.html#faq-overlays + 199. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid + 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display + 202. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder + 204. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 205. http://www.karlrunge.com/x11vnc/index.html#xauth_pain + 206. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote + 208. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query + 209. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 210. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 211. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods + 212. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys + 213. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote + 214. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query + 215. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd + 217. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 218. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd + 220. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd + 221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input + 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared + 226. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 227. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 228. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 230. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 231. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 232. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen + 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/x11vnc_opts.html#opt-allow + 237. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 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/index.html#tunnelling - 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 245. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 246. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 247. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly - 249. ftp://ftp.x.org/ - 250. http://www.karlrunge.com/x11vnc/dtVncPopup - 251. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone - 252. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 253. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users - 256. http://www.karlrunge.com/x11vnc/blockdpy.c - 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone - 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone - 260. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously - 261. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 262. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop - 263. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 264. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris - 265. http://www.jirka.org/gdm-documentation/x241.html - 266. http://www.karlrunge.com/x11vnc/x11vnc_loop - 267. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth - 268. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd - 269. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q - 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 271. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir - 272. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 273. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect - 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms - 275. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously - 276. http://www.karlrunge.com/x11vnc/shm_clear - 277. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile - 278. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm - 279. http://www.karlrunge.com/x11vnc/index.html#faq-noshm - 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap - 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait - 282. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile - 283. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs - 284. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads - 285. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer - 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid - 288. http://www.tightvnc.com/ - 289. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging - 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive - 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs - 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait - 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-nosel - 296. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor - 297. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos - 298. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area - 300. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem - 301. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage - 302. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode - 304. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode - 305. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 242. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 245. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 246. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh + 247. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 250. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly + 251. ftp://ftp.x.org/ + 252. http://www.karlrunge.com/x11vnc/dtVncPopup + 253. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 255. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 256. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users + 258. http://www.karlrunge.com/x11vnc/blockdpy.c + 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 260. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 262. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously + 263. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 264. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop + 265. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 266. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris + 267. http://www.jirka.org/gdm-documentation/x241.html + 268. http://www.karlrunge.com/x11vnc/x11vnc_loop + 269. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth + 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd + 271. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q + 272. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 273. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir + 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect + 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 277. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously + 278. http://www.karlrunge.com/x11vnc/shm_clear + 279. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 281. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 282. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap + 283. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 284. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 285. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs + 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads + 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer + 288. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 289. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 290. http://www.tightvnc.com/ + 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive + 293. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs + 294. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 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-nosel + 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor + 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos + 300. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 301. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area + 302. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem + 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage + 304. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 305. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode 306. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode - 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads - 308. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 309. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect - 310. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode - 311. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode + 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads + 310. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 311. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 312. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode + 313. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 315. http://www.karlrunge.com/x11vnc/fb_read_slow - 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 317. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 318. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect - 319. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 320. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen - 321. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip - 322. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale - 323. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 324. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor - 325. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor - 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 327. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode - 328. http://www.karlrunge.com/x11vnc/index.html#solaris10-build - 329. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks - 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut - 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac - 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove - 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape - 334. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend - 335. http://www.tightvnc.com/ - 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor - 337. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos - 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos - 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape - 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap - 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer + 315. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 317. http://www.karlrunge.com/x11vnc/fb_read_slow + 318. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 319. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 320. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect + 321. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 322. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen + 323. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip + 324. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale + 325. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 327. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 329. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode + 330. http://www.karlrunge.com/x11vnc/index.html#solaris10-build + 331. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks + 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut + 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac + 334. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove + 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape + 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend + 337. http://www.tightvnc.com/ + 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor + 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos + 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos + 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape 342. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap - 343. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 344. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless - 345. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak - 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard - 347. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 349. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak - 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard - 351. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb - 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes - 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 343. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer + 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap + 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 346. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 347. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard + 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 351. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard + 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap 357. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms - 358. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat - 359. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat - 360. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager - 361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 362. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 358. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 359. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 360. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat + 361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat + 362. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap 364. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 365. http://www.karlrunge.com/x11vnc/index.html#faq-scaling - 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale - 367. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html - 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport - 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor - 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout - 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama - 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer - 373. http://www.karlrunge.com/x11vnc/index.html#faq-solshm - 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile - 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm - 376. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip - 377. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 378. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr - 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom - 381. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 382. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 367. http://www.karlrunge.com/x11vnc/index.html#faq-scaling + 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale + 369. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html + 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor + 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout + 373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama + 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer + 375. http://www.karlrunge.com/x11vnc/index.html#faq-solshm + 376. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 377. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 378. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip + 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 381. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr + 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom 383. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 384. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 385. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb - 386. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 387. http://www.karlrunge.com/x11vnc/index.html#faq-vmware - 388. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel - 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary - 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell - 391. mailto:xvml@karlrunge.com + 384. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 385. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 387. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 388. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 389. http://www.karlrunge.com/x11vnc/index.html#faq-vmware + 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel + 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary + 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell + 393. mailto:xvml@karlrunge.com ======================================================================= @@ -4444,7 +4508,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.2 lastmod: 2005-06-14 +x11vnc: allow VNC connections to real X11 displays. 0.7.2 lastmod: 2005-06-18 x11vnc options: -display disp -auth file @@ -4543,7 +4607,7 @@ libvncserver options: % x11vnc -help -x11vnc: allow VNC connections to real X11 displays. 0.7.2 lastmod: 2005-06-14 +x11vnc: allow VNC connections to real X11 displays. 0.7.2 lastmod: 2005-06-18 Typical usage is: @@ -4719,8 +4783,10 @@ Options: of startup. -inetd Launched by inetd(1): stdio instead of listening socket. Note: if you are not redirecting stderr to a log file - (via shell 2> or -o option) you must also specify the - -q option, otherwise the stderr goes to the viewer. + (via shell 2> or -o option) you must also specify the -q + 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. -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 diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1 index c8b35ad..7403dd1 100644 --- a/x11vnc/x11vnc.1 +++ b/x11vnc/x11vnc.1 @@ -2,7 +2,7 @@ .TH X11VNC "1" "June 2005" "x11vnc " "User Commands" .SH NAME x11vnc - allow VNC connections to real X11 displays - version: 0.7.2, lastmod: 2005-06-14 + version: 0.7.2, lastmod: 2005-06-18 .SH SYNOPSIS .B x11vnc [OPTION]... @@ -246,8 +246,10 @@ Launched by .IR inetd (1): stdio instead of listening socket. Note: if you are not redirecting stderr to a log file -(via shell 2> or \fB-o\fR option) you must also specify the -\fB-q\fR option, otherwise the stderr goes to the viewer. +(via shell 2> or \fB-o\fR option) you must also specify the \fB-q\fR +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-http\fR .IP diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index 680d1d7..f448ee8 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -382,7 +382,7 @@ double xdamage_scheduled_mark = 0.0; sraRegionPtr xdamage_scheduled_mark_region = NULL; /* date +'lastmod: %Y-%m-%d' */ -char lastmod[] = "0.7.2 lastmod: 2005-06-14"; +char lastmod[] = "0.7.2 lastmod: 2005-06-18"; int hack_val = 0; /* X display info */ @@ -1262,6 +1262,9 @@ int parse_geom(char *str, int *wp, int *hp, int *xp, int *yp, int W, int H) { void set_env(char *name, char *value) { char *str; + if (!value) { + value = ""; + } str = (char *) malloc(strlen(name)+strlen(value)+2); sprintf(str, "%s=%s", name, value); putenv(str); @@ -2343,7 +2346,9 @@ char *ident_username(rfbClientPtr client) { newuser = strdup("unknown-user"); } if (cd) { - free(cd->username); + if (cd->username) { + free(cd->username); + } cd->username = newuser; } user = newuser; @@ -4139,6 +4144,7 @@ void record_switch(XPointer ptr, XRecordInterceptData *rec_data) { void record_grab(XPointer ptr, XRecordInterceptData *rec_data) { xReq *req; + int db = 0; /* should handle control msgs, start/stop/etc */ if (rec_data->category == XRecordStartOfData) { @@ -4163,7 +4169,7 @@ void record_grab(XPointer ptr, XRecordInterceptData *rec_data) { if (req->reqType == X_GrabServer) { double now = dnow() - x11vnc_start; xserver_grabbed++; - if (0) rfbLog("X server Grabbed: %d %.5f\n", xserver_grabbed, now); + if (db) rfbLog("X server Grabbed: %d %.5f\n", xserver_grabbed, now); if (xserver_grabbed > 1) { /* * some apps do multiple grabs... very unlikely @@ -4177,7 +4183,7 @@ void record_grab(XPointer ptr, XRecordInterceptData *rec_data) { if (xserver_grabbed < 0) { xserver_grabbed = 0; } - if (0) rfbLog("X server Un-Grabbed: %d %.5f\n", xserver_grabbed, now); + if (db) rfbLog("X server Un-Grabbed: %d %.5f\n", xserver_grabbed, now); } else { ; } @@ -5562,7 +5568,7 @@ static int run_user_command(char *cmd, rfbClientPtr client, char *mode) { } else { char *sip = get_local_host(client->sock); set_env("RFB_SERVER_IP", sip); - free(sip); + if (sip) free(sip); } if (cd && cd->server_port > 0) { @@ -5649,15 +5655,19 @@ static void client_gone(rfbClientPtr client) { if (cd) { if (cd->server_ip) { free(cd->server_ip); + cd->server_ip = NULL; } if (cd->hostname) { free(cd->hostname); + cd->hostname = NULL; } if (cd->username) { free(cd->username); + cd->username = NULL; } } free(client->clientData); + client->clientData = NULL; } if (inetd) { @@ -8697,9 +8707,11 @@ void initialize_allowed_input(void) { if (allowed_input_normal) { free(allowed_input_normal); + allowed_input_normal = NULL; } if (allowed_input_view_only) { free(allowed_input_view_only); + allowed_input_view_only = NULL; } if (! allowed_input_str) { @@ -12956,7 +12968,9 @@ char *process_remote_cmd(char *cmd, int stringonly) { if (is_loopback) { rfbLog("re-setting -allow list to all " "hosts for non-loopback listening.\n"); - free(allow_list); + if (allow_list) { + free(allow_list); + } allow_list = NULL; } } else { @@ -16216,22 +16230,29 @@ void setup_cursors(void) { /* this is the rfbCursor part: */ if (ci->rfb->richSource) { free(ci->rfb->richSource); + ci->rfb->richSource = NULL; } if (ci->rfb->source) { free(ci->rfb->source); + ci->rfb->source = NULL; } if (ci->rfb->mask) { free(ci->rfb->mask); + ci->rfb->mask = NULL; } free(ci->rfb); + ci->rfb = NULL; } if (ci->data) { free(ci->data); + ci->data = NULL; } if (ci->mask) { free(ci->mask); + ci->mask = NULL; } free(ci); + ci = NULL; } /* create new struct: */ @@ -16388,6 +16409,8 @@ void setup_cursors(void) { rfb_curs->backGreen = 0xffff; rfb_curs->backBlue = 0xffff; } + rfb_curs->alphaSource = NULL; + rfb_curs->xhot = ci->sx; rfb_curs->yhot = ci->sy; rfb_curs->cleanup = FALSE; @@ -16895,10 +16918,15 @@ int get_xfixes_cursor(int init) { } oldest = CURS_DYN_MIN; + if (screen && screen->cursor == cursors[oldest]->rfb) { + oldest++; + } oldtime = curs_times[oldest]; now = time(0); for (i = CURS_DYN_MIN; i <= CURS_DYN_MAX; i++) { - if (curs_times[i] < oldtime) { + if (screen && screen->cursor == cursors[i]->rfb) { + ; + } else if (curs_times[i] < oldtime) { /* watch for oldest one to overwrite */ oldest = i; oldtime = curs_times[i]; @@ -16924,17 +16952,22 @@ int get_xfixes_cursor(int init) { /* clean up oldest if it exists */ if (cursors[use]->rfb->richSource) { free(cursors[use]->rfb->richSource); + cursors[use]->rfb->richSource = NULL; } if (cursors[use]->rfb->alphaSource) { free(cursors[use]->rfb->alphaSource); + cursors[use]->rfb->alphaSource = NULL; } if (cursors[use]->rfb->source) { free(cursors[use]->rfb->source); + cursors[use]->rfb->source = NULL; } if (cursors[use]->rfb->mask) { free(cursors[use]->rfb->mask); + cursors[use]->rfb->mask = NULL; } free(cursors[use]->rfb); + cursors[use]->rfb = NULL; } /* place cursor into our collection */ @@ -17424,6 +17457,7 @@ void set_colormap(int reset) { first = 1; if (screen->colourMap.data.shorts) { free(screen->colourMap.data.shorts); + screen->colourMap.data.shorts = NULL; } } @@ -19099,7 +19133,7 @@ void initialize_screen(int *argc, char **argv, XImage *fb) { /* called from inetd, we need to treat stdio as our socket */ if (inetd) { int fd = dup(0); - if (fd < 3) { + if (fd < 0) { rfbLogEnable(1); rfbErr("dup(0) = %d failed.\n", fd); rfbLogPerror("dup"); @@ -19191,6 +19225,10 @@ int dt_cmd(char *cmd) { return 1; } + if (getenv("DISPLAY") == NULL) { + set_env("DISPLAY", DisplayString(dpy)); + } + rfbLog("running command:\n %s\n", cmd); usr_bin_path(0); rc = system(cmd); @@ -23175,7 +23213,7 @@ int get_wm_frame_pos(int *px, int *py, int *x, int *y, int *w, int *h, Bool ret; int rootx, rooty, wx, wy; unsigned int mask; - + ret = XQueryPointer(dpy, rootwin, &r, &c, &rootx, &rooty, &wx, &wy, &mask); @@ -23508,6 +23546,8 @@ void set_wirecopyrect_mode(char *str) { } else { if (! wireframe_copyrect) { wireframe_copyrect = strdup(wireframe_copyrect_default); + } else { + orig = NULL; } rfbLog("unknown -wirecopyrect mode: %s, using: %s\n", str, wireframe_copyrect); @@ -23536,6 +23576,8 @@ void set_scrollcopyrect_mode(char *str) { } else { if (! scroll_copyrect) { scroll_copyrect = strdup(scroll_copyrect_default); + } else { + orig = NULL; } rfbLog("unknown -scrollcopyrect mode: %s, using: %s\n", str, scroll_copyrect); @@ -23861,6 +23903,7 @@ void draw_box(int x, int y, int w, int h, int restore) { if (! first && save[i]) { if (save[i]->data) { free(save[i]->data); + save[i]->data = NULL; } free(save[i]); } @@ -26403,6 +26446,8 @@ if (db) fprintf(stderr, "INTERIOR\n"); spin += dtime(&tm); +if (0) fprintf(stderr, "wf-spin: %.3f\n", spin); + /* check for any timeouts: */ if (frame_changed) { double delay; @@ -26509,7 +26554,6 @@ if (db) fprintf(stderr, "OUT-OF-FRAME: old: x: %d y: %d px: %d py: %d 0x%lx\n" } X_UNLOCK; - /* debugging output, to be removed: */ if (db) fprintf(stderr, " frame: x: %d y: %d w: %d h: %d px: %d py: %d fr: 0x%lx\n", x, y, w, h, px, py, frame); if (db) fprintf(stderr, " MO,PT,FR: %d/%d %d/%d %d/%d\n", cursor_x - orig_cursor_x, cursor_y - orig_cursor_y, px - orig_px, py - orig_py, x - orig_x, y - orig_y); @@ -28431,8 +28475,10 @@ static void print_help(int mode) { " of startup.\n" "-inetd Launched by inetd(1): stdio instead of listening socket.\n" " Note: if you are not redirecting stderr to a log file\n" -" (via shell 2> or -o option) you must also specify the\n" -" -q option, otherwise the stderr goes to the viewer.\n" +" (via shell 2> or -o option) you must also specify the -q\n" +" 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" "-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" @@ -31113,6 +31159,24 @@ int main(int argc, char* argv[]) { close(n); } } + if (inetd && quiet && !logfile) { + int n; + /* + * Redir stderr to /dev/null under -inetd and -quiet + * but no -o logfile. Typical problem: + * Xlib: extension "RECORD" missing on display ":1.0". + * If they want this info, they should use -o logfile, + * or no -q and 2>logfile. + */ + n = open("/dev/null", O_WRONLY); + if (n >= 0) { + if (dup2(n, 2) >= 0) { + if (n > 2) { + close(n); + } + } + } + } if (! quiet && ! inetd) { int i; for (i=1; i < argc_vnc; i++) { @@ -31292,6 +31356,7 @@ int main(int argc, char* argv[]) { shared = 0; connect_once = 1; bg = 0; + /* others? */ } if (flip_byte_order && using_shm && ! quiet) { |