βš™οΈ 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

  1. πŸ”„ Update all packages:
apt update

Monero XMR Mining on Samsung Phone in Termux 2. ⬆️ Upgrade installed packages: apt upgrade Monero XMR Mining on Samsung Phone in Termux 3. βš™οΈ Install required tools:

apt install proot wget git

Monero XMR Mining on Samsung Phone in Termux

🐧 Installing Ubuntu in Termux

  1. πŸ“₯ Clone Ubuntu installer for Termux:
git clone https://github.com/MFDGaming/ubuntu-in-termux.git

Monero XMR Mining on Samsung Phone in Termux 5. πŸ“‚ Enter the cloned folder:

cd ubuntu-in-termux

Monero XMR Mining on Samsung Phone in Termux 6. πŸ”’ Make the install script executable:

chmod +x ubuntu.sh

Monero XMR Mining on Samsung Phone in Termux 7. ▢️ Run the installation script:

./ubuntu.sh

Monero XMR Mining on Samsung Phone in Termux 8. 🐧 Start Ubuntu:

./startubuntu.sh

Monero XMR Mining on Samsung Phone in Termux

βš™οΈ Setting Up Inside Ubuntu

  1. πŸ”„ Update repositories:
apt update

Monero XMR Mining on Samsung Phone in Termux 10. ⬆️ Upgrade all packages:

sudo apt upgrade

Monero XMR Mining on Samsung Phone in Termux 11. 🧩 Install build dependencies:

sudo apt install wget proot git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev

Monero XMR Mining on Samsung Phone in Termux

🧱 Building XMRig Miner

  1. πŸ“₯ Clone XMRig source code:
git clone https://github.com/xmrig/xmrig

Monero XMR Mining on Samsung Phone in Termux 13. πŸ“‚ Enter the cloned directory:

cd xmrig

Monero XMR Mining on Samsung Phone in Termux 14. πŸ—οΈ Create a build directory:

mkdir build

Monero XMR Mining on Samsung Phone in Termux

cd build

Monero XMR Mining on Samsung Phone in Termux 15. βš™οΈ Compile the miner:

cmake -DWITH_HWLOC=OFF ..

Monero XMR Mining on Samsung Phone in Termux

make

Monero XMR Mining on Samsung Phone in Termux

πŸ“ Configuring the Miner

  1. ▢️ Try running the miner:
./xmrig

Monero XMR Mining on Samsung Phone in Termux The miner stops and reports that a configuration file is missing ❌

  1. πŸšͺ Exit Ubuntu:
exit

Monero XMR Mining on Samsung Phone in Termux 18. πŸ“‚ Grant Termux storage access:

termux-setup-storage

Monero XMR Mining on Samsung Phone in Termux 19. 🐧 Restart Ubuntu:

./startubuntu.sh

Monero XMR Mining on Samsung Phone in Termux 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

Monero XMR Mining on Samsung Phone in Termux Monero XMR Mining on Samsung Phone in Termux Monero XMR Mining on Samsung Phone in Termux Monero XMR Mining on Samsung Phone in Termux


⚑ Running the Miner

  1. ▢️ Start the miner again:
./xmrig

Monero XMR Mining on Samsung Phone in Termux 22. πŸŽ‰ The miner starts successfully!

πŸš€ Average mining speed: ~788 H/s ⚑ πŸ“Š Not profitable, but great for learning and experimenting! Monero XMR Mining on Samsung Phone in Termux