Mining Monero XMR with Raspberry PI (Any LINUX will work)

STEP 1 – Bake the Pi (Raspberry Pi Setup)

We are using a 64bit version of the Raspberry Pi OS Lite. You MUST use a 64bit version of the OS or it WILL NOT work!! 

Click on Ctrl+shift+x

  • Connect the SD card to the Raspberry Pi and SSH to it.

STEP 2 – Install the Crypto Mining Software

  1. Update your repositories
    > sudo apt-get update
  2. Install Prerequisites
    > sudo apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev -y
  3. Clone the XMRig repository from GITHUB using git. (then cd into the new xmrig directory)
    > git clone https://github.com/xmrig/xmrig.git
    > cd xmrig
  4. Create a new directory and cd into
    > mkdir build
    > cd build
  5. Install XMRig from source
    > cmake ..
    > make (This step will take awhile)

STEP 3 – Create a Monero Crypto Wallet

Link: https://www.getmonero.org/

you have multiple options of the Monero Wallet.
NOTE: some antiviruses and firewalls may flag the Monero executables and archives as malware

Create your wallet and get your address

STEP 4 – Start Mining with your Raspberry Pi and XMRig

  • Enter this command to start mining. Make sure to insert the wallet address you created in step 3.
    > ./xmrig -o gulf.moneroocean.stream:10128 -u yourwalletaddress -p nameofyourpi

When you press h it will show you the hash rate.

When you press c it will show you your connection

When you press s it will show you your progress

You can also check your progress on the mining pool websites. They show you how many workers/miners you have and how much monero they owe you.

*BONUS*

STEP 5 – Enable Mining at boot

  1. Open the crontab file
    > sudo crontab -e
  2. Add this line of config to your crontab file. (you are adding the same command used in step 4)
    > @reboot /home/pi/xmrig/build/xmrig -o gulf.moneroocean.stream:10128 -u yourwalletaddress -p nameofyourpi
  3. Save the file.