Linux – How to run vino-server without a monitor attached in Ubuntu 10.04

headlesslinuxUbuntuvnc

I just upgraded to Ubuntu 10.04 yesterday on a headless home server. I use the server for a variety of purposes, and what I don't know how to do via SSH I've alway been able to do through VNC. However, since the upgrade vino-server will no longer run if there isn't a monitor attached. Before it used to start up without a problem. Even by attempting to run the server via SSH gives me a "could not load display" error.

Summary: I need to get vino-server running at boot time on a server with Ubuntu 10.04, without a monitor attached.

Best Answer

vino-server provides remote access to a console Gnome session, and it doesn't start until the Gnome session starts (meaning after you log into the GUI login window). There's some indication on the Ubuntu forums that you can fool it into running without a monitor by

  1. configuring GDM to autologin instead of showing the login screen; and
  2. configuring an xorg.conf to use the "vesa" driver.

But that post also indicates the Xserver was limited to 640x480 resolution. This may be configurable by changing the kernel's console framebuffer resolution; and it may be that Ubuntu 10.04 already changes that default enough to work at a higher resolution.


Updated
As others have mentioned already, you probably need to use Xvnc (RealVNC or TightVNC). I don't know how easy it will be to configure GDM to launch an Xvnc server.

Instead, most tutorials recommend launching Xvnc from xinetd, and enabling XDMCP so that Xvnc can communicate with GDM. I've just found this Ubuntu forums post that details enabling Xvnc + GDM in Lucid; it is very clear and not difficult to follow.

Related Question