Created
February 9, 2018 14:38
-
-
Save datawookie/0573b631945f80e4e1acb533c44bffbb to your computer and use it in GitHub Desktop.
Install Chrome and ChromeDriver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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