LoginSignup
3
3

More than 5 years have passed since last update.

Chrome HeadlessをDebianで動かすためのTips

Last updated at Posted at 2018-03-11

背景

情報共有を行うに至った経緯

  1. 備忘録
  2. 情報共有
  3. 指摘をもらう

ユースケース

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

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3