Skip to content

Instantly share code, notes, and snippets.

@magarrent
Last active October 31, 2024 09:57
Show Gist options
  • Save magarrent/74e2758ed62bf4a0c047fa2fdbeb0517 to your computer and use it in GitHub Desktop.
Save magarrent/74e2758ed62bf4a0c047fa2fdbeb0517 to your computer and use it in GitHub Desktop.
Puppetter Chromedriver on Ubuntu ARM (Hetzner)
mkdir '/home/www-data'
mkdir '/home/www-data/.cache'
mkdir '/home/www-data/.cache/puppeteer'
chown -R www-data:www-data /home/www-data/
sudo add-apt-repository ppa:xtradeb/apps -y
sudo apt install chromium
export PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
nano /etc/environment
# Add this
# PUPPETEER_EXECUTABLE_PATH="/usr/bin/chromium"
# PUPPETEER_CACHE_DIR=/home/www-data/.cache/puppeteer
# XDG_CONFIG_HOME=/tmp/.chromium
# XDG_CACHE_HOME=/tmp/.chromium
# Also add it into your project .env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment