Raspberry Pi Monero Miner

Setup SD Card

Download Image

https://downloads.raspberrypi.org/raspios_lite_arm64/images/

Download Raspberry Pi Imager

https://www.raspberrypi.com/software/

Press ctrl + shift + x to open Advanced Options (for headless install)


Setup OS

Find IP of Pi

sudo nmap -sP 10.0.0.0/24 ssh pi@10.0.0.106

On Pi

sudo apt update sudo apt install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev

git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make

On MacOS

brew install hwloc
brew install cmake
brew install libuv
brew install openssl
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make

Setup Digital Wallet

Download Monero GUI Wallet from https://web.getmonero.org/downloads/


Setup Mining

sudo ~/xmrig/build/xmrig -o gulf.moneroocean.stream:10128 -u 4BE1XTUMS8ogwdYHitt64QXduGSGD6NZ2RMUvpaLDLMLTvjSpv9vxeWM6KTPk9Hm2vJa9buvnbN73ixhhhFTQtqz95rRxvz -p pi

press s - results ..to see if we’ve done anything c - current connection h - hashrate p - pause r - resume

View progress: moneroocean.stream -> etner your wallet address. It may take a while to register, so be patient.

Run in background with nohup

sudo nohup ~/xmrig/build/xmrig -o gulf.moneroocean.stream:10128 -u 4BE1XTUMS8ogwdYHitt64QXduGSGD6NZ2RMUvpaLDLMLTvjSpv9vxeWM6KTPk9Hm2vJa9buvnbN73ixhhhFTQtqz95rRxvz -p pi > mine.out 2>&1 &

Run as service

…tbd…

Limit CPU Use

sudo apt install cpulimit
sudo cpulimit --pid 94673 --limit 50

Check Temperature

/opt/vc/bin/vcgencmd measure_temp