Thank you for your interest in mining Monero on a Raspberry Pi. Here is a step-by-step guide, complete with images and external references, on how to do it.
The first step is to download and install Raspbian on your Raspberry Pi. You can find the latest version of Raspbian on the Raspberry Pi website. Once you have downloaded the image, you can use Etcher to flash the image to your SD card.
Once you have installed Raspbian, you need to update the system by running the following command in the terminal:
sudo apt-get update && sudo apt-get upgrade
Next, you need to install the required packages. Run the following command in the terminal:
sudo apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev
After installing the required packages, you can download and compile XMRig. XMRig is a high-performance Monero CPU miner. Run the following commands in the terminal:
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make
Once you have compiled XMRig, you need to configure it to start mining Monero.
./xmrig -o gulf.moneroocean.stream:10001 -u 45GPMasYkZgCtSyMs3nCbSVzSQTgpwHwjZapcucRmdBy38uS15NHqKcXP9J7HNokSe9MersndaYyp8o6frGvzjtxV6t9ygu -p x
Running the above command in the terminal will mine to my Monero wallet ( which you are welcome to do 😁), but lets break down the command so you understand what it means an how to point to your own wallet .
xmrig: Open source mining softwear. https://xmrig.com/docs/miner
-o : URL of mining server. https://xmrig.com/docs/miner/command-line-options
-u: Username (aka wallet address) for mining server replace 45GPMasYkZgCtSyMs3nCbSVzSQTgpwHwjZapcucRmdBy38uS15NHqKcXP9J7HNokSe9MersndaYyp8o6frGvzjtxV6t9ygu with your own walled address
-p: password for mining server (aka name of your miner)
You can monitor your mining activity by visiting the mining pools website, moneroocean.stream in this case.
Congratulations, you have successfully set up Monero mining on your Raspberry Pi.
For more information on Monero mining, you can refer to the official Monero documentation at https://web.getmonero.org/resources/user-guides/. To learn more about XMRig, you can visit the official XMRig GitHub page at https://github.com/xmrig/xmrig.
I hope this guide was helpful.
Sources:
- Raspberry Pi. (n.d.). Download Raspbian for Raspberry Pi. Retrieved September 14, 2021, from https://www.raspberrypi.org/software/
- Monero. (n.d.). User Guides. Retrieved September 14, 2021, from https://web.getmonero.org/resources/user-guides/
- XMRig. (n.d.). GitHub. Retrieved September 14, 2021, from https://github.com/xmrig/xmrig