Skip to content

Instantly share code, notes, and snippets.

@Leotomas
Created August 2, 2016 11:03
Show Gist options
  • Select an option

  • Save Leotomas/21705d2cc7409ed1a5e1fcfaa412a86d to your computer and use it in GitHub Desktop.

Select an option

Save Leotomas/21705d2cc7409ed1a5e1fcfaa412a86d to your computer and use it in GitHub Desktop.
Install Chrome headless on Ubuntu
export CHROME_BIN=/usr/bin/google-chrome
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sudo apt-get update
sudo apt-get install -y libappindicator1 fonts-liberation
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
@Mifrill

Mifrill commented Aug 13, 2017

Copy link
Copy Markdown
Failure/Error: Timeout.timeout(60, &example)
          
          Selenium::WebDriver::Error::UnknownError:
            unknown error: Chrome failed to start: crashed
              (Driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Linux 4.10.0-32-generic x86_64)

any ideas?

@ajoy39

ajoy39 commented Sep 19, 2017

Copy link
Copy Markdown

@Mifrill you need to update your chrome driver, 2.31 doesn't support version 60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment