sudo apt-get update
sudo apt-get install -y xvfb fluxbox x11vnc dbus libasound2 libqt4-dbus libqt4-network libqtcore4 libqtgui4 libxss1 libpython2.7 libqt4-xml libaudio2 libmng1 fontconfig liblcms1 lib32stdc++6 lib32asound2 ia32-libs libc6-i386 lib32gcc1 nano
sudo apt-get install -y python-gobject-2
// 由
yum whatprovides libstdc++.so.6
// 得出
yum install -y libstdc++-4.4.7-18.el6.i686
sudo apt-get install google-chrome-stable
sudo apt-get install google-chrome-unstable
/** node 安装 */
// yum 源
curl -sL https://rpm.nodesource.com/setup | bash -
// 7.4 以上 centOS 下载 http-parser
https://kojipkgs.fedoraproject.org/packages/http-parser/2.7.1/3.el7/x86_64/
- https://kojipkgs.fedoraproject.org/packages/http-parser/2.7.1/3.el7/x86_64/http-parser-2.7.1-3.el7.x86_64.rpm
- https://kojipkgs.fedoraproject.org/packages/http-parser/2.7.1/3.el7/x86_64/http-parser-devel-2.7.1-3.el7.x86_64.rpm
// yum 安装
yum install nodejs -y
/** google-chrome */
yum install google-chrome
google-chrome --headless --disable-gpu --print-to-pdf https://github.com/kriskowal/q/blob/master/spec/q-spec.js
google-chrome --headless --disable-gpu --screenshot --window-size=1280,1696 https://github.com/kriskowal/q/blob/master/spec/q-spec.js
google-chrome --headless --disable-gpu --screenshot https://github.com/kriskowal/q/blob/master/spec/q-spec.js
/** 截图自动化开源工具 */
https://github.com/schnerd/chrome-headless-screenshots
Created
May 30, 2018 03:46
-
-
Save sursir/d4df03c4fffaba1e9f848c2722bc35c8 to your computer and use it in GitHub Desktop.
google chrome headless
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment