Install Lightweight Bitcoin Core on Ubuntu

  1. Get a dedicated piece of generic hardware like a raspberry pi or old laptop or tower. Use it solely for bitcoin purposes.

  2. Install ubuntu (after verifying its SHA256 HASH)

  3. Download bitcoin core

    cd /opt
    sudo wget https://bitcoin.org/bin/bitcoin-core-0.20.1/bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
    # verify
    sudo wget https://bitcoin.org/bin/bitcoin-core-0.20.1/SHA256SUMS.asc
    sha256sum bitcoin-0.20.1-x86_64-linux-gnu.tar.gz
    cat SHA256SUMS.asc 
    # Ensure it matches
    
    # Install
    sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.20.1/bin/*

Source