Skip to content

Instantly share code, notes, and snippets.

@umiiii
Last active August 29, 2023 08:11
Show Gist options
  • Save umiiii/1a80167ffefab6d9685c009694412ace to your computer and use it in GitHub Desktop.
Save umiiii/1a80167ffefab6d9685c009694412ace to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /root/
apt-get install unzip -y
apt-get install nano -y
wget https://github.com/h9-dev/spacemesh-miner/releases/download/v1.3.0/H9-Miner-spacemesh-v1.3.0-2-linux.zip
unzip H9-Miner-spacemesh-v1.3.0-2-linux.zip && rm -rf /root/linux/config.yaml
sudo -v ; curl https://rclone.org/install.sh | sudo bash
echo '''
path:
- "/root/linux"
minerName:
apiKey:
cachePath: ""
log:
lv: info
path: ./log/
name: miner.log
url:
proxy: ""
scanPath: false
scanMinute: 60
proxy:
url: ""
username: ""
password: ""
# parameter settings
extraParams:
device: ""
numUnits: 15
maxFileSize: 2
disablePlot: false
postThread: 0
flags: fullmem
''' >> /root/linux/config.yaml
#/root/linux/h9-miner-spacemesh-linux-amd64 --config /root/linux/config.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment