Skip to content

Instantly share code, notes, and snippets.

@datawookie
Created February 9, 2018 14:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save datawookie/0573b631945f80e4e1acb533c44bffbb to your computer and use it in GitHub Desktop.
Save datawookie/0573b631945f80e4e1acb533c44bffbb to your computer and use it in GitHub Desktop.
Install Chrome and ChromeDriver
#!/bin/bash
# For headless Chrome (although not necessary with --headless option).
#
sudo apt-get install xvfb
sudo apt-get install unzip
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get update
sudo apt install google-chrome-stable
wget -N http://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver
sudo mv -f chromedriver /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment