Compile Xmrig on Android phone or Amazon Firestick using Termux - RabbitGray/Custom-xmrig GitHub Wiki
Compile on Android using Termux
-
First Download Termux from F-Droid as the Playstore version is no longer maintained and install on your android device.
-
Either type the commands below directly into the Termux terminal on the device or SSH into it.
-
Download the config file into the same directory rename it and modify your algo and pool details
-
Be careful you may damage your device or overheat. USE AT YOUR OWN RISK!
PASTE THE FOLLOWING INTO THE TERMINAL:
-
Install all the everything required
apt update && apt upgrade && apt install -y git wget proot build-essential cmake libmicrohttpd && git clone https://github.com/RabbitGray/Custom-xmrig --depth 1 && mkdir xmrig/build && cd xmrig/build && cmake -DWITH_HWLOC=OFF .. && make -j10
-
Download example config file
wget https://github.com/RabbitGray/Custom-xmrig/blob/master/example_android_config.conf
-
Rename config file
mv example_android_config.conf config.json
-
Edit the config file
nano config.json
- Now let's start mining!
./xmrig --config config.json
Working Devices Tested
- Oppo F9
- Firestick 4k