βοΈ Monero (XMR) Mining on Samsung Phone in Termux π±
In this guide, I show how to mine Monero (XMR) directly on a Samsung Android phone using Termux and XMRig.
This is a fun experiment to see what kind of performance you can squeeze out of a mobile ARM CPU βοΈπͺ
π₯ Video Tutorial
π§° Step-by-Step Installation
- π Update all packages:
apt update
2. β¬οΈ Upgrade installed packages:
apt upgrade
3. βοΈ Install required tools:
apt install proot wget git
π§ Installing Ubuntu in Termux
- π₯ Clone Ubuntu installer for Termux:
git clone https://github.com/MFDGaming/ubuntu-in-termux.git
5. π Enter the cloned folder:
cd ubuntu-in-termux
6. π Make the install script executable:
chmod +x ubuntu.sh
7. βΆοΈ Run the installation script:
./ubuntu.sh
8. π§ Start Ubuntu:
./startubuntu.sh
βοΈ Setting Up Inside Ubuntu
- π Update repositories:
apt update
10. β¬οΈ Upgrade all packages:
sudo apt upgrade
11. π§© Install build dependencies:
sudo apt install wget proot git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev
π§± Building XMRig Miner
- π₯ Clone XMRig source code:
git clone https://github.com/xmrig/xmrig
13. π Enter the cloned directory:
cd xmrig
14. ποΈ Create a build directory:
mkdir build

cd build
15. βοΈ Compile the miner:
cmake -DWITH_HWLOC=OFF ..

make
π Configuring the Miner
- βΆοΈ Try running the miner:
./xmrig
The miner stops and reports that a configuration file is missing β
- πͺ Exit Ubuntu:
exit
18. π Grant Termux storage access:
termux-setup-storage
19. π§ Restart Ubuntu:
./startubuntu.sh
20. π§Ύ Create your config file:
* Go to [xmrig.com](https://xmrig.com/wizard)
* Add your **pool** (e.g. `minexmr.com`)
* Add your **wallet address** and **worker name**
* Download the generated `config.json` file
* Save it to your phoneβs storage and copy it into the XMRig directory

β‘ Running the Miner
- βΆοΈ Start the miner again:
./xmrig
22. π The miner starts successfully!
π Average mining speed: ~788 H/s β‘
π Not profitable, but great for learning and experimenting!




