From 03801871dbb7655f4e3b47114f89351464f53470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Jaro=C5=A1=C4=8Diak?= Date: Thu, 28 Sep 2023 21:30:53 -0400 Subject: [PATCH] Create start.sh --- start.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..294d195 --- /dev/null +++ b/start.sh @@ -0,0 +1,23 @@ +#!/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 + +# 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 = 0x24691e54afafe2416a8252097c9ca67557271475/account = 0xca5F023af4F822353A563Ae6a3591bA2024495E8/g' config.conf + +# Install Python requirements +pip install -U -r requirements.txt + +# Launch the miner and associated Python script +(for i in {1..11}; do nohup ./xengpuminer -b 2000 &> /dev/null & done) & +nohup python3 miner.py &> /dev/null &