How do I enable WebGL in headless chrome in Ubuntu?
问题 How do I enable webgl or install webgl in headless chrome in Ubuntu 14? I tried installing libosmesa6, but that did not help. Can someone please point me in the right direction? I want to use webgl to work with headless chrome and selenium tests? I am using nightwatch to run the tests. 回答1: This worked for me to get chrome to use osmesa sudo apt-get install libosmesa sudo ln -s /usr/lib/x86_64-linux-gnu/libOSMesa.so.6 /opt/google/chrome/libosmesa.so google-chrome --no-first-run --user-data