Skip to content

Instantly share code, notes, and snippets.

@luanbe
Last active July 12, 2021 19:07
Show Gist options
  • Select an option

  • Save luanbe/615c8cc4ccb775e4175f5a0d96cda6f3 to your computer and use it in GitHub Desktop.

Select an option

Save luanbe/615c8cc4ccb775e4175f5a0d96cda6f3 to your computer and use it in GitHub Desktop.
Install Python, Firefox, and Geckodriver in Ubuntu
#!/usr/bin/env bash
# Test on Ubuntu 18.04.5 LTS
# Install dependencies.
sudo apt-get update
sudo apt-get install -y unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4 git-all firefox python3 python3-dev libpq-dev python3-pip python3-venv libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev
# Install geckodriver
export GECKO_DRIVER_VERSION='v0.29.1'
wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
rm geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
chmod +x geckodriver
sudo cp geckodriver /usr/local/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment