Please note: Using your mobile to mine TurtleCoin is not effective and should only be done for the lulz. It may also cause the phone to overheat and result in premature silicon degradation, shortening the lifespan of your phone.
Downloading and Compiling NinjaRig
- Download Termux from the Play Store or from F-droid.
- Upon downloading and installing, open the app.
pkg upgrade -y
pkg install git cmake libuv clang nano -y
git clone --single-branch https://github.com/turtlecoin/ninjarig
mkdir build && cd build
cmake .. -DWITH_HTTPD=OFF -DWITH_TLS=OFF -DWITH_OPENCL=OFF -DWITH_CUDA=OFF -DCMAKE_BUILD_TYPE=Release
cp ../src/config.json config.json
nano config.jsonand adjust your config settings to match you wallet and pool etc.
- Configure it
Alternatively, instead of copy pasting each command individually you can copy paste what is below into termux after you open it.
pkg upgrade -y && \ pkg install git cmake libuv clang nano -y && \ git clone --single-branch https://github.com/turtlecoin/ninjarig && \ cd ninjarig && \ mkdir build && cd build && \ cmake .. -DWITH_HTTPD=OFF -DWITH_TLS=OFF -DWITH_OPENCL=OFF -DWITH_CUDA=OFF -DCMAKE_BUILD_TYPE=Release && \ make -j2 && \ cp ../src/config.json config.json && \ nano config.json
Then, it'll open the config file where you can configure it.
After that, you can run
./ninjarig-notls to run the miner.
A few notes:
- to navigate between lines, either use the up/down arrows in the right or swipe on the screen
CTRLon the given bar in termux +
Eon the default keyboard
- To edit a line:
- move your cursor to it
^Eto navigate to the end of it
- backspace till where needed and edit appropriately
- make sure you include the ending quote(
") and comma(
,). Not doing this will cause your miner to not work
Find and change the following lines:
"algo: "chuckwa"should already be set
"url: "[pool address]"(include the port number)
"user: "[wallet address]"
- be sure to keep the quotes
""around each field
Yto confirm your changes
Press enter/return (on default keyboard) to save file
Continue with normal steps
View your hashrate
The miner automatically prints out hashrate ever so often; however, if you'd like to view it at any time, simply press
Know that this is the most reliable source of your hashrate; the value displayed on your pool is an estimate and may vary wildly from the truth.
When possible, refer to the 15m avg.
Stopping the Miner
In order to stop the miner if ever needed, you can press
To restart it, type
./ninja-notls. Or, press the up arrow and press enter.
You can also use the commands
r to pause and the resume the miner, respectively.
If all goes well, you should see something like this: