Configure for headless mode (no GUI)

Signed-off-by: Gianpaolo Macario <gmacario@gmail.com>