From 7a8552d4fa1a9eebb29f1510623c7085a1ba52eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jozef=20Jaro=C5=A1=C4=8Diak?= Date: Sun, 1 Oct 2023 09:30:05 -0400 Subject: [PATCH] Create gpu3.sh --- gpu3.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gpu3.sh diff --git a/gpu3.sh b/gpu3.sh new file mode 100644 index 0000000..d896f90 --- /dev/null +++ b/gpu3.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 +apt -y install nvtop +apt -y install cmake + +# 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 = 0xC63153AB2D4e0fcC2ee66C78fE6747561D96c3a0/g' config.conf + +# Install Python requirements +pip install -U -r requirements.txt +nohup python miner.py --gpu=true > miner.log 2>&1 & +nohup ./xengpuminer > xengpuminer.log 2>&1 &