There's a bug in VNC Server that shows up in Linux causing it to refuse connections due to a buffer overflow. Attached is a patch. I can't take credit, though. I found the fix by searching VNC mailing list archives. http://www.uk.research.att.com/vnc/archives/2000-03/0144.html To use the patch: tar xvzf vnc-3.3.3r1_unixsrc.tgz cd vnc_unixsrc patch -c -p0 < vnc_unixsrc_linux_patch If for some reason that doesn't work, just edit the patched source file manually. It's only a one line change. BTW If you use VNC on lots of machines I have a simple install script for easing installation. I suppose I should learn how to write a .spec file and create an rpm. Oh, and your old session is lost. Kill the Xvnc process. R. > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 26, 2000 4:51 PM > To: [EMAIL PROTECTED] > Subject: Rescuing a VNC session > > Sometimes I'll leave my VNC viewer open on Windows, connected to the Linux > VNC server, and when I come back it will have closed for some reason. But if > I telnet to the linux box, all the apps that I left open are still open, and > running, and even the VNC server is still running. But if I try to reconnect > the client, even with the "request shared session" option, it will > authenticate and start to open up the viewer window, then suddenly close. > And there's nothing I can see to do about it. Has anyone else had this > trouble, and is there any other way to reconnect to that xsession in order > to, for instance, save my work? > > JW > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list >
######## patch -c -p0 < vnc_unixsrc_linux_patch *** Xvnc/programs/Xserver/hw/vnc/hextile.c Thu Aug 24 11:09:16 2000 --- Xvnc/programs/Xserver/hw/vnc/hextile.c Thu Aug 24 11:11:45 2000 *************** *** 120,126 **** if (ry+rh - y < 16) \ h = ry+rh - y; \ \ ! if ((ublen + 1 + 16*16*(bpp/8)) > UPDATE_BUF_SIZE) { \ if (!rfbSendUpdateBuf(cl)) \ return FALSE; \ } \ --- 120,126 ---- if (ry+rh - y < 16) \ h = ry+rh - y; \ \ ! if ((ublen + 1 + (2 + 16*16)*(bpp/8)) > UPDATE_BUF_SIZE) { \ if (!rfbSendUpdateBuf(cl)) \ return FALSE; \ } \