Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

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.

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.

share|improve this answer

Ignacio is right: You should use Xvnc. That way Xvnc will start instead of a "real" X11 Display with the difference, that you can connect to it via VNC.

I found this howto. But i haven't tried it on my machine but i tried a similar setup on my 9.04 box a year ago. My solution was to tell gdm to launch X11vnc instead of registering it with xinetd service. X11vnc (not Xvnc) attaches (or spawns?) to a real X11 session. But the idea is quite the same.

share|improve this answer

If it's headless then don't bother with vino at all. Just stick to Xvnc, since you don't need an actual "physical" X server running on the system.

share|improve this answer

You must log in to answer this question.