Cryptocurrency Mining on the Raspberry Pi
Cryptocurrency Mining on the Raspberry Pi
Raspberry Pi
However, the distinction is that the Raspberry Pi can mine, but doesn’t
necessarily do so profitably. Mostly, this depends on the specific
cryptocurrency, what it’s valued at and how much the Pi can generate
each day. Though the Raspberry Pi doesn’t pack a ton of computing
power, it’s incredibly energy efficient and there’s a low startup cost.
Plus, it’s simple to get set up, and an intuitive method for learning more
about cryptocurrency, as well as Raspberry Pi software and hardware.
Pros:
Energy-efficient hardware
Decent computing power
Low start-up cost
Easy to set up
Cons:
Not profitable
Storj is another option that can be mined on a Raspberry Pi. Since Storj
relies on storage, rather than paying cloud providers for file storage, it
makes the low-power Pi a viable piece of hardware. You may also
consider using ASIC miners plugged into the Raspberry Pi for obtaining
cryptocurrency such as Bitcoin.
Magi
Storj
Bitcoin
Monero
Bytecoin
For this method, you’ll need to begin by creating a pool account and
download a Bitcoin wallet. You can snag the Bitcoin client here. Once
you’ve installed your wallet, create a pool. Essentially, a pool is a
conglomeration of other miners who collaborate toward obtaining
Bitcoin. Solo mining simply isn’t profitable.
cd bfgminer
./autogen.sh
./configure
make
Finally, begin mining! You’ll simply enter the proper commands, detailed
on the BFGMiner GitHub Readme.
Multi-pool mining:
Multi-blockchain mining:
When that’s finished, navigate into the CPUminer directory and compile
the program:
cd cpuminer-multi
./autogen.sh
:
./configure
make
That’s it! You’re ready to start mining. Run the following help command
to view instructions for using CPUminer:
./minerd --help
./minerd -a cryptonight -o
stratum+tcp://xmr.pool.minergate.com:45560 -u
youremail@address.com -p x -t 4
./minerd -a cryptonight -o
stratum+tcp://bcn.pool.minergate.com:45550 -u
youremail@address.com -p x -t 4
cd wolf-m7m-cpuminer
./autogen.sh
nano Makefile
and
naon m7/MakeFile
Once that’s complete, compile the software using the make command:
:
make -j4
wget -qO-
https://raw.githubusercontent.com/creationix/nvm/v0.33.3/instal
l.sh | bash
Then, in a new terminal, install the NVM Long Term Service (LTS)
variant:
storjshare daemon
If you like, you may configure Storj Share to start at boot. First, open a
command prompt and run:
nano ~/watchdog.sh
#!/bin/bash
. $HOME/.bashrc
. $HOME/.profile
. $HOME/.env
:
APP=$(ps aux | grep -v grep | grep storjshare)
if [ -z "$APP" ];
then
storjshare daemon
fi
if [ -z "$APP" ];
then
fi
chmod +x ~/watchdog.sh
crontab -e
by these lines:
:
*/5 * * * * $HOME/watchdog.sh
@reboot $HOME/watchdog.sh
Did you know that you can turn your Raspberry Pi into a cryptocurrency
wallet? Check out our latest tutorial!