Chromium with --headless still requires GUI packages.
Reported by
lem...@gmail.com,
May 7 2017
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.82 Safari/537.36 Vivaldi/1.9.818.44 Steps to reproduce the problem: 1. Install headless chromium on Ubuntu. In this case, using https://launchpad.net/~saiarcot895/+archive/ubuntu/chromium-dev, because there is no official dev channel I can find. 2. Realize that this seems to try to drag in an entire desktop environment, despite the fact that when I build headless_shell, it just requires libfontconfig 3. Manually download the chromium install package. 4. Force dpkg to ignore the unneeded desktop cruft by forcing it to install with broken dependencies. 5. Try to run chromium-browser --headless --remote-debugging-port=9222 --disable-gpu What is the expected behavior? The whole point of the headless browser, at least for me, is the fact I can run it on a headless system, e.g. no X or display components whatsoever. If the --headless parameter doesn't allow this, it's kind of pointless, you might as well just use xvfb. What went wrong? I'd guess that it's hard to make an application that conditionally depends on certain shared libraries. IIRC, there was a long-term goal to replace headless_shell with a flag option for the normal chromium binary. However, a critical part of the value of headless_shell is the lack of requirement for graphics components. Did this work before? N/A Chrome version: N/A Channel: dev OS Version: N/A Flash Version: N/A
,
May 12 2017
,
May 29 2017
OS->Linux
,
May 30 2017
,
Jun 14 2017
,
Jul 17 2017
,
Jul 26 2017
That .deb binary is just the regular Chrome browser, so it requires the same GUI packages normal Chrome does. Note that a desktop environment doesn't actually have to be present -- just the shared libraries need to be there. If you want a binary with fewer dependencies, you can build the Headless Shell application manually following these instructions: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md#Usage-as-a-C_library |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by lem...@gmail.com
, May 7 2017