Last active
June 9, 2025 09:05
-
-
Save magarrent/74e2758ed62bf4a0c047fa2fdbeb0517 to your computer and use it in GitHub Desktop.
Puppetter Chromedriver on Ubuntu ARM (Hetzner)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| # Some errors possibilities | |
| # rm -r /tmp/.chromium/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment