Skip to content

Instantly share code, notes, and snippets.

@justinlevi
Created June 19, 2016 17:48
Show Gist options
  • Save justinlevi/a770db4b4f616c71bb8ddffc43bfb499 to your computer and use it in GitHub Desktop.
Save justinlevi/a770db4b4f616c71bb8ddffc43bfb499 to your computer and use it in GitHub Desktop.
Shell Script for getting the google chrome driver working in Drupal-VM
#!/usr/bin/env bash
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
sudo apt-get install -f
sudo apt-get install xvfb
sudo apt-get install unzip
wget -N http://chromedriver.storage.googleapis.com/2.22/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver
sudo mv -f chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
sudo apt-get install python-pip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment