Skip to content

Instantly share code, notes, and snippets.

@Martlark
Created April 3, 2020 22:17
Show Gist options
  • Save Martlark/be8e99d4bcdf30f43bce628f99021371 to your computer and use it in GitHub Desktop.
Save Martlark/be8e99d4bcdf30f43bce628f99021371 to your computer and use it in GitHub Desktop.
Install Google Chrome and Chrome driver to Linux 18.04
#!/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