Skip to content

Instantly share code, notes, and snippets.

@rc125
Forked from ziadoz/install.sh
Last active July 30, 2017 03:06
Show Gist options
  • Select an option

  • Save rc125/7539d2a1ea23d1264bd03cd2c2d9bc21 to your computer and use it in GitHub Desktop.

Select an option

Save rc125/7539d2a1ea23d1264bd03cd2c2d9bc21 to your computer and use it in GitHub Desktop.
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5
wget https://gist.githubusercontent.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5/raw/990d54467543d17e5c1874dccc3b7970a63d1ca4/install.sh
sudo chmod +x install.sh
## Geckodriver
wget https://github.com/mozilla/geckodriver/releases/download/v0.18.0/geckodriver-v0.18.0-linux64.tar.gz
sudo sh -c 'tar -x geckodriver -zf geckodriver-v0.18.0-linux64.tar.gz -O > /usr/bin/geckodriver'
sudo chmod +x /usr/bin/geckodriver
rm geckodriver-v0.18.0-linux64.tar.gz
## PhantonJS
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo chmod +x phantomjs-2.1.1-linux-x86_64/bin/phantomjs
sudo mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/
sudo mkdir /var/log/selenium
sudo touch /var/log/selenium/output.log
sudo touch /var/log/selenium/error.log
sudo chmod -R 777 /var/log/selenium/
http://pietervogelaar.nl/ubuntu-14-04-install-selenium-as-service-headless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment