Crypto Mining on a Raspberry Pi 4 in 2021

Published: 02 May 2021
on channel: Retro Mike Tech
5,873
79

Video on how to configure Ubuntu x64 on a Raspberry Pi 4 to mine crypto currencies, such as CPU Chain or Monero

Discord:   / discord  

Scripts:
sudo nano /etc/systemd/system/rc-local.service

-----------------

[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target

------------

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev zlib1g-dev make g++ git build-essential cmake libuv1-dev libhwloc-dev
printf '%s\n' '#!/bin/bash' '/usr/bin/sudo -u ubuntu /usr/bin/screen -dmS miner /home/ubuntu/startup.sh' 'exit 0' | sudo tee -a /etc/rc.local
sudo chmod +x /etc/rc.local
sudo systemctl enable rc-local
sudo systemctl start rc-local.service

#cpuminer
git clone https://github.com/glukolog/cpuminer-...
cd cpuminer-opt
./autogen.sh
./configure CFLAGS="-O3 -march=armv8-a+crypto -mtune=cortex-a53" --with-curl --with-crypto
make -j4

#xmrig
git clone https://github.com/xmrig/xmrig.git
mkdir xmrig/build && cd xmrig/build
cmake ..
make -j4

sudo nano startup.sh

--------------------------
#!/bin/sh -e
#REPLACE THIS LINE WITH YOUR COMMAND
--------------------------


On this page of the site you can watch the video online Crypto Mining on a Raspberry Pi 4 in 2021 with a duration of hours minute second in good quality, which was uploaded by the user Retro Mike Tech 02 May 2021, share the link with friends and acquaintances, this video has already been watched 5,873 times on youtube and it was liked by 79 viewers. Enjoy your viewing!