Running chrome headless on linux without xorg

ccpizza picture ccpizza · Oct 30, 2017 · Viewed 7.8k times · Source

Is it possible to install and run chrome headless on a headless Linux box without installing the audio and xorg dependencies?

If not, then is there a special headless build of chrome/chromium which doesn't pull xorg and audio libs?

Answer

browserless picture browserless · Nov 12, 2017

This troubleshooting doc on puppeteer should be of some help (https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md), it oultlines all the package necessary for running Chrome on a linux machine (more specifically for web servers).

Depending on your end-goal, I wrote a service that provides access to headless Chrome at https://browserless.io. More or less treats Chrome in hosted fashion, so you don't have to try and get it running yourself, which is a time consuming process.

In any case, hope one of those helps!