diff options
author | runge <runge> | 2006-03-03 00:30:16 +0000 |
---|---|---|
committer | runge <runge> | 2006-03-03 00:30:16 +0000 |
commit | b03a920cb996bf61af2d9351d2fe497ea3c0c99e (patch) | |
tree | d8b88ff7a0e19659374f8f4b7d443b33adf4b4cb | |
parent | f38f67e4e9320a3e0b1472b9c4bae86fcedcbd89 (diff) | |
download | libtdevnc-b03a920cb996bf61af2d9351d2fe497ea3c0c99e.tar.gz libtdevnc-b03a920cb996bf61af2d9351d2fe497ea3c0c99e.zip |
x11vnc: more -unixpw mode. -gone popup mode. Change filexfer via -R. Tune SMALL_FOOTPRINT.
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | x11vnc/8to24.c | 9 | ||||
-rw-r--r-- | x11vnc/ChangeLog | 4 | ||||
-rw-r--r-- | x11vnc/README | 2188 | ||||
-rw-r--r-- | x11vnc/connections.c | 226 | ||||
-rw-r--r-- | x11vnc/help.c | 99 | ||||
-rw-r--r-- | x11vnc/inet.c | 53 | ||||
-rw-r--r-- | x11vnc/inet.h | 1 | ||||
-rw-r--r-- | x11vnc/keyboard.c | 2 | ||||
-rw-r--r-- | x11vnc/remote.c | 69 | ||||
-rwxr-xr-x | x11vnc/tkx11vnc | 28 | ||||
-rw-r--r-- | x11vnc/tkx11vnc.h | 28 | ||||
-rw-r--r-- | x11vnc/unixpw.c | 622 | ||||
-rw-r--r-- | x11vnc/unixpw.h | 3 | ||||
-rw-r--r-- | x11vnc/x11vnc.1 | 109 | ||||
-rw-r--r-- | x11vnc/x11vnc.c | 43 | ||||
-rw-r--r-- | x11vnc/x11vnc.h | 11 | ||||
-rw-r--r-- | x11vnc/x11vnc_defs.c | 2 |
18 files changed, 2283 insertions, 1216 deletions
diff --git a/configure.ac b/configure.ac index 61733fa..a1918df 100644 --- a/configure.ac +++ b/configure.ac @@ -377,7 +377,7 @@ AC_FUNC_VPRINTF AC_FUNC_FORK AC_CHECK_LIB(nsl,gethostbyname) AC_CHECK_LIB(socket,socket) -AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr setsid getpwuid getpwnam getuid geteuid setuid seteuid setegid waitpid setutxent grantpt]) +AC_CHECK_FUNCS([ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr setsid setpgrp getpwuid getpwnam getuid geteuid setuid setgid seteuid setegid waitpid setutxent grantpt]) # check, if shmget is in cygipc.a AC_CHECK_LIB(cygipc,shmget) diff --git a/x11vnc/8to24.c b/x11vnc/8to24.c index 88b923c..01d9316 100644 --- a/x11vnc/8to24.c +++ b/x11vnc/8to24.c @@ -12,6 +12,13 @@ void check_for_multivis(void); void bpp8to24(int, int, int, int); void mark_8bpp(int); +#if SKIP_8TO24 +void check_for_multivis(void) {} +void bpp8to24(int x, int y, int z, int t) {} +void mark_8bpp(int x) {} +#else +/* lots... */ + static void set_root_cmap(void); static int check_pointer_in_depth24(void); static void parse_cmap8to24(void); @@ -1962,3 +1969,5 @@ if (db24 > 1) fprintf(stderr, "mark_8bpp: 0x%lx %d %d %d %d\n", windows_8bpp[i]. } } +#endif /* SKIP_8TO24 */ + diff --git a/x11vnc/ChangeLog b/x11vnc/ChangeLog index 5fd28da..dd3f1d4 100644 --- a/x11vnc/ChangeLog +++ b/x11vnc/ChangeLog @@ -1,3 +1,7 @@ +2006-03-02 Karl Runge <runge@karlrunge.com> + * x11vnc: more tweaks to -unixpw mode. Add -gone popup mode. + Change filexfer via -R. Tune SMALL_FOOTPRINT. gui fixes. + 2006-02-24 Karl Runge <runge@karlrunge.com> * x11vnc: -unixpw for Unix password auth, -stunnel to setup stunnel(1) for an SSL tunnel on the server end. Add clipboard diff --git a/x11vnc/README b/x11vnc/README index 340012b..ff94c1e 100644 --- a/x11vnc/README +++ b/x11vnc/README @@ -1,5 +1,5 @@ -x11vnc README file Date: Fri Feb 24 23:32:22 EST 2006 +x11vnc README file Date: Thu Mar 2 19:06:49 EST 2006 The following information is taken from these URLs: @@ -27,9 +27,9 @@ x11vnc: a VNC server for real X displays problems centered around esoteric C++ toolkits. x11vnc is written in plain C and uses only standard libraries. I also added a some enhancements to improve the interactive response, add esoteric - features, etc. The [7]FAQ contains a lot of information and solutions - to many problems, but please feel free to [8]contact me if you have - problems or questions. + features, etc. This page and the [7]FAQ contain a lot of information + [8][*] and solutions to many problems, but please feel free to + [9]contact me if you have problems or questions. Background: @@ -40,9 +40,9 @@ x11vnc: a VNC server for real X displays framebuffer (RFB) protocol Some VNC links: - * [9]http://www.uk.research.att.com/vnc/ - * [10]http://www.realvnc.com - * [11]http://www.tightvnc.com + * [10]http://www.uk.research.att.com/vnc/ + * [11]http://www.realvnc.com + * [12]http://www.tightvnc.com For Unix, the traditional VNC implementation includes a virtual X11 server Xvnc (usually launched via the vncserver command) that is not @@ -80,9 +80,9 @@ x11vnc: a VNC server for real X displays display you wish to view is "far-away.east:0" and the workstation you are presently working at is "sitting-here.west". - Step 0. Download x11vnc ([12]see below) and have it available to run + Step 0. Download x11vnc ([13]see below) and have it available to run on far-away.east. Similarly, have a VNC viewer (e.g. vncviewer) ready - to run on sitting-here.west. We recommend [13]TightVNC Viewers. + to run on sitting-here.west. We recommend [14]TightVNC Viewers. Step 1. By some means log in to far-away.east and get a command shell running there. You can use ssh, rlogin, telnet, or any other method to @@ -101,11 +101,11 @@ x11vnc: a VNC server for real X displays display (i.e. no viewer clients yet). Common Gotcha: To get X11 permissions right, you may also need to set - the XAUTHORITY environment variable (or use the [14]-auth option) to + the XAUTHORITY environment variable (or use the [15]-auth option) to point to the correct MIT-MAGIC-COOKIE file (e.g. /home/joe/.Xauthority). If x11vnc does not have the authority to connect to the display it exits immediately. More on how to fix this - [15]below. + [16]below. If you suspect an X11 permissions problem do this simple test: while sitting at the physical X display open a terminal window @@ -113,7 +113,7 @@ x11vnc: a VNC server for real X displays successfully in that terminal without any need for command line options. If that works OK then you know X11 permissions are the only thing preventing it from working when you try to start x11vnc via a - remote shell. Then fix this with the tips [16]below. + remote shell. Then fix this with the tips [17]below. When x11vnc starts up there will then be much chatter printed out, until it finally says something like: @@ -132,8 +132,8 @@ x11vnc: a VNC server for real X displays viewers for Unix, Windows, MacOS, Java-enabled web browsers, and even for PDA's like the Palm Pilot! You can use any of them to connect to x11vnc (see the above VNC links under "Background:" on how to obtain a - viewer for your platform or see [17]this FAQ. For Solaris, vncviewer - is available in the [18]Companion CD package SFWvnc ). + viewer for your platform or see [18]this FAQ. For Solaris, vncviewer + is available in the [19]Companion CD package SFWvnc ). In this example we'll use the Unix vncviewer program on sitting-here by typing the following command in a second terminal window: @@ -143,13 +143,13 @@ x11vnc: a VNC server for real X displays That should pop up a viewer window on sitting-here.west showing and allowing interaction with the far-away.east:0 X11 desktop. Pretty nifty! When finished, exit the viewer: the remote x11vnc process will - shutdown automatically (or you can use the [19]-forever option to have + shutdown automatically (or you can use the [20]-forever option to have it wait for additional viewer connections). Shortcut: Of course if you left x11vnc running on far-away.east:0 in a - terminal window with the [20]-forever option or as a [21]service, + terminal window with the [21]-forever option or as a [22]service, you'd only have to do Step 3 as you moved around. Be sure to use a VNC - [22]Password or [23]other measures if you do that. + [23]Password or [24]other measures if you do that. Desktop Sharing: The above more or less assumed nobody was sitting at @@ -165,7 +165,7 @@ x11vnc: a VNC server for real X displays For these cases it should be obvious how it is done. The above steps will work, but more easily the user sitting at far-away.east:0 simply starts up x11vnc from a terminal window, after which the guests would - start their VNC viewers. For this usage mode the "[24]-connect + start their VNC viewers. For this usage mode the "[25]-connect host1,host2" option may be of use automatically connect to vncviewers in "-listen" mode on the list of hosts. _________________________________________________________________ @@ -193,13 +193,13 @@ splay :0' Note that "x11vnc -localhost ..." limits incoming vncviewer connections to only those from the same machine. This is very natural for ssh tunnelling (the redirection appears to come from the same - machine). Use of a [25]VNC password is also strongly recommended. + machine). Use of a [26]VNC password is also strongly recommended. Some VNC viewers will do the ssh tunnelling for you automatically, the TightVNC vncviewer does this when the "-via far-away.east" option is supplied to it (this requires x11vnc to be already running on - far-away.east or having it started by [26]inetd(1)). See the 3rd - script example [27]below for more info. + far-away.east or having it started by [27]inetd(1)). See the 3rd + script example [28]below for more info. If the machine you SSH into is not the same machine with the X display you wish to view (e.g. your company provides incoming SSH access to a @@ -208,7 +208,7 @@ splay :0' (ssh, rsh, etc.) to the workstation machine 'otherhost' and then start up x11vnc on it (if it isn't already running). For an automatic way to use a gateway and have all the network traffic encrypted (including - inside the firewall) see [28]chaining ssh's below + inside the firewall) see [29]chaining ssh's below _________________________________________________________________ @@ -217,7 +217,7 @@ splay :0' above port and display numbers may change a bit (e.g. -> 5901 and :1). However, if you "know" port 5900 will be free on the local and remote machines, you can easily automate the above two steps by using the - x11vnc option [29]-bg (forks into background after connection to the + x11vnc option [30]-bg (forks into background after connection to the display is set up) or using the -f option of ssh. Some example scripts are shown below. _________________________________________________________________ @@ -248,7 +248,7 @@ done #2. Another method is to start the VNC viewer in listen mode "vncviewer -listen" and have x11vnc initiate a reverse connection - using the [30]-connect option: + using the [31]-connect option: #!/bin/sh # usage: x11vnc_ssh <host>:<xdisplay> # e.g.: x11vnc_ssh snoopy.peanuts.com:0 @@ -290,7 +290,7 @@ export VNC_VIA_CMD vncviewer -via $host localhost:0 # must be TightVNC vncviewer. Of course if you already have the x11vnc running waiting for - connections (or have it started out of [31]inetd(1)), you can simply + connections (or have it started out of [32]inetd(1)), you can simply use the TightVNC "vncviewer -via gateway host:port" in its default mode to provide secure ssh tunnelling. _________________________________________________________________ @@ -298,11 +298,11 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. VNC password file: Also note in the #1. example script that the - [32]option "-rfbauth .vnc/passwd" provides additional protection by + [33]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 [33]-storepasswd + vncpasswd or storepasswd programs, or the x11vnc [34]-storepasswd option can be used to create the password file. x11vnc also has the - slightly less secure [34]-passwdfile and "-passwd XXXXX" [35]options + slightly less secure [35]-passwdfile and "-passwd XXXXX" [36]options to specify passwords. Very Important: It is up to YOU to tell x11vnc to use password @@ -310,7 +310,7 @@ vncviewer -via $host localhost:0 # must be TightVNC vncviewer. automatically or force you to. The same goes for encrypting the channel between the viewer and x11vnc: it is up to you to use ssh, stunnel, VPN, etc. For additional safety, also look into the -allow - and -localhost [36]options and building x11vnc with [37]tcp_wrappers + and -localhost [37]options and building x11vnc with [38]tcp_wrappers support to limit host access. @@ -352,29 +352,37 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ _________________________________________________________________ + Tunnelling x11vnc via SSL/stunnel: + + One can also encrypt the VNC traffic using an SSL tunnel such as + [39]stunnel. Although not as ubiquitous as ssh, SSL tunnelling still + provides a useful alternative. See [40]this FAQ on stunnel for details + and examples. + _________________________________________________________________ + Downloading x11vnc: - x11vnc is a contributed program to the [38]LibVNCServer project at + x11vnc is a contributed program to the [41]LibVNCServer project at SourceForge.net. I use libvncserver for all of the VNC aspects; I couldn't have done without it. The full source code may be found and downloaded (either file-release tarball or CVS tree) from the above - link. As of Feb 2006, the [39]x11vnc-0.8.tar.gz source package is - released (recommended download). The [40]x11vnc 0.8 release notes. + link. As of Feb 2006, the [42]x11vnc-0.8.tar.gz source package is + released (recommended download). The [43]x11vnc 0.8 release notes. The x11vnc package is the subset of the libvncserver package needed to build the x11vnc program. Also, you can get a copy of my latest, - bleeding edge [41]x11vnc-0.8.1.tar.gz tarball to build the most up to + bleeding edge [44]x11vnc-0.8.1.tar.gz tarball to build the most up to date one. - Precompiled Binaries/Packages: See the [42]FAQ below for information + Precompiled Binaries/Packages: See the [45]FAQ below for information about where you might obtain a precompiled x11vnc binary from 3rd parties and some ones I create. To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try these links: - * [43]http://www.tightvnc.com/download.html - * [44]http://www.realvnc.com/download-free.html - * [45]http://sourceforge.net/projects/cotvnc/ + * [46]http://www.tightvnc.com/download.html + * [47]http://www.realvnc.com/download-free.html + * [48]http://sourceforge.net/projects/cotvnc/ More tools: Here is a rsh/ssh wrapper script rx11vnc that attempts to @@ -385,8 +393,8 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ rx11vnc.pl that attempts to tunnel the vnc traffic through an ssh port redirection (and does not assume port 5900 is free). Have a look at them to see what they do and customize as needed: - * [46]rx11vnc wrapper script - * [47]rx11vnc.pl wrapper script to tunnel traffic thru ssh + * [49]rx11vnc wrapper script + * [50]rx11vnc.pl wrapper script to tunnel traffic thru ssh _________________________________________________________________ @@ -417,8 +425,8 @@ exec /usr/bin/ssh -t -L 5900:localhost:5900 $gateway \ Note: Currently gcc is required to build libvncserver. In some cases it will build with non-gcc compilers, but the resulting binary sometimes fails to run properly. For Solaris pre-built gcc binaries - are at [48]http://www.sunfreeware.com/. Some Solaris pre-built x11vnc - binaries are [49]here. + are at [51]http://www.sunfreeware.com/. Some Solaris pre-built x11vnc + binaries are [52]here. However, one user reports it does work fine when built with Sun Studio 10, so YMMV. In fact, here is a little build script to do this on @@ -438,14 +446,14 @@ export MAKE AM_CFLAGS $MAKE In general you can use the "make -e" trick if you don't like - libvncserver's choice of AM_CFLAGS. See the [50]build scripts below + libvncserver's choice of AM_CFLAGS. See the [53]build scripts below for more ideas. _________________________________________________________________ Misc. Build problems: We collect here rare build problems some users have reported and the corresponding workarounds. See also the - [51]FAQ's on building. + [54]FAQ's on building. One user had a problem where the build script below was failing because his work environment had the ENV variable set to a script that @@ -503,9 +511,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 - [52]ftp://ftp.uu.net/graphics/jpeg/ and zlib at - [53]http://www.gzip.org/zlib/. See also - [54]http://www.sunfreeware.com/ for Solaris binary packages of these + [55]ftp://ftp.uu.net/graphics/jpeg/ and zlib at + [56]http://www.gzip.org/zlib/. See also + [57]http://www.sunfreeware.com/ for Solaris binary packages of these libraries as well as for gcc. Normally they will install into /usr/local but you can install them anywhere with the --prefix=/path/to/anywhere, etc. @@ -571,7 +579,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 [55]this workaround FAQ. + OS's, see [58]this workaround FAQ. Building on FreeBSD, OpenBSD, ...: The jpeg libraries seem to be in @@ -608,33 +616,33 @@ make Thanks to those who helped beta test x11vnc 0.8 released in Feb 2006! - The version 0.8.1 beta tarball is kept here [56]x11vnc-0.8.1.tar.gz + The version 0.8.1 beta tarball is kept here [59]x11vnc-0.8.1.tar.gz (no current plans for what features will be in it or when it will be released.) There are also some Linux, Solaris, and other OS test binaries - [57]here. Please kick the tires and report bugs, performance - regressions, undesired behavior, etc. to [58]me. + [60]here. Please kick the tires and report bugs, performance + regressions, undesired behavior, etc. to [61]me. Here are the release notes for the recent 0.8 release: * TightVNC file transfer added to libvncserver by Rohit Kumar is - enabled (use [59]-nofilexfer to disable). - * The [60]-passwdfile option has been enhanced to handle any number + enabled (use [62]-nofilexfer to disable). + * The [63]-passwdfile option has been enhanced to handle any number of full-access and view only passwords in an easy to maintain format. Automatic rereading or file removal can be enabled. - * The [61]-8to24 option enables some multi-depth viewing on systems - that don't support [62]-overlay. The 8bpp regions are transformed + * The [64]-8to24 option enables some multi-depth viewing on systems + that don't support [65]-overlay. The 8bpp regions are transformed to depth 24 TrueColor. - * The [63]-loop option will run x11vnc in an outer loop restarting + * The [66]-loop option will run x11vnc in an outer loop restarting each time (useful for situations where the X server restarts often). - * The [64]-afteraccept option is like [65]-accept however it enables + * The [67]-afteraccept option is like [68]-accept however it enables running a user supplied command after client authentication has taken place. The RFB_* environment variables have been extended. - * The [66]-slow_fb allows for slow polling for special purpose + * The [69]-slow_fb allows for slow polling for special purpose applications (e.g. video). - * [67]-blackout noptr,WxH+X+Y,... will prevent the pointer from + * [70]-blackout noptr,WxH+X+Y,... will prevent the pointer from going into a blacked out region. * The x11vnc source code has gone through a major reorganization. The build has been enhanced and many bugs fixed. @@ -642,10 +650,10 @@ make Here are some notes about features added in 0.7.2. Checking/Testing them is still useful and appreciated! - Note that the [68]X DAMAGE feature will be on by default and so I am + Note that the [71]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 - [69]wireframe move/resize, the [70]wireframe copyrect translation, and - the [71]scroll detection+copyrect features all on by default as well + [72]wireframe move/resize, the [73]wireframe copyrect translation, and + the [74]scroll detection+copyrect features all on by default as well since when they work they give a great speedup! (CopyRect is a VNC encoding and is very fast because the viewer already has the image data that needs to be copied: e.g. it just moves it to another part of @@ -681,10 +689,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 - [72]-solid [color] option that works on recent GNOME, KDE, and CDE and + [75]-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 [73]TightVNC encoding gives the best response for my + I also find the [76]TightVNC encoding gives the best response for my usage (Unix <-> Unix over cable modem). One needs a tightvnc-aware vncviewer to take advantage of this encoding. @@ -696,16 +704,16 @@ make is X11's default listening port). Had port 5900 been taken by some other application, x11vnc would have next tried 5901. That would mean the viewer command above should be changed to vncviewer - far-away.east:1. You can force the port with the "[74]-rfbport NNNN" + far-away.east:1. You can force the port with the "[77]-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 [75]command line options. Useful options are, e.g., -scale to + via its [78]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 - [76]-storepasswd option can be used to create the password file). + [79]-storepasswd option can be used to create the password file). Algorithm: How does x11vnc do it? Rather brute-forcedly: it continuously polls the X11 framebuffer for changes using @@ -732,7 +740,7 @@ make first testing out the programs. You get an interesting recursive/feedback effect where vncviewer images keep popping up each one contained in the previous one and slightly shifted a bit by the - window manager decorations. There will be an [77]even more interesting + window manager decorations. There will be an [80]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 @@ -742,12 +750,12 @@ make Sun Ray Notes: - You can run x11vnc on your (connected or disconnected) [78]SunRay - session (Please remember to use settings like [79]-wait 200, [80]-sb + You can run x11vnc on your (connected or disconnected) [81]SunRay + session (Please remember to use settings like [82]-wait 200, [83]-sb 15, and not running a screensaver animation (blank instead) to avoid being a resource hog! x11vnc does induce a lot of memory I/O from polling the X server. It also helps to have a solid background color, - e.g. [81]-solid). + e.g. [84]-solid). You have to know the name of the machine your SunRay session X server is running on (so you can ssh into it and start x11vnc). You also need @@ -771,15 +779,15 @@ make sunray-server:0 (note the :0 corresponding to port 5900, it is not :137). If it cannot get 5900, it tries for 5901, and so on. You can also try to force the port (and thereby the VNC display) using the - [82]-rfbport NNNN option. + [85]-rfbport NNNN option. Especially on a busy Sun Ray server it is often difficult to find free ports for both VNC and the HTTP Java applet server to listen on. This - script, [83]vnc_findports may be of use for doing this automatically. + script, [86]vnc_findports may be of use for doing this automatically. It suggests x11vnc command line options based on netstat output that lists the occupied ports. It is even more difficult to start vncserver/Xvnc on a busy Sun Ray because then 3 ports (HTTP, VNC, and - X11), all separated by 100 are needed! This script, [84]findvncports + X11), all separated by 100 are needed! This script, [87]findvncports may be helpful as well. Both scripts start at VNC display :10 and work their way up. @@ -794,7 +802,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 [85]shm_clear that finds the + the ipcrm command. I wrote a script [88]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 @@ -935,7 +943,7 @@ elif [ "$RFB_MODE" = "gone" -a "$RFB_STATE" = "NORMAL" ]; then fi Then we would run x11vnc with these options: "-afteraccept xss_killer - -gone xss_killer". The [86]-afteraccept option (introduced in version + -gone xss_killer". The [89]-afteraccept option (introduced in version 0.8) is used to run a command after a vncviewer has successfully logged in (note that this is a VNC login, not a Unix login, so you may not want to do this if you are really paranoid...) @@ -983,7 +991,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & than you normally do to minimize the effects (e.g. do fullpage paging rather than line-by-line scrolling, and move windows in a single, quick motion). Recent work has provided the - [87]-scrollcopyrect and [88]-wireframe speedups using the CopyRect + [90]-scrollcopyrect and [91]-wireframe speedups using the CopyRect VNC encoding and other things, but they only speed up certain activities, not all. * A rate limiting factor for x11vnc performance is that video @@ -1030,14 +1038,14 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & be of use for special purpose applications. Also, a faster and more accurate way is to use the "dummy" XFree86/Xorg device driver (or our Xdummy wrapper script). See - [89]this FAQ for details. + [92]this FAQ for details. * Somewhat surprisingly, the X11 mouse (cursor) shape is write-only and cannot be queried from the X server. So traditionally in x11vnc the cursor shape stays fixed at an arrow. (see the "-cursor - X" and "-cursor some" [90]options, however, for a partial hack for + X" and "-cursor some" [93]options, however, for a partial hack for the root window, etc.). However, on Solaris using the SUN_OVL overlay extension, x11vnc can show the correct mouse cursor when - the [91]-overlay option is also supplied. A similar thing is done + the [94]-overlay option is also supplied. A similar thing is done on IRIX as well when -overlay is supplied. More generally, as of Dec/2004 x11vnc supports the new XFIXES extension (in Xorg and Solaris 10) to query the X server for the @@ -1049,16 +1057,16 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & the X server supports the XKEYBOARD extension. (Note that on Solaris XKEYBOARD is disabled by default. Passing +kb to Xsun enables it). - * The scroll detection algorithm for the [92]-scrollcopyrect option + * The scroll detection algorithm for the [95]-scrollcopyrect option can give choppy or bunched up transient output and occasionally painting errors. * Occasionally a patch of tiles will not get updated correctly. Evidently a timing related bug and difficult to reproduce... * Using -threads can expose some bugs in libvncserver. - Please feel free to [93]contact me if you have any questions, + Please feel free to [96]contact me if you have any questions, problems, or comments about x11vnc, etc. - Also, some people ask if they can make a donation, see [94]this link + Also, some people ask if they can make a donation, see [97]this link for that. _________________________________________________________________ @@ -1067,301 +1075,304 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & [Building and Starting] - [95]Q-1: I can't get x11vnc to start up. It says "XOpenDisplay failed + [98]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? - [96]Q-2: I can't get x11vnc and/or libvncserver to compile. + [99]Q-2: I can't get x11vnc and/or libvncserver to compile. - [97]Q-3: I just built x11vnc successfully, but when I use it my + [100]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). - [98]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old + [101]Q-4: Help, I need to run x11vnc on Solaris 2.5.1 (or other old Unix/Linux) and it doesn't compile! - [99]Q-5: Where can I get a precompiled x11vnc binary for my Operating + [102]Q-5: Where can I get a precompiled x11vnc binary for my Operating System? - [100]Q-6: Where can I get a VNC Viewer binary (or source code) for the + [103]Q-6: Where can I get a VNC Viewer binary (or source code) for the Operating System I will be viewing from? - [101]Q-7: How can I see all of x11vnc's command line options and + [104]Q-7: How can I see all of x11vnc's command line options and documentation on how to use them? - [102]Q-8: I don't like typing arcane command line options every time I + [105]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? - [103]Q-9: How can I get the GUI to run in the System Tray, or at least + [106]Q-9: How can I get the GUI to run in the System Tray, or at least be a smaller, simpler icon? - [104]Q-10: Can I make x11vnc more quiet and also go into the + [107]Q-10: Can I make x11vnc more quiet and also go into the background after starting up? - [105]Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies + [108]Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with the error message like: "Broken pipe". I'm using the -forever mode and I want x11vnc to keep running. - [106]Q-12: Are there any build-time customizations possible, e.g. + [109]Q-12: Are there any build-time customizations possible, e.g. change defaults, create a smaller binary, etc? [Win2VNC Related] - [107]Q-13: I have two separate machine displays in front of me, one + [110]Q-13: I have two separate machine displays in front of me, one Windows the other X11: can I use x11vnc in combination with Win2VNC in dual-screen mode to pass the keystrokes and mouse motions to the X11 display? - [108]Q-14: I am running Win2VNC on my Windows machine and "x11vnc + [111]Q-14: I am running Win2VNC on my Windows machine and "x11vnc -nofb" on Unix to pass keyboard and mouse to the Unix monitor. Whenever I start Win2VNC it quickly disconnects and x11vnc says: rfbProcessClientNormalMessage: read: Connection reset by peer [Color Issues] - [109]Q-15: The X display I run x11vnc on is only 8 bits per pixel + [112]Q-15: The X display I run x11vnc on is only 8 bits per pixel (bpp) PseudoColor (i.e. only 256 distinct colors). The x11vnc colors may start out OK, but after a while they are incorrect in certain windows. - [110]Q-16: Color problems: Why are the colors for some windows + [113]Q-16: Color problems: Why are the colors for some windows incorrect in x11vnc? BTW, my X display has nice overlay/multi-depth visuals of different color depths: e.g. there are both depth 8 and 24 visuals available at the same time. - [111]Q-17: How do I figure out the window id to supply to the -id + [114]Q-17: How do I figure out the window id to supply to the -id windowid option? - [112]Q-18: Why don't menus or other transient windows come up when I + [115]Q-18: Why don't menus or other transient windows come up when I am using the -id windowid option to view a single application window? - [113]Q-19: My X display is depth 24 at 24bpp (instead of the normal + [116]Q-19: My X display is depth 24 at 24bpp (instead of the normal depth 24 at 32bpp). I'm having lots of color and visual problems with x11vnc and/or vncviewer. What's up? [Xterminals] - [114]Q-20: Can I use x11vnc to view and interact with an Xterminal + [117]Q-20: Can I use x11vnc to view and interact with an Xterminal (e.g. NCD) that is not running UNIX and so x11vnc cannot be run on it directly? - [115]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file) + [118]Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file) correct for a Unix/Linux machine acting as an Xterminal? [Sun Rays] - [116]Q-22: I'm having trouble using x11vnc with my Sun Ray session. + [119]Q-22: I'm having trouble using x11vnc with my Sun Ray session. [Remote Control] - [117]Q-23: How do I stop x11vnc once it is running in the background? + [120]Q-23: How do I stop x11vnc once it is running in the background? - [118]Q-24: Can I change settings in x11vnc without having to restart + [121]Q-24: Can I change settings in x11vnc without having to restart it? Can I remote control it? [Security and Permissions] - [119]Q-25: How do I create a VNC password for use with x11vnc? + [122]Q-25: How do I create a VNC password for use with x11vnc? - [120]Q-26: Can I make it so -storepasswd doesn't show my password on + [123]Q-26: Can I make it so -storepasswd doesn't show my password on the screen? - [121]Q-27: Can I have two passwords for VNC viewers, one for full + [124]Q-27: Can I have two passwords for VNC viewers, one for full access and the other for view-only access to the display? - [122]Q-28: Can I have as many full-access and view-only passwords as I + [125]Q-28: Can I have as many full-access and view-only passwords as I like? - [123]Q-29: Can I fine tune what types of user input are allowed? E.g. + [126]Q-29: Can I fine tune what types of user input are allowed? E.g. have some users just be able to move the mouse, but not click or type anything? - [124]Q-30: Why does x11vnc exit as soon as the VNC viewer disconnects? + [127]Q-30: Why does x11vnc exit as soon as the VNC viewer disconnects? And why doesn't it allow more than one VNC viewer to connect at the same time? - [125]Q-31: Can I limit which machines incoming VNC clients can connect + [128]Q-31: Can I limit which machines incoming VNC clients can connect from? - [126]Q-32: How do I build x11vnc/libvncserver with libwrap + [129]Q-32: How do I build x11vnc/libvncserver with libwrap (tcp_wrappers) support? - [127]Q-33: Can I have x11vnc only listen on one network interface + [130]Q-33: Can I have x11vnc only listen on one network interface (e.g. internal LAN) rather than having it listen on all network interfaces and relying on -allow to filter unwanted connections out? - [128]Q-34: Now that -localhost implies listening only on the loopback + [131]Q-34: Now that -localhost implies listening only on the loopback interface, how I can occasionally allow in a non-localhost via the -R allowonce remote control command? - [129]Q-35: How can I tunnel my connection to x11vnc via an encrypted + [132]Q-35: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - [130]Q-36: How can I tunnel my connection to x11vnc via an encrypted + [133]Q-36: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [131]Q-37: Can I prompt the user at the local X display whether the + [134]Q-37: How can I tunnel my connection to x11vnc via an encrypted + SSL channel using a tool like stunnel? + + [135]Q-38: 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? - [132]Q-38: Does x11vnc support Unix usernames and passwords? Can I + [136]Q-39: Does x11vnc support Unix usernames and passwords? Can I further limit the set of Unix usernames who can connect to the VNC desktop? - [133]Q-39: I start x11vnc as root because it is launched via inetd(1) + [137]Q-40: 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? - [134]Q-40: I use a screen-lock when I leave my workstation (e.g. + [138]Q-41: 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? - [135]Q-41: Can I have x11vnc automatically lock the screen when I + [139]Q-42: Can I have x11vnc automatically lock the screen when I disconnect the VNC viewer? [Display Managers and Services] - [136]Q-42: How can I run x11vnc as a "service" that is always + [140]Q-43: How can I run x11vnc as a "service" that is always available? - [137]Q-43: How can I use x11vnc to connect to an X login screen like + [141]Q-44: 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). - [138]Q-44: Can I run x11vnc out of inetd(1)? How about xinetd(1)? + [142]Q-45: Can I run x11vnc out of inetd(1)? How about xinetd(1)? - [139]Q-45: Can I have x11vnc restart itself after it terminates? + [143]Q-46: Can I have x11vnc restart itself after it terminates? - [140]Q-46: How do I make x11vnc work with the Java VNC viewer applet + [144]Q-47: How do I make x11vnc work with the Java VNC viewer applet in a web browser? - [141]Q-47: Are reverse connections (i.e. the VNC server connecting to + [145]Q-48: Are reverse connections (i.e. the VNC server connecting to the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported? - [142]Q-48: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a + [146]Q-49: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a real display, but for a virtual one I keep around). - [143]Q-49: How can I use x11vnc on "headless" machines? Why might I + [147]Q-50: How can I use x11vnc on "headless" machines? Why might I want to? [Resource Usage and Performance] - [144]Q-50: I have lots of memory, but why does x11vnc fail with + [148]Q-51: 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)? - [145]Q-51: How can I make x11vnc use less system resources? + [149]Q-52: How can I make x11vnc use less system resources? - [146]Q-52: How can I make x11vnc use MORE system resources? + [150]Q-53: How can I make x11vnc use MORE system resources? - [147]Q-53: I use x11vnc over a slow link with high latency (e.g. + [151]Q-54: I use x11vnc over a slow link with high latency (e.g. dialup modem), is there anything I can do to speed things up? - [148]Q-54: Does x11vnc support the X DAMAGE Xserver extension to find + [152]Q-55: Does x11vnc support the X DAMAGE Xserver extension to find modified regions of the screen quickly and efficiently? - [149]Q-55: When I drag windows around with the mouse or scroll up and + [153]Q-56: 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? - [150]Q-56: Why not do something like wireframe animations to avoid the + [154]Q-57: Why not do something like wireframe animations to avoid the windows "lurching" when being moved or resized? - [151]Q-57: Can x11vnc try to apply heuristics to detect when an window + [155]Q-58: 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] - [152]Q-58: Why isn't the mouse cursor shape (the little icon shape + [156]Q-59: Why isn't the mouse cursor shape (the little icon shape where the mouse pointer is) correct as I move from window to window? - [153]Q-59: When using XFIXES cursorshape mode, some of the cursors + [157]Q-60: 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? - [154]Q-60: In XFIXES mode, are there any hacks to handle cursor + [158]Q-61: In XFIXES mode, are there any hacks to handle cursor transparency ("alpha channel") exactly? [Mouse Pointer] - [155]Q-61: Why does the mouse arrow just stay in one corner in my + [159]Q-62: Why does the mouse arrow just stay in one corner in my vncviewer, whereas my cursor (that does move) is just a dot? - [156]Q-62: Can I take advantage of the TightVNC extension to the VNC + [160]Q-63: 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)? - [157]Q-63: Is it possible to swap the mouse buttons (e.g. left-handed + [161]Q-64: 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] - [158]Q-64: How can I get my AltGr and Shift modifiers to work between + [162]Q-65: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - [159]Q-65: When I try to type a "<" (i.e. less than) instead I get ">" + [163]Q-66: When I try to type a "<" (i.e. less than) instead I get ">" (i.e. greater than)! Strangely, typing ">" works OK!! - [160]Q-66: When I try to type a "<" (i.e. less than) instead I get + [164]Q-67: When I try to type a "<" (i.e. less than) instead I get "<," (i.e. an extra comma). - [161]Q-67: I'm using an "international" keyboard (e.g. German "de", or + [165]Q-68: 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? - [162]Q-68: When typing I sometimes get double, triple, or more of my + [166]Q-69: 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? - [163]Q-69: The x11vnc -norepeat mode is in effect, but I still get + [167]Q-70: The x11vnc -norepeat mode is in effect, but I still get repeated keystrokes!! - [164]Q-70: The machine where I run x11vnc has an AltGr key, but the + [168]Q-71: 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? - [165]Q-71: I have a Sun machine I run x11vnc on. Its Sun keyboard has + [169]Q-72: 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) - [166]Q-72: Can I map a keystroke to a mouse button click on the remote + [170]Q-73: Can I map a keystroke to a mouse button click on the remote machine? [Screen Related Issues and Features] - [167]Q-73: The remote display is larger (in number of pixels) than the + [171]Q-74: 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? - [168]Q-74: Does x11vnc support server-side framebuffer scaling? (E.g. + [172]Q-75: Does x11vnc support server-side framebuffer scaling? (E.g. to make the desktop smaller). - [169]Q-75: Does x11vnc work with Xinerama? (i.e. multiple monitors + [173]Q-76: Does x11vnc work with Xinerama? (i.e. multiple monitors joined together to form one big, single screen). - [170]Q-76: Can I use x11vnc on a multi-headed display that is not + [174]Q-77: Can I use x11vnc on a multi-headed display that is not Xinerama (i.e. separate screens :0.0, :0.1, ... for each monitor)? - [171]Q-77: Can x11vnc show only a portion of the display? (E.g. for a + [175]Q-78: Can x11vnc show only a portion of the display? (E.g. for a special purpose rfb application). - [172]Q-78: Does x11vnc support the XRANDR (X Resize, Rotate and + [176]Q-79: Does x11vnc support the XRANDR (X Resize, Rotate and Reflection) extension? Whenever I rotate or resize the screen x11vnc just seems to crash. - [173]Q-79: Why is the view in my VNC viewer completely black? Or why + [177]Q-80: Why is the view in my VNC viewer completely black? Or why is everything flashing around randomly? - [174]Q-80: I use Linux Virtual Consoles (VC's) to implement 'Fast User + [178]Q-81: 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 @@ -1369,12 +1380,12 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & otherwise all messed up unless the X session x11vnc is attached to is in the active VC? - [175]Q-81: Can I use x11vnc to view my VMWare session remotely? + [179]Q-82: Can I use x11vnc to view my VMWare session remotely? - [176]Q-82: Can non-X devices (e.g. a raw framebuffer) be viewed and/or + [180]Q-83: Can non-X devices (e.g. a raw framebuffer) be viewed and/or controlled by x11vnc? - [177]Q-83: I am using x11vnc where my local machine has "popup/hidden + [181]Q-84: 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 @@ -1382,15 +1393,15 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & [Misc: Clipboard, Beeps, Thanks, etc.] - [178]Q-84: Does the Clipboard/Selection get transferred between the + [182]Q-85: Does the Clipboard/Selection get transferred between the vncviewer and the X display? - [179]Q-85: Can I transfer files back and forth with x11vnc? + [183]Q-86: Can I transfer files back and forth with x11vnc? - [180]Q-86: Why don't I hear the "Beeps" in my X session (e.g. when + [184]Q-87: Why don't I hear the "Beeps" in my X session (e.g. when typing tput bel in an xterm)? - [181]Q-87: Thanks for your program and for your help! Can I make a + [185]Q-88: Thanks for your program and for your help! Can I make a donation? _________________________________________________________________ @@ -1403,7 +1414,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & For the former error, you need to specify the X display to connect to (it also needs to be on the same machine the x11vnc process is to run - on). Set your DISPLAY environment variable or use the [182]-display + on). Set your DISPLAY environment variable or use the [186]-display option to specify it. Nearly always the correct value will be ":0" @@ -1420,7 +1431,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & How to Solve: See the xauth(1), Xsecurity(7), and xhost(1) man pages for much info on X11 permissions. For example, you may need to set - your XAUTHORITY environment variable or use the [183]-auth option to + your XAUTHORITY environment variable or use the [187]-auth option to point to the correct MIT-MAGIC-COOKIE file (e.g. /home/joe/.Xauthority or /var/gdm/:0.Xauth or /var/lib/kdm/A:0-crWk72K), or simply be sure you run x11vnc as the correct user (i.e. the user who is logged into @@ -1438,8 +1449,9 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & x11vnc -display :0 -auth /var/gdm/:0.Xauth (this is for the display manager gdm and requires root permission to - read the gdm cookie file, see [184]this faq for other display manager - cookie file names). + read the gdm cookie file, see [188]this faq for other display manager + cookie file names). While running x11vnc as root, remember it comes + with no warranty ;-). Less safe, but to avoid figuring out where the correct XAUTHORITY file is, if the person sitting at the physical X session types "xhost @@ -1447,7 +1459,7 @@ env DISPLAY=`echo $DISPLAY | sed -e 's/^.*:/unix:/'` xscreensaver & (from the same machine). The person could then type "xhost -localhost" after x11vnc has connected to go back to the default permissions. Also, for some situations the "-users lurk=" option may be of use - (please read the documentation on the [185]-users option). + (please read the documentation on the [189]-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 @@ -1559,7 +1571,7 @@ h earlier and perhaps non-Solaris): First use the environment settings (CPPFLAGS, LDFLAGS, etc.) in the - above [186]Solaris build script to run the configure command. That + above [190]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 @@ -1585,7 +1597,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 - [187]SunOS 4.x + [191]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 @@ -1595,23 +1607,25 @@ typedef unsigned int in_addr_t; Q-5: Where can I get a precompiled x11vnc binary for my Operating System? - Hopefully the [188]build steps above and [189]FAQ provide enough info + Hopefully the [192]build steps above and [193]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) [190]http://packages.debian.org/x11vnc + Debian: (.deb) [194]http://packages.debian.org/x11vnc - Slackware: (.tgz) [191]http://www.linuxpackages.net/ Redhat/Fedora: - (.rpm) [192]http://dag.wieers.com/packages/x11vnc/ SuSE: (.rpm) - [193]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg) - [194]http://www.sunfreeware.com/ wwexptools: (.tgz) - [195]http://www.bell-labs.com/project/wwexptools/packages.html + Slackware: (.tgz) [195]http://www.linuxpackages.net/ Redhat/Fedora: + (.rpm) [196]http://dag.wieers.com/packages/x11vnc/ + [197]http://dries.ulyssis.org/rpm/packages/x11vnc SuSE: (.rpm) + [198]http://linux01.gwdg.de/~pbleser/ Solaris: (pkg) + [199]http://www.sunfreeware.com/ Nokia 770 (.deb) + [200]http://mike.saunby.net/770/x11vnc/ Sharp Zaurus + [201]http://www.pdaxrom.org/ and [202]http://www.focv.com/ If the above binaries don't work and building x11vnc on your OS fails - (and all else fails!) you can try one of [196]my collection of + (and all else fails!) you can try one of [203]my collection of binaries for various OS's and x11vnc releases. As a general note, the x11vnc program is simple enough you don't @@ -1632,9 +1646,9 @@ typedef unsigned int in_addr_t; To obtain VNC viewers for the viewing side (Windows, Mac OS, or Unix) try here: - * [197]http://www.tightvnc.com/download.html - * [198]http://www.realvnc.com/download-free.html - * [199]http://sourceforge.net/projects/cotvnc/ + * [204]http://www.tightvnc.com/download.html + * [205]http://www.realvnc.com/download-free.html + * [206]http://sourceforge.net/projects/cotvnc/ Q-7: How can I see all of x11vnc's command line options and @@ -1642,7 +1656,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 - [200]here as well. + [207]here as well. Q-8: I don't like typing arcane command line options every time I @@ -1673,10 +1687,10 @@ display :0 The /usr/bin/wish program is needed for operation. The gui is not particularly user-friendly, it just provides a point and click mode to set all the many x11vnc parameters and obtain help on them. See the - [201]-gui option for more info. Examples: "x11vnc ... -gui" and + [208]-gui option for more info. Examples: "x11vnc ... -gui" and "x11vnc ... -gui other:0" in the latter case the gui is displayed on other:0, not the X display x11vnc is polling. There is also a - "[202]-gui tray" system tray mode. + "[209]-gui tray" system tray mode. Q-9: How can I get the GUI to run in the System Tray, or at least be a @@ -1703,11 +1717,11 @@ display :0 Q-10: Can I make x11vnc more quiet and also go into the background after starting up? - Use the [203]-q and [204]-bg options, respectively. (also: -quiet is + Use the [210]-q and [211]-bg options, respectively. (also: -quiet is an alias for -q) Note that under -bg the stderr messages will be lost unless you use - the "[205]-o logfile" option. + the "[212]-o logfile" option. Q-11: Sometimes when a VNC viewer dies abruptly, x11vnc also dies with @@ -1728,7 +1742,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 [206]build + environment variable before running configure (see the [213]build notes for general background). * -DVNCSHARED=1 make -shared the default. * -DFOREVER=1 make -forever the default. @@ -1777,21 +1791,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 "[207]-nofb" option + Yes, for best response start up x11vnc with the "[214]-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 [208]x2vnc, however you would + This will also work X11 to X11 using [215]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: - * [209]Original Win2VNC - * [210]Enhanced Win2VNC and [211]sourceforge link - * [212]x2vnc - * [213]x2x also [214]here - * [215]zvnc (MorphOS) + * [216]Original Win2VNC + * [217]Enhanced Win2VNC and [218]sourceforge link + * [219]x2vnc + * [220]x2x also [221]here + * [222]zvnc (MorphOS) All of them will work with x11vnc (except x2x where it is not needed). @@ -1811,7 +1825,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 [216]-visual option to allow you to + libvncserver CVS, x11vnc has the [223]-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: @@ -1826,7 +1840,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 [217]-flashcmap option to have x11vnc watch for changes in the + Use the [224]-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 @@ -1835,13 +1849,13 @@ display :0 example of this. Consider reconfiguring the system to 16 bpp or depth 24 TrueColor if at all possible. - Also note the option [218]-8to24 (Jan/2006) can often remove the need + Also note the option [225]-8to24 (Jan/2006) can often remove the need for flashing the colormap. Everything is dynamically transformed to depth 24 at 32 bpp using the colormaps. There may be painting errors however (see the following FAQ for tips on reducing and correcting them). - In some rare cases the [219]-notruecolor option has corrected colors + In some rare cases the [226]-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. @@ -1852,13 +1866,13 @@ display :0 different color depths: e.g. there are both depth 8 and 24 visuals available at the same time. - You may want to review the [220]previous question regarding 8 bpp + You may want to review the [227]previous question regarding 8 bpp PseudoColor. - On some hardware (Sun/SPARC and SGI), the [221]-overlay option + On some hardware (Sun/SPARC and SGI), the [228]-overlay option discussed a couple paragraphs down may solve this for you (you may want to skip to it directly). On other hardware the less robust - [222]-8to24 option may help (also discussed below). + [229]-8to24 option may help (also discussed below). Run xdpyinfo(1) to see what the default visual is and what the depths of the other visuals are. Does the default visual have a depth of 8 @@ -1894,7 +1908,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 [223]-overlay x11vnc option (Aug/2004) to have x11vnc use the + use the [230]-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 @@ -1919,7 +1933,7 @@ TrueColor defdepth 24 Xsun, e.g. in your /etc/dt/config/Xservers file). - The -8to24 mode: The [224]-8to24 x11vnc option (Jan/2006) is a kludge + The -8to24 mode: The [231]-8to24 x11vnc option (Jan/2006) is a kludge to try to dynamically rewrite the pixel values so that the 8bpp part of the screen is mapped onto depth 24 TrueColor. This is less robust than the -overlay mode because it is done by x11vnc outside of the X @@ -1933,11 +1947,11 @@ TrueColor defdepth 24 32bpp view is exported via VNC. Even on pure 8bpp displays it can be used as an alternative to - [225]-flashcmap to avoid color flashing completely. + [232]-flashcmap to avoid color flashing completely. This scheme is approximate and can often lead to painting errors. You can manually correct most painting errors by pressing 3 Alt_L's in a - row, or by using something like: [226]-fixscreen V=3.0 to + row, or by using something like: [233]-fixscreen V=3.0 to automatically refresh the screen every 3 seconds. Also -fixscreen 8=3.0 has been added to just refresh the non-default visual parts of the screen. @@ -1950,23 +1964,23 @@ TrueColor defdepth 24 nogetimage can give a nice speedup if the default depth 24 X server supports hiding the 8bpp bits in bits 25-32 of the framebuffer data. On very slow machines -8to24 poll=0.2,cachewin=5.0 gives an useful - speedup. See the [227]-8to24 help description for information on + speedup. See the [234]-8to24 help description for information on tunable parameters, etc. Colors still not working correctly? Run xwininfo on the application with the incorrect colors to verify that the depth of its visual is different from the default visual depth (gotten from xdpyinfo). One - possible workaround in this case is to use the [228]-id option to + possible workaround in this case is to use the [235]-id option to point x11vnc at the application window itself. If the application is complicated (lots of toplevel windows and popup menus) this may not be acceptable, and may even crash x11vnc (but not the application). It is theoretically possible to solve this problem in general (see xwd(1) for example), but it does not seem trivial or sufficiently fast - for x11vnc to be able to do so in real time. The [229]-8to24 method + for x11vnc to be able to do so in real time. The [236]-8to24 method does this approximately and is somewhat usable. Fortunately the - [230]-overlay option works for Solaris machines with overlay visuals + [237]-overlay option works for Solaris machines with overlay visuals where most of this problem occurs. @@ -1977,9 +1991,9 @@ TrueColor defdepth 24 the desired application window. After clicking, it will print out much information, including the window id (e.g. 0x6000010). Also, the visual and depth of the window printed out is often useful in - debugging x11vnc [231]color problems. + debugging x11vnc [238]color problems. - Also, as of Dec/2004 libvncserver CVS you can use "[232]-id pick" to + Also, as of Dec/2004 libvncserver CVS you can use "[239]-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. @@ -1997,7 +2011,7 @@ TrueColor defdepth 24 you should be able to see these transient windows. If things are not working and you still want to do the single window - polling, try the [233]-sid windowid option ("shifted" windowid). + polling, try the [240]-sid windowid option ("shifted" windowid). Q-19: My X display is depth 24 at 24bpp (instead of the normal depth @@ -2047,15 +2061,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 [234]-display option to point the display to that of + machine. Use the [241]-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 [235]-noshm option (this enables the polling over + and also supply the [242]-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 [236]-flipbyteorder if the + on the polling rate. You may also need [243]-flipbyteorder if the colors get messed up due to endian byte order differences. Q-21: How do I get my X permissions (MIT-MAGIC-COOKIE file) correct @@ -2079,7 +2093,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 - [237]-auth option to point to the correct file). Other options include + [244]-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 - @@ -2091,7 +2105,7 @@ TrueColor defdepth 24 details. If the display name in the cookie file needs to be changed between the - two hosts, see [238]this note on the "xauth add ..." command. + two hosts, see [245]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 @@ -2105,7 +2119,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 [239]poll + Not recommended, but as a last resort, you could have x11vnc [246]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...) @@ -2134,13 +2148,13 @@ TrueColor defdepth 24 Q-22: I'm having trouble using x11vnc with my Sun Ray session. - The [240]Sun Ray technology is a bit like "VNC done in hardware" (the + The [247]Sun Ray technology is a bit like "VNC done in hardware" (the Sun Ray terminal device, DTU, playing the role of the vncviewer). Completely independent of that, the SunRay user's session is still an X server that speaks the X11 protocol and so x11vnc simply talks to the X server part to export the SunRay desktop to any place in the world (i.e. not only to a Sun Ray terminal device), creating a sort of - "Soft Ray". Please see [241]this discussion of Sun Ray issues above + "Soft Ray". Please see [248]this discussion of Sun Ray issues above for solutions to problems. [Remote Control] @@ -2149,17 +2163,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 - [242]-remote and [243]-query options. To shut down the running x11vnc + [249]-remote and [250]-query options. To shut down the running x11vnc server just type "x11vnc -R stop". To disconnect all clients do "x11vnc -R disconnect:all", etc. - If the [244]-forever option has not been supplied, x11vnc will + If the [251]-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 [245]-bg option + If you have not put x11vnc in the background via the [252]-bg option or shell & operator, then simply press Ctrl-C in the shell where x11vnc is running to stop it. @@ -2169,15 +2183,15 @@ TrueColor defdepth 24 down state in the Xserver. Tapping the stuck key (either via a new x11vnc or at the physical console) will release it from the stuck state. If the keyboard seems to be acting strangely it is often fixed - by tapping Ctrl, Shift, and Alt. Alternatively, the [246]-clear_mods - option and [247]-clear_keys option can be used to release pressed keys + by tapping Ctrl, Shift, and Alt. Alternatively, the [253]-clear_mods + option and [254]-clear_keys option can be used to release pressed keys at startup and exit. Q-24: Can I change settings in x11vnc without having to restart it? Can I remote control it? - Look at the [248]-remote (same as -R) and [249]-query (same as -Q) + Look at the [255]-remote (same as -R) and [256]-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 @@ -2189,7 +2203,7 @@ TrueColor defdepth 24 be possible. There is also a simple Tcl/Tk gui based on this remote control - mechanism. See the [250]-gui option for more info. You will need to + mechanism. See the [257]-gui option for more info. You will need to have Tcl/Tk (i.e. /usr/bin/wish) installed for it to work. It can also run in the system tray: "-gui tray" or as a standalone icon window: "-gui icon". @@ -2204,12 +2218,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" [251]option, which is the the same + the -storepasswd "pass" "file" [258]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: [252]-rfbauth + You then use the password via the x11vnc option: [259]-rfbauth $HOME/myvncpasswd Compared to vncpasswd(1) the latter two methods are a somewhat unsafe @@ -2218,7 +2232,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 [253]-passwdfile and -passwd/-viewpasswd plain + x11vnc also has the [260]-passwdfile and -passwd/-viewpasswd plain text (i.e. not obscured like the -rfbauth VNC passwords) password options. @@ -2229,7 +2243,7 @@ TrueColor defdepth 24 You can use the vncpasswd program from RealVNC or TightVNC mentioned above.. - Alternatively, this script should keep your [254]-storepasswd more + Alternatively, this script should keep your [261]-storepasswd more private: #!/bin/sh # usage: x11vnc_pw [file] (default: ~/.vnc/passwd) @@ -2264,13 +2278,13 @@ ls -l "$file" and the other for view-only access to the display? Yes, as of May/2004 in the libvncserver CVS there is the - [255]-viewpasswd option to supply the view-only password. Note the - full-access password option [256]-passwd must be supplied at the same + [262]-viewpasswd option to supply the view-only password. Note the + full-access password option [263]-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 - [257]-passwdfile option to specify a file containing plain text + [264]-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 @@ -2278,7 +2292,7 @@ ls -l "$file" it is taken as the view-only password. (use "__EMPTY__" to supply an empty one). - View-only passwords currently do not work for the [258]-rfbauth + View-only passwords currently do not work for the [265]-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 @@ -2291,7 +2305,7 @@ ls -l "$file" Q-28: Can I have as many full-access and view-only passwords as I like? - Yes, as of Jan/2006 in the libvncserver CVS the [259]-passwdfile + Yes, as of Jan/2006 in the libvncserver CVS the [266]-passwdfile option has been extended to handle as many passwords as you like. You put the view-only passwords after a line __BEGIN_VIEWONLY__. @@ -2303,7 +2317,7 @@ ls -l "$file" some users just be able to move the mouse, but not click or type anything? - As of Feb/2005, the [260]-input option allows you to do this. "K", + As of Feb/2005, the [267]-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 @@ -2319,15 +2333,15 @@ ls -l "$file" These defaults are simple safety measures to avoid someone unknowingly leaving his X11 desktop exposed (to the internet, say) for long - periods of time. Use the [261]-forever option (aka -many) to have + periods of time. Use the [268]-forever option (aka -many) to have x11vnc wait for more connections after the first client disconnects. - Use the [262]-shared option to have x11vnc allow multiple clients to + Use the [269]-shared option to have x11vnc allow multiple clients to connect simultaneously. - Recommended additional safety measures include using ssh ([263]see + Recommended additional safety measures include using ssh ([270]see above), stunnel, or a VPN to authenticate and encrypt the viewer - connections or to at least use the -rfbauth passwd-file [264]option to - use VNC password protection (or [265]-passwdfile) It is up to YOU to + connections or to at least use the -rfbauth passwd-file [271]option to + use VNC password protection (or [272]-passwdfile) It is up to YOU to apply these security measures, they will not be done for you automatically. @@ -2335,7 +2349,7 @@ ls -l "$file" Q-31: Can I limit which machines incoming VNC clients can connect from? - Yes, look at the [266]-allow and [267]-localhost options to limit + Yes, look at the [273]-allow and [274]-localhost options to limit connections by hostname or IP address. E.g. x11vnc -allow 192.168.0.1,192.168.0.2 @@ -2347,7 +2361,7 @@ ls -l "$file" Note that -localhost is the same as "-allow 127.0.0.1" For more control, build libvncserver with libwrap support - [268](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5) + [275](tcp_wrappers) and then use /etc/hosts.allow See hosts_access(5) for complete details. @@ -2367,7 +2381,7 @@ ls -l "$file" is "vnc", e.g.: vnc: 192.168.100.3 .example.com - Note that if you run x11vnc out of [269]inetd you do not need to build + Note that if you run x11vnc out of [276]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. @@ -2376,16 +2390,16 @@ ls -l "$file" internal LAN) rather than having it listen on all network interfaces and relying on -allow to filter unwanted connections out? - As of Mar/2005 in the libvncserver CVS, there is the "[270]-listen + As of Mar/2005 in the libvncserver CVS, there is the "[277]-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 "[271]-allow host1,..." option to allow only specific hosts + use the "[278]-allow host1,..." option to allow only specific hosts in. This option is useful if you want to insure that no one can even begin a dialog with x11vnc from untrusted network interfaces (e.g. ppp0). - The option [272]-localhost now implies "-listen localhost" since that + The option [279]-localhost now implies "-listen localhost" since that is what most people expect it to do. @@ -2393,24 +2407,24 @@ ls -l "$file" interface, how I can occasionally allow in a non-localhost via the -R allowonce remote control command? - To do this specify "[273]-allow localhost". Unlike [274]-localhost + To do this specify "[280]-allow localhost". Unlike [281]-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 - ([275]-listen option) via remote control or gui, you may need to also - manually adjust the [276]-allow list if you unexpectedly get into a + ([282]-listen option) via remote control or gui, you may need to also + manually adjust the [283]-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 [277]-localhost on + in on the listening interface. If you just toggle [284]-localhost on and off x11vnc should see to it that you never get into such a state. Q-35: How can I tunnel my connection to x11vnc via an encrypted SSH channel between two Unix machines? - See the description earlier on this page on [278]how to tunnel VNC via + See the description earlier on this page on [285]how to tunnel VNC via SSH from Unix to Unix. A number of ways are described along with some issues you may encounter. @@ -2421,7 +2435,7 @@ ls -l "$file" Q-36: How can I tunnel my connection to x11vnc via an encrypted SSH channel from Windows using an SSH client like Putty? - [279]Above we described how to tunnel VNC via SSH from Unix to Unix, + [286]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 @@ -2444,8 +2458,8 @@ ls -l "$file" process in a BAT file including launching the VNC viewer by using the plink Putty utility. Send us the script if you get that working. - For extra protection feel free to run x11vnc with the [280]-localhost - and [281]-rfbauth/[282]-passwdfile options. + For extra protection feel free to run x11vnc with the [287]-localhost + and [288]-rfbauth/[289]-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 @@ -2453,22 +2467,170 @@ ls -l "$file" dialog setting to: 'Destination: otherhost:5900', Once logged in, you'll need to do a second login (ssh or rsh) to the workstation machine 'otherhost' and then start up x11vnc on it. This can also be - automated by [283]chaining ssh's. + automated by [290]chaining ssh's. - As discussed [284]above another option is to first start the VNC + As discussed [291]above another option is to first start the VNC viewer in "listen" mode, and then launch x11vnc with the - "[285]-connect localhost" option to establish the reverse connection. + "[292]-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). - Q-37: Can I prompt the user at the local X display whether the + Q-37: How can I tunnel my connection to x11vnc via an encrypted SSL + channel using a tool like stunnel? + + It is possible to use a "lighter weight" encryption setup than SSH or + IPSEC. SSL tunnels such as [293]stunnel provide an encrypted channel + without the need for users, passwords, and key passphrases required + for ssh. OTOH, since ssh is usually installed everywhere and firewalls + often let its port through, ssh is often the path of least resistance. + + Here are some basic examples using [294]stunnel but the general idea + is the same: + * Start up x11vnc and constrain it to listen on localhost. + * Then start up the SSL tunnel running on the same machine to + forward incoming connections to that x11vnc. + + (in fact, as of Feb/2006 the [295]-stunnel option does these two steps + [296]automatically). Then on the VNC viewer side: + * Set up and run a similar SSL tunnel for the outgoing connection + pointing to the SSL/x11vnc server. + * Finally, start the VNC Viewer and tell it to connect to the local + port (e.g. a vnc display localhost:0). + + We'll first use the stunnel version 3 syntax since it is the most + concise and unixy. Start up x11vnc listening on port 5900: + x11vnc -display :0 -rfbport 5900 -localhost -bg -passwdfile ~/mypass + + Then start stunnel with this command: + stunnel -d 5901 -r 5900 -p /path/to/stunnel.pem + + These are run on host "far-away.east". The stunnel.pem is the + self-signed PEM file certificate created when stunnel is built. + + Next, on the VNC viewer side we need an SSL tunnel to encrypt the + outgoing connection. The nice thing is any SSL tunnel can be used + because the protocol is a standard. For this example we'll also use + stunnel on the viewer side on Unix. First start up the client-side + stunnel: + stunnel -c -d localhost:5902 -r far-away.east:5901 + + Then point the viewer to the local tunnel on port 5902: + vncviewer -encodings "copyrect tight zrle hextile" localhost:2 + + That's it. + + Be sure to use a VNC password because unlike ssh by default the + encrypted SSL channel provides no authentication (only privacy). With + some extra configuration one could also set up certificates to provide + authentication of either or both sides as well (and hence avoid + man-in-the-middle attacks). See the stunnel and openssl documentation + for details. + + stunnel has also been ported to Windows, and there are likely others + to choose from for that OS. Much info for using it on Windows can be + found at the stunnel site and in this [297]article The article also + shows the many steps to set up all the authentication certificates. + The default Windows client setup (no certs) is simpler and only 4 + files are needed in a folder: stunnel.exe, stunnel.conf, libssl32.dll, + libeay32.dll. We used an stunnel.conf containing: +# stunnel.conf: +client = yes +options = ALL +[myvncssl] +accept = 5902 +connect = far-away.east:5901 + + then double click on the stunnel.exe icon to launch it (followed by + pointing the VNC viewer to localhost:2). + + + + As of Feb/2006 the x11vnc [298]-stunnel option automates the SSL + tunnel creation on the x11vnc server side: + x11vnc -display :0 -stunnel /path/to/stunnel.pem -passwdfile ~/mypass + + You'll get output like this: + The VNC desktop is localhost:50 + The SSL VNC desktop is far-away.east:0 + PORT=5950 + SSLPORT=5900 + + That indicates stunnel is listening on port 5900 for incoming + SSL-wrapped VNC connections. x11vnc is listening for local connections + on port 5950 in this case. For -stunnel to work stunnel must be + installed on the machine and available in PATH (note stunnel is often + installed in sbin directories rather than bin). + + One can test to some degree that SSL is working after starting x11vnc + with the -stunnel option. From another machine one can use the openssl + command something like this: + openssl s_client -debug -msg -showcerts -connect far-away.east:5900 + + After all of the debugging output and informational messages you'll + see the string "RFB 003.007" that came from x11vnc. Or you can even + just use a web browser connecting to: https://far-away.east:5900/ and + then view the SSL information about the connection in the panels. (Of + course these tests will also work if you started stunnel manually). + + (end of the -stunnel option description). + + + If you don't like the little "gap" of unencrypted TCP traffic (and a + local listening socket) on the local machine between stunnel and + x11vnc it can actually be closed by having stunnel start up x11vnc in + [299]-inetd mode: + stunnel -p /path/to/stunnel.pem -P none -d 5900 -l ./x11vnc_sh + + Where the script x11vnc_sh starts up x11vnc: +#!/bin/sh +x11vnc -q -inetd -display :0 -passwdfile ~/mypass + + Note that this creates a separate x11vnc process for each incoming + connection (as any inetd x11vnc usage would), but for the case of + normally just one viewer at a time it should not be a big problem. + + Somewhat sadly, the stunnel version 4 syntax is not so amenable to the + command line or scripts. You need to create a config file with the + parameters. E.g.: + stunnel x11vnc.cfg + + Where the file x11vnc.cfg contains: +foreground = yes +pid = +cert = /path/to/stunnel.pem +[x11vnc_stunnel] +accept = 5901 +connect = 5900 + + One nice thing about version 4 is often the PEM file does not need to + be specified because stunnel finds it in its installed area. One other + gotcha the the PEM file is usually only readable by root (it has the + private key afterall), so you'll need to relax the permissions or make + a copy that the user running x11vnc/stunnel can read. + + Regarding VNC viewers that "natively" do SSL unfortunately there do + not seem to be many. UltraVNC has SSL/encryption plugin, but we have + not tried it. Commercial versions of VNC seem to have some SSL built + in, but we haven't tried those either and they probably wouldn't work + since the SSL negotiation is likely embedded in the VNC protocol + unlike our case where it is external. So current SSL VNC solutions are + not particularly "seemless". But it can be done, and with a wrapper + script on the viewer side and the [300]-stunnel option on the server + side it works well and is convenient. Here is a simple script + [301]ssl_vncviewer that automates running stunnel on the VNC viewer + side on Unix a little more carefully than the two-lines printed above. + One could probably do a similar thing with a .BAT file on Windows in + the stunnel folder. + + + Q-38: 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? - Yes, look at the "[286]-accept command" option, it allows you to + Yes, look at the "[302]-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 @@ -2487,7 +2649,7 @@ ls -l "$file" own simple popup window. To accept the client press "y" or click mouse on the "Yes" button. To reject the client press "n" or click mouse on the "No" button. To accept the client View-only, press "v" or click - mouse on the "View" button. If the [287]-viewonly option has been + mouse on the "View" button. If the [303]-viewonly option has been supplied, the "View" action will not be present: the whole display is view only in that case. @@ -2503,7 +2665,7 @@ ls -l "$file" program to prompt the user whether the client should be accepted or not. This requires that you have xmessage installed and available via PATH. In case it is not already on your system, the xmessage program - is available at [288]ftp://ftp.x.org/ + is available at [304]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 @@ -2542,7 +2704,7 @@ elif [ $rc = 4 ]; then fi exit 1 - Stefan Radman has written a nice dtksh script [289]dtVncPopup for use + Stefan Radman has written a nice dtksh script [305]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. @@ -2551,45 +2713,64 @@ 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 "[290]-gone + To run a command when a client disconnects, use the "[306]-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 be "gone"). - Q-38: Does x11vnc support Unix usernames and passwords? Can I further + Q-39: Does x11vnc support Unix usernames and passwords? Can I further limit the set of Unix usernames who can connect to the VNC desktop? Until the VNC protocol and libvncserver support this things will be - approximate at best. Hopefully, it will not be too long to wait for - such support. - - One approximate method involves starting x11vnc with the - [291]-localhost option. This basically requires the viewer user to log - into the workstation where x11vnc is running via their Unix username - and password, and then somehow set up a port redirection of his - vncviewer connection to make it appear to emanate from the local - machine. As discussed above, ssh is useful for this: "ssh -l username - -L 5900:localhost:5900 hostname ..." See the ssh wrapper scripts - mentioned [292]elsewhere on this page. Of course a malicious user - could allow other users to get in through his channel, but that is a - problem with every method. Another thing to watch out for is a - malicious user on the viewer side (where ssh is running) trying to - sneak in through the ssh port redirection. + approximate at best. + + Update: as of Feb/2006 x11vnc has the [307]-unixpw option that does + this outside of the VNC protocol and libvncserver. The standard su(1) + program is used to validate the user's password. A familiar "login:" + and "Password:" dialog is presented to the user on a black screen + inside the vncviewer. The connection is dropped if the user fails to + supply the correct password in 3 tries or does not send one before a + 20 second timeout. Existing clients are view-only during this period. + A list of allowed Unix usernames can also be supplied. Two settings + are enforced in -unixpw mode to provide extra security: the + [308]-localhost and [309]-stunnel options. Without these one might + send the Unix username and password in clear text over the network + which is a very bad idea. They can be relaxed if you want to provide + encryption other than stunnel (the stunnel constraint is automatically + relaxed if SSH_CONNECTION is set and indicates you have ssh-ed in). + + + Previous discussion: One approximate method involves starting x11vnc + with the [310]-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 + 5900:localhost:5900 user@hostname ..." See the ssh wrapper scripts + mentioned [311]elsewhere on this page. [312]stunnel does this as well. + + 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 sneak in through the ssh port redirection there. 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 [293]-accept option that runs a program to examine - the connection information to determine which user is connecting from - the local machine. For example, the program could use the ident - service on the local machine (normally ident should not be trusted - over the network, but on the local machine it should be accurate: - otherwise root has been compromised and so there are more serious - problems!). An example script passed in via -accept scriptname that - deduces the Unix username and limits who can be accepted might look - something like this: + (-rfbauth, -passwd, etc) and only tell the people allowed in what the + VNC password is. A scheme that avoids a second password involves using + the [313]-accept option that runs a program to examine the connection + information to determine which user is connecting from the local + machine. That may be difficult to do, but, for example, the program + could use the ident service on the local machine (normally ident + should not be trusted over the network, but on the local machine it + should be accurate: otherwise root has been compromised and so there + are more serious problems! Unfortunately recent Linux distros seem to + provide a random string (MD5 hash?) instead of the username). An + example script passed in via -accept scriptname that deduces the Unix + username and limits who can be accepted might look something like + this: #!/bin/sh if [ "$RFB_CLIENT_IP" != "127.0.0.1" -o "$RFB_SERVER_IP" != "127.0.0.1" ]; then exit 1 # something fishy... reject it. @@ -2607,14 +2788,15 @@ done exit 1 # reject it For this to work with ssh port redirection, the ssh option - UsePrivilegeSeparation must be enabled. + UsePrivilegeSeparation must be enabled otherwise the userid will + always be "root". - Q-39: I start x11vnc as root because it is launched via inetd(1) or a + Q-40: 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? - As of Feb/2005 x11vnc has the [294]-users option that allows things + As of Feb/2005 x11vnc has the [314]-users option that allows things like this. Please read the documentation on it (also in the x11vnc -help output) carefully for features and caveats. It's use can often decrease security unless care is taken. @@ -2622,8 +2804,11 @@ exit 1 # reject it BTW, a nice use of it is "-users +nobody" that switches to the Unix user nobody right after connections to the X display are established. + In any event, while running x11vnc as root, remember it comes with no + warranty ;-). + - Q-40: I use a screen-lock when I leave my workstation (e.g. + Q-41: 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 @@ -2636,7 +2821,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 [295]blockdpy.c The idea behind it is simple (but + source for it is [315]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 @@ -2652,16 +2837,16 @@ 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 [296]-accept option and told - to exit via the [297]-gone option (the vnc client user should + The blockdpy utility is launched by the [316]-accept option and told + to exit via the [317]-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. - Q-41: Can I have x11vnc automatically lock the screen when I + Q-42: Can I have x11vnc automatically lock the screen when I disconnect the VNC viewer? - Yes, a user mentions he uses the [298]-gone option under CDE to run a + Yes, a user mentions he uses the [318]-gone option under CDE to run a screen lock program: x11vnc -display :0 -forever -gone 'dtaction LockDisplay' @@ -2670,7 +2855,7 @@ exit 1 # reject it x11vnc -display :0 -forever -gone 'kdesktop_lock' x11vnc -display :0 -forever -gone 'xlock &' - Here is a scheme using the [299]-afteraccept option (in version 0.7.3) + Here is a scheme using the [319]-afteraccept option (in version 0.7.3) to unlock the screen after the first valid VNC login and to lock the screen after the last valid VNC login disconnects: x11vnc -display :0 -forever -shared -afteraccept ./myxlocker -gone ./myxlocke @@ -2698,7 +2883,7 @@ fi [Display Managers and Services] - Q-42: How can I run x11vnc as a "service" that is always available? + Q-43: How can I run x11vnc as a "service" that is always available? There are a number of ways to do this. The primary thing you need to decide is whether you want x11vnc to connect to the X session on the @@ -2709,11 +2894,11 @@ fi need to have sufficient permissions to connect to the X display. Here are some ideas: - * Use the description under "Continuously" in the [300]FAQ on x11vnc + * Use the description under "Continuously" in the [320]FAQ on x11vnc and Display Managers - * Use the description in the [301]FAQ on x11vnc and inetd(1) + * Use the description in the [321]FAQ on x11vnc and inetd(1) * Start x11vnc from your $HOME/.xsession (or $HOME/.xinitrc) - * Although less reliable, see the [302]x11vnc_loop rc.local hack + * Although less reliable, see the [322]x11vnc_loop rc.local hack below. The display manager scheme will not be specific to which user has the @@ -2732,7 +2917,7 @@ x11vnc -logfile $HOME/.x11vnc.log -rfbauth $HOME/.vnc/passwd -forever -bg plus any other options you desire. - Q-43: How can I use x11vnc to connect to an X login screen like xdm, + Q-44: 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). @@ -2744,7 +2929,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 [303]-auth option sets the XAUTHORITY variable for you). + (the [323]-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 @@ -2769,7 +2954,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 - [304]the example at the end of this FAQ). Then restart dtlogin, e.g.: + [324]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 @@ -2832,7 +3017,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 [305]full details + killed immediately after the user logs in. Here are [325]full details on how to configure gdm _________________________________________________________________ @@ -2874,23 +3059,23 @@ 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: [306]x11vnc_loop It will need some local + file like rc.local: [326]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 - [307]this FAQ. + [327]this FAQ. - Q-44: Can I run x11vnc out of inetd(1)? How about xinetd(1)? + Q-45: Can I run x11vnc out of inetd(1)? How about xinetd(1)? Yes, perhaps a line something like this in /etc/inetd.conf will do it for you: 5900 stream tcp nowait root /usr/sbin/tcpd /usr/local/bin/x11vnc_sh - where the shell script /usr/local/bin/x11vnc_sh uses the [308]-inetd + where the shell script /usr/local/bin/x11vnc_sh uses the [328]-inetd option and looks something like (you'll need to customize to your settings). #!/bin/sh @@ -2903,7 +3088,7 @@ rever -bg and that confuses it greatly, causing it to abort). If you do not use a wrapper script as above but rather call x11vnc directly in /etc/inetd.conf and do not redirect stderr to a file, then you must - specify the -q (aka [309]-quiet) option: "/usr/local/bin/x11vnc -q + specify the -q (aka [329]-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 @@ -2911,7 +3096,7 @@ rever -bg script with "2>logfile" redirection because the errors and warnings printed out are very useful in troubleshooting problems. - Note also the need to set XAUTHORITY via [310]-auth to point to the + Note also the need to set XAUTHORITY via [330]-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 @@ -2923,7 +3108,8 @@ rever -bg 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. + users on the machine. Perhaps /var/log would be a better place. Also, + while running x11vnc as root, remember it comes with no warranty ;-). 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 @@ -2975,21 +3161,21 @@ service x11vncservice capture a log) - Q-45: Can I have x11vnc restart itself after it terminates? + Q-46: Can I have x11vnc restart itself after it terminates? One could do this in a shell script, but now there is an option - [311]-loop that makes it easier. Of course when x11vnc restarts it + [331]-loop that makes it easier. Of course when x11vnc restarts it needs to have permissions to connect to the (potentially new) X display. This mode could be useful if the X server restarts often. Use e.g. "-loop5000" to sleep 5000 ms between restarts. Also "-loop2000,5" to sleep 2000 ms and only restart 5 times. - Q-46: How do I make x11vnc work with the Java VNC viewer applet in a + Q-47: 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 [312]option: + that connect to it, run x11vnc with this [332]option: -httpdir /path/to/the/java/classes/dir (this directory will contain the files index.vnc and, for example, @@ -3008,7 +3194,7 @@ service x11vncservice then you can connect to that URL with any Java enabled browser. Feel free to customize the default index.vnc file in the classes directory. - As of May/2005 the [313]-http option will try to guess where the Java + As of May/2005 the [333]-http option will try to guess where the Java classes jar file is by looking a expected locations. Also note that if you wanted to, you could also start the Java viewer @@ -3016,13 +3202,13 @@ service x11vncservice either the java or appletviewer commands to run the program. - Q-47: Are reverse connections (i.e. the VNC server connecting to the + Q-48: Are reverse connections (i.e. the VNC server connecting to the VNC viewer) using "vncviewer -listen" and vncconnect(1) supported? 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 [314]-connect option. To connect immediately + starts up x11vnc with the [334]-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 @@ -3030,7 +3216,7 @@ service x11vncservice hosts to connect to. To use the vncconnect(1) program (from the core VNC package at - www.realvnc.com) specify the [315]-vncconnect option to x11vnc (Note: + www.realvnc.com) specify the [335]-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 @@ -3044,7 +3230,7 @@ service x11vncservice xprop -root -f VNC_CONNECT 8s -set VNC_CONNECT "$1" - Q-48: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a real + Q-49: Can I use x11vnc as a replacement for Xvnc? (i.e. not for a real display, but for a virtual one I keep around). You can, but you would not be doing this for performance reasons (for @@ -3074,7 +3260,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 - [316]-add_keysyms option to have keysyms added automatically. Also, to + [336]-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" @@ -3096,11 +3282,11 @@ xmodmap -e "add Control = Control_L Control_R" The main drawback to this method (besides requiring extra configuration and possibly root permission) is that it also does the - Linux Virtual Console/Terminal (VC/VT) [317]switching even though it + Linux Virtual Console/Terminal (VC/VT) [337]switching even though it does not need to (since it doesn't use a real framebuffer). There are some "dual headed" (actually multi-headed/multi-user) patches to the X server that turn off the VT usage in the X server. Update: As of - Jul/2005 we have an LD_PRELOAD script [318]Xdummy that allows you to + Jul/2005 we have an LD_PRELOAD script [338]Xdummy that allows you to use a stock (i.e. unpatched) Xorg or XFree86 server with the "dummy" driver and not have any VT switching problems! Currently Xdummy needs to be run as root, but with some luck that may be relaxed in the @@ -3120,7 +3306,7 @@ startx -- /path/to/Xdummy :1 testing x11vnc). - Q-49: How can I use x11vnc on "headless" machines? Why might I want + Q-50: How can I use x11vnc on "headless" machines? Why might I want to? An interesting application of x11vnc is to let it export displays of @@ -3132,7 +3318,7 @@ startx -- /path/to/Xdummy :1 An X server can be started on the headless machine (sometimes this requires configuring the X server to not fail if it cannot detect a keyboard or mouse, see the next paragraph). Then you can export that X - display via x11vnc (e.g. see [319]this FAQ) and access it from + display via x11vnc (e.g. see [339]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 @@ -3157,7 +3343,7 @@ startx -- /path/to/Xdummy :1 [Resource Usage and Performance] - Q-50: I have lots of memory, but why does x11vnc fail with shmget: + Q-51: 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)? @@ -3175,7 +3361,7 @@ startx -- /path/to/Xdummy :1 19/03/2004 10:10:58 error creating tile-row shm for len=4 19/03/2004 10:10:58 reverting to single_copytile mode - Here is a shell script [320]shm_clear to list and prompt for removal + Here is a shell script [340]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, @@ -3209,40 +3395,40 @@ ied) in /etc/system. See the next paragraph for more workarounds. To minimize the number of shm segments used by x11vnc try using the - [321]-onetile option (corresponds to only 3 shm segments used, and + [341]-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 - [322]-noshm option. Performance will be somewhat degraded but when + [342]-noshm option. Performance will be somewhat degraded but when done over local machine sockets it should be acceptable (see an - [323]earlier question discussing -noshm). + [343]earlier question discussing -noshm). - Q-51: How can I make x11vnc use less system resources? + Q-52: How can I make x11vnc use less system resources? - The [324]-nap and "[325]-wait n" (where n is the sleep between polls + The [344]-nap and "[345]-wait n" (where n is the sleep between polls in milliseconds, the default is 30 or so) option are good places to start. Reducing the X server bits per pixel depth (e.g. to 16bpp or even 8bpp) will further decrease memory I/O and network I/O. The ShadowFB will make x11vnc's screen polling less severe. Using the - [326]-onetile option will use less memory and use fewer shared memory - slots (add [327]-fs 1.0 for one less slot). + [346]-onetile option will use less memory and use fewer shared memory + slots (add [347]-fs 1.0 for one less slot). - Q-52: How can I make x11vnc use MORE system resources? + Q-53: How can I make x11vnc use MORE system resources? - You can try [328]-threads and dial down the wait time (e.g. -wait 1) - and possibly dial down [329]-defer as well. Note that if you try to + You can try [348]-threads and dial down the wait time (e.g. -wait 1) + and possibly dial down [349]-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 [330]-id option) can be streamed over a LAN or wireless at + the x11vnc [350]-id option) can be streamed over a LAN or wireless at a reasonable frame rate. - Q-53: I use x11vnc over a slow link with high latency (e.g. dialup + Q-54: I use x11vnc over a slow link with high latency (e.g. dialup modem), is there anything I can do to speed things up? Some things you might want to experiment with (many of which will help @@ -3254,16 +3440,16 @@ ied) * Use a smaller desktop size (e.g. 1024x768 instead of 1280x1024) * Make sure the desktop background is a solid color (the background is resent every time it is re-exposed). Consider using the - [331]-solid [color] option to try to do this automatically. + [351]-solid [color] option to try to do this automatically. * Configure your window manager or desktop "theme" to not use fancy images, shading, and gradients for the window decorations, etc. Disable window animations, etc. Maybe your desktop has a "low bandwidth" theme you can easily switch into and out of. * Avoid small scrolls of large windows using the Arrow keys or scrollbar. Try to use PageUp/PageDown instead. (not so much of a - problem in x11vnc 0.7.2 if [332]-scrollcopyrect is active and + problem in x11vnc 0.7.2 if [352]-scrollcopyrect is active and detecting scrolls for the application). - * If the [333]-wireframe option is not available (earlier than + * If the [353]-wireframe option is not available (earlier than x11vnc 0.7.2 or you have disabled it via -nowireframe) then Disable Opaque Moves and Resizes in the window manager/desktop. * However if -wireframe is active (on by default in x11vnc 0.7.2) @@ -3283,7 +3469,7 @@ ied) noticed. VNC viewer parameters: - * Use a [334]TightVNC enabled viewer! (Actually, RealVNC 4.x viewer + * Use a [354]TightVNC enabled viewer! (Actually, RealVNC 4.x viewer with ZRLE encoding is not too bad either; some claim it is faster). * Make sure the tight (or zrle) encoding is being used (look at @@ -3306,32 +3492,32 @@ ied) file. x11vnc parameters: - * Try using [335]-nodragging (no screen updates when dragging mouse, + * Try using [355]-nodragging (no screen updates when dragging mouse, but sometimes you miss visual feedback) - * Make sure the [336]-wireframe option is active (it should be on by + * Make sure the [356]-wireframe option is active (it should be on by default) and you have Opaque Moves/Resizes Enabled in the window manager. - * Make sure the [337]-scrollcopyrect option is active (it should be + * Make sure the [357]-scrollcopyrect option is active (it should be on by default). This detects scrolls in many (but not all) applications an applies the CopyRect encoding for a big speedup. - * Set [338]-fs 1.0 (disables fullscreen updates) - * Try increasing [339]-wait or [340]-defer (reduces the maximum + * Set [358]-fs 1.0 (disables fullscreen updates) + * Try increasing [359]-wait or [360]-defer (reduces the maximum "frame rate", but won't help much for large screen changes) - * Try the [341]-progressive pixelheight mode with the block + * Try the [361]-progressive pixelheight mode with the block pixelheight 100 or so (delays sending vertical blocks since they may change while viewer is receiving earlier ones) - * If you just want to watch one (simple) window use [342]-id (cuts + * If you just want to watch one (simple) window use [362]-id (cuts down extraneous polling and updates, but can be buggy or insufficient) - * Set [343]-nosel (disables all clipboard selection exchange) - * Use [344]-nocursor and [345]-nocursorpos (repainting the remote + * Set [363]-nosel (disables all clipboard selection exchange) + * Use [364]-nocursor and [365]-nocursorpos (repainting the remote cursor position and shape takes resources and round trips) * On very slow links (e.g. <= 28.8) you may need to increase the - [346]-readtimeout n setting if it sometimes takes more than 20sec + [366]-readtimeout n setting if it sometimes takes more than 20sec to paint the full screen, etc. - Q-54: Does x11vnc support the X DAMAGE Xserver extension to find + Q-55: Does x11vnc support the X DAMAGE Xserver extension to find modified regions of the screen quickly and efficiently? Yes, as of Mar/2005 in the libvncserver CVS x11vnc will use the X @@ -3349,7 +3535,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 [347]slow (e.g. + in main memory. So reading the fb is still painfully [367]slow (e.g. 5MB/sec), and so even using X DAMAGE when large changes occur on the screen the bulk of the time is still spent retrieving them. Not ideal, but use of the ShadowFB XFree86/Xorg option speeds up the reading @@ -3367,27 +3553,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 "[348]-xd_area A" option to adjust the size + skipped). You can use the "[368]-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 "[349]-xd_mem f" may also be of use in tuning the - algorithm. To disable using DAMAGE entirely use "[350]-noxdamage". + The option "[369]-xd_mem f" may also be of use in tuning the + algorithm. To disable using DAMAGE entirely use "[370]-noxdamage". - Q-55: When I drag windows around with the mouse or scroll up and down + Q-56: 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 [351]slow hardware read rates from + This problem is primarily due to [371]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 - [352]-pointer_mode option for more info. The next bottleneck is + [372]-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 @@ -3397,31 +3583,31 @@ 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 "[353]-pointer_mode 1" option. + way via the "[373]-pointer_mode 1" option. - Also added was the [354]-nodragging option that disables all screen + Also added was the [374]-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 [355]-pointer_mode n option + As of Dec/2004 in the libvncserver CVS the [375]-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 [356]-threads option can improve + Also, in some circumstances the [376]-threads option can improve response considerably. Be forewarned that if more than one vncviewer is connected at the same time then libvncserver may not be thread safe (try to get the viewers to use different VNC encodings, e.g. tight and ZRLE). As of Apr/2005 in the libvncserver CVS two new options (see the - [357]wireframe FAQ and [358]scrollcopyrect FAQ below) provide schemes + [377]wireframe FAQ and [378]scrollcopyrect FAQ below) provide schemes to sweep this problem under the rug for window moves or resizes and for some (but not all) window scrolls. - Q-56: Why not do something like wireframe animations to avoid the + Q-57: Why not do something like wireframe animations to avoid the windows "lurching" when being moved or resized? Nice idea for a hack! As of Apr/2005 in the libvncserver CVS x11vnc by @@ -3432,8 +3618,8 @@ ied) shown. When the window move/resize stops, it returns to normal processing: you should only see the window appear in the new position. This spares you from interacting with a "lurching" window between all - of the intermediate steps. BTW the lurching is due to [359]slow video - card read rates (see [360]here too). A displacement, even a small one, + of the intermediate steps. BTW the lurching is due to [379]slow video + card read rates (see [380]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. @@ -3441,7 +3627,7 @@ ied) for -wireframe to do any good. The mode is currently on by default because most people are inflicted - with the problem. It can be disabled with the [361]-nowireframe option + with the problem. It can be disabled with the [381]-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 @@ -3486,13 +3672,13 @@ ied) * Maximum time to show a wireframe animation. * Minimum time between sending wireframe outlines. - See the [362]"-wireframe tweaks" option for more details. On a slow + See the [382]"-wireframe tweaks" option for more details. On a slow link, e.g. dialup modem, the parameters may be automatically adjusted for better response. CopyRect encoding: In addition to the above there is the - [363]"-wirecopyrect mode" option. It is also on by default. This + [383]"-wirecopyrect mode" option. It is also on by default. This instructs x11vnc to not only show the wireframe animation, but to also instruct all connected VNC viewers to locally translate the window image data from the original position to the new position on the @@ -3523,7 +3709,7 @@ ied) -nowirecopyrect if this or other painting errors are unacceptable. - Q-57: Can x11vnc try to apply heuristics to detect when an window is + Q-58: Can x11vnc try to apply heuristics to detect when an window is scrolling its contents and use the CopyRect encoding for a speedup? Another nice idea for a hack! As of May/2005 in the libvncserver CVS @@ -3540,7 +3726,7 @@ ied) requiring the image data to be transmitted over the network. For fast links the speedup is primarily due to x11vnc not having to read the scrolled framebuffer data from the X server (recall that reading from - the hardware framebuffer is [364]slow). + the hardware framebuffer is [384]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. @@ -3562,10 +3748,10 @@ ied) the X server display: if one falls too far behind it could become a mess... - The initial implementation of [365]-scrollcopyrect option is useful in + The initial implementation of [385]-scrollcopyrect option is useful in that it detects many scrolls and thus gives a much nicer working - environment (especially when combined with the [366]-wireframe - [367]-wirecopyrect [368]options, which are also on by default; and if + environment (especially when combined with the [386]-wireframe + [387]-wirecopyrect [388]options, which are also on by default; and if you are willing to enable the ShadowFB things are very fast). The fact that there aren't long delays or lurches during scrolling is the primary improvement. @@ -3598,10 +3784,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: [369]-fixscreen + also: [389]-fixscreen * Some applications, notably OpenOffice, do XCopyArea scrolls in weird ways that assume ancestor window clipping is taking place. - See the [370]-scr_skip option for ways to tweak this on a + See the [390]-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 @@ -3618,7 +3804,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 [371]-scale option there will be a quick CopyRect + * When using the [391]-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 @@ -3631,7 +3817,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 [372]-noscrollcopyrect (or -noscr for short). If you find + with the [392]-noscrollcopyrect (or -noscr for short). If you find some extremely bad and repeatable behavior for -scrollcopyrect please report a bug. @@ -3655,7 +3841,7 @@ ied) [Mouse Cursor Shapes] - Q-58: Why isn't the mouse cursor shape (the little icon shape where + Q-59: Why isn't the mouse cursor shape (the little icon shape where the mouse pointer is) correct as I move from window to window? On X servers supporting XFIXES or Solaris/IRIX Overlay extensions it @@ -3670,16 +3856,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 "[373]-cursor X" option that + A simple kludge is provided by the "[393]-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 "[374]-cursor some" option for + work for those cases. Also see the "[394]-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 [375]-overlay option is supplied. See [376]this FAQ + cursor when the [395]-overlay option is supplied. See [396]this FAQ for more info. Also as of Dec/2004 in the libvncserver CVS XFIXES X extension support @@ -3687,7 +3873,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 [377]Solaris 10. + distros and [397]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 @@ -3695,10 +3881,10 @@ ied) situations where the cursor transparency can also handled exactly: when the VNC Viewer requires the cursor shape be drawn into the VNC framebuffer or if you apply a patch to your VNC Viewer to extract - hidden alpha channel data under 32bpp. [378]Details can be found here. + hidden alpha channel data under 32bpp. [398]Details can be found here. - Q-59: When using XFIXES cursorshape mode, some of the cursors look + Q-60: 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? @@ -3728,17 +3914,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 "[379]-alphacut n" option lets + course!) some tunable parameters. The "[399]-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 "[380]-alphafrac f" option tries to correct individual + 240. The "[400]-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 [381]-alpharemove that is useful for + Finally, there is an option [401]-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 @@ -3756,7 +3942,7 @@ ied) heavily on redglass) look fine with the apparent default of alphacut:255. - Q-60: In XFIXES mode, are there any hacks to handle cursor + Q-61: In XFIXES mode, are there any hacks to handle cursor transparency ("alpha channel") exactly? As of Jan/2005 in the CVS, libvncserver has been modified to allow an @@ -3764,11 +3950,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 [382]-nocursorshape x11vnc option. + disabled for all clients with the [402]-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 - [383]-noalphablend option to disable this behavior (always approximate + [403]-noalphablend option to disable this behavior (always approximate transparent cursors with opaque RGB values). The CursorShapeUpdates VNC extension complicates matters because the @@ -3793,12 +3979,12 @@ ied) [Mouse Pointer] - Q-61: Why does the mouse arrow just stay in one corner in my + Q-62: 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 [384]tightvnc extension + This default takes advantage of a [404]tightvnc extension (CursorShapeUpdates) that allows specifying a cursor image shape for - the local VNC viewer. You may disable it with the [385]-nocursor + the local VNC viewer. You may disable it with the [405]-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 @@ -3807,23 +3993,23 @@ ied) framebuffer. This can also be disabled via -nocursor. - Q-62: Can I take advantage of the TightVNC extension to the VNC + Q-63: 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)? - Use the [386]-cursorpos option when starting x11vnc. A VNC viewer must + Use the [406]-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 [387]-nocursorpos - and [388]-nocursorshape. + libvncserver CVS -cursorpos is the default. See also [407]-nocursorpos + and [408]-nocursorshape. - Q-63: Is it possible to swap the mouse buttons (e.g. left-handed + Q-64: 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: [389]-buttonmap + You can remap the mouse buttons via something like: [409]-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. @@ -3831,7 +4017,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 [390]-debug_pointer option prints out much info for + Note that the [410]-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 @@ -3853,7 +4039,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 [391]-buttonmap but rather configuring the X server + consider not using [411]-buttonmap but rather configuring the X server to think it has a mouse with 5 buttons even though the physical mouse does not. (e.g. 'Option "ZAxisMapping" "4 5"'). @@ -3880,10 +4066,10 @@ ied) "click" usually gives a multi-line scroll). [Keyboard Issues] - Q-64: How can I get my AltGr and Shift modifiers to work between + Q-65: How can I get my AltGr and Shift modifiers to work between keyboards for different languages? - The option [392]-modtweak should help here. It is a mode that monitors + The option [412]-modtweak should help here. It is a mode that monitors the state of the Shift and AltGr Modifiers and tries to deduce the correct keycode to send, possibly by sending fake modifier key presses and releases in addition to the actual keystroke. @@ -3892,21 +4078,21 @@ 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 [393]this FAQ + and ">" it. This key does not exist on the keyboard (see [413]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 [394]FAQ about the -xkb option for a more powerful method + Also see the [414]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 - [395]-debug_keyboard option prints out much info for every keystroke + [415]-debug_keyboard option prints out much info for every keystroke and so can be useful debugging things. - Q-65: When I try to type a "<" (i.e. less than) instead I get ">" + Q-66: When I try to type a "<" (i.e. less than) instead I get ">" (i.e. greater than)! Strangely, typing ">" works OK!! Does your keyboard have a single key with both "<" and ">" on it? Even @@ -3914,9 +4100,9 @@ ied) (e.g. pc105 in the XF86Config file when it should be something else, say pc104). - Short Cut: Try the [396]-xkb or [397]-sloppy_keys options and see if + Short Cut: Try the [416]-xkb or [417]-sloppy_keys options and see if that helps the situation. The discussion below is a bit outdated (e.g. - [398]-modtweak is now the default) but is useful reference for various + [418]-modtweak is now the default) but is useful reference for various tricks and so is kept. @@ -3959,34 +4145,34 @@ ied) -remap less-comma These are convenient in that they do not modify the actual X server - settings. The former ([399]-modtweak) is a mode that monitors the + settings. The former ([419]-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 ([400]-remap less-comma) is an immediate remapping of the + The latter ([420]-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 [401]FAQ about the -xkb option as a possible workaround + See also the [421]FAQ about the -xkb option as a possible workaround using the XKEYBOARD extension. - Note that the [402]-debug_keyboard option prints out much info for + Note that the [422]-debug_keyboard option prints out much info for every keystroke to aid debugging keyboard problems. - Q-66: When I try to type a "<" (i.e. less than) instead I get "<," + Q-67: When I try to type a "<" (i.e. less than) instead I get "<," (i.e. an extra comma). This is likely because you press "Shift" then "<" but then released - the Shift key before releasing the "<". Because of a [403]keymapping + the Shift key before releasing the "<". Because of a [423]keymapping ambiguity the last event "< up" is interpreted as "," because that key unshifted is the comma. - This should not happen in [404]-xkb mode, because it works hard to + This should not happen in [424]-xkb mode, because it works hard to resolve the ambiguities. If you do not want to use -xkb, try the - option [405]-sloppy_keys to attempt a similar type of algorithm. + option [425]-sloppy_keys to attempt a similar type of algorithm. - Q-67: I'm using an "international" keyboard (e.g. German "de", or + Q-68: 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 @@ -4007,7 +4193,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 [406]-modtweak + This all worked fine with x11vnc running with the [426]-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 @@ -4025,7 +4211,7 @@ ied) * there is a new option -xkb to use the XKEYBOARD extension API to do the Modifier key tweaking. - The [407]-xkb option seems to fix all of the missing keys: "@", "<", + The [427]-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 @@ -4033,7 +4219,7 @@ ied) debugging output (send it along with any problems you report). Update: as of Jun/2005 x11vnc will try to automatically enable - [408]-xkb if it appears that would be beneficial (e.g. if it sees any + [428]-xkb if it appears that would be beneficial (e.g. if it sees any of "@", "<", ">", "[" and similar keys are mapped in a way that needs the -xkb to access them). To disable this automatic check use -noxkb. @@ -4048,7 +4234,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: - [409]-skip_keycodes 93 + [429]-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 @@ -4065,16 +4251,16 @@ ied) What to do? In general the VNC protocol has not really solved this problem: what should be done if the VNC viewer sends a keysym not recognized by the VNC server side? Workarounds can possibly be - created using the [410]-remap x11vnc option: + created using the [430]-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 - [411]-add_keysyms option in the next paragraph. - Update: for convenience "[412]-remap DEAD" does many of these + [431]-add_keysyms option in the next paragraph. + Update: for convenience "[432]-remap DEAD" does many of these mappings at once. - * To complement the above workaround using the [413]-remap, an - option [414]-add_keysyms was added. This option instructs x11vnc + * To complement the above workaround using the [433]-remap, an + option [434]-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 @@ -4085,7 +4271,7 @@ ied) disable. - Q-68: When typing I sometimes get double, triple, or more of my + Q-69: 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? This may be due to an interplay between your X server's key autorepeat @@ -4093,7 +4279,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) [415]-norepeat x11vnc option. You will still + use the new (Jul/2004) [435]-norepeat x11vnc option. You will still have autorepeating because that is taken care of on your VNC viewer side. @@ -4117,18 +4303,18 @@ 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 [416]-norepeat (which has since Dec/2004 been + needed, or to use the [436]-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 working at the physical display and misses his autorepeating. - Q-69: The x11vnc -norepeat mode is in effect, but I still get repeated + Q-70: The x11vnc -norepeat mode is in effect, but I still get repeated keystrokes!! Are you using x11vnc to log in to an X session? (as described in - [417]this FAQ) If so, x11vnc is starting before your session and it + [437]this FAQ) If so, x11vnc is starting before your session and it disables autorepeat when you connect, but then after you log in your session startup (GNOME, KDE, ...) could be resetting the autorepeat to be on. Or it could be something inside your desktop trying to be @@ -4148,11 +4334,11 @@ ied) should figure out how to disable that somehow. - Q-70: The machine where I run x11vnc has an AltGr key, but the local + Q-71: 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? - Something like "[418]-remap Super_R-Mode_switch" x11vnc option may + Something like "[438]-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)). @@ -4163,7 +4349,7 @@ ied) specify remappings from a file. - Q-71: I have a Sun machine I run x11vnc on. Its Sun keyboard has just + Q-72: 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) @@ -4175,18 +4361,18 @@ 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 [419]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones + the [439]-remap Alt_L-Meta_L to x11vnc may be sufficient for ones needs, and does not modify the X server environment. Note that you cannot send Alt_L in this case, maybe -remap Super_L-Meta_L would be a better choice if the Super_L key is typically unused in Unix. - Q-72: Can I map a keystroke to a mouse button click on the remote + Q-73: Can I map a keystroke to a mouse button click on the remote machine? 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 [420]-remap + have x11vnc do the remapping. This can be done via the [440]-remap option using the fake "keysyms" Button1, Button2, etc. as the "to" keys (i.e. the ones after the "-") @@ -4195,7 +4381,7 @@ ied) button "paste" because (using XFree86/Xorg Emulate3Buttons) you have to click both buttons on the touch pad at the same time. This remapping: - [421]-remap Super_R-Button2 + [441]-remap Super_R-Button2 maps the Super_R "flag" key press to the Button2 click, thereby making X pasting a bit easier. @@ -4206,7 +4392,7 @@ ied) [Screen Related Issues and Features] - Q-73: The remote display is larger (in number of pixels) than the + Q-74: 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? @@ -4225,15 +4411,15 @@ ied) There may also be scaling viewers out there (e.g. TightVNC or UltraVNC on Windows) that automatically shrink or expand the remote framebuffer to fit the local display. Especially for hand-held devices. See also - [422]this FAQ on x11vnc scaling. + [442]this FAQ on x11vnc scaling. - Q-74: Does x11vnc support server-side framebuffer scaling? (E.g. to + Q-75: Does x11vnc support server-side framebuffer scaling? (E.g. to make the desktop smaller). 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 "[423]-scale fraction" + per-client setting. To enable it use the "[443]-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. @@ -4254,7 +4440,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 - [424]applications. Since with integer scale factors the framebuffers + [444]applications. Since with integer scale factors the framebuffers become huge and scaling operations time consuming, be sure to use ":nb" for the fastest response. @@ -4280,12 +4466,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 ([425]-rfbport option, + different scalings listening on separate ports ([445]-rfbport option, etc.). BTW, whenever you run two or more x11vnc's on the same X display and - use the [426]GUI, then to avoid all of the x11vnc's simultaneously - answering the gui you will need to use something like [427]"-connect + use the [446]GUI, then to avoid all of the x11vnc's simultaneously + answering the gui you will need to use something like [447]"-connect file1 -gui ..." with different connect files for each x11vnc you want to control via the gui (or remote-control). The "-connect file1" usage gives separate communication channels between a x11vnc proces and the @@ -4294,12 +4480,12 @@ ied) Update: As of Mar/2005 in the libvncserver CVS x11vnc now scales the mouse cursor with the same scale factor as the screen. If you don't - want that, use the [428]"-scale_cursor frac" option to set the cursor + want that, use the [448]"-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). - Q-75: Does x11vnc work with Xinerama? (i.e. multiple monitors joined + Q-76: Does x11vnc work with Xinerama? (i.e. multiple monitors joined together to form one big, single screen). Yes, it should generally work because it simply polls the big @@ -4316,23 +4502,23 @@ ied) screen is not rectangular (e.g. 1280x1024 and 1024x768 monitors joined together), then there will be "non-existent" areas on the screen. The X server will return "garbage" image data for these areas and so they - may be distracting to the viewer. The [429]-blackout x11vnc option + may be distracting to the viewer. The [449]-blackout x11vnc option allows you to blacken-out rectangles by manually specifying their WxH+X+Y geometries. If your system has the libXinerama library, the - [430]-xinerama x11vnc option can be used to have it automatically + [450]-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 [431]-xwarppointer + of the large display. If this happens try using the [451]-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 Xinerama is enabled). - Q-76: Can I use x11vnc on a multi-headed display that is not Xinerama + Q-77: Can I use x11vnc on a multi-headed display that is not Xinerama (i.e. separate screens :0.0, :0.1, ... for each monitor)? You can, but it is a little bit awkward: you must start separate @@ -4350,32 +4536,32 @@ 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 [432]FAQ to increase the limit. It - is probably also a good idea to run with the [433]-onetile option in + /etc/system as mentioned in another [452]FAQ to increase the limit. It + is probably also a good idea to run with the [453]-onetile option in this case (to limit each x11vnc to 3 shm segments), or even - [434]-noshm to use no shm segments. + [454]-noshm to use no shm segments. - Q-77: Can x11vnc show only a portion of the display? (E.g. for a + Q-78: 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 "[435]-clip + As of Mar/2005 in the libvncserver CVS x11vnc has the "[455]-clip WxH+X+Y" option to select a rectangle of width W, height H and offset (X, Y). Thus the VNC screen will be the clipped sub-region of the display and be only WxH in size. One user used -clip to split up a - large [436]Xinerama screen into two more managable smaller screens. + large [456]Xinerama screen into two more managable smaller screens. This also works to view a sub-region of a single application window if - the [437]-id or [438]-sid options are used. The offset is measured + the [457]-id or [458]-sid options are used. The offset is measured from the upper left corner of the selected window. - Q-78: Does x11vnc support the XRANDR (X Resize, Rotate and Reflection) + Q-79: Does x11vnc support the XRANDR (X Resize, Rotate and Reflection) extension? Whenever I rotate or resize the screen x11vnc just seems to crash. As of Dec/2004 in the libvncserver CVS x11vnc supports XRANDR. You - enable it with the [439]-xrandr option to make x11vnc monitor XRANDR + enable it with the [459]-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. @@ -4385,7 +4571,7 @@ ied) then the viewer will automatically resize. Otherwise, the new framebuffer is fit as best as possible into the original viewer size (portions of the screen may be clipped, unused, etc). For these - viewers you can try the [440]-padgeom option to make the region big + viewers you can try the [460]-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 @@ -4394,13 +4580,13 @@ ied) terminate. - Q-79: Why is the view in my VNC viewer completely black? Or why is + Q-80: Why is the view in my VNC viewer completely black? Or why is everything flashing around randomly? See the next FAQ for a possible explanation. - Q-80: I use Linux Virtual Consoles (VC's) to implement 'Fast User + Q-81: 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 @@ -4428,7 +4614,7 @@ ied) "chvt 7" for VC #7. - Q-81: Can I use x11vnc to view my VMWare session remotely? + Q-82: Can I use x11vnc to view my VMWare session remotely? Yes, since VMWare is an X application you can view it via x11vnc in the normal way. @@ -4439,9 +4625,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 [441]this FAQ + desktop in a separate Virtual Console (e.g. VC 8) (see [461]this FAQ on VC's for background). Unfortunately, this Fullscreen VC is not an X - server. So x11vnc cannot access it (however, [442]see this for a + server. So x11vnc cannot access it (however, [462]see this for a possible partial workaround). x11vnc works fine with "Normal X application window" and "Quick-Switch mode" because these use X. @@ -4458,13 +4644,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 [443]is in the active VC. + as long as the VMWare X session [463]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 [444]-id windowid option. The + the VMWare menu buttons) by use of the [464]-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 @@ -4473,7 +4659,7 @@ ied) mouse)). - Q-82: Can non-X devices (e.g. a raw framebuffer) be viewed and/or + Q-83: Can non-X devices (e.g. a raw framebuffer) be viewed and/or controlled by x11vnc? As of Apr/2005 in the libvncserver CVS there is rudimentary support @@ -4545,7 +4731,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 [445]X API, but you get + of Xvfb x11vnc can poll it much better via the [465]X API, but you get the idea. By default in -rawfb mode x11vnc will actually close any X display it @@ -4598,7 +4784,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 [446]active VC) one + view and interact with VC #2 (assuming it is the [466]active VC) one can run something like: x11vnc -rawfb map:/dev/fb0@1024x768x16 -pipeinput './vcinject.pl 2' @@ -4611,7 +4797,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 - [447]VMWare Fullscreen mode is actually viewable under -rawfb. But + [467]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... @@ -4622,7 +4808,7 @@ ied) program that passes the framebuffer to libvncserver. - Q-83: I am using x11vnc where my local machine has "popup/hidden + Q-84: 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 @@ -4637,31 +4823,31 @@ ied) [Misc: Clipboard, Beeps, Thanks, etc.] - Q-84: Does the Clipboard/Selection get transferred between the + Q-85: Does the Clipboard/Selection get transferred between the vncviewer and the X display? 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 [448]-nosel option. If you + the Clipboard/Selection exchanged use the [468]-nosel option. If you don't want the PRIMARY selection to be polled for changes use the - [449]-noprimary option. You can also fine-tune it a bit with the - [450]-seldir dir option. + [469]-noprimary option. You can also fine-tune it a bit with the + [470]-seldir dir option. You may need to watch out for desktop utilities such as KDE's "Klipper" that do odd things with the selection, clipboard, and cutbuffers. - Q-85: Can I transfer files back and forth with x11vnc? + Q-86: Can I transfer files back and forth with x11vnc? As of Oct/2005 x11vnc enables the TightVNC file transfer implementation that was added to libvncserver. This currently only works with TightVNC viewers (and Windows only it appears). It is on by - default, to disable it use the [451]-nofilexfer option. + default, to disable it use the [471]-nofilexfer option. - Q-86: Why don't I hear the "Beeps" in my X session (e.g. when typing + Q-87: Why don't I hear the "Beeps" in my X session (e.g. when typing tput bel in an xterm)? As of Dec/2003 in the libvncserver CVS "Beep" XBell events are tracked @@ -4669,7 +4855,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 [452]-nobell option. If + If you don't want to hear the beeps use the [472]-nobell option. If you want to hear the audio from the remote applications, consider trying a redirector such as esd. @@ -4678,7 +4864,7 @@ ied) Contributions: - Q-87: Thanks for your program and for your help! Can I make a + Q-88: Thanks for your program and for your help! Can I make a donation? Please do (any amount is appreciated) and thank you for your support! @@ -4695,451 +4881,471 @@ References 5. http://www.karlrunge.com/x11vnc/index.html#faq-thanks 6. http://www.karlrunge.com/x11vnc/index.html#faq-thanks 7. http://www.karlrunge.com/x11vnc/index.html#faq - 8. http://www.karlrunge.com/x11vnc/index.html#contact - 9. http://www.uk.research.att.com/vnc/ - 10. http://www.realvnc.com/ - 11. http://www.tightvnc.com/ - 12. http://www.karlrunge.com/x11vnc/index.html#downloading - 13. http://www.tightvnc.com/download.html - 14. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 15. http://www.karlrunge.com/x11vnc/index.html#faq-xperms + 8. http://www.karlrunge.com/x11vnc/disclaimer.html + 9. http://www.karlrunge.com/x11vnc/index.html#contact + 10. http://www.uk.research.att.com/vnc/ + 11. http://www.realvnc.com/ + 12. http://www.tightvnc.com/ + 13. http://www.karlrunge.com/x11vnc/index.html#downloading + 14. http://www.tightvnc.com/download.html + 15. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth 16. http://www.karlrunge.com/x11vnc/index.html#faq-xperms - 17. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download - 18. http://www.sun.com/software/solaris/freeware/ - 19. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 17. http://www.karlrunge.com/x11vnc/index.html#faq-xperms + 18. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download + 19. http://www.sun.com/software/solaris/freeware/ 20. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever - 21. http://www.karlrunge.com/x11vnc/index.html#faq-service - 22. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 23. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file - 24. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 25. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file - 26. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 27. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via - 28. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh - 29. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg - 30. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 31. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 32. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 33. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 34. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 35. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 36. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt - 37. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers - 38. http://sourceforge.net/projects/libvncserver/ - 39. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=393257 - 40. http://sourceforge.net/project/shownotes.php?release_id=393257&group_id=32584 - 41. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz - 42. http://www.karlrunge.com/x11vnc/index.html#faq-binaries - 43. http://www.tightvnc.com/download.html - 44. http://www.realvnc.com/download-free.html - 45. http://sourceforge.net/projects/cotvnc/ - 46. http://www.karlrunge.com/x11vnc/rx11vnc - 47. http://www.karlrunge.com/x11vnc/rx11vnc.pl - 48. http://www.sunfreeware.com/ - 49. http://www.karlrunge.com/x11vnc/bins - 50. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 51. http://www.karlrunge.com/x11vnc/index.html#faq-build - 52. ftp://ftp.uu.net/graphics/jpeg/ - 53. http://www.gzip.org/zlib/ - 54. http://www.sunfreeware.com/ - 55. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build - 56. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz - 57. http://www.karlrunge.com/x11vnc/bins - 58. mailto:x11vnc-beta@karlrunge.com - 59. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer - 60. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 61. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 - 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop - 64. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept - 65. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 66. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-slow_fb - 67. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout - 68. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage - 69. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 70. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect - 71. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect - 72. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid - 73. http://www.tightvnc.com/ - 74. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport - 75. http://www.karlrunge.com/x11vnc/x11vnc_opts.html - 76. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 77. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg - 78. http://wwws.sun.com/sunray/index.html - 79. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait - 80. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sb - 81. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid - 82. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport - 83. http://www.karlrunge.com/x11vnc/vnc_findports - 84. http://www.karlrunge.com/x11vnc/findvncports - 85. http://www.karlrunge.com/x11vnc/shm_clear - 86. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept - 87. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 88. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 89. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb - 90. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor - 91. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 92. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 93. mailto:xvml@karlrunge.com - 94. http://www.karlrunge.com/x11vnc/index.html#faq-thanks - 95. http://www.karlrunge.com/x11vnc/index.html#faq-xperms - 96. http://www.karlrunge.com/x11vnc/index.html#faq-build - 97. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest - 98. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build - 99. http://www.karlrunge.com/x11vnc/index.html#faq-binaries - 100. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download - 101. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts - 102. http://www.karlrunge.com/x11vnc/index.html#faq-config-file - 103. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray - 104. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg - 105. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe - 106. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations - 107. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc - 108. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp - 109. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp - 110. http://www.karlrunge.com/x11vnc/index.html#faq-overlays - 111. http://www.karlrunge.com/x11vnc/index.html#faq-windowid - 112. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id - 113. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp - 114. http://www.karlrunge.com/x11vnc/index.html#faq-noshm - 115. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth - 116. http://www.karlrunge.com/x11vnc/index.html#faq-sunrays - 117. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg - 118. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control - 119. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 120. http://www.karlrunge.com/x11vnc/index.html#faq-passwd-noecho - 121. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 122. http://www.karlrunge.com/x11vnc/index.html#faq-multipasswd - 123. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt - 124. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared - 125. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt - 126. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers - 127. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface - 128. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost - 129. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix - 130. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty - 131. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt - 132. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords - 133. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt - 134. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy - 135. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock - 136. http://www.karlrunge.com/x11vnc/index.html#faq-service - 137. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager - 138. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 139. http://www.karlrunge.com/x11vnc/index.html#faq-loop - 140. http://www.karlrunge.com/x11vnc/index.html#faq-java-http - 141. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect - 142. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb - 143. http://www.karlrunge.com/x11vnc/index.html#faq-headless - 144. http://www.karlrunge.com/x11vnc/index.html#faq-solshm - 145. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource - 146. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource - 147. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link - 148. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage - 149. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode - 150. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 151. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect - 152. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape - 153. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha - 154. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks - 155. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow - 156. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions - 157. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt - 158. http://www.karlrunge.com/x11vnc/index.html#faq-altgr - 159. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless - 160. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy - 161. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak - 162. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys - 163. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still - 164. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt - 165. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta - 166. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click - 167. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars - 168. http://www.karlrunge.com/x11vnc/index.html#faq-scaling - 169. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama - 170. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen - 171. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen - 172. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr - 173. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen - 174. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 175. http://www.karlrunge.com/x11vnc/index.html#faq-vmware - 176. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb - 177. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars - 178. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard - 179. http://www.karlrunge.com/x11vnc/index.html#faq-filexfer - 180. http://www.karlrunge.com/x11vnc/index.html#faq-beeps - 181. http://www.karlrunge.com/x11vnc/index.html#faq-thanks - 182. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display - 183. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 184. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager - 185. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users - 186. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 187. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html - 188. http://www.karlrunge.com/x11vnc/index.html#building - 189. http://www.karlrunge.com/x11vnc/index.html#faq-build - 190. http://packages.debian.org/x11vnc - 191. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc - 192. http://dag.wieers.com/packages/x11vnc/ - 193. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/ - 194. http://www.sunfreeware.com/ - 195. http://www.bell-labs.com/project/wwexptools/packages.html - 196. http://www.karlrunge.com/x11vnc/bins - 197. http://www.tightvnc.com/download.html - 198. http://www.realvnc.com/download-free.html - 199. http://sourceforge.net/projects/cotvnc/ - 200. http://www.karlrunge.com/x11vnc/x11vnc_opts.html - 201. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui - 202. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray - 203. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q - 204. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg - 205. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o - 206. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding - 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb - 208. http://fredrik.hubbe.net/x2vnc.html - 209. http://www.hubbe.net/~hubbe/win2vnc.html - 210. http://www.deboer.gmxhome.de/ - 211. http://sourceforge.net/projects/win2vnc/ - 212. http://fredrik.hubbe.net/x2vnc.html - 213. http://freshmeat.net/projects/x2x/ - 214. http://ftp.digital.com/pub/Digital/SRC/x2x/ - 215. http://zapek.com/software/zvnc/ - 216. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual - 217. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap - 218. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 - 219. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor - 220. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp - 221. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 222. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 - 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 - 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap - 226. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen - 227. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 - 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 21. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 22. http://www.karlrunge.com/x11vnc/index.html#faq-service + 23. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 24. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file + 25. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 26. http://www.karlrunge.com/x11vnc/index.html#vnc_password_file + 27. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 28. http://www.karlrunge.com/x11vnc/index.html#tightvnc_via + 29. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh + 30. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 31. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 32. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 33. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 34. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 35. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 36. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 37. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt + 38. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 39. http://www.stunnel.org/ + 40. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel + 41. http://sourceforge.net/projects/libvncserver/ + 42. http://sourceforge.net/project/showfiles.php?group_id=32584&package_id=119006&release_id=393257 + 43. http://sourceforge.net/project/shownotes.php?release_id=393257&group_id=32584 + 44. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz + 45. http://www.karlrunge.com/x11vnc/index.html#faq-binaries + 46. http://www.tightvnc.com/download.html + 47. http://www.realvnc.com/download-free.html + 48. http://sourceforge.net/projects/cotvnc/ + 49. http://www.karlrunge.com/x11vnc/rx11vnc + 50. http://www.karlrunge.com/x11vnc/rx11vnc.pl + 51. http://www.sunfreeware.com/ + 52. http://www.karlrunge.com/x11vnc/bins + 53. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 54. http://www.karlrunge.com/x11vnc/index.html#faq-build + 55. ftp://ftp.uu.net/graphics/jpeg/ + 56. http://www.gzip.org/zlib/ + 57. http://www.sunfreeware.com/ + 58. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build + 59. http://www.karlrunge.com/x11vnc/x11vnc-0.8.1.tar.gz + 60. http://www.karlrunge.com/x11vnc/bins + 61. mailto:x11vnc-beta@karlrunge.com + 62. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer + 63. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 64. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 + 65. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 66. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop + 67. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept + 68. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 69. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-slow_fb + 70. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout + 71. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage + 72. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 73. http://www.karlrunge.com/x11vnc/index.html#wirecopyrect + 74. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 75. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 76. http://www.tightvnc.com/ + 77. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 78. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 79. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 80. http://www.karlrunge.com/x11vnc/recurse_x11vnc.jpg + 81. http://wwws.sun.com/sunray/index.html + 82. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 83. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sb + 84. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 85. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 86. http://www.karlrunge.com/x11vnc/vnc_findports + 87. http://www.karlrunge.com/x11vnc/findvncports + 88. http://www.karlrunge.com/x11vnc/shm_clear + 89. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept + 90. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 91. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 92. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 93. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 94. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 95. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 96. mailto:xvml@karlrunge.com + 97. http://www.karlrunge.com/x11vnc/index.html#faq-thanks + 98. http://www.karlrunge.com/x11vnc/index.html#faq-xperms + 99. http://www.karlrunge.com/x11vnc/index.html#faq-build + 100. http://www.karlrunge.com/x11vnc/index.html#faq-missing-xtest + 101. http://www.karlrunge.com/x11vnc/index.html#faq-solaris251build + 102. http://www.karlrunge.com/x11vnc/index.html#faq-binaries + 103. http://www.karlrunge.com/x11vnc/index.html#faq-viewer-download + 104. http://www.karlrunge.com/x11vnc/index.html#faq-cmdline-opts + 105. http://www.karlrunge.com/x11vnc/index.html#faq-config-file + 106. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray + 107. http://www.karlrunge.com/x11vnc/index.html#faq-quiet-bg + 108. http://www.karlrunge.com/x11vnc/index.html#faq-sigpipe + 109. http://www.karlrunge.com/x11vnc/index.html#faq-build-customizations + 110. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc + 111. http://www.karlrunge.com/x11vnc/index.html#faq-win2vnc-8bpp + 112. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp + 113. http://www.karlrunge.com/x11vnc/index.html#faq-overlays + 114. http://www.karlrunge.com/x11vnc/index.html#faq-windowid + 115. http://www.karlrunge.com/x11vnc/index.html#faq-transients-id + 116. http://www.karlrunge.com/x11vnc/index.html#faq-24bpp + 117. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 118. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth + 119. http://www.karlrunge.com/x11vnc/index.html#faq-sunrays + 120. http://www.karlrunge.com/x11vnc/index.html#faq-stop-bg + 121. http://www.karlrunge.com/x11vnc/index.html#faq-remote_control + 122. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 123. http://www.karlrunge.com/x11vnc/index.html#faq-passwd-noecho + 124. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 125. http://www.karlrunge.com/x11vnc/index.html#faq-multipasswd + 126. http://www.karlrunge.com/x11vnc/index.html#faq-input-opt + 127. http://www.karlrunge.com/x11vnc/index.html#faq-forever-shared + 128. http://www.karlrunge.com/x11vnc/index.html#faq-allow-opt + 129. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 130. http://www.karlrunge.com/x11vnc/index.html#faq-listen-interface + 131. http://www.karlrunge.com/x11vnc/index.html#faq-listen-localhost + 132. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-unix + 133. http://www.karlrunge.com/x11vnc/index.html#faq-ssh-putty + 134. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel + 135. http://www.karlrunge.com/x11vnc/index.html#faq-accept-opt + 136. http://www.karlrunge.com/x11vnc/index.html#faq-unix-passwords + 137. http://www.karlrunge.com/x11vnc/index.html#faq-users-opt + 138. http://www.karlrunge.com/x11vnc/index.html#faq-blockdpy + 139. http://www.karlrunge.com/x11vnc/index.html#faq-gone-lock + 140. http://www.karlrunge.com/x11vnc/index.html#faq-service + 141. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 142. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 143. http://www.karlrunge.com/x11vnc/index.html#faq-loop + 144. http://www.karlrunge.com/x11vnc/index.html#faq-java-http + 145. http://www.karlrunge.com/x11vnc/index.html#faq-reverse-connect + 146. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 147. http://www.karlrunge.com/x11vnc/index.html#faq-headless + 148. http://www.karlrunge.com/x11vnc/index.html#faq-solshm + 149. http://www.karlrunge.com/x11vnc/index.html#faq-less-resource + 150. http://www.karlrunge.com/x11vnc/index.html#faq-more-resource + 151. http://www.karlrunge.com/x11vnc/index.html#faq-slow-link + 152. http://www.karlrunge.com/x11vnc/index.html#faq-xdamage + 153. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode + 154. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 155. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 156. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-shape + 157. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha + 158. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks + 159. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-arrow + 160. http://www.karlrunge.com/x11vnc/index.html#faq-cursor-positions + 161. http://www.karlrunge.com/x11vnc/index.html#faq-buttonmap-opt + 162. http://www.karlrunge.com/x11vnc/index.html#faq-altgr + 163. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 164. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless-sloppy + 165. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 166. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys + 167. http://www.karlrunge.com/x11vnc/index.html#faq-repeated-keys-still + 168. http://www.karlrunge.com/x11vnc/index.html#faq-remap-opt + 169. http://www.karlrunge.com/x11vnc/index.html#faq-sun-alt-meta + 170. http://www.karlrunge.com/x11vnc/index.html#faq-remap-button-click + 171. http://www.karlrunge.com/x11vnc/index.html#faq-scrollbars + 172. http://www.karlrunge.com/x11vnc/index.html#faq-scaling + 173. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama + 174. http://www.karlrunge.com/x11vnc/index.html#faq-multi-screen + 175. http://www.karlrunge.com/x11vnc/index.html#faq-clip-screen + 176. http://www.karlrunge.com/x11vnc/index.html#faq-xrandr + 177. http://www.karlrunge.com/x11vnc/index.html#faq-black-screen + 178. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 179. http://www.karlrunge.com/x11vnc/index.html#faq-vmware + 180. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 181. http://www.karlrunge.com/x11vnc/index.html#faq-hidden-taskbars + 182. http://www.karlrunge.com/x11vnc/index.html#faq-clipboard + 183. http://www.karlrunge.com/x11vnc/index.html#faq-filexfer + 184. http://www.karlrunge.com/x11vnc/index.html#faq-beeps + 185. http://www.karlrunge.com/x11vnc/index.html#faq-thanks + 186. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display + 187. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 188. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 189. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users + 190. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 191. http://www.karlrunge.com/x11vnc/x11vnc_sunos4.html + 192. http://www.karlrunge.com/x11vnc/index.html#building + 193. http://www.karlrunge.com/x11vnc/index.html#faq-build + 194. http://packages.debian.org/x11vnc + 195. http://www.linuxpackages.net/search_view.php?by=name&name=x11vnc + 196. http://dag.wieers.com/packages/x11vnc/ + 197. http://dries.ulyssis.org/rpm/packages/x11vnc/info.html + 198. http://linux01.gwdg.de/~pbleser/rpm-navigation.php?cat=Network/x11vnc/ + 199. http://www.sunfreeware.com/ + 200. http://mike.saunby.net/770/x11vnc/ + 201. http://www.pdaxrom.org/ipk_feed.php?menuid=11&showfeed=unstable#x11vnc + 202. http://www.focv.com/ipkg/ + 203. http://www.karlrunge.com/x11vnc/bins + 204. http://www.tightvnc.com/download.html + 205. http://www.realvnc.com/download-free.html + 206. http://sourceforge.net/projects/cotvnc/ + 207. http://www.karlrunge.com/x11vnc/x11vnc_opts.html + 208. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 209. http://www.karlrunge.com/x11vnc/index.html#faq-gui-tray + 210. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q + 211. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 212. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-o + 213. http://www.karlrunge.com/x11vnc/index.html#solarisbuilding + 214. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofb + 215. http://fredrik.hubbe.net/x2vnc.html + 216. http://www.hubbe.net/~hubbe/win2vnc.html + 217. http://www.deboer.gmxhome.de/ + 218. http://sourceforge.net/projects/win2vnc/ + 219. http://fredrik.hubbe.net/x2vnc.html + 220. http://freshmeat.net/projects/x2x/ + 221. http://ftp.digital.com/pub/Digital/SRC/x2x/ + 222. http://zapek.com/software/zvnc/ + 223. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-visual + 224. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap + 225. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 + 226. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-notruecolor + 227. http://www.karlrunge.com/x11vnc/index.html#faq-8bpp + 228. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay 229. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 230. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 231. http://www.karlrunge.com/x11vnc/index.html#faq-overlays - 232. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid - 234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display - 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm - 236. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder - 237. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 238. http://www.karlrunge.com/x11vnc/index.html#xauth_pain - 239. http://www.karlrunge.com/x11vnc/index.html#faq-noshm - 240. http://wwws.sun.com/sunray/index.html - 241. http://www.karlrunge.com/x11vnc/index.html#sunray-gotchas - 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote - 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query - 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever - 245. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg - 246. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods - 247. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys - 248. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote - 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query - 250. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui - 251. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd - 252. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 253. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd - 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd - 256. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd - 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 260. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input - 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever - 262. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared - 263. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 264. http://www.karlrunge.com/x11vnc/index.html#faq-passwd - 265. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile - 266. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 267. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 268. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers - 269. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 270. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen - 271. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 272. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 231. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 + 232. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flashcmap + 233. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen + 234. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 + 235. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 236. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-8to24 + 237. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 238. http://www.karlrunge.com/x11vnc/index.html#faq-overlays + 239. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 240. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sid + 241. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-display + 242. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 243. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-flipbyteorder + 244. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 245. http://www.karlrunge.com/x11vnc/index.html#xauth_pain + 246. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 247. http://wwws.sun.com/sunray/index.html + 248. http://www.karlrunge.com/x11vnc/index.html#sunray-gotchas + 249. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote + 250. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query + 251. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 252. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-bg + 253. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_mods + 254. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clear_keys + 255. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remote + 256. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-query + 257. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 258. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd + 259. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 260. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile + 261. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-storepasswd + 262. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewpasswd + 263. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwd + 264. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 265. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 266. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 267. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-input + 268. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-forever + 269. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-shared + 270. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 271. http://www.karlrunge.com/x11vnc/index.html#faq-passwd + 272. http://www.karlrunge.com/x11vnc/index.html#faq-passwdfile 273. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow 274. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 275. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen - 276. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow - 277. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 278. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 279. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth - 282. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile - 283. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh - 284. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 285. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 286. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly - 288. ftp://ftp.x.org/ - 289. http://www.karlrunge.com/x11vnc/dtVncPopup - 290. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone - 291. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost - 292. http://www.karlrunge.com/x11vnc/index.html#tunnelling - 293. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 294. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users - 295. http://www.karlrunge.com/x11vnc/blockdpy.c - 296. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept - 297. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone - 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone - 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept - 300. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously - 301. http://www.karlrunge.com/x11vnc/index.html#faq-inetd - 302. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop - 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 304. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris - 305. http://www.jirka.org/gdm-documentation/x241.html - 306. http://www.karlrunge.com/x11vnc/x11vnc_loop - 307. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth - 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd - 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q - 310. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth - 311. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop - 312. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir - 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http - 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 315. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect - 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms - 317. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 318. http://www.karlrunge.com/x11vnc/Xdummy - 319. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously - 320. http://www.karlrunge.com/x11vnc/shm_clear - 321. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile - 322. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm - 323. http://www.karlrunge.com/x11vnc/index.html#faq-noshm - 324. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap - 325. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait - 326. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile - 327. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs - 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads - 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer - 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid - 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 334. http://www.tightvnc.com/ - 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging - 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 337. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 338. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs - 339. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait - 340. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer - 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive - 342. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 343. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel - 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor - 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos - 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout - 347. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area - 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem - 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage - 351. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode - 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode - 354. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging - 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode - 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads - 357. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 358. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect - 359. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode - 360. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 362. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 364. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow - 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe - 367. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect - 368. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe - 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen - 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip - 371. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale - 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect - 373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor - 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor - 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay - 376. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode - 377. http://www.karlrunge.com/x11vnc/index.html#solaris10-build - 378. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks - 379. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut - 380. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac - 381. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove - 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape - 383. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend - 384. http://www.tightvnc.com/ - 385. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor - 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos - 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos - 388. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape - 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap - 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer - 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap - 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 393. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless - 394. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak - 395. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard - 396. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb - 397. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys - 398. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 400. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 401. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak - 402. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard - 403. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless - 404. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb - 405. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys - 406. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak - 407. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb - 408. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb - 409. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes - 410. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 411. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms - 412. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 413. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 414. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms - 415. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat - 416. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat - 417. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager - 418. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 419. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 275. http://www.karlrunge.com/x11vnc/index.html#faq-tcp_wrappers + 276. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 277. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen + 278. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 279. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 280. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 281. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 282. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-listen + 283. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-allow + 284. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 285. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 286. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 287. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 288. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbauth + 289. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-passwdfile + 290. http://www.karlrunge.com/x11vnc/index.html#gateway_double_ssh + 291. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 292. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 293. http://www.stunnel.org/ + 294. http://www.stunnel.org/ + 295. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-stunnel + 296. http://www.karlrunge.com/x11vnc/index.html#auto-stunnel + 297. http://www.securityfocus.com/infocus/1677 + 298. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-stunnel + 299. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd + 300. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-stunnel + 301. http://www.karlrunge.com/x11vnc/ssl_vncviewer + 302. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 303. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-viewonly + 304. ftp://ftp.x.org/ + 305. http://www.karlrunge.com/x11vnc/dtVncPopup + 306. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 307. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-unixpw + 308. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 309. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-stunnel + 310. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-localhost + 311. http://www.karlrunge.com/x11vnc/index.html#tunnelling + 312. http://www.karlrunge.com/x11vnc/index.html#faq-ssl-tunnel + 313. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 314. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-users + 315. http://www.karlrunge.com/x11vnc/blockdpy.c + 316. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-accept + 317. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 318. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gone + 319. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-afteraccept + 320. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously + 321. http://www.karlrunge.com/x11vnc/index.html#faq-inetd + 322. http://www.karlrunge.com/x11vnc/index.html#x11vnc_loop + 323. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 324. http://www.karlrunge.com/x11vnc/index.html#dtlogin_solaris + 325. http://www.jirka.org/gdm-documentation/x241.html + 326. http://www.karlrunge.com/x11vnc/x11vnc_loop + 327. http://www.karlrunge.com/x11vnc/index.html#faq-xterminal-xauth + 328. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-inetd + 329. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-q + 330. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-auth + 331. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-loop + 332. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-httpdir + 333. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-http + 334. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 335. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-vncconnect + 336. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 337. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 338. http://www.karlrunge.com/x11vnc/Xdummy + 339. http://www.karlrunge.com/x11vnc/index.html#display-manager-continuously + 340. http://www.karlrunge.com/x11vnc/shm_clear + 341. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 342. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 343. http://www.karlrunge.com/x11vnc/index.html#faq-noshm + 344. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nap + 345. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 346. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 347. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs + 348. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads + 349. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer + 350. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 351. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-solid + 352. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 353. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 354. http://www.tightvnc.com/ + 355. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 356. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 357. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 358. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fs + 359. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wait + 360. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-defer + 361. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-progressive + 362. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 363. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel + 364. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor + 365. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos + 366. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-readtimeout + 367. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 368. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_area + 369. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xd_mem + 370. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noxdamage + 371. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 372. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode + 373. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode + 374. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nodragging + 375. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-pointer_mode + 376. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-threads + 377. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 378. http://www.karlrunge.com/x11vnc/index.html#faq-scrollcopyrect + 379. http://www.karlrunge.com/x11vnc/index.html#faq-pointer-mode + 380. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 381. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 382. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 383. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 384. http://www.karlrunge.com/x11vnc/index.html#fb_read_slow + 385. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 386. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wireframe + 387. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-wirecopyrect + 388. http://www.karlrunge.com/x11vnc/index.html#faq-wireframe + 389. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-fixscreen + 390. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scr_skip + 391. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale + 392. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scrollcopyrect + 393. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 394. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursor + 395. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-overlay + 396. http://www.karlrunge.com/x11vnc/index.html#the-overlay-mode + 397. http://www.karlrunge.com/x11vnc/index.html#solaris10-build + 398. http://www.karlrunge.com/x11vnc/index.html#faq-xfixes-alpha-hacks + 399. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphacut + 400. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alphafrac + 401. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-alpharemove + 402. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape + 403. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noalphablend + 404. http://www.tightvnc.com/ + 405. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursor + 406. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-cursorpos + 407. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorpos + 408. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nocursorshape + 409. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap + 410. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_pointer + 411. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-buttonmap + 412. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 413. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 414. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 415. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard + 416. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 417. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys + 418. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 419. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak 420. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 421. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap - 422. http://www.karlrunge.com/x11vnc/index.html#faq-scaling - 423. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale - 424. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html - 425. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport - 426. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui - 427. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect - 428. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor - 429. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout - 430. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama - 431. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer - 432. http://www.karlrunge.com/x11vnc/index.html#faq-solshm - 433. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile - 434. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm - 435. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip - 436. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama - 437. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 438. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 439. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr - 440. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom - 441. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 442. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb - 443. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 444. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id - 445. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb - 446. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc - 447. http://www.karlrunge.com/x11vnc/index.html#faq-vmware - 448. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel - 449. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary - 450. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir - 451. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer - 452. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell + 421. http://www.karlrunge.com/x11vnc/index.html#faq-xkbmodtweak + 422. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-debug_keyboard + 423. http://www.karlrunge.com/x11vnc/index.html#faq-greaterless + 424. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 425. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-sloppy_keys + 426. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-modtweak + 427. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 428. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xkb + 429. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-skip_keycodes + 430. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 431. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 432. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 433. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 434. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-add_keysyms + 435. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat + 436. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-norepeat + 437. http://www.karlrunge.com/x11vnc/index.html#faq-display-manager + 438. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 439. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 440. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 441. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-remap + 442. http://www.karlrunge.com/x11vnc/index.html#faq-scaling + 443. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale + 444. http://www.cus.cam.ac.uk/~ssb22/source/vnc-magnification.html + 445. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-rfbport + 446. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-gui + 447. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-connect + 448. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-scale_cursor + 449. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-blackout + 450. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xinerama + 451. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xwarppointer + 452. http://www.karlrunge.com/x11vnc/index.html#faq-solshm + 453. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-onetile + 454. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noshm + 455. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-clip + 456. http://www.karlrunge.com/x11vnc/index.html#faq-xinerama + 457. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 458. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 459. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-xrandr + 460. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-padgeom + 461. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 462. http://www.karlrunge.com/x11vnc/index.html#faq-rawfb + 463. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 464. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-id + 465. http://www.karlrunge.com/x11vnc/index.html#faq-xvfb + 466. http://www.karlrunge.com/x11vnc/index.html#faq-linuxvc + 467. http://www.karlrunge.com/x11vnc/index.html#faq-vmware + 468. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nosel + 469. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-noprimary + 470. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-seldir + 471. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nofilexfer + 472. http://www.karlrunge.com/x11vnc/x11vnc_opts.html#opt-nobell ======================================================================= @@ -5152,7 +5358,7 @@ x11vnc: a VNC server for real X displays Here are all of x11vnc command line options: % x11vnc -opts (see below for -help long descriptions) -x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-02-24 +x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-03-02 x11vnc options: -display disp -auth file @@ -5264,7 +5470,7 @@ libvncserver-tight-extension options: % x11vnc -help -x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-02-24 +x11vnc: allow VNC connections to real X11 displays. 0.8.1 lastmod: 2006-03-02 Typical usage is: @@ -5649,9 +5855,10 @@ Options: full-access passwords) -unixpw [list] Experimental option: use Unix username and password - authentication. x11vnc uses the su(1) program to - verify the user's password. [list] is an optional - comma separated list of allowed Unix usernames. + authentication. x11vnc uses the su(1) program to verify + the user's password. [list] is an optional comma + separated list of allowed Unix usernames. See below + for per-user options that can be applied. A familiar "login:" and "Password:" dialog is presented to the user on a black screen inside the @@ -5660,6 +5867,22 @@ Options: send one before a 20 second timeout. Existing clients are view-only during this period. + Since the detailed behavior of su(1) can vary from + OS to OS and for local configurations, please test + the mode carefully on your systems before using it. + Try different combinations of valid/invalid usernames + and passwords. + + For example, on FreeBSD and the other BSD's and Tru64 + it does not appear to be possible for the user running + x11vnc to validate his *own* password via su(1). + The x11vnc login will always fail in this case. + A possible workaround would be to start x11vnc as + root with the "-users +nobody" option to immediately + switch to user nobody. Another source of problems are + PAM modules that prompt for extra info, e.g. password + aging modules. These logins will always fail as well. + *IMPORTANT*: to prevent the Unix password being sent in *clear text* over the network, two x11vnc options are enforced: 1) -localhost and 2) -stunnel. The former @@ -5679,6 +5902,13 @@ Options: user login (since Unix password or the user's public key authentication is used by ssh) + As a convenience, if you ssh(1) in and start x11vnc + it will look to see if the environment variable + SSH_CONNECTION is set and appears reasonable. If it + does, then the stunnel requirement is dropped since + it is assumed you are using ssh for the encrypted + tunnelling. Use -stunnel to force stunnel usage. + Set UNIXPW_DISABLE_LOCALHOST=1 to disable the -localhost requirement. One should never do this (i.e. allow the Unix passwords to be sniffed on the network). @@ -5687,23 +5917,40 @@ Options: since x11vnc does not make network connections in that case. Be sure to use encryption from the viewer to inetd. One can also have your own stunnel spawn - x11vnc in -inetd mode. + x11vnc in -inetd mode. See the FAQ. + + The user names in the comma separated [list] can have + per-user options after a ":", e.g. "fred:opts" + where "opts" is a "+" separated list of + "viewonly", "fullaccess", "input=XXXX", or + "deny", e.g. "karl,fred:viewonly,boss:input=M". + For "input=" it is the K,M,B,C describe under -input. + + If a user in the list is "*" that means those options + apply to all users. It also means all users are allowed + to log in. Use "deny" to explicitly deny some users + if you use "*" to set a global option. -stunnel [pem] Use the stunnel(1) (www.stunnel.org) to provide an encrypted SSL tunnel between viewers and x11vnc. This requires stunnel be installed on the system and available via PATH (n.b. stunnel is often installed in - sbin directories). Version 4.x of stunnel is assumed. + sbin directories). Version 4.x of stunnel is assumed; + see -stunnel3 below. [pem] is optional, use "-stunnel /path/to/stunnel.pem" to specify a PEM certificate file to pass to stunnel. + Whether one is needed or not depends on your stunnel + configuration. - stunnel is started up as a child process and any SSL - connections it receives are decrypted and sent to x11vnc - over a local socket. The strings "The SSL VNC desktop - is ..." and SSLPORT=... are printed out at startup. + stunnel is started up as a child process of x11vnc and + any SSL connections stunnel receives are decrypted and + sent to x11vnc over a local socket. The strings "The + SSL VNC desktop is ..." and SSLPORT=... are printed + out at startup. - The -localhost option is enforced by default. Set + The -localhost option is enforced by default to + avoid people routing around the SSL channel. Set STUNNEL_DISABLE_LOCALHOST=1 to disable the requirement. Your VNC viewer will need to be able to connect via SSL. @@ -5717,7 +5964,8 @@ Options: % vncviewer localhost:1 For Windows, stunnel has been ported to it and there - are probably other such tools available. + are probably other such tools available. See the FAQ + for more examples. -stunnel3 [pem] Use version 3.x stunnel command line syntax instead of version 4.x @@ -5805,8 +6053,9 @@ Options: -gone string As -accept, except to run a user supplied command when a client goes away (disconnects). RFB_MODE will be set to "gone" and the other RFB_* variables are as - in -accept. Unlike -accept, the command return code - is not interpreted by x11vnc. Example: -gone 'xlock &' + in -accept. The "popup" actions apply as well. + Unlike -accept, the command return code is not + interpreted by x11vnc. Example: -gone 'xlock &' -users list If x11vnc is started as root (say from inetd(1) or from display managers xdm(1), gdm(1), etc), then as soon @@ -7004,6 +7253,8 @@ n timeout:n reset -timeout to n, if there are currently no clients, exit unless one connects in the next n secs. + filexfer enable filetransfer for new clients. + nofilexfer disable filetransfer for new clients. http enable http client connections. nohttp disable http client connections. deny deny any new connections, same as "lock" @@ -7246,11 +7497,11 @@ n truecolor notruecolor overlay nooverlay overlay_cursor overlay_yescursor nooverlay_nocursor nooverlay_cursor nooverlay_yescursor overlay_nocursor 8to24 no8to24 - 8to24_opts visual scale scale_cursor viewonly - noviewonly shared noshared forever noforever once - timeout filexfer deny lock nodeny unlock connect - allowonce allow localhost nolocalhost listen lookup - nolookup accept afteraccept gone shm noshm flipbyteorder + 8to24_opts visual scale scale_cursor viewonly noviewonly + shared noshared forever noforever once timeout filexfer + nofilexfer deny lock nodeny unlock connect allowonce + allow localhost nolocalhost listen lookup nolookup + accept afteraccept gone shm noshm flipbyteorder noflipbyteorder onetile noonetile solid_color solid nosolid blackout xinerama noxinerama xtrap noxtrap xrandr noxrandr xrandr_mode padgeom quiet q noquiet @@ -7289,15 +7540,15 @@ n scale_str scaled_x scaled_y scale_numer scale_denom scale_fac scaling_blend scaling_nomult4 scaling_pad scaling_interpolate inetd privremote unsafe safer nocmds - passwdfile using_shm logfile o flag rc norc h help V - version lastmod bg sigpipe threads readrate netrate - netlatency pipeinput clients client_count pid ext_xtest - ext_xtrap ext_xrecord ext_xkb ext_xshm ext_xinerama - ext_overlay ext_xfixes ext_xdamage ext_xrandr rootwin - num_buttons button_mask mouse_x mouse_y bpp depth - indexed_color dpy_x dpy_y wdpy_x wdpy_y off_x off_y - cdpy_x cdpy_y coff_x coff_y rfbauth passwd viewpasswd - + passwdfile unixpw unixpw_list stunnel stunnel_pem + using_shm logfile o flag rc norc h help V version + lastmod bg sigpipe threads readrate netrate netlatency + pipeinput clients client_count pid ext_xtest ext_xtrap + ext_xrecord ext_xkb ext_xshm ext_xinerama ext_overlay + ext_xfixes ext_xdamage ext_xrandr rootwin num_buttons + button_mask mouse_x mouse_y bpp depth indexed_color + dpy_x dpy_y wdpy_x wdpy_y off_x off_y cdpy_x cdpy_y + coff_x coff_y rfbauth passwd viewpasswd -QD variable Just like -query variable, but returns the default value for that parameter (no running x11vnc server is consulted) @@ -7394,10 +7645,7 @@ libvncserver-tight-extension options: Pretty wild huh? [1]Contact me if you have any questions or problems. Personally, I use: -x11vnc -rfbauth $HOME/.vnc/passwd -flashcmap -solid -gui icon,geom=+870+0 -rema -p Super_R-Button4,Menu-Button5 - - (the -flashcmap only matters on old 8-bit X displays) +x11vnc -rfbauth $HOME/.vnc/passwd -solid References diff --git a/x11vnc/connections.c b/x11vnc/connections.c index 197d7d9..49bd740 100644 --- a/x11vnc/connections.c +++ b/x11vnc/connections.c @@ -39,10 +39,12 @@ void check_new_clients(void); static rfbClientPtr *client_match(char *str); static int run_user_command(char *cmd, rfbClientPtr client, char *mode); +static void free_client_data(rfbClientPtr client); static void client_gone(rfbClientPtr client); static int check_access(char *addr); -static int ugly_accept_window(char *addr, char *userhost, int X, int Y, - int timeout, char *mode); +static void ugly_geom(char *p, int *x, int *y); +static int ugly_window(char *addr, char *userhost, int X, int Y, + int timeout, char *mode, int accept); static int action_match(char *action, int rc); static int accept_client(rfbClientPtr client); static void check_connect_file(char *file); @@ -490,6 +492,31 @@ static int run_user_command(char *cmd, rfbClientPtr client, char *mode) { return rc; } +static void free_client_data(rfbClientPtr client) { + if (! client) { + return; + } + if (client->clientData) { + ClientData *cd = (ClientData *) client->clientData; + 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; + } +} + static int accepted_client = 0; /* @@ -520,30 +547,49 @@ static void client_gone(rfbClientPtr client) { solid_bg(1); } if (gone_cmd && *gone_cmd != '\0') { - rfbLog("client_gone: using cmd for: %s\n", client->host); - run_user_command(gone_cmd, client, "gone"); - } - - if (client->clientData) { - ClientData *cd = (ClientData *) client->clientData; - if (cd) { - if (cd->server_ip) { - free(cd->server_ip); - cd->server_ip = NULL; + ClientData *cd = NULL; + if (client->clientData) { + cd = (ClientData *) client->clientData; + } + if (strstr(gone_cmd, "popup") == gone_cmd) { + int x = -64000, y = -64000, timeout = 120; + char *userhost = ident_username(client); + char *addr, *p, *mode; + + /* extract timeout */ + if ((p = strchr(gone_cmd, ':')) != NULL) { + int in; + if (sscanf(p+1, "%d", &in) == 1) { + timeout = in; + } } - if (cd->hostname) { - free(cd->hostname); - cd->hostname = NULL; + /* extract geometry */ + if ((p = strpbrk(gone_cmd, "+-")) != NULL) { + ugly_geom(p, &x, &y); } - if (cd->username) { - free(cd->username); - cd->username = NULL; + + /* find mode: mouse, key, or both */ + if (strstr(gone_cmd, "popupmouse") == gone_cmd) { + mode = "mouse_only"; + } else if (strstr(gone_cmd, "popupkey") == gone_cmd) { + mode = "key_only"; + } else { + mode = "both"; } + + addr = client->host; + + ugly_window(addr, userhost, x, y, timeout, mode, 0); + + free(userhost); + } else { + rfbLog("client_gone: using cmd: %s\n", client->host); + run_user_command(gone_cmd, client, "gone"); } - free(client->clientData); - client->clientData = NULL; } + free_client_data(client); + if (inetd) { rfbLog("viewer exited.\n"); clean_up_exit(0); @@ -722,8 +768,8 @@ static int check_access(char *addr) { * x11vnc's first (and only) visible widget: accept/reject dialog window. * We go through this pain to avoid dependency on libXt... */ -static int ugly_accept_window(char *addr, char *userhost, int X, int Y, - int timeout, char *mode) { +static int ugly_window(char *addr, char *userhost, int X, int Y, + int timeout, char *mode, int accept) { #define t2x2_width 16 #define t2x2_height 16 @@ -772,10 +818,17 @@ static unsigned char t2x2_bits[] = { int Ye_x = 20, Ye_y = 0, Ye_w = 45, Ye_h = 20; int No_x = 75, No_y = 0, No_w = 45, No_h = 20; int Vi_x = 130, Vi_y = 0, Vi_w = 45, Vi_h = 20; + char *sprop = "new x11vnc client"; + + KeyCode key_o; if (raw_fb && ! dpy) return 0; /* raw_fb hack */ - if (!strcmp(mode, "mouse_only")) { + if (! accept) { + sprintf(str_y, "OK"); + sprop = "x11vnc client disconnected"; + h = 110; + } else if (!strcmp(mode, "mouse_only")) { str1 = str1_m; str2 = str2_m; str3 = str3_m; @@ -834,14 +887,14 @@ static unsigned char t2x2_bits[] = { hints.min_width = w; hints.min_height = h; - XSetStandardProperties(dpy, awin, "new x11vnc client", "x11vnc query", - ico, NULL, 0, &hints); + XSetStandardProperties(dpy, awin, sprop, "x11vnc query", ico, NULL, + 0, &hints); XSelectInput(dpy, awin, evmask); if (! font_info && (font_info = XLoadQueryFont(dpy, "fixed")) == NULL) { rfbLogEnable(1); - rfbLog("ugly_accept_window: cannot locate font fixed.\n"); + rfbLog("ugly_window: cannot locate font fixed.\n"); X_UNLOCK; clean_up_exit(1); } @@ -855,8 +908,14 @@ static unsigned char t2x2_bits[] = { XMapWindow(dpy, awin); XFlush(dpy); - snprintf(strh, 100, "x11vnc: accept connection from %s?", addr); + if (accept) { + snprintf(strh, 100, "x11vnc: accept connection from %s?", addr); + } else { + snprintf(strh, 100, "x11vnc: client disconnected from %s", addr); + } snprintf(stri, 100, " (%s)", userhost); + + key_o = XKeysymToKeycode(dpy, XStringToKeysym("o")); key_y = XKeysymToKeycode(dpy, XStringToKeysym("y")); key_n = XKeysymToKeycode(dpy, XStringToKeysym("n")); key_v = XKeysymToKeycode(dpy, XStringToKeysym("v")); @@ -873,7 +932,7 @@ static unsigned char t2x2_bits[] = { usleep(ms * 1000); waited += ((double) ms)/1000.; if (timeout && (int) waited >= timeout) { - rfbLog("accept_client: popup timed out after " + rfbLog("ugly_window: popup timed out after " "%d seconds.\n", timeout); out = 0; ev.type = 0; @@ -894,13 +953,15 @@ static unsigned char t2x2_bits[] = { strh, strlen(strh)); XDrawString(dpy, awin, gc, X_sh, Y_sh+(k++)*dY, stri, strlen(stri)); - XDrawString(dpy, awin, gc, X_sh, Y_sh+(k++)*dY, + if (accept) { + XDrawString(dpy, awin, gc, X_sh, Y_sh+(k++)*dY, str1, strlen(str1)); - XDrawString(dpy, awin, gc, X_sh, Y_sh+(k++)*dY, + XDrawString(dpy, awin, gc, X_sh, Y_sh+(k++)*dY, str2, strlen(str2)); - if (! view_only) { + if (! view_only) { XDrawString(dpy, awin, gc, X_sh, Y_sh+(k++)*dY, str3, strlen(str3)); + } } if (!strcmp(mode, "key_only")) { @@ -912,10 +973,13 @@ static unsigned char t2x2_bits[] = { No_y = Y_sh+k*dY; Vi_y = Y_sh+k*dY; XDrawRectangle(dpy, awin, gc, Ye_x, Ye_y, Ye_w, Ye_h); - XDrawRectangle(dpy, awin, gc, No_x, No_y, No_w, No_h); - if (! view_only) { + + if (accept) { + XDrawRectangle(dpy, awin, gc, No_x, No_y, No_w, No_h); + if (! view_only) { XDrawRectangle(dpy, awin, gc, Vi_x, Vi_y, Vi_w, Vi_h); + } } tw = XTextWidth(font_info, str_y, strlen(str_y)); @@ -924,6 +988,9 @@ static unsigned char t2x2_bits[] = { XDrawString(dpy, awin, gc, Ye_x+tw, Ye_y+Ye_h-5, str_y, strlen(str_y)); + if (!accept) { + break; + } tw = XTextWidth(font_info, str_n, strlen(str_n)); tw = (No_w - tw)/2; if (tw < 0) tw = 1; @@ -953,12 +1020,14 @@ static unsigned char t2x2_bits[] = { y = ev.xbutton.y; if (!strcmp(mode, "key_only")) { ; - } else if (x > No_x && x < No_x+No_w && y > No_y - && y < No_y+No_h) { - out = 0; } else if (x > Ye_x && x < Ye_x+Ye_w && y > Ye_y && y < Ye_y+Ye_h) { out = 1; + } else if (! accept) { + ; + } else if (x > No_x && x < No_x+No_w && y > No_y + && y < No_y+No_h) { + out = 0; } else if (! view_only && x > Vi_x && x < Vi_x+Vi_w && y > Vi_y && y < Vi_y+Ye_h) { out = 2; @@ -968,8 +1037,16 @@ static unsigned char t2x2_bits[] = { case KeyPress: if (!strcmp(mode, "mouse_only")) { ; + } else if (! accept) { + if (ev.xkey.keycode == key_o) { + out = 1; + } + if (ev.xkey.keycode == key_y) { + out = 1; + } } else if (ev.xkey.keycode == key_y) { out = 1; + ; } else if (ev.xkey.keycode == key_n) { out = 0; } else if (! view_only && ev.xkey.keycode == key_v) { @@ -1082,6 +1159,24 @@ static int action_match(char *action, int rc) { return result; } +static void ugly_geom(char *p, int *x, int *y) { + int x1, y1; + + if (sscanf(p, "+%d+%d", &x1, &y1) == 2) { + *x = x1; + *y = y1; + } else if (sscanf(p, "+%d-%d", &x1, &y1) == 2) { + *x = x1; + *y = -y1; + } else if (sscanf(p, "-%d+%d", &x1, &y1) == 2) { + *x = -x1; + *y = y1; + } else if (sscanf(p, "-%d-%d", &x1, &y1) == 2) { + *x = -x1; + *y = -y1; + } +} + /* * Simple routine to prompt the user on the X display whether an incoming * client should be allowed to connect or not. If a gui is involved it @@ -1133,20 +1228,7 @@ static int accept_client(rfbClientPtr client) { } /* extract geometry */ if ((p = strpbrk(accept_cmd, "+-")) != NULL) { - int x1, y1; - if (sscanf(p, "+%d+%d", &x1, &y1) == 2) { - x = x1; - y = y1; - } else if (sscanf(p, "+%d-%d", &x1, &y1) == 2) { - x = x1; - y = -y1; - } else if (sscanf(p, "-%d+%d", &x1, &y1) == 2) { - x = -x1; - y = y1; - } else if (sscanf(p, "-%d-%d", &x1, &y1) == 2) { - x = -x1; - y = -y1; - } + ugly_geom(p, &x, &y); } /* find mode: mouse, key, or both */ @@ -1159,8 +1241,8 @@ static int accept_client(rfbClientPtr client) { } rfbLog("accept_client: using builtin popup for: %s\n", addr); - if ((ret = ugly_accept_window(addr, userhost, x, y, timeout, - mode))) { + if ((ret = ugly_window(addr, userhost, x, y, timeout, + mode, 1))) { free(userhost); if (ret == 2) { rfbLog("accept_client: viewonly: %s\n", addr); @@ -1656,19 +1738,10 @@ enum rfbNewClientAction new_client(rfbClientPtr client) { allow_list ? allow_list : "(null)" ); return(RFB_CLIENT_REFUSE); } - if (! accept_client(client)) { - rfbLog("denying client: %s local user rejected connection.\n", - client->host); - rfbLog("denying client: accept_cmd=\"%s\"\n", - accept_cmd ? accept_cmd : "(null)" ); - return(RFB_CLIENT_REFUSE); - } client->clientData = (void *) calloc(sizeof(ClientData), 1); cd = (ClientData *) client->clientData; - cd->uid = clients_served; - cd->client_port = get_remote_port(client->sock); cd->server_port = get_local_port(client->sock); cd->server_ip = get_local_host(client->sock); @@ -1679,6 +1752,20 @@ enum rfbNewClientAction new_client(rfbClientPtr client) { cd->login_viewonly = -1; cd->login_time = time(0); + if (! accept_client(client)) { + rfbLog("denying client: %s local user rejected connection.\n", + client->host); + rfbLog("denying client: accept_cmd=\"%s\"\n", + accept_cmd ? accept_cmd : "(null)" ); + + free_client_data(client); + + return(RFB_CLIENT_REFUSE); + } + + cd->uid = clients_served; + + client->clientGoneHook = client_gone; if (client_count) { @@ -1861,11 +1948,11 @@ void check_new_clients(void) { if (unixpw_in_progress) { int present = 0; - if (time(0) > unixpw_last_try_time + 20) { + if (time(0) > unixpw_last_try_time + 30) { rfbLog("unixpw_deny: timed out waiting for reply.\n"); unixpw_deny(); - return; } + return; } if (client_count == last_count) { @@ -1895,23 +1982,24 @@ void check_new_clients(void) { iter = rfbGetClientIterator(screen); while( (cl = rfbClientIteratorNext(iter)) ) { ClientData *cd = (ClientData *) cl->clientData; + char *s; if (cd->login_viewonly < 0) { /* this is a general trigger to initialize things */ if (cl->viewOnly) { cd->login_viewonly = 1; - if (allowed_input_view_only) { + s = allowed_input_view_only; + if (s && cd->input[0] == '-') { cl->viewOnly = FALSE; cd->input[0] = '\0'; - strncpy(cd->input, - allowed_input_view_only, CILEN); + strncpy(cd->input, s, CILEN); } } else { cd->login_viewonly = 0; - if (allowed_input_normal) { + s = allowed_input_normal; + if (s && cd->input[0] == '-') { cd->input[0] = '\0'; - strncpy(cd->input, - allowed_input_normal, CILEN); + strncpy(cd->input, s, CILEN); } } if (run_after_accept) { diff --git a/x11vnc/help.c b/x11vnc/help.c index 113e0ac..d31a038 100644 --- a/x11vnc/help.c +++ b/x11vnc/help.c @@ -402,9 +402,10 @@ void print_help(int mode) { " full-access passwords)\n" "\n" "-unixpw [list] Experimental option: use Unix username and password\n" -" authentication. x11vnc uses the su(1) program to\n" -" verify the user's password. [list] is an optional\n" -" comma separated list of allowed Unix usernames.\n" +" authentication. x11vnc uses the su(1) program to verify\n" +" the user's password. [list] is an optional comma\n" +" separated list of allowed Unix usernames. See below\n" +" for per-user options that can be applied.\n" "\n" " A familiar \"login:\" and \"Password:\" dialog is\n" " presented to the user on a black screen inside the\n" @@ -413,6 +414,22 @@ void print_help(int mode) { " send one before a 20 second timeout. Existing clients\n" " are view-only during this period.\n" "\n" +" Since the detailed behavior of su(1) can vary from\n" +" OS to OS and for local configurations, please test\n" +" the mode carefully on your systems before using it.\n" +" Try different combinations of valid/invalid usernames\n" +" and passwords.\n" +" \n" +" For example, on FreeBSD and the other BSD's and Tru64\n" +" it does not appear to be possible for the user running\n" +" x11vnc to validate his *own* password via su(1).\n" +" The x11vnc login will always fail in this case.\n" +" A possible workaround would be to start x11vnc as\n" +" root with the \"-users +nobody\" option to immediately\n" +" switch to user nobody. Another source of problems are\n" +" PAM modules that prompt for extra info, e.g. password\n" +" aging modules. These logins will always fail as well.\n" +"\n" " *IMPORTANT*: to prevent the Unix password being sent in\n" " *clear text* over the network, two x11vnc options are\n" " enforced: 1) -localhost and 2) -stunnel. The former\n" @@ -432,6 +449,13 @@ void print_help(int mode) { " user login (since Unix password or the user's public\n" " key authentication is used by ssh)\n" "\n" +" As a convenience, if you ssh(1) in and start x11vnc\n" +" it will look to see if the environment variable\n" +" SSH_CONNECTION is set and appears reasonable. If it\n" +" does, then the stunnel requirement is dropped since\n" +" it is assumed you are using ssh for the encrypted\n" +" tunnelling. Use -stunnel to force stunnel usage.\n" +"\n" " Set UNIXPW_DISABLE_LOCALHOST=1 to disable the -localhost\n" " requirement. One should never do this (i.e. allow the\n" " Unix passwords to be sniffed on the network).\n" @@ -440,23 +464,40 @@ void print_help(int mode) { " since x11vnc does not make network connections in\n" " that case. Be sure to use encryption from the viewer\n" " to inetd. One can also have your own stunnel spawn\n" -" x11vnc in -inetd mode.\n" +" x11vnc in -inetd mode. See the FAQ.\n" +"\n" +" The user names in the comma separated [list] can have\n" +" per-user options after a \":\", e.g. \"fred:opts\"\n" +" where \"opts\" is a \"+\" separated list of\n" +" \"viewonly\", \"fullaccess\", \"input=XXXX\", or\n" +" \"deny\", e.g. \"karl,fred:viewonly,boss:input=M\".\n" +" For \"input=\" it is the K,M,B,C describe under -input.\n" +"\n" +" If a user in the list is \"*\" that means those options\n" +" apply to all users. It also means all users are allowed\n" +" to log in. Use \"deny\" to explicitly deny some users\n" +" if you use \"*\" to set a global option.\n" "\n" "-stunnel [pem] Use the stunnel(1) (www.stunnel.org) to provide an\n" " encrypted SSL tunnel between viewers and x11vnc.\n" " This requires stunnel be installed on the system and\n" " available via PATH (n.b. stunnel is often installed in\n" -" sbin directories). Version 4.x of stunnel is assumed.\n" +" sbin directories). Version 4.x of stunnel is assumed;\n" +" see -stunnel3 below.\n" "\n" " [pem] is optional, use \"-stunnel /path/to/stunnel.pem\"\n" " to specify a PEM certificate file to pass to stunnel.\n" +" Whether one is needed or not depends on your stunnel\n" +" configuration.\n" "\n" -" stunnel is started up as a child process and any SSL\n" -" connections it receives are decrypted and sent to x11vnc\n" -" over a local socket. The strings \"The SSL VNC desktop\n" -" is ...\" and SSLPORT=... are printed out at startup.\n" +" stunnel is started up as a child process of x11vnc and\n" +" any SSL connections stunnel receives are decrypted and\n" +" sent to x11vnc over a local socket. The strings \"The\n" +" SSL VNC desktop is ...\" and SSLPORT=... are printed\n" +" out at startup.\n" "\n" -" The -localhost option is enforced by default. Set\n" +" The -localhost option is enforced by default to\n" +" avoid people routing around the SSL channel. Set\n" " STUNNEL_DISABLE_LOCALHOST=1 to disable the requirement.\n" "\n" " Your VNC viewer will need to be able to connect via SSL.\n" @@ -470,7 +511,8 @@ void print_help(int mode) { " %% vncviewer localhost:1\n" "\n" " For Windows, stunnel has been ported to it and there\n" -" are probably other such tools available.\n" +" are probably other such tools available. See the FAQ\n" +" for more examples.\n" "\n" "-stunnel3 [pem] Use version 3.x stunnel command line syntax instead of\n" " version 4.x\n" @@ -558,8 +600,9 @@ void print_help(int mode) { "-gone string As -accept, except to run a user supplied command when\n" " a client goes away (disconnects). RFB_MODE will be\n" " set to \"gone\" and the other RFB_* variables are as\n" -" in -accept. Unlike -accept, the command return code\n" -" is not interpreted by x11vnc. Example: -gone 'xlock &'\n" +" in -accept. The \"popup\" actions apply as well.\n" +" Unlike -accept, the command return code is not\n" +" interpreted by x11vnc. Example: -gone 'xlock &'\n" "\n" "-users list If x11vnc is started as root (say from inetd(1) or from\n" " display managers xdm(1), gdm(1), etc), then as soon\n" @@ -1766,6 +1809,8 @@ void print_help(int mode) { " timeout:n reset -timeout to n, if there are\n" " currently no clients, exit unless one\n" " connects in the next n secs.\n" +" filexfer enable filetransfer for new clients.\n" +" nofilexfer disable filetransfer for new clients.\n" /* access */ " http enable http client connections.\n" " nohttp disable http client connections.\n" @@ -2013,11 +2058,11 @@ void print_help(int mode) { " truecolor notruecolor overlay nooverlay overlay_cursor\n" " overlay_yescursor nooverlay_nocursor nooverlay_cursor\n" " nooverlay_yescursor overlay_nocursor 8to24 no8to24\n" -" 8to24_opts visual scale scale_cursor viewonly\n" -" noviewonly shared noshared forever noforever once\n" -" timeout filexfer deny lock nodeny unlock connect\n" -" allowonce allow localhost nolocalhost listen lookup\n" -" nolookup accept afteraccept gone shm noshm flipbyteorder\n" +" 8to24_opts visual scale scale_cursor viewonly noviewonly\n" +" shared noshared forever noforever once timeout filexfer\n" +" nofilexfer deny lock nodeny unlock connect allowonce\n" +" allow localhost nolocalhost listen lookup nolookup\n" +" accept afteraccept gone shm noshm flipbyteorder\n" " noflipbyteorder onetile noonetile solid_color solid\n" " nosolid blackout xinerama noxinerama xtrap noxtrap\n" " xrandr noxrandr xrandr_mode padgeom quiet q noquiet\n" @@ -2056,15 +2101,15 @@ void print_help(int mode) { " scale_str scaled_x scaled_y scale_numer scale_denom\n" " scale_fac scaling_blend scaling_nomult4 scaling_pad\n" " scaling_interpolate inetd privremote unsafe safer nocmds\n" -" passwdfile using_shm logfile o flag rc norc h help V\n" -" version lastmod bg sigpipe threads readrate netrate\n" -" netlatency pipeinput clients client_count pid ext_xtest\n" -" ext_xtrap ext_xrecord ext_xkb ext_xshm ext_xinerama\n" -" ext_overlay ext_xfixes ext_xdamage ext_xrandr rootwin\n" -" num_buttons button_mask mouse_x mouse_y bpp depth\n" -" indexed_color dpy_x dpy_y wdpy_x wdpy_y off_x off_y\n" -" cdpy_x cdpy_y coff_x coff_y rfbauth passwd viewpasswd\n" -"\n" +" passwdfile unixpw unixpw_list stunnel stunnel_pem\n" +" using_shm logfile o flag rc norc h help V version\n" +" lastmod bg sigpipe threads readrate netrate netlatency\n" +" pipeinput clients client_count pid ext_xtest ext_xtrap\n" +" ext_xrecord ext_xkb ext_xshm ext_xinerama ext_overlay\n" +" ext_xfixes ext_xdamage ext_xrandr rootwin num_buttons\n" +" button_mask mouse_x mouse_y bpp depth indexed_color\n" +" dpy_x dpy_y wdpy_x wdpy_y off_x off_y cdpy_x cdpy_y\n" +" coff_x coff_y rfbauth passwd viewpasswd\n" "-QD variable Just like -query variable, but returns the default\n" " value for that parameter (no running x11vnc server\n" " is consulted)\n" diff --git a/x11vnc/inet.c b/x11vnc/inet.c index 6a3921b..c4433a9 100644 --- a/x11vnc/inet.c +++ b/x11vnc/inet.c @@ -17,7 +17,7 @@ char *get_remote_host(int sock); char *get_local_host(int sock); char *ident_username(rfbClientPtr client); int find_free_port(int start, int end); - +int have_ssh_env(void); static int get_port(int sock, int remote); static char *get_host(int sock, int remote); @@ -314,3 +314,54 @@ int find_free_port(int start, int end) { return 0; } +int have_ssh_env(void) { + char *str, *p = getenv("SSH_CONNECTION"); + char *rhost, *rport, *lhost, *lport; + + if (! p) return 0; + + str = strdup(p); + + p = strtok(str, " "); + rhost = p; + + p = strtok(NULL, " "); + if (! p) goto fail; + + rport = p; + + p = strtok(NULL, " "); + if (! p) goto fail; + + lhost = p; + + p = strtok(NULL, " "); + if (! p) goto fail; + + lport = p; + +if (0) fprintf(stderr, "%d/%d - '%s' '%s'\n", atoi(rport), atoi(lport), rhost, lhost); + + if (atoi(rport) < 0 || atoi(rport) > 65535) { + goto fail; + } + if (atoi(lport) < 0 || atoi(lport) > 65535) { + goto fail; + } + + if (!strcmp(rhost, lhost)) { + goto fail; + } + + free(str); + + return 1; + + fail: +fprintf(stderr, "failed:\n"); + + free(str); + + return 0; +} + diff --git a/x11vnc/inet.h b/x11vnc/inet.h index d9ebe92..ff613dc 100644 --- a/x11vnc/inet.h +++ b/x11vnc/inet.h @@ -14,5 +14,6 @@ extern char *get_remote_host(int sock); extern char *get_local_host(int sock); extern char *ident_username(rfbClientPtr client); extern int find_free_port(int start, int end); +extern int have_ssh_env(void); #endif /* _X11VNC_INET_H */ diff --git a/x11vnc/keyboard.c b/x11vnc/keyboard.c index dafe236..9003ee8 100644 --- a/x11vnc/keyboard.c +++ b/x11vnc/keyboard.c @@ -801,7 +801,7 @@ int sloppy_key_check(int key, rfbBool down, rfbKeySym keysym, int *new) { return 0; } -#if !LIBVNCSERVER_HAVE_XKEYBOARD +#if !LIBVNCSERVER_HAVE_XKEYBOARD || SKIP_XKB /* empty functions for no xkb */ static void initialize_xkb_modtweak(void) {} diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 745da12..c9ebcc1 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -1141,6 +1141,36 @@ char *process_remote_cmd(char *cmd, int stringonly) { first_conn_timeout = to; rfbLog("remote_cmd: set -timeout to %d\n", -to); + } else if (!strcmp(p, "filexfer")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, filexfer); + goto qry; + } +#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER + if (! filexfer) { + rfbLog("remote_cmd: enabling -filexfer for new clients.\n"); + filexfer = 1; + rfbRegisterTightVNCFileTransferExtension(); + } +#else + rfbLog("remote_cmd: -filexfer not supported in this binary.\n"); +#endif + + } else if (!strcmp(p, "nofilexfer")) { + if (query) { + snprintf(buf, bufn, "ans=%s:%d", p, !filexfer); + goto qry; + } +#ifdef LIBVNCSERVER_WITH_TIGHTVNC_FILETRANSFER + if (filexfer) { + rfbLog("remote_cmd: disabling -filexfer for new clients.\n"); + filexfer = 0; + rfbUnregisterTightVNCFileTransferExtension(); + } +#else + rfbLog("remote_cmd: -filexfer not supported in this binary.\n"); +#endif + } else if (!strcmp(p, "deny") || !strcmp(p, "lock")) { if (query) { snprintf(buf, bufn, "ans=%s:%d", p, deny_all); @@ -1415,7 +1445,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { host_lookup = 0; } else if (strstr(p, "accept") == p) { - int doit = 1; + int doit = 1, safe = 0; COLON_CHECK("accept:") if (query) { snprintf(buf, bufn, "ans=%s%s%s", p, co, @@ -1423,15 +1453,12 @@ char *process_remote_cmd(char *cmd, int stringonly) { goto qry; } p += strlen("accept:"); - if (safe_remote_only) { - if (icon_mode && !strcmp(p, "")) { /* skip-cmd-list */ - ; - } else if (icon_mode && !strcmp(p, "popup")) { /* skip-cmd-list */ - ; - } else { - rfbLog("unsafe: %s\n", p); - doit = 0; - } + if (!strcmp(p, "") || strstr(p, "popup") == p) { /* skip-cmd-list */ + safe = 1; + } + if (safe_remote_only && ! safe) { + rfbLog("unsafe: %s\n", p); + doit = 0; } if (doit) { @@ -1440,31 +1467,39 @@ char *process_remote_cmd(char *cmd, int stringonly) { } } else if (strstr(p, "afteraccept") == p) { + int safe = 0; COLON_CHECK("afteraccept:") if (query) { snprintf(buf, bufn, "ans=%s%s%s", p, co, NONUL(afteraccept_cmd)); goto qry; } - if (safe_remote_only) { + p += strlen("afteraccept:"); + if (!strcmp(p, "")) { /* skip-cmd-list */ + safe = 1; + } + if (safe_remote_only && ! safe) { rfbLog("unsafe: %s\n", p); } else { - p += strlen("afteraccept:"); if (afteraccept_cmd) free(afteraccept_cmd); afteraccept_cmd = strdup(p); } } else if (strstr(p, "gone") == p) { + int safe = 0; COLON_CHECK("gone:") if (query) { snprintf(buf, bufn, "ans=%s%s%s", p, co, NONUL(gone_cmd)); goto qry; } - if (safe_remote_only) { + p += strlen("gone:"); + if (!strcmp(p, "") || strstr(p, "popup") == p) { /* skip-cmd-list */ + safe = 1; + } + if (safe_remote_only && ! safe) { rfbLog("unsafe: %s\n", p); } else { - p += strlen("gone:"); if (gone_cmd) free(gone_cmd); gone_cmd = strdup(p); } @@ -3669,6 +3704,12 @@ char *process_remote_cmd(char *cmd, int stringonly) { snprintf(buf, bufn, "aro=%s:%s", p, NONUL(passwdfile)); } else if (!strcmp(p, "unixpw")) { snprintf(buf, bufn, "aro=%s:%d", p, unixpw); + } else if (!strcmp(p, "unixpw_list")) { + snprintf(buf, bufn, "aro=%s:%s", p, NONUL(unixpw_list)); + } else if (!strcmp(p, "stunnel")) { + snprintf(buf, bufn, "aro=%s:%d", p, use_stunnel); + } else if (!strcmp(p, "stunnel_pem")) { + snprintf(buf, bufn, "aro=%s:%s", p, NONUL(stunnel_pem)); } else if (!strcmp(p, "using_shm")) { snprintf(buf, bufn, "aro=%s:%d", p, !using_shm); } else if (!strcmp(p, "logfile") || !strcmp(p, "o")) { diff --git a/x11vnc/tkx11vnc b/x11vnc/tkx11vnc index 366d2f2..292d704 100755 --- a/x11vnc/tkx11vnc +++ b/x11vnc/tkx11vnc @@ -94,6 +94,7 @@ Clients gone: vncconnect -- D + filexfer =D http httpdir: httpport: @@ -255,6 +256,8 @@ Permissions viewpasswd: =F passwdfile: =F rfbauth: + unixpw + unixpw_list: =0 storepasswd =GAL LOFF =GAL Misc-Perms:: @@ -262,6 +265,8 @@ Permissions =0S nevershared =0S dontdisconnect =SQA deny_all + stunnel + =F stunnel_pem: =GAL LOFF Tuning @@ -517,6 +522,14 @@ Set the -solid color value. Set the -xrandr mode value. " + set helptext(unixpw_list) " +Set the -unixpw_list usernames list value. +" + + set helptext(stunnel_pem) " +Set the -stunnel pem filename value. +" + set helptext(wireframe_mode) " Set the -wireframe mode string value. " @@ -3396,9 +3409,11 @@ proc set_widgets {} { global connected_to_x11vnc item_case item_menu item_entry menu_m foreach item [array names item_case] { + if ![info exists item_case($item)] { continue; } set case $item_case($item) -# set menu $menu_m($case) + if ![info exists item_menu($item)] { continue; } set menu $item_menu($item) + if ![info exists item_entry($item)] { continue; } set entry $item_entry($item) if {$entry < 0} { # skip case under beginner_mode @@ -5391,6 +5406,10 @@ proc get_nitem {item} { set nitem "sb" } elseif {$nitem == "xrandr_mode"} { set nitem "xrandr" + } elseif {$nitem == "unixpw_list"} { + set nitem "unixpw" + } elseif {$nitem == "stunnel_pem"} { + set nitem "stunnel" } elseif {$nitem == "wireframe_mode"} { set nitem "wireframe" } elseif {$nitem == "solid_color"} { @@ -5989,6 +6008,13 @@ if {$tk_version < 8.4} { set have_labelframes 0 } +if {[info exists env(X11VNC_GUI_TEXT_HEIGHT)]} { + set max_text_height $env(X11VNC_GUI_TEXT_HEIGHT) +} +if {[info exists env(X11VNC_GUI_TEXT_WIDTH)]} { + set max_text_width $env(X11VNC_GUI_TEXT_WIDTH) +} + if {"$argv" == "-spit"} { set fh [open $argv0 r] puts "#ifndef _TKX11VNC_H" diff --git a/x11vnc/tkx11vnc.h b/x11vnc/tkx11vnc.h index a39f0c5..146383d 100644 --- a/x11vnc/tkx11vnc.h +++ b/x11vnc/tkx11vnc.h @@ -105,6 +105,7 @@ char gui_code[] = ""; " gone:\n" " vncconnect\n" " -- D\n" +" filexfer\n" " =D http\n" " httpdir:\n" " httpport:\n" @@ -266,6 +267,8 @@ char gui_code[] = ""; " viewpasswd:\n" " =F passwdfile:\n" " =F rfbauth:\n" +" unixpw\n" +" unixpw_list:\n" " =0 storepasswd\n" " =GAL LOFF\n" " =GAL Misc-Perms::\n" @@ -273,6 +276,8 @@ char gui_code[] = ""; " =0S nevershared\n" " =0S dontdisconnect\n" " =SQA deny_all\n" +" stunnel\n" +" =F stunnel_pem:\n" " =GAL LOFF\n" "\n" "Tuning\n" @@ -528,6 +533,14 @@ char gui_code[] = ""; "Set the -xrandr mode value.\n" "\"\n" "\n" +" set helptext(unixpw_list) \"\n" +"Set the -unixpw_list usernames list value.\n" +"\"\n" +"\n" +" set helptext(stunnel_pem) \"\n" +"Set the -stunnel pem filename value.\n" +"\"\n" +"\n" " set helptext(wireframe_mode) \"\n" "Set the -wireframe mode string value.\n" "\"\n" @@ -3407,9 +3420,11 @@ char gui_code[] = ""; " global connected_to_x11vnc item_case item_menu item_entry menu_m\n" "\n" " foreach item [array names item_case] {\n" +" if ![info exists item_case($item)] { continue; }\n" " set case $item_case($item)\n" -"# set menu $menu_m($case)\n" +" if ![info exists item_menu($item)] { continue; }\n" " set menu $item_menu($item)\n" +" if ![info exists item_entry($item)] { continue; }\n" " set entry $item_entry($item)\n" " if {$entry < 0} {\n" " # skip case under beginner_mode \n" @@ -5402,6 +5417,10 @@ char gui_code[] = ""; " set nitem \"sb\"\n" " } elseif {$nitem == \"xrandr_mode\"} {\n" " set nitem \"xrandr\"\n" +" } elseif {$nitem == \"unixpw_list\"} {\n" +" set nitem \"unixpw\"\n" +" } elseif {$nitem == \"stunnel_pem\"} {\n" +" set nitem \"stunnel\"\n" " } elseif {$nitem == \"wireframe_mode\"} {\n" " set nitem \"wireframe\"\n" " } elseif {$nitem == \"solid_color\"} {\n" @@ -6000,6 +6019,13 @@ char gui_code[] = ""; " set have_labelframes 0\n" "}\n" "\n" +"if {[info exists env(X11VNC_GUI_TEXT_HEIGHT)]} {\n" +" set max_text_height $env(X11VNC_GUI_TEXT_HEIGHT)\n" +"}\n" +"if {[info exists env(X11VNC_GUI_TEXT_WIDTH)]} {\n" +" set max_text_width $env(X11VNC_GUI_TEXT_WIDTH)\n" +"}\n" +"\n" "if {\"$argv\" == \"-spit\"} {\n" " set fh [open $argv0 r]\n" " puts \"#ifndef _TKX11VNC_H\"\n" diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c index 1ab59d7..c5bf198 100644 --- a/x11vnc/unixpw.c +++ b/x11vnc/unixpw.c @@ -13,39 +13,37 @@ extern char *ptsname(int); #include "xinerama.h" #include <rfb/default8x16.h> -/* much to do for it to work on *BSD ... */ - #if LIBVNCSERVER_HAVE_FORK -#if LIBVNCSERVER_HAVE_SETSID #if LIBVNCSERVER_HAVE_SYS_WAIT_H -#if LIBVNCSERVER_HAVE_PWD_H -#if LIBVNCSERVER_HAVE_SETUID #if LIBVNCSERVER_HAVE_WAITPID -#if LIBVNCSERVER_HAVE_TERMIOS_H -#if LIBVNCSERVER_HAVE_SYS_IOCTL_H -#if LIBVNCSERVER_HAVE_GRANTPT #define UNIXPW -#include <sys/ioctl.h> -#include <termios.h> -#endif -#endif #endif #endif #endif + +#if LIBVNCSERVER_HAVE_SYS_IOCTL_H +#include <sys/ioctl.h> #endif +#if LIBVNCSERVER_HAVE_TERMIOS_H +#include <termios.h> #endif +#if 0 +#include <sys/stropts.h> #endif +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) +#define IS_BSD #endif void unixpw_screen(int init); void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init); -void unixpw_accept(void); +void unixpw_accept(char *user); void unixpw_deny(void); +int su_verify(char *user, char *pass); static int white(void); static int text_x(void); static int text_y(void); -static int su_verify(char *user, char *pass); +static void set_db(void); static void unixpw_verify(char *user, char *pass); int unixpw_in_progress = 0; @@ -56,6 +54,8 @@ static int in_login = 0, in_passwd = 0, tries = 0; static int char_row = 0, char_col = 0; static int char_x = 0, char_y = 0, char_w = 8, char_h = 16; +static int db = 0; + static int white(void) { static unsigned long black_pix = 0, white_pix = 1, set = 0; @@ -108,20 +108,203 @@ void unixpw_screen(int init) { mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0); } -static int su_verify(char *user, char *pass) { -#ifdef UNIXPW - int status, fd, sfd; + +#ifdef MAXPATHLEN +static char slave_str[MAXPATHLEN]; +#else +static char slave_str[4096]; +#endif + +char *get_pty_ptmx(int *fd_p) { char *slave; + int fd = -1, i, ndevs = 4, tmp; + char *devs[] = { + "/dev/ptmx", + "/dev/ptm/clone", + "/dev/ptc", + "/dev/ptmx_bsd" + }; + + *fd_p = -1; + +#if LIBVNCSERVER_HAVE_GRANTPT + + for (i=0; i < ndevs; i++) { + +#ifdef O_NOCTTY + fd = open(devs[i], O_RDWR|O_NOCTTY); +#else + fd = open(devs[i], O_RDWR); +#endif + if (fd >= 0) { + break; + } + } + + if (fd < 0) { + rfbLogPerror("open /dev/ptmx"); + return NULL; + } + +#if 0 +#if defined(FIONBIO) + tmp = 1; + ioctl(fd, FIONBIO, &tmp); +#endif +#endif + +#if LIBVNCSERVER_HAVE_SYS_IOCTL_H && defined(TIOCPKT) + tmp = 0; + ioctl(fd, TIOCPKT, (char *) &tmp); +#endif + + if (grantpt(fd) != 0) { + rfbLogPerror("grantpt"); + close(fd); + return NULL; + } + if (unlockpt(fd) != 0) { + rfbLogPerror("unlockpt"); + close(fd); + return NULL; + } + + slave = ptsname(fd); + if (! slave) { + rfbLogPerror("ptsname"); + close(fd); + return NULL; + } + +#if LIBVNCSERVER_HAVE_SYS_IOCTL_H && defined(TIOCFLUSH) + ioctl(fd, TIOCFLUSH, (char *) 0); +#endif + + + + strcpy(slave_str, slave); + *fd_p = fd; + return slave_str; + +#else + return NULL; + +#endif /* GRANTPT */ +} + + +char *get_pty_loop(int *fd_p) { + char *slave; + char master_str[16]; + int fd = -1, i; + char c; + + *fd_p = -1; + + /* for *BSD loop over /dev/ptyXY */ + + for (c = 'p'; c <= 'z'; c++) { + for (i=0; i < 16; i++) { + sprintf(master_str, "/dev/pty%c%x", c, i); +#ifdef O_NOCTTY + fd = open(master_str, O_RDWR|O_NOCTTY); +#else + fd = open(master_str, O_RDWR); +#endif + if (fd >= 0) { + break; + } + } + if (fd >= 0) { + break; + } + } + if (fd < 0) { + return NULL; + } + +#if LIBVNCSERVER_HAVE_SYS_IOCTL_H && defined(TIOCFLUSH) + ioctl(fd, TIOCFLUSH, (char *) 0); +#endif + + sprintf(slave_str, "/dev/tty%c%x", c, i); + *fd_p = fd; + return slave_str; +} + +char *get_pty(int *fd_p) { + if (getenv("BSD_PTY")) { + return get_pty_loop(fd_p); + } +#ifdef IS_BSD + return get_pty_loop(fd_p); +#else +#if LIBVNCSERVER_HAVE_GRANTPT + return get_pty_ptmx(fd_p); +#else + return get_pty_loop(fd_p); +#endif +#endif +} + +void try_to_be_nobody(void) { + +#if LIBVNCSERVER_HAVE_PWD_H + struct passwd *pw; + pw = getpwnam("nobody"); + + if (pw) { +#if LIBVNCSERVER_HAVE_SETUID + setuid(pw->pw_uid); +#endif +#if LIBVNCSERVER_HAVE_SETEUID + seteuid(pw->pw_uid); +#endif +#if LIBVNCSERVER_HAVE_SETGID + setgid(pw->pw_gid); +#endif +#if LIBVNCSERVER_HAVE_SETEGID + setegid(pw->pw_gid); +#endif + } + +#endif /* PWD_H */ +} + + +static int slave_fd = -1; +static void close_alarm (int sig) { + if (slave_fd >= 0) { + close(slave_fd); + } +} + +int su_verify(char *user, char *pass) { +#ifndef UNIXPW + return 0; +#else + int i, j, status, fd = -1, sfd, tfd; + char *slave, *bin_true = NULL, *bin_su = NULL; pid_t pid, pidw; struct stat sbuf; + static int first = 1; + char instr[16]; + + if (first) { + set_db(); + first = 0; + } if (unixpw_list) { - char *p, *str = strdup(unixpw_list); + char *p, *q, *str = strdup(unixpw_list); int ok = 0; p = strtok(str, ","); while (p) { - if (!strcmp(user, p)) { + if ( (q = strchr(p, ':')) != NULL ) { + *q = '\0'; /* get rid of options. */ + } + if (!strcmp(user, p) || !strcmp("*", p)) { ok = 1; break; } @@ -132,39 +315,40 @@ static int su_verify(char *user, char *pass) { return 0; } } - if (stat("/bin/su", &sbuf) != 0) { + + if (stat("/bin/su", &sbuf) == 0) { + bin_su = "/bin/su"; + } else if (stat("/usr/bin/su", &sbuf) == 0) { + bin_su = "/usr/bin/su"; + } + if (bin_su == NULL) { rfbLogPerror("existence /bin/su"); return 0; } - if (stat("/bin/true", &sbuf) != 0) { + + if (stat("/bin/true", &sbuf) == 0) { + bin_true = "/bin/true"; + } if (stat("/usr/bin/true", &sbuf) == 0) { + bin_true = "/usr/bin/true"; + } + if (bin_true == NULL) { rfbLogPerror("existence /bin/true"); return 0; } - - fd = open("/dev/ptmx", O_RDWR|O_NOCTTY); - if (fd < 0) { - rfbLogPerror("open /dev/ptmx"); + slave = get_pty(&fd); + if (slave == NULL) { + rfbLogPerror("get_pty failed."); return 0; } +if (db) fprintf(stderr, "slave is: %s fd=%d\n", slave, fd); - if (grantpt(fd) != 0) { - rfbLogPerror("grantpt"); - close(fd); - return 0; - } - if (unlockpt(fd) != 0) { - rfbLogPerror("unlockpt"); - close(fd); + if (fd < 0) { + rfbLogPerror("get_pty fd < 0"); return 0; } - slave = ptsname(fd); - if (! slave) { - rfbLogPerror("ptsname"); - close(fd); - return 0; - } + fcntl(fd, F_SETFD, 1); pid = fork(); if (pid < 0) { @@ -175,40 +359,28 @@ static int su_verify(char *user, char *pass) { if (pid == 0) { int ttyfd; - struct passwd *pw; - - close(fd); - - pw = getpwnam("nobody"); - - if (pw) { - setuid(pw->pw_uid); -#if LIBVNCSERVER_HAVE_SETEUID - seteuid(pw->pw_uid); -#endif - setgid(pw->pw_gid); -#if LIBVNCSERVER_HAVE_SETEGID - setegid(pw->pw_gid); -#endif - } - - if (getuid() == 0 || geteuid() == 0) { - fprintf(stderr, "could not switch to user nobody.\n"); - exit(1); - } + char tmp[256]; +#if LIBVNCSERVER_HAVE_SETSID if (setsid() == -1) { perror("setsid"); exit(1); } +#else + if (setpgrp() == -1) { + perror("setpgrp"); + exit(1); + } -#ifdef TIOCNOTTY +#if LIBVNCSERVER_HAVE_SYS_IOCTL_H && defined(TIOCNOTTY) ttyfd = open("/dev/tty", O_RDWR); if (ttyfd >= 0) { - (void) ioctl(ttyfd, TIOCNOTTY, (char *)0); + (void) ioctl(ttyfd, TIOCNOTTY, (char *) 0); close(ttyfd); } -#endif +#endif + +#endif /* SETSID */ close(0); close(1); @@ -216,24 +388,189 @@ static int su_verify(char *user, char *pass) { sfd = open(slave, O_RDWR); if (sfd < 0) { - fprintf(stderr, "failed: %s\n", slave); - perror("open"); exit(1); } -#ifdef TIOCSCTTY - if (ioctl(sfd, TIOCSCTTY, (char *) 0) != 0) { - perror("ioctl"); + /* sfd should be 0 since we closed 0. */ + +#ifdef F_SETFL + fcntl (sfd, F_SETFL, O_NONBLOCK); +#endif + if (fcntl(sfd, F_DUPFD, 1) == -1) { + exit(1); + } + if (fcntl(sfd, F_DUPFD, 2) == -1) { + exit(1); + } + + unlink("/tmp/isatty"); + unlink("/tmp/isastream"); +#if LIBVNCSERVER_HAVE_SYS_IOCTL_H +#if 0 + if (isastream(sfd)) { +tfd = open("/tmp/isastream", O_CREAT|O_WRONLY, 0600); +close(tfd); + ioctl(sfd, I_PUSH, "ptem"); + ioctl(sfd, I_PUSH, "ldterm"); + ioctl(sfd, I_PUSH, "ttcompat"); + } +#endif +#if 1 +#if defined(TIOCSCTTY) && !defined(sun) && !defined(hpux) + ioctl(sfd, TIOCSCTTY, (char *) 0); +#endif +#endif + if (isatty(sfd)) { + char nam[256]; +tfd = open("/tmp/isatty", O_CREAT|O_WRONLY, 0600); +close(tfd); + sprintf(nam, "stty -a < %s > /tmp/isatty 2>&1", slave); + system(nam); + } + +#endif /* SYS_IOCTL_H */ + + chdir("/"); + + try_to_be_nobody(); +#if LIBVNCSERVER_HAVE_GETUID + if (getuid() == 0 || geteuid() == 0) { exit(1); } +#else + exit(1); #endif - execlp("/bin/su", "/bin/su", user, "-c", "/bin/true", - (char *) NULL); + + set_env("LC_ALL", "C"); + set_env("LANG", "C"); + set_env("SHELL", "/bin/sh"); + + execlp(bin_su, bin_su, user, "-c", bin_true, (char *) NULL); exit(1); } + if (db) fprintf(stderr, "pid: %d\n", pid); + if (db > 3) { + char cmd[32]; + usleep( 100 * 1000 ); + sprintf(cmd, "ps wu %d", pid); + system(cmd); + sprintf(cmd, "stty -a < %s", slave); + system(cmd); + } + usleep( 500 * 1000 ); + + /* send the password "early" (i.e. before we drain) */ +if (0) { + int k; + for (k = 0; k < strlen(pass); k++) { + write(fd, pass+k, 1); + usleep(100 * 1000); + } +} else { write(fd, pass, strlen(pass)); +} + + /* + * set an alarm for blocking read() to close the master + * (presumably terminating the child. we avoid SIGTERM for now) + */ + slave_fd = fd; + signal(SIGALRM, close_alarm); + alarm(10); + + /* + * In addition to checking exit code below, we watch for the + * appearance of the string "Password:". BSD does not seem to + * ask for a password trying to su to yourself. + */ + for (i=0; i<16; i++) { + instr[i] = '\0'; + } + j = 0; + for (i=0; i < strlen("Password:"); i++) { + char pstr[] = "password:"; + char buf[2]; + int n; + + buf[0] = '\0'; + buf[1] = '\0'; + + n = read(fd, buf, 1); + +if (db == 1) fprintf(stderr, "%d ", n, db > 1 ? buf : ""); +if (db > 1) fprintf(stderr, "%s", buf); + + if (db > 3 && n == 1 && buf[0] == ':') { + char cmd[32]; + usleep( 100 * 1000 ); + sprintf(cmd, "ps wu %d", pid); + system(cmd); + sprintf(cmd, "stty -a < %s", slave); + system(cmd); + } + if (n == 1) { + if (isspace(buf[0])) { + continue; + } + instr[j++] = tolower(buf[0]); + } + if (n <= 0 || strstr(pstr, instr) != pstr) { + rfbLog("\"Password:\" did not appear: '%s' n=%d\n", + instr, n); + if (db > 3 && n == 1) { + continue; + } + alarm(0); + signal(SIGALRM, SIG_DFL); + slave_fd = -1; + close(fd); + kill(pid, SIGTERM); + waitpid(pid, &status, WNOHANG); + return 0; + } + } + alarm(0); + signal(SIGALRM, SIG_DFL); + + usleep( 250 * 1000 ); + +#if 0 + tcdrain(fd); +#endif + + signal(SIGALRM, close_alarm); + alarm(15); + + /* + * try to drain the output, hopefully never as much as 4096 (motd?) + * if we don't drain we may block at waitpid. If we close(fd), the + * make cause child to die by signal. + */ + for (i = 0; i<4096; i++) { + char buf[2]; + int n; + + buf[0] = '\0'; + buf[1] = '\0'; + + n = read(fd, buf, 1); + +if (db == 1) fprintf(stderr, "%d ", n, db > 1 ? buf : ""); +if (db > 1) fprintf(stderr, "%s", buf); + + if (n <= 0) { + break; + } + } + +if (db) fprintf(stderr, "\n"); + + alarm(0); + signal(SIGALRM, SIG_DFL); + slave_fd = -1; + pidw = waitpid(pid, &status, 0); close(fd); @@ -241,26 +578,23 @@ static int su_verify(char *user, char *pass) { return 0; } if (WIFEXITED(status) && WEXITSTATUS(status) == 0) { - return 1; + return 1; /* this is the only return of success. */ } else { return 0; } -#else - return 0; -#endif +#endif /* UNIXPW */ } -static int db = 0; - static void unixpw_verify(char *user, char *pass) { int x, y; char li[] = "Login incorrect"; char log[] = "login: "; if (db) fprintf(stderr, "unixpw_verify: '%s' '%s'\n", user, db > 1 ? pass : "********"); + rfbLog("unixpw_verify: %s\n", user); if (su_verify(user, pass)) { - unixpw_accept(); + unixpw_accept(user); return; } @@ -290,16 +624,20 @@ if (db) fprintf(stderr, "unixpw_verify: '%s' '%s'\n", user, db > 1 ? pass : "*** } } +static void set_db(void) { + if (getenv("DEBUG_UNIXPW")) { + db = atoi(getenv("DEBUG_UNIXPW")); + } +} + void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) { int x, y, i, nmax = 100; static char user[100], pass[100]; static int u_cnt = 0, p_cnt = 0, first = 1; - char str[100]; + char keystr[100]; if (first) { - if (getenv("DEBUG_UNIXPW")) { - db = atoi(getenv("DEBUG_UNIXPW")); - } + set_db(); first = 0; } @@ -319,7 +657,18 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) { return; } - if (down) { + X_LOCK; + sprintf(keystr, "%s", XKeysymToString(keysym)); + X_UNLOCK; + + if (db > 2) { + fprintf(stderr, "%s / %s 0x%x %s\n", in_login ? "login":"pass ", + down ? "down":"up ", keysym, keystr); + } + + if (keysym == XK_Return || keysym == XK_Linefeed) { + ; /* let "up" pass down below for Return case */ + } else if (! down) { return; } @@ -340,6 +689,14 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) { if (keysym == XK_Return || keysym == XK_Linefeed) { char pw[] = "Password: "; + if (down) { + /* + * require Up so the Return Up is not processed + * by the normal session after login. + */ + return; + } + in_login = 0; in_passwd = 1; @@ -360,23 +717,23 @@ void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init) { } if (u_cnt >= nmax - 1) { rfbLog("unixpw_deny: username too long\n"); + for (i=0; i<nmax; i++) { + user[i] = '\0'; + pass[i] = '\0'; + } unixpw_deny(); return; } - X_LOCK; - sprintf(str, "%s", XKeysymToString(keysym)); - X_UNLOCK; - - user[u_cnt++] = str[0]; + user[u_cnt++] = keystr[0]; x = text_x(); y = text_y(); -if (db) fprintf(stderr, "u_cnt: %d %d/%d ks: 0x%x %s\n", u_cnt, x, y, keysym, str); +if (db && db <= 2) fprintf(stderr, "u_cnt: %d %d/%d ks: 0x%x %s\n", u_cnt, x, y, keysym, keystr); - str[1] = '\0'; - rfbDrawString(screen, &default8x16Font, x, y, str, white()); + keystr[1] = '\0'; + rfbDrawString(screen, &default8x16Font, x, y, keystr, white()); mark_rect_as_modified(x, y-char_h, x+char_w, y, 0); char_col++; @@ -390,10 +747,21 @@ if (db) fprintf(stderr, "u_cnt: %d %d/%d ks: 0x%x %s\n", u_cnt, x, y, keysym, s return; } if (keysym == XK_Return || keysym == XK_Linefeed) { + if (down) { + /* + * require Up so the Return Up is not processed + * by the normal session after login. + */ + return; + } in_login = 0; in_passwd = 0; pass[p_cnt++] = '\n'; unixpw_verify(user, pass); + for (i=0; i<nmax; i++) { + user[i] = '\0'; + pass[i] = '\0'; + } return; } if (keysym <= ' ' || keysym >= 0x7f) { @@ -401,14 +769,86 @@ if (db) fprintf(stderr, "u_cnt: %d %d/%d ks: 0x%x %s\n", u_cnt, x, y, keysym, s } if (p_cnt >= nmax - 2) { rfbLog("unixpw_deny: password too long\n"); + for (i=0; i<nmax; i++) { + user[i] = '\0'; + pass[i] = '\0'; + } unixpw_deny(); return; } pass[p_cnt++] = (char) keysym; + } else { + /* should not happen... clean up a bit. */ + u_cnt = 0; + p_cnt = 0; + for (i=0; i<nmax; i++) { + user[i] = '\0'; + pass[i] = '\0'; + } } } -void unixpw_accept(void) { +static void apply_opts (char *user) { + char *p, *q, *str, *opts = NULL, *opts_star = NULL; + ClientData *cd = (ClientData *) unixpw_client->clientData; + rfbClientPtr cl = unixpw_client; + int i; + + if (! unixpw_list) { + return; + } + str = strdup(unixpw_list); + + /* apply any per-user options. */ + p = strtok(str, ","); + while (p) { + if ( (q = strchr(p, ':')) != NULL ) { + *q = '\0'; /* get rid of options. */ + } else { + p = strtok(NULL, ","); + continue; + } + if (!strcmp(user, p)) { + opts = strdup(q+1); + } + if (!strcmp("*", p)) { + opts_star = strdup(q+1); + } + p = strtok(NULL, ","); + } + free(str); + + for (i=0; i < 2; i++) { + char *s = (i == 0) ? opts_star : opts; + if (s == NULL) { + continue; + } + p = strtok(s, "+"); + while (p) { + if (!strcmp(p, "viewonly")) { + cl->viewOnly = TRUE; + strncpy(cd->input, "-", CILEN); + } else if (!strcmp(p, "fullaccess")) { + cl->viewOnly = FALSE; + strncpy(cd->input, "-", CILEN); + } else if ((q = strstr(p, "input=")) == p) { + q += strlen("input="); + strncpy(cd->input, q, CILEN); + } else if (!strcmp(p, "deny")) { + cl->viewOnly = TRUE; + unixpw_deny(); + break; + } + p = strtok(NULL, "+"); + } + free(s); + } +} + +void unixpw_accept(char *user) { + + apply_opts(user); + unixpw_in_progress = 0; unixpw_client = NULL; mark_rect_as_modified(0, 0, dpy_x, dpy_y, 0); diff --git a/x11vnc/unixpw.h b/x11vnc/unixpw.h index 5d22e63..a57d2e3 100644 --- a/x11vnc/unixpw.h +++ b/x11vnc/unixpw.h @@ -5,8 +5,9 @@ extern void unixpw_screen(int init); extern void unixpw_keystroke(rfbBool down, rfbKeySym keysym, int init); -extern void unixpw_accept(void); +extern void unixpw_accept(char *user); extern void unixpw_deny(void); +extern int su_verify(char *user, char *pass); extern int unixpw_in_progress; extern time_t unixpw_last_try_time; diff --git a/x11vnc/x11vnc.1 b/x11vnc/x11vnc.1 index 16b6e5f..966de54 100644 --- a/x11vnc/x11vnc.1 +++ b/x11vnc/x11vnc.1 @@ -1,8 +1,8 @@ .\" This file was automatically generated from x11vnc -help output. -.TH X11VNC "1" "February 2006" "x11vnc " "User Commands" +.TH X11VNC "1" "March 2006" "x11vnc " "User Commands" .SH NAME x11vnc - allow VNC connections to real X11 displays - version: 0.8.1, lastmod: 2006-02-24 + version: 0.8.1, lastmod: 2006-03-02 .SH SYNOPSIS .B x11vnc [OPTION]... @@ -497,9 +497,10 @@ full-access passwords) Experimental option: use Unix username and password authentication. x11vnc uses the .IR su (1) -program to -verify the user's password. [list] is an optional -comma separated list of allowed Unix usernames. +program to verify +the user's password. [list] is an optional comma +separated list of allowed Unix usernames. See below +for per-user options that can be applied. .IP A familiar "login:" and "Password:" dialog is presented to the user on a black screen inside the @@ -508,6 +509,25 @@ to supply the correct password in 3 tries or does not send one before a 20 second timeout. Existing clients are view-only during this period. .IP +Since the detailed behavior of +.IR su (1) +can vary from +OS to OS and for local configurations, please test +the mode carefully on your systems before using it. +Try different combinations of valid/invalid usernames +and passwords. +.IP +For example, on FreeBSD and the other BSD's and Tru64 +it does not appear to be possible for the user running +x11vnc to validate his *own* password via +.IR su (1). +The x11vnc login will always fail in this case. +A possible workaround would be to start x11vnc as +root with the "\fB-users\fR \fI+nobody\fR" option to immediately +switch to user nobody. Another source of problems are +PAM modules that prompt for extra info, e.g. password +aging modules. These logins will always fail as well. +.IP *IMPORTANT*: to prevent the Unix password being sent in *clear text* over the network, two x11vnc options are enforced: 1) \fB-localhost\fR and 2) \fB-stunnel.\fR The former @@ -531,6 +551,15 @@ with user login (since Unix password or the user's public key authentication is used by ssh) .IP +As a convenience, if you +.IR ssh (1) +in and start x11vnc +it will look to see if the environment variable +SSH_CONNECTION is set and appears reasonable. If it +does, then the stunnel requirement is dropped since +it is assumed you are using ssh for the encrypted +tunnelling. Use \fB-stunnel\fR to force stunnel usage. +.IP Set UNIXPW_DISABLE_LOCALHOST=1 to disable the \fB-localhost\fR requirement. One should never do this (i.e. allow the Unix passwords to be sniffed on the network). @@ -539,7 +568,19 @@ NOTE: in \fB-inetd\fR mode the two settings are not enforced since x11vnc does not make network connections in that case. Be sure to use encryption from the viewer to inetd. One can also have your own stunnel spawn -x11vnc in \fB-inetd\fR mode. +x11vnc in \fB-inetd\fR mode. See the FAQ. +.IP +The user names in the comma separated [list] can have +per-user options after a ":", e.g. "fred:opts" +where "opts" is a "+" separated list of +"viewonly", "fullaccess", "input=XXXX", or +"deny", e.g. "karl,fred:viewonly,boss:input=M". +For "input=" it is the K,M,B,C describe under \fB-input.\fR +.IP +If a user in the list is "*" that means those options +apply to all users. It also means all users are allowed +to log in. Use "deny" to explicitly deny some users +if you use "*" to set a global option. .PP \fB-stunnel\fR \fI[pem]\fR .IP @@ -549,17 +590,22 @@ Use the encrypted SSL tunnel between viewers and x11vnc. This requires stunnel be installed on the system and available via PATH (n.b. stunnel is often installed in -sbin directories). Version 4.x of stunnel is assumed. +sbin directories). Version 4.x of stunnel is assumed; +see \fB-stunnel3\fR below. .IP [pem] is optional, use "\fB-stunnel\fR \fI/path/to/stunnel.pem\fR" to specify a PEM certificate file to pass to stunnel. +Whether one is needed or not depends on your stunnel +configuration. .IP -stunnel is started up as a child process and any SSL -connections it receives are decrypted and sent to x11vnc -over a local socket. The strings "The SSL VNC desktop -is ..." and SSLPORT=... are printed out at startup. +stunnel is started up as a child process of x11vnc and +any SSL connections stunnel receives are decrypted and +sent to x11vnc over a local socket. The strings "The +SSL VNC desktop is ..." and SSLPORT=... are printed +out at startup. .IP -The \fB-localhost\fR option is enforced by default. Set +The \fB-localhost\fR option is enforced by default to +avoid people routing around the SSL channel. Set STUNNEL_DISABLE_LOCALHOST=1 to disable the requirement. .IP Your VNC viewer will need to be able to connect via SSL. @@ -573,7 +619,8 @@ A simple example on Unix using stunnel 3.x is: % vncviewer localhost:1 .IP For Windows, stunnel has been ported to it and there -are probably other such tools available. +are probably other such tools available. See the FAQ +for more examples. .PP \fB-stunnel3\fR \fI[pem]\fR .IP @@ -685,8 +732,9 @@ Example: \fB-afteraccept\fR 'killall xlock &' As \fB-accept,\fR except to run a user supplied command when a client goes away (disconnects). RFB_MODE will be set to "gone" and the other RFB_* variables are as -in \fB-accept.\fR Unlike \fB-accept,\fR the command return code -is not interpreted by x11vnc. Example: \fB-gone\fR 'xlock &' +in \fB-accept.\fR The "popup" actions apply as well. +Unlike \fB-accept,\fR the command return code is not +interpreted by x11vnc. Example: \fB-gone\fR 'xlock &' .PP \fB-users\fR \fIlist\fR .IP @@ -2183,6 +2231,10 @@ timeout:n reset \fB-timeout\fR to n, if there are currently no clients, exit unless one connects in the next n secs. .IP +filexfer enable filetransfer for new clients. +.IP +nofilexfer disable filetransfer for new clients. +.IP http enable http client connections. .IP nohttp disable http client connections. @@ -2600,11 +2652,11 @@ nowaitmapped clip flashcmap noflashcmap shiftcmap truecolor notruecolor overlay nooverlay overlay_cursor overlay_yescursor nooverlay_nocursor nooverlay_cursor nooverlay_yescursor overlay_nocursor 8to24 no8to24 -8to24_opts visual scale scale_cursor viewonly -noviewonly shared noshared forever noforever once -timeout filexfer deny lock nodeny unlock connect -allowonce allow localhost nolocalhost listen lookup -nolookup accept afteraccept gone shm noshm flipbyteorder +8to24_opts visual scale scale_cursor viewonly noviewonly +shared noshared forever noforever once timeout filexfer +nofilexfer deny lock nodeny unlock connect allowonce +allow localhost nolocalhost listen lookup nolookup +accept afteraccept gone shm noshm flipbyteorder noflipbyteorder onetile noonetile solid_color solid nosolid blackout xinerama noxinerama xtrap noxtrap xrandr noxrandr xrandr_mode padgeom quiet q noquiet @@ -2643,14 +2695,15 @@ http_url auth xauth users rootshift clipshift scale_str scaled_x scaled_y scale_numer scale_denom scale_fac scaling_blend scaling_nomult4 scaling_pad scaling_interpolate inetd privremote unsafe safer nocmds -passwdfile using_shm logfile o flag rc norc h help V -version lastmod bg sigpipe threads readrate netrate -netlatency pipeinput clients client_count pid ext_xtest -ext_xtrap ext_xrecord ext_xkb ext_xshm ext_xinerama -ext_overlay ext_xfixes ext_xdamage ext_xrandr rootwin -num_buttons button_mask mouse_x mouse_y bpp depth -indexed_color dpy_x dpy_y wdpy_x wdpy_y off_x off_y -cdpy_x cdpy_y coff_x coff_y rfbauth passwd viewpasswd +passwdfile unixpw unixpw_list stunnel stunnel_pem +using_shm logfile o flag rc norc h help V version +lastmod bg sigpipe threads readrate netrate netlatency +pipeinput clients client_count pid ext_xtest ext_xtrap +ext_xrecord ext_xkb ext_xshm ext_xinerama ext_overlay +ext_xfixes ext_xdamage ext_xrandr rootwin num_buttons +button_mask mouse_x mouse_y bpp depth indexed_color +dpy_x dpy_y wdpy_x wdpy_y off_x off_y cdpy_x cdpy_y +coff_x coff_y rfbauth passwd viewpasswd .PP \fB-QD\fR \fIvariable\fR .IP diff --git a/x11vnc/x11vnc.c b/x11vnc/x11vnc.c index c341ce3..6856380 100644 --- a/x11vnc/x11vnc.c +++ b/x11vnc/x11vnc.c @@ -904,6 +904,7 @@ static void print_settings(int try_http, int bg, char *gui_str) { fprintf(stderr, "Settings:\n"); fprintf(stderr, " display: %s\n", use_dpy ? use_dpy : "null"); +#if SMALL_FOOTPRINT < 2 fprintf(stderr, " authfile: %s\n", auth_file ? auth_file : "null"); fprintf(stderr, " subwin: 0x%lx\n", subwin); @@ -940,6 +941,7 @@ static void print_settings(int try_http, int bg, char *gui_str) { fprintf(stderr, " passfile: %s\n", passwdfile ? passwdfile : "null"); fprintf(stderr, " unixpw: %d\n", unixpw); + fprintf(stderr, " unixpw_lst: %s\n", unixpw_list ? unixpw_list:"null"); fprintf(stderr, " stunnel: %d\n", use_stunnel); fprintf(stderr, " accept: %s\n", accept_cmd ? accept_cmd : "null"); @@ -1073,6 +1075,7 @@ static void print_settings(int try_http, int bg, char *gui_str) { fprintf(stderr, " nocmds: %d\n", no_external_cmds); fprintf(stderr, " deny_all: %d\n", deny_all); fprintf(stderr, "\n"); +#endif rfbLog("x11vnc version: %s\n", lastmod); } @@ -1282,6 +1285,7 @@ int main(int argc, char* argv[]) { } else if (!strcmp(arg, "-overlay_yescursor")) { overlay = 1; overlay_cursor = 2; +#if !SKIP_8TO24 } else if (!strcmp(arg, "-8to24")) { cmap8to24 = 1; if (i < argc-1) { @@ -1291,6 +1295,7 @@ int main(int argc, char* argv[]) { i++; } } +#endif } else if (!strcmp(arg, "-visual")) { CHECK_ARGC visual_str = strdup(argv[++i]); @@ -1359,14 +1364,36 @@ int main(int argc, char* argv[]) { CHECK_ARGC passwdfile = strdup(argv[++i]); got_passwdfile = 1; - } else if (!strcmp(arg, "-unixpw")) { + } else if (!strcmp(arg, "-unixpw") + || !strcmp(arg, "-unixpw_unsafe")) { unixpw = 1; if (i < argc-1) { - char *s = argv[i+1]; + char *p, *q, *s = argv[i+1]; if (s[0] != '-') { unixpw_list = strdup(s); i++; } + if (s[0] == '%') { + p = unixpw_list; + unixpw_list = NULL; + strcpy(p, s+1); + strcat(p, "\n"); /* just fits */ + if ((q = strchr(p, ':')) == NULL) { + exit(1); + } + *q = '\0'; + if (su_verify(p, q+1)) { + fprintf(stderr, "\nY\n"); + } else { + fprintf(stderr, "\nN\n"); + } + exit(0); + } + } + if (!strcmp(arg, "-unixpw_unsafe")) { + /* hidden option for testing. */ + set_env("UNIXPW_DISABLE_STUNNEL", "1"); + set_env("UNIXPW_DISABLE_LOCALHOST", "1"); } } else if (!strcmp(arg, "-stunnel")) { use_stunnel = 1; @@ -2079,11 +2106,15 @@ int main(int argc, char* argv[]) { allow_list = strdup("127.0.0.1"); got_localhost = 1; } - if (! got_stunnel && ! getenv("UNIXPW_DISABLE_STUNNEL")) { - if (! quiet) { - rfbLog("Setting -stunnel in -unixpw mode.\n"); + if (! got_stunnel) { + if (! getenv("UNIXPW_DISABLE_STUNNEL") && + ! have_ssh_env()) { + if (! quiet) { + rfbLog("Setting -stunnel in -unixpw " + "mode.\n"); + } + use_stunnel = 1; } - use_stunnel = 1; } } else if (use_stunnel) { diff --git a/x11vnc/x11vnc.h b/x11vnc/x11vnc.h index e59a2a6..216a7d2 100644 --- a/x11vnc/x11vnc.h +++ b/x11vnc/x11vnc.h @@ -116,15 +116,18 @@ #define NOGUI #endif +#define SKIP_XKB 0 +#define SKIP_8TO24 0 + #if (SMALL_FOOTPRINT > 1) -#undef LIBVNCSERVER_HAVE_XKEYBOARD +#undef SKIP_XKB +#undef SKIP_8TO24 #undef LIBVNCSERVER_HAVE_LIBXINERAMA -#undef LIBVNCSERVER_HAVE_LIBXRANDR #undef LIBVNCSERVER_HAVE_LIBXFIXES #undef LIBVNCSERVER_HAVE_LIBXDAMAGE -#define LIBVNCSERVER_HAVE_XKEYBOARD 0 +#define SKIP_XKB 1 +#define SKIP_8TO24 1 #define LIBVNCSERVER_HAVE_LIBXINERAMA 0 -#define LIBVNCSERVER_HAVE_LIBXRANDR 0 #define LIBVNCSERVER_HAVE_LIBXFIXES 0 #define LIBVNCSERVER_HAVE_LIBXDAMAGE 0 #endif diff --git a/x11vnc/x11vnc_defs.c b/x11vnc/x11vnc_defs.c index e8db360..0ef636c 100644 --- a/x11vnc/x11vnc_defs.c +++ b/x11vnc/x11vnc_defs.c @@ -15,7 +15,7 @@ int xtrap_base_event_type = 0; int xdamage_base_event_type = 0; /* date +'lastmod: %Y-%m-%d' */ -char lastmod[] = "0.8.1 lastmod: 2006-02-24"; +char lastmod[] = "0.8.1 lastmod: 2006-03-02"; /* X display info */ |