How to install xmrig on termux and run it

How to install xmrig on termux and run it





1. Install Termux from playstore

2. A script to install Ubuntu chroot in Termux

You need to install wget and proot in Termux before using this script.
pkg install wget proot
The script will make its files in the current directory. So if you want your Ubuntu-filesystem at a particular location switch to that folder first and then call the script with it's relative path. Example:
mkdir -p ~/jails/ubuntu
cd ~/jails/ubuntu
wget https://raw.githubusercontent.com/Neo-Oli/termux-ubuntu/master/ubuntu.sh
bash ubuntu.sh
After running it you can run "./start-ubuntu.sh" to switch into your ubuntu.


3. After ubuntu already running, run this script.
apt-get install git build-essential cmake libuv1-dev libssl-dev libhwloc-dev
git clone https://github.com/xmrig/xmrig.git
cd xmrig && mkdir build && cd build
cmake ..
make
4. Run xmrig with this script

 
./xmrig -o stratum+tcp://xmr.pool.minergate.com:45700 -u UrMinergateEmail -p UrPassword -t 4


5. If u find error With HWLOC Check this

Share this