Skip to content

Instantly share code, notes, and snippets.

@undirectlookable
undirectlookable / rpi-nodejs-install.sh
Last active December 10, 2020 22:12
Install Node.js Binaries on Raspberry Pi A/A+/B/B+ (ARMv6 CPU)
#!/usr/bin/env bash
# Install Node.js Binaries on Raspberry Pi A/A+/B/B+ (ARMv6 CPU).
# Get the latest Node.js Binaries filename
# Result like: node-v5.5.0-linux-armv6l.tar.gz
# For RPi2 Model B, replace "armv6l" with "armv7l".
FILENAME=`wget -q -O - https://nodejs.org/dist/latest/SHASUMS256.txt | grep linux-armv6l.tar.gz | sed 's/^[0-9a-f]\+\s*//g'`
# Download
if [ ! -f $FILENAME ]; then