Wednesday, November 18, 2009

Use x11vnc on Ubuntu 9.10

x11vnc is a vnc server mentioned on ubuntu guide.
After installed it, I met a problem when using vnc viewer (client) after system reboot. The client could connect to the server, but the connection broke when login. "XIO error" appeared on the server.

After a little google work. Set KillInitClients to be false in gdm configuration should help. (See x11vnc FAQ.)
Setting KillInitClients=false in the [daemon] section of /etc/X11/gdm/gdm.conf (or /etc/gdm/gdm.conf, etc.) avoids this.
But a similar configuration file, /etc/init/gdm.conf, seems not the right one. Instead, /etc/gdm/gdm.schemas, looks closer. Its meaning is on GDM 2.22 Configuration. Set security/DisallowTCP to be false is the answer I needed.


Reference
  • x11vnc: a VNC server for real X displays
  • x11vnc FAQ: Q-59: 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.)

x11vnc version: x11vnc: 0.9.3 lastmod: 2007-09-30

No comments: