Darktron / xmrig

XMRig on Termux

Home Page:https://xmrig.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XMRig for Termux

This is a WIP repo for making XMRig and run on latest termux(v0.118.0) and latest clang(v17.0.5).

Disclaimer: I accept no warranties or liabilities on this repo. Do it at your own risk!!!

Installation & configuration:

  1. Download & install latest arm64-v8a Termux:
https://github.com/termux/termux-app/releases/download/v0.118.0/termux-app_v0.118.0+github-debug_arm64-v8a.apk
  1. Installing clang and dependencies:
  • Type y then enter key in any prompts!
yes | pkg update && pkg upgrade
yes | pkg install build-essential clang cmake git
  1. Clone repo & chmod:
git clone --branch ARMv8 --single-branch https://github.com/Darktron/xmrig.git
cd xmrig
chmod +x start.sh
  1. Compile XMRig:
cmake ~/xmrig && make -j$(nproc)
  1. Change your algo, pools, address, and miner name with:
nano config.json
  • Line 80 algo = your algorithm of choice.
  • Line 82 url = your pool with port of choice.
  • Line 83 user = your address and after can include .Difficulty.
  • Line 84 pass = your worker name of choice.

Usage:

  1. Start ccminer with:
~/xmrig/start.sh
  1. Close ccminer with:
CTRL + c

Tips & Tricks:

  • If Termux can't complete update & upgrade please clear app cache and data.
  • Disable battery manager, battery optimization for Termux app.
  • If you long press anywhere within Termux then click More there is an option to Keep screen on.
  • Alternatively you can pull down the notification drawer and expand Termux notification to Acquire wakelock this will enable you to mine with the screen off (NOTE! not all devices obey this rule is a hit or miss)
  • Use a pool with low latency to your location/internet.
  • Give the miner/stratum time to stabilize hashrate(~30m-1h).

About

XMRig on Termux

https://xmrig.com/

License:GNU General Public License v3.0


Languages

Language:C 54.0%Language:C++ 40.4%Language:Assembly 4.7%Language:CMake 0.6%Language:JavaScript 0.1%Language:Shell 0.1%Language:Batchfile 0.0%Language:Common Lisp 0.0%