I know what you’re thinking: “Solo mining with an Android phone? Has he lost his mind?” But don’t worry, I’m still sane! In a world full of high-end mining rigs that cost more than my car, I thought: Why not try the basics and see what my little phone can do?
In this tutorial I will show you how to turn your Android device into a mini mining rig that doesn’t invent a new block, but is all the more fun. Unpack your chargers, it’s going to be exciting!
- Install the Public-Pool app from the Umbrel App Store
- download termux from f-droid (Termux | F-Droid - Free and Open Source Android App Repository) and install it on your Android phone
- open termux and enter the following commands:
termux-setup-storage
apt-get update
apt-get upgrade -y
apt-get install wget -y
apt-get install openssl-tool -y
apt-get install proot -y
wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/Ubuntu/ubuntu.sh && bash ubuntu.sh
./start-ubuntu.sh ; su
apt-get update
apt-get upgrade -y
apt install git -y
apt install proot -y
apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev libgmp-dev zlib1g-dev make g++
git clone https://github.com/tpruvot/cpuminer-multi
cd cpuminer-multi
./build-linux-arm.sh
./cpuminer -o stratum+tcp://umbrel.local:2018 -u bitcoin_address.workername -p x -a sha256d -R 10
Or with thread limitation ( -t 2 ) how many threads (depending on how many CPUs you have on your device)
./cpuminer -o stratum+tcp://umbrel.local:2018 -u bitcoin_address.workername -p x -a sha256d -R 10 -t 2
- monitor your miner on http://umbrel.local:2019
App can run in background, if you want to quit press CTRL + C.
And there you have it!
Your Android phone is now officially a mini-miner - albeit in a more symbolic sense. Of course, solo mining on a smartphone is not a way to get rich (or earn anything worth mentioning), but hey, it’s all about having fun, right?
If your phone started to glow a little during the process - don’t worry, that’s part of the “mining charm”! And if you’re now keen to do some “real” mining, it might be time to invest in some more powerful hardware.
–
–
Note: If no connection to Umbrel can be established, the following line should be added to /etc/hosts: 192.168.x.x umbrel.local
Replace “192.168.x.x” with your local IP of your node.
–
Good luck and happy mining!