


Adding an exec line instead that runs Xvfb was enough to get lightdm working with Xvfb. Īfter that, I modified /etc/X11/xinit/xserverrc so as to start Xvfb instead of a real X server (note that I commented out the original X exec line that passes the command line arguments on to X). First step to work around this is adding a line 'xserver-command' to lightdm's configuration file /etc/lightdm/nf (it defaults to xserver-command=X). Obviously, as you reported, lightdm tries to instantiate its own X server and passes some arguments that Xvfb can't handle. So have a look at them by issuing the following command. I figured out that all configuration options of nf are documented in /usr/share/doc/lightdm/. I found a working solution doing the following steps. Also wanted to run a headless server with Xvfb and VNC, not on RPi though. Incidentally, I was facing the same problem at the same time. So help me out? How can I either get lightdm (I've checked the docs and options, nothing obvious) to start Xvfb correctly (without vt7 param), or get it to attach to an existing X server that's already running and not try and run its own. Fine, so I tell it to run Xvfb instead of X, and it fails because lightdm tries to pass 'vt7' as a param to the X server, but Xvfb doesn't accept the virtual terminal as a param because it's not using any terminal, it's a virtual frame buffer. The problem is lightdm doesn't seem to want to connect to an already running X server, it wants to make its own. So I thought I'd run Xvfb, then run lightdm on that, then x11vnc the whole shebang. I've tries setting the geometry, no effect. It comes with lightdm, and if you run it using the included HDMI or video out it works, and I can use that and x11vnc to that, but without a monitor attached, it defaults to 800圆00 or something really small. I've got a Raspberry Pi and I'm using it as a headless server.
