Use A Raspberry Pi And A CPU Miner To Mine Altcoins

I&rsquo,m a big fan, and hoarder, of Raspberry Pi devices. If you&rsquo,ve seen my previous Raspberry Pi tutorials, you&rsquo,ll know I like using them for hardware and software projects. Thesis microcomputers use very little energy and have gepast processors and memory, making them excellent for a diverse set of projects.

With blockchain and cryptocurrencies on the rise, Raspberry Pi devices become good for getting familiar with concepts such spil wallets, mining, and synchronized knots.

Wij&rsquo,re going to see how to mine Altcoins with a Raspberry Pi and a popular CPU miner.

Going forward, you voorwaarde note that it is very unlikely that you&rsquo,ll be able to harvest coins with a single Raspberry Pi unless you find an Altcoin that is fresh. While thesis microcomputers are useful, you need enormously powerful computers to mine established coins like Bitcoin. Don&rsquo,t let this deter you because the concepts are valid and it makes a joy project.

If you toevluchthaven&rsquo,t already ready your Raspberry Pi, read my tutorial titled, Use Your Raspberry Pi spil a Headless System without a Monitor. It will help you get Raspbian installed and configured. After getting began with Raspbian, you can learn how configure wireless here.

Building the CPU Miner for Linux and ARM

There are many different cryptocurrency mining softwares ter circulation. There are popular CPU miners, GPU miners, mixed miners, and variations of each. The Raspberry Pi has a hardly existent GPU, so wij&rsquo,re going to concentrate on CPU mining.

The most popular CPU miner is called cpuminer and it is maintained by pooler on GitHub. The catch here is that you can only mine coins that use the SHA-256 and scrypt algorithms with cpuminer. Instead, wij&rsquo,re going to explore a variation of cpuminer called cpuminer-multi which has significantly more supported mining algorithms.

To build cpuminer-multi, SSH into your Raspberry Pi and execute the following directions:

The above directions will update your package repositories and install the necessary dependencies for building Linux applications from source. Recall, wij&rsquo,re using a non-typical architecture and most likely won&rsquo,t find a prebuilt binary.

With the Raspberry Pi ready for building, wij can build the miner. From the SSH session, execute the following:

The above instructions will clone the cpuminer-multi repository from GitHub and switch to the Linux branch. Next wij run the build script which can take a while to accomplish.

If everything finished spil expected, wij should be left with a cpuminer binary te our cloned project. If you didn&rsquo,t notice, I took the build directives from the Dockerfile found ter the cloned project because it is also Linux based.

Pool Mining Altcoins with a Specific Algorithm

There are many different Altcoins ter existence with more most likely on the way. Instead of attempting to mine one of the more mature coins like Bitcoin or Litecoin, wij&rsquo,re going to concentrate on a coin called DigiByte, also known spil DGB. Feel free to adjust what comes next to meet your needs.

Mining on a Raspberry Pi is difficult, but mining solo is unlikely. Wij need to find a mining pool for the coin wij wish to mine. For DigiByte, the official list of pools can be found on the DigiHash webstek.

Take note of the algorithm you wish to use and the servers.

With an active SSH session to your Raspberry Pi, execute the following to commence mining within the pool:

The above instruction uses our cpuminer-multi binary and the qubit algorithm. For the user, you&rsquo,ll want to use your public DigiByte address. The DJMczFzdq2NeBPhBxrFbMJxg98mgWeRWyo value is my public DigiByte address te case you wished to donate.

Not all mining pools use the public Altcoin address spil a username. Some pools require you to register, listig your addresses, and use a specific username that they manage. Figure out what username and password should be used based on the mining pool documentation that you wish to use.

While the Raspberry Pi is mining, you&rsquo,ll notice loom output like the following:

This information lets us know that we’re successfully mining, but it doesn’t mean that we’ve found any coins. From time to time, you’ll see something that looks like the following:

This does not mean that you’ve found a coin. It means that you’ve found a share te the pool. You’ll need to find fairly a bit of thesis shares before you end up with a payout.

Conclusion

You just eyed how to mine Altcoins on a Raspberry Pi with a CPU miner. Reminisce, it is unlikely that you&rsquo,ll find a block with a Raspberry Pi for more established coins, but it doesn&rsquo,t prevent it from being a nice learning chance.

Want to take this tutorial to the next level? Check out my previous tutorial titled, Mine Bitcoin and Other Cryptocurrency Coins with a CPU Miner and Docker, which concentrates on Docker and pretty much any rekentuig or operating system rather than just Raspbery Pi.

If you&rsquo,re a fan of DigiByte and you wish to donate, DJMczFzdq2NeBPhBxrFbMJxg98mgWeRWyo is my public address.

Nic Raboy

Nic Raboy is an advocate of modern web and mobile development technologies. He has practice te Java, JavaScript, Golang and a diversity of frameworks such spil Angular, NativeScript, and Apache Cordova. Nic writes about his development practices related to making web and mobile development lighter to understand.

Related movie: ����How to Mine with Maximized Profits i7 & Radeon R7 hash rates


Leave a Reply

Your email address will not be published. Required fields are marked *