Here's how I solved this problem for a genartion server image in a Linux Ubuntu environment with a berth application server. It uses xvfb, but only as a βlibraryβ - without any additional special actions on the server:
apt-get install xvfb // then on application server start: export DISPLAY=":99" start-stop-daemon
You can see the details of my server side image creation solution in this SO question .
source share