Created
April 3, 2020 22:17
-
-
Save Martlark/be8e99d4bcdf30f43bce628f99021371 to your computer and use it in GitHub Desktop.
Install Google Chrome and Chrome driver to Linux 18.04
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
#!/usr/bin/env bash | |
# install the latest version of Chrome and the Chrome Driver | |
apt-get update && apt-get install -y libnss3-dev | |
version=$(curl http://chromedriver.storage.googleapis.com/LATEST_RELEASE) | |
wget -N http://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip | |
unzip chromedriver_linux64.zip -d /usr/local/bin | |
chmod +x /usr/local/bin/chromedriver | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment