Follow instructions on Raspberry site
First, put a ssh file in the boot partition to activate ssh in headless mode as stated here
ssh pi@<your-raspberry-pi-ip>
sudo apt-get install git rng-tools python3-gnupg at wget openssl
git clone https://github.com/ChickenRand/RNG.git
Nodejs doesn't support ARMv6 architecture anymore, but there is unoffical build and the last available version is Node 20.19.0 (2025/03/13).
Note : Install instructions come from here and here hope they are still valid in 2025.
# We use LTS version of node
wget https://unofficial-builds.nodejs.org/download/release/v20.19.0/node-v20.19.0-linux-armv6l.tar.gz
tar -xzf node-v20.19.0-linux-armv6l.tar.gz
cd node-v20.19.0-linux-armv6l/
sudo cp -R * /usr/local/
sudo ln -s /usr/local/bin/node /usr/bin/node
sudo ln -s /usr/local/bin/npm /usr/bin/npm
OneRNG package is not updated anymore, I fixed the dependancies and store it in this repo.
# Then on the raspberry
wget https://github.com/OneRNG/onerng.github.io/blob/master/sw/onerng_3.7-1_all.deb?raw=true
sudo dpkg -i onerng_3.7-1_all.deb
# Edit onerng conf to enable avalanche raw mode
sudo nano /etc/onerng.conf
# And change
# ONERNG_MODE_COMMAND="cmd1" instead of ONERNG_MODE_COMMAND="cmd0"
At this step, you can plug in your OneRNG key to the raspberry pi.
Then, install globally the rng application and launch the systemd service.
If everything is OK, the rng service should start directly on startup, this way you have nothing to do and can leave your rasperry pi alone.
cd RNG/
sudo npm install -g
sudo cp rng.service /etc/systemd/system/rng.service
sudo systemctl enable rng
sudo systemctl start rng
sudo systemctl status rng -l