This script automates the process of downloading and compiling xmrig. It performs the following steps:
- Updates and upgrades the system.
- Installs the
wget
package for downloading files. - Downloads the xmrig source code from the xmrig repository.
- Extracts the downloaded source code.
- Compiles xmrig with the necessary settings.
- Copies the compiled xmrig binary to the home directory.
- Creates a script called
startxmrig.sh
in the home directory with a configuration for running xmrig. - Sets executable permissions for the
startxmrig.sh
script.
This will update your Termux, download the xmrig source code, compile it, and create the startxmrig.sh script in your home directory.
The script includes default values for the username, password, and number of mining threads. These default values are set by the script creator and may represent their own configurations. It's highly recommended to replace the default values with your own before running the script.
⏰ The script also has a timeout of 60 seconds for user input. If you don't provide any input within 60 seconds, the script will proceed with the default values. Make sure to respond to the prompts within the given time frame.
To customize the script, follow these steps:
- Download the script or open it in a text editor.
- Look for the prompts that ask for your username, password, and number of mining threads.
- Enter your desired values when prompted or leave the input blank to keep the default values.
- Save the changes to the script.
- Execute the script and it will use the provided values or defaults.
By using this script, you acknowledge and agree to the following:
- The script is provided on an "as-is" basis, without any warranties or guarantees of any kind, express or implied.
- The script creator shall not be held responsible or liable for any misuse, damage, loss of data, or any other harm caused by the use of this script.
- You assume all responsibility and liability for the usage of this script.
- It is your sole responsibility to ensure that you have the necessary authorization and comply with all applicable laws and regulations before engaging in cryptocurrency mining.
- The script creator disclaims any and all liability for any actions, damages, or losses resulting from the use or misuse of this script.
- Open the Termux app on your Android device.
- Install git by running the command:
pkg install git
. - Clone the repository by running:
git clone https://github.com/Bitofsin/install-Xmrig-Termux.git
. - Change to the cloned directory:
cd install-Xmrig-Termux
. - Make the script executable:
chmod +x build_xmrig.sh
. - Run the script:
./build_xmrig.sh
. - Follow the prompts to enter your desired username, password, and number of mining threads.
- Once the script finishes executing, you can start mining by running
~/startxmrig.sh
.
Please ensure you have the necessary authorization and comply with all applicable laws and regulations before engaging in cryptocurrency mining.