XMRig on Android

oz, 2022-02-12

The Nobel Prize "for Economics" is fake, but money and blockchain are real? If your answer to this is "YES!", you may proceed at your own liability...

  1. Install Termux
  2. Install proot-distro package in Termux
  3. Setup an Ubuntu environment
    proot-distro install ubuntu
    proot-distro login ubuntu
  4. Follow https://xmrig.com/docs/miner/build/ubuntu
    apt update && apt upgrade
    apt-get install git build-essential cmake automake libtool autoconf
    git clone https://github.com/xmrig/xmrig.git
    # Change donation rate if desired
    mkdir xmrig/build && cd xmrig/scripts
    ./build_deps.sh && cd ../build
    cmake .. -DXMRIG_DEPS=scripts/deps
    make -j$(nproc)
  5. Start xmrig with minimal configuration
    modprobe msr # if supported by the system
    ./xmrig -o ${POOL} -u ${WALLET} -k --tls

Bonus: How to mine on p2pool (nice summary in one of the posts)