Update vast.sh

This commit is contained in:
Jozef Jaroščiak 2023-10-03 14:31:08 -04:00 committed by GitHub
parent 9041ec83eb
commit d6d9c46077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

39
vast.sh
View File

@ -1,24 +1,63 @@
#!/bin/bash #!/bin/bash
# Update package list and install necessary packages # Update package list and install necessary packages
sudo apt update sudo apt update
sleep 5
echo "---------------------------"
sudo apt -y install ocl-icd-opencl-dev sudo apt -y install ocl-icd-opencl-dev
sleep 5
echo "---------------------------"
sudo apt -y install nano sudo apt -y install nano
sleep 5
echo "---------------------------"
sudo apt -y install htop sudo apt -y install htop
sleep 5
echo "---------------------------"
# sudo apt -y install nvtop # sudo apt -y install nvtop
sudo apt -y install cmake sudo apt -y install cmake
sleep 5
echo "---------------------------"
sudo apt -y install python3-pip sudo apt -y install python3-pip
sleep 5
echo "---------------------------"
# Clone the repository and build the project # Clone the repository and build the project
git clone https://github.com/shanhaicoder/XENGPUMiner.git git clone https://github.com/shanhaicoder/XENGPUMiner.git
sleep 5
echo "---------------------------"
cd XENGPUMiner cd XENGPUMiner
sleep 5
echo "---------------------------"
chmod +x build.sh chmod +x build.sh
sleep 5
echo "---------------------------"
./build.sh ./build.sh
sleep 5
echo "---------------------------"
# Update the configuration file # Update the configuration file
sed -i 's/account = 0x24691e54afafe2416a8252097c9ca67557271475/account = 0xca5F023af4F822353A563Ae6a3591bA2024495E8/g' config.conf sed -i 's/account = 0x24691e54afafe2416a8252097c9ca67557271475/account = 0xca5F023af4F822353A563Ae6a3591bA2024495E8/g' config.conf
sleep 5
echo "---------------------------"
# Install Python requirements # Install Python requirements
sudo pip install -U -r requirements.txt sudo pip install -U -r requirements.txt
sleep 5
echo "---------------------------"
sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 & sudo nohup python3 miner.py --gpu=true > miner.log 2>&1 &
sleep 5
echo "---------------------------"
sudo nohup ./xengpuminer > xengpuminer.log 2>&1 & sudo nohup ./xengpuminer > xengpuminer.log 2>&1 &
sleep 5
echo "---------------------------"