Prerequisites
Connected on gamgee as mountdoom, install additional programs
BASH
sudo apt update && sudo apt install bzip2 gnupg-agent pinentry-curses
Add a new system user
BASH
sudo useradd -r -s /usr/sbin/nologin moneronode
Create working directories
BASH
sudo mkdir -p /monero
sudo mkdir -p /monero/fullnode
sudo mkdir -p /monero/sources
sudo mkdir -p /var/log/monero
Change user rights
BASH
sudo chown moneronode:moneronode /var/log/monero
Download and verify
Get the latest CLI on github.com/monero-project/monero/releases (example for a Raspberry Pi 4B)
BASH
sudo wget -P /monero/sources/ https://downloads.getmonero.org/cli/monero-linux-armv8-v0.18.4.6.tar.bz2
Import main dev PGP key
BASH
curl https://raw.githubusercontent.com/monero-project/monero/master/utils/gpg_keys/binaryfate.asc | gpg --import
BASH
gpg --edit-key '81AC591FE9C4B65C5806AFC3F0AF4D462A0BDF92'
In PGP command line, run trust, choose 4, then save
Verification 1
Check hashes authenticity
BASH
curl https://www.getmonero.org/downloads/hashes.txt | gpg --verify
That command should return
gpg: Good signature from "binaryFate" [unknown]
Verification 2
Check downloaded source hash
BASH
file_name=/monero/sources/monero-linux-armv8-v0.18.4.6.tar.bz2
file_hash=`sha256sum $file_name | cut -c 1-64`
curl https://www.getmonero.org/downloads/hashes.txt > /tmp/reference-hashes.txt
gpg --verify /tmp/reference-hashes.txt
grep $file_hash /tmp/reference-hashes.txt
The last line hash should match the one on github.com/monero-project/monero/releases
d38c9ef8ee1a5d2de32f67d2f46c767c0c5cc3bb23ba7e3dfa9cbb19ceb2c84c monero-linux-armv8-v0.18.4.6.tar.bz2
Extraction
If both verification pass, install Monero
BASH
sudo tar -xjvf /monero/sources/monero-linux-armv8-v0.18.4.6.tar.bz2 -C /usr/local/bin/
BASH
sudo chown -R moneronode:moneronode /usr/local/bin/monero*