Skip to content

Installation: Linux: Raspberry Pi OS

StarLordRammi edited this page Apr 15, 2021 · 6 revisions

After the following, nvidia-snatcher is running on my Raspberry Pi 3B on Raspbian OS 32bit (desktop edition). I hope this helps other fellows:

Prerequisites

Raspberry Pi

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt update
sudo apt upgrade
sudo apt install git nodejs

Raspberry Pi Zero

Unfortunately, the Raspberry Pi Zero is an arm6l device, so Node is not officially supported after v10. So, we need to install Node 15 via the Node.js Unofficial Builds Project.

export NODE_VERSION="v15.12.0"
curl -LO "https://unofficial-builds.nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-linux-armv6l.tar.gz"
tar -xzf "node-${NODE_VERSION}-linux-armv6l.tar.gz"
sudo cp -r "node-${NODE_VERSION}-linux-armv6l/*" /usr/local/

Installation

Configure following by running the commands below before typing npm run start to start:

which chromium
which chromium-browser
/usr/bin/chromium-browser # Use this output for the next command
export PUPPETEER_EXECUTABLE_PATH='/usr/bin/chromium-browser'
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
npm run start