I'm trying to run a program in mono that requires a graphical server. The Raspberry Pi it will run on is headless. When I log in with X forwarding enabled from my local computer, I can run the program and everything is working with no input required. I want to leave this running without being logged in, but if I detach from the session via screen, the window stays open on my local computer and continues running. As soon as I close the window the program stops completely.
How can I "trick" the program into using a dummy virtual server? I want to use xvfb but I'm not sure how to set it up and the guides I've found have been lacking.