⚙️ Mining Monero (XMR) on Raspberry Pi 3 🍇

In this guide, I show how to mine Monero (XMR) using the XMRig miner on a Raspberry Pi 3.
This is mostly for fun and testing — as performance on small ARM boards is quite limited 🧩💻.


🎥 Video Tutorial


🧰 System Preparation

  1. 🧠 Download and install Armbian on your Raspberry Pi 3.
    Mining Monero XMR on Raspberry Pi 3
  2. 💾 Write the Armbian image to an SD card using Balena Etcher.
    Mining Monero XMR on Raspberry Pi 3
  3. 📡 Insert the SD card into your Raspberry Pi, power it on, and complete the initial setup.
  4. 🌐 Check the IP address of your Raspberry Pi for SSH access.

🔧 Connecting and Updating

  1. 🔌 Connect via SSH and update the package list:
sudo apt update

Mining Monero XMR on Raspberry Pi 3 6. ⬆️ Upgrade installed packages:

sudo apt upgrade

Mining Monero XMR on Raspberry Pi 3 7. ⚙️ Install required software:

sudo apt install git wget proot build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev

Mining Monero XMR on Raspberry Pi 3

🧩 Building XMRig

  1. 📥 Clone the XMRig repository:
git clone https://github.com/xmrig/xmrig

Mining Monero XMR on Raspberry Pi 3 9. 📂 Enter the cloned folder:

cd xmrig

Mining Monero XMR on Raspberry Pi 3 10. 🏗️ Create a build directory:

mkdir build

Mining Monero XMR on Raspberry Pi 3

cd build

Mining Monero XMR on Raspberry Pi 3 11. ⚙️ Compile XMRig (disable HWLOC for ARM):

cmake -DWITH_HWLOC=OFF ..

Mining Monero XMR on Raspberry Pi 3

make

Mining Monero XMR on Raspberry Pi 3


⚙️ Configuration and Run

  1. 📝 Edit the configuration file — generate one on your preferred mining pool website and upload it to the Raspberry Pi (e.g., using WinSCP). Mining Monero XMR on Raspberry Pi 3
  2. 🔒 Make the miner executable:
chmod +x xmrig

Mining Monero XMR on Raspberry Pi 3 14. ▶️ Run the miner:

./xmrig

Mining Monero XMR on Raspberry Pi 3


⚡ Performance Result

🚀 Average mining speed: ~12 H/s ⛏️ 🐢 Not fast enough for profitable mining, but a great experiment and learning project! Mining Monero XMR on Raspberry Pi 3