Coder Social home page Coder Social logo

termux-xmrig's Introduction

termux-xmrig

Create an XMRig script in Termux.

Instructions:

1.First, go to GitHub Build Action to download the Termux version suitable for your device.

2.Install and launch Termux. After installing Termux, first run pkg install git to install Git upon opening.

3.Enter

git clone https://github.com/TokiZeng/termux-xmrig

4.Enter

cd termux-xmrig

5.Enter

chmod +x build.sh

6.Enter

./build.sh

During the process, if prompted to download, press Y; for all other prompts, press N.

The script can create XMRig in Termux on the Android system. It also supports mining with all CPU algorithms supported by XMRig.

After the build is complete, the XMRig executable will be located in the termux-xmrig/xmrig/build directory. To run it, please follow the instructions below:

  1. After the script ./build.sh completes, you will be returned to the root directory. If not returned automatically, please enter cd. In the root directory, enter ls to check for the existence of the termux-xmrig folder and start.

  2. Enter cd termux-xmrig/xmrig/build, then enter ls to check for the xmrig file.

If everything is correct, this means your compilation was successful.

Next, you can visit XMRig's Command Line Options to view the commands.

Here is an example template:

./xmrig -o hk.zephyr.herominers.com:1123 -u ZEPHs8RuJ66Tf43KBbbtnQNxjm48qN6S83Zko2hNv9uhMPHb3jchK9WRkvppjEtRQy5dr2UNBSggdNc1pNJYNYL1ipwqzYgMZZ5.op -p x -t 3

This command indicates that I'm connecting to the herominers pool and mining ZEPH with 3 CPU threads. This command is just a template, modify it according to your needs.

There are two ways to start XMRig, as explained below.

First method: Using start in the root directory

  1. Enter cd to return to the root directory. You can first execute ./start to test if XMRig is functioning properly. During the process, press H to monitor the hash rate of each core. To end the test, press ctrl+c (on Termux for mobile, the virtual ctrl key is at the bottom left of the screen).

  2. Enter nano start to edit the mining parameters for XMRig (or use vim, depending on your preference). After editing, press ctrl+o to save, followed by ctrl+x to exit.

  3. After modifications, simply enter ./start each time you start Termux to run the mining program.

  4. Happy mining!

Second method:

  1. cd /termux-xmrig/xmrig/build

  2. Enter

./xmrig -o hk.zephyr.herominers.com:1123 -u ZEPHs8RuJ66Tf43KBbbtnQNxjm48qN6S83Zko2hNv9uhMPHb3jchK9WRkvppjEtRQy5dr2UNBSggdNc1pNJYNYL1ipwqzYgMZZ5.op -p x -t 3

with parameters set by yourself to start mining. You must enter this command each time you start.

  1. Happy mining!

termux-xmrig

在Termux中創建一個XMRig腳本。

使用說明:

1.首先,前往 GitHub Build Action 下載適合您裝置的Termux版本。

2.安裝並啟動Termux。 安裝完Termux開啟先執行 pkg install git 安裝git

3.輸入

git clone https://github.com/TokiZeng/termux-xmrig

4.輸入

cd termux-xmrig

5.輸入

chmod +x build.sh

6.輸入

./build.sh

在過程中,如果提示需要下載,按Y;對於所有其他提示,按N。

此腳本可在Android系統的Termux上創建XMRig。它還支援使用XMRig支援的所有CPU演算法進行挖礦。

建造完成後,XMRig可執行檔將位於 termux-xmrig/xmrig/build 目錄中。要運行它,請按照以下說明操作:

  1. 程式./build.sh完成後,您將返回根目錄。如沒返回請輸入CD。在根目錄輸入ls檢查是否存在termux-xmrig資料夾和start

  2. 輸入 cd termux-xmrig/xmrig/build,然後輸入 ls 檢查是否有 xmrig 檔案。

如果一切正確,這表示您的編譯成功了。

接下來,您可以訪問 XMRig的命令行選項 查看命令。

這裡提供一個範本:

./xmrig -o hk.zephyr.herominers.com:1123 -u ZEPHs8RuJ66Tf43KBbbtnQNxjm48qN6S83Zko2hNv9uhMPHb3jchK9WRkvppjEtRQy5dr2UNBSggdNc1pNJYNYL1ipwqzYgMZZ5.op -p x -t 3

此命令表明我連接到herominers礦池,並使用3個CPU線程挖掘ZEPH。這個命令只是一個範本,根據您的需求進行修改。

有兩種啟動XMRig的方式,如下所述。

**第一種方法:**在根目錄使用 start

  1. 輸入 cd 回到根目錄。您可以首先執行 ./start 測試XMRig是否正常運作。在過程中,按 H 來監測每個核心的哈希率。要結束測試,按 ctrl+c(在移動的Termux上,虛擬ctrl鍵位於螢幕左下方)。

  2. 輸入 nano start 來編輯XMRig的挖礦參數(或使用vim,取決於您的偏好)。編輯完成後,按 ctrl+o 保存,隨後按 ctrl+x 退出。

  3. 修改完成後,每次啟動Termux時只需輸入 ./start 即可運行挖礦程序。

  4. 快樂挖礦!

第二種方法:

  1. cd /termux-xmrig/xmrig/build

  2. 輸入

./xmrig -o hk.zephyr.herominers.com:1123 -u ZEPHs8RuJ66Tf43KBbbtnQNxjm48qN6S83Zko2hNv9uhMPHb3jchK9WRkvppjEtRQy5dr2UNBSggdNc1pNJYNYL1ipwqzYgMZZ5.op -p x -t 3

設置您自己的參數來開始挖礦。每次開始時您必須輸入此命令。

  1. 快樂挖礦!

termux-xmrig's People

Contributors

tokizeng avatar

Stargazers

Jacory avatar  avatar  avatar Avery avatar  avatar  avatar  avatar JH_Wen avatar NameOnStone avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.