Ubuntu – How to use Ubuntu 18.04 on VNC without display attached

18.04remote desktopvnc

I know that there are previous topics on this issue, but most of them focuses on other versions, which have different configuration options or try to solve it by installing Xfce or other custom display manager.

I want to use my computer as a home server, but I like to connect to it and access the default graphical interface on VNC. I use vino for the VNC.

When a display is attached, I can access the computer fine. When it is missing I can also connect, but only get an empty X (?) screen with a cursor and Gnome isn’t running.

xrandr says Can’t open display. How can I add a virtual display to be used and shared among multiple remote sessions?

Related Question