24 lines
634 B
Bash
24 lines
634 B
Bash
#!/bin/bash
|
|
|
|
# Update package list and install necessary packages
|
|
apt update
|
|
apt -y install ocl-icd-opencl-dev
|
|
apt -y install nano
|
|
apt -y install htop
|
|
apt -y install nvtop
|
|
apt -y install cmake
|
|
apt -y install python3-pip
|
|
|
|
# Clone the repository and build the project
|
|
git clone https://github.com/shanhaicoder/XENGPUMiner.git
|
|
cd XENGPUMiner
|
|
chmod +x build.sh
|
|
./build.sh
|
|
|
|
# Update the configuration file
|
|
sed -i 's/account = 0x1b9786d1b9e1e347cf791b3aff8518a837e8715f/account = 0xca5F023af4F822353A563Ae6a3591bA2024495E8/g' config.conf
|
|
|
|
# Install Python requirements
|
|
pip install -U -r requirements.txt
|
|
nohup ./miner.sh > miner.log 2>&1 &
|