gdm with x11vnc not honoring KillInitClients

Bug #217892 reported by Andrew
42
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gdm (Ubuntu)
Confirmed
Low
Ubuntu Desktop Bugs
x11vnc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gdm

I have been starting x11vnc from within /etc/gdm/Init/Default for sometime now. After re-building my machine, going from Gutsy i386 to Hardy Beta amd64 my x11vnc no longer continues to run post login.

Versions:
gdm 2.20.5-0ubuntu2
x11vnc 0.9.3.dfsg.1-1ubuntu1

What I have done:
edit /etc/gdm/gdm.conf, in the [daemon] section, set KillInitClients=false
edit /etc/gdm/Init/Default, added "/etc/init.d/x11vnc start" at the top before the gdmwhich function.

My /etc/init.d/x11vnc file executes using these environment variables:
NAME=x11vnc
DAEMON=/usr/bin/x11vnc
PIDFILE="/var/run/$NAME.pid"
AUTHFILE="/var/lib/gdm/:0.Xauth"
LOGFILE="/var/log/$NAME.log"
VNCUSERS="`/bin/sed -n '/gdmauth/s/^.*://p' /etc/group | /bin/sed 's/,/,+/' | /bin/sed 's/^/+/'`"
RFBAUTH="/etc/vnc/passwd"
X11VNC_ARGS="-forever -xrandr -bg -nobell -auth $AUTHFILE -usepw -rfbauth $RFBAUTH -o $LOGFILE -input KMBCF -noxdamage -display :0.0"

x11vnc is started fine on start of gdm, but the process is terminated when I log in.

In the x11vnc.log file I see this when I log in:

caught XIO error:
15/04/2008 14:12:17 deleted 50 tile_row polling images.

So possibly this is a bug in x11vnc and not gdm, but I do not know.

What other information can I provide?

Thanks.

Changed in gdm:
importance: Undecided → Low
Revision history for this message
bofh.bug (bofh-bug) wrote :

As workaound, have you tryd the way via the inetd?
http://www.thelinuxvault.net/wiki/X11vnc
(for me, with Hardy on amd64 it workd).

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you still get the issue? does running x11vnc in a normal session works correctly?

Changed in gdm:
status: New → Incomplete
Revision history for this message
Ákos Mattiassich (mattiassicha) wrote :

I have the same issue, after upgrading from 8.04 to 8.10. Gdm starts and i can type my username + password,
but if i hit enter, the connection breaks.
As workaround i can login in "safety mode".

Revision history for this message
TJ (tjosselin) wrote :

Use option "-noxfixes" to disable usage of custom mouse cursor

http://ubuntuforums.org/showthread.php?t=965695

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could somebody try if that's still an issue in jaunty or karmic?

Revision history for this message
MichalR (rehak-michal) wrote :

I have this issue in jaunty.
x11vnc option "-noxfixes" helps but then cursors are ugly.

I have found this upstream bug http://bugs.freedesktop.org/show_bug.cgi?id=18451

Changed in gdm (Ubuntu):
status: Incomplete → Triaged
status: Triaged → Confirmed
status: Confirmed → Triaged
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
status: Triaged → Incomplete
Revision history for this message
Gustavo Narea (gnarea) wrote :

Why is this bug incomplete? I can't find any unanswered question.

Please let me know if you need more information. I'm facing this bug in Jaunty too and I'd love to help.

It'd also be great to upgrade x11vnc. The version provided for Jaunty is pretty, pretty old (it was released two years ago!). Newer versions support a new argument (-reopen) which fixes the ugly cursor issue caused by the -noxfixes workaround.

Revision history for this message
Jonathon Conte (thesicktwist) wrote :

I believe that I am experiencing a similar issue on Ubuntu 9.10 beta. When I run x11vnc as the gdm user I am able to see the gdm login screen, select a user name and enter a password via VNC. After entering the password if I press the Enter key or click login then x11vnc closes and gdm remains running. It works as expected if I use -noxfixes with x11vnc as suggested earlier in this bug report.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is an upstream one and it would be nice if somebody having it could send the bug the to the people writting the software (https://wiki.ubuntu.com/Bugs/Upstream/GNOME)

Changed in gdm (Ubuntu):
status: Incomplete → New
Revision history for this message
Corey Gallon (captivus) wrote :

This problem was affecting me, also. It seems that gdm kills all clients immediately upon logging in, which effectively snuffs the x11vnc server, also. I have resolved this problem, however, by downloading the latest stable release (0.9.12) of x11vnc (http://www.karlrunge.com/x11vnc/) and building it from source. The latest version of x11vnc attempts to reopen after gdm kills all connected clients. The version currently in the repo does not.

It would seem that the gdm option "KillInitClients=false" is no longer supported, which would have been a viable workaround for this issue.

Changed in gdm (Ubuntu):
status: New → Confirmed
Changed in libvncserver (Ubuntu):
status: New → Confirmed
affects: libvncserver (Ubuntu) → x11vnc (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.