Created
January 9, 2018 09:00
-
-
Save nomad1072/5a363a5f8ef80fc1fcf95ace0a7156c3 to your computer and use it in GitHub Desktop.
This file contains 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
# Store th current ChromDriver version | |
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` | |
# Install Chrome | |
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub >> key.pub | |
sudo apt-key add key.pub | |
rm key.pub* | |
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list | |
sudo apt update -y | |
sudo apt install -y google-chrome-stable | |
# Install ChromeDriver | |
wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/ | |
sudo apt install -y unzip | |
unzip ~/chromedriver_linux64.zip -d ~/ | |
rm ~/chromedriver_linux64.zip | |
sudo mv -f ~/chromedriver /usr/local/bin/chromedriver | |
sudo chown root:root /usr/local/bin/chromedriver | |
sudo chmod 0755 /usr/local/bin/chromedriver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment