背景
情報共有を行うに至った経緯
- 備忘録
- 情報共有
- 指摘をもらう
ユースケース
Debianサーバもしくは他Linuxサーバ(Ubuntu等)にChromeHeadlessをインストール
手順
chrome.sh
apt-get update
// 対象OSのChromeのパッケージをダウンロード(例はamd64)
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
// インストール後、必要なライブリーをアップデート
dpkg -i google-chrome*.deb || apt update && apt-get install -f -y
レポジトリー
参考までに当時のレポジトリーを共有
chrome.list
deb http://deb.debian.org/debian stretch main contrib non-free
deb-src http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
deb-src http://deb.debian.org/debian stretch-updates main contrib non-free
deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free
#参考情報
- ヘッドレス Chrome ことはじめ | Web | Google Developers
https://developers.google.com/web/updates/2017/04/headless-chrome?hl=ja
- Amazon Linux 2 で Headless Chrome を動かしてみた
https://qiita.com/aibax/items/fade7e417f6c096a879b