From d559d899e38cbcc40de752987b781b9878b8a3a1 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 11 Jan 2017 13:16:55 +0100 Subject: [PATCH] docs: tell how to launch true headless (fixes #41) --- resources/docs/getting-started.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/resources/docs/getting-started.md b/resources/docs/getting-started.md index d6852843..bde344bb 100644 --- a/resources/docs/getting-started.md +++ b/resources/docs/getting-started.md @@ -119,3 +119,14 @@ $ npm run debarm This will build the app in `dist/open-stage-control-PLATFORM-ARCH`. *Please note that building the app for windows from a linux system requires wine to be installed.* + +---- +## Running a true headless server + +Electron, Open Stage Control's engine, is based on chromium and can't run out of the box without a display server. However, using a virtual framebuffer does the trick. Detailed instructions can be found in Electron's [documentation](http://electron.atom.io/docs/tutorial/testing-on-headless-ci/). + +In short: install `https://github.com/jean-emmanuel/open-stage-control/issues/xfvb` and prepend your command with `xvfb-run`: + +```bash +xvfb-run open-stage-control -n +```