Running headless

I would like to modify an existing oF app to run headless (on a system without a monitor) Is this possible and, if so, how would I start the app…

int main( ){  
    ofAppGlutWindow window;  
	ofSetupOpenGL(&window, 1024,768, OF_WINDOW); //this would seem to be a problem  
	ofRunApp( new testApp());  

I would likely add a command line interface to control the program via a serial port.

Thanks for any input.

For running headless try this: