forked from RaiderT/VerusCliMining
-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·48 lines (40 loc) · 1.8 KB
/
install.sh
File metadata and controls
executable file
·48 lines (40 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y install libcurl4-openssl-dev libjansson-dev libomp-dev git screen nano jq wget
wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_arm64.deb
sudo dpkg -i libssl1.1_1.1.0g-2ubuntu4_arm64.deb
rm libssl1.1_1.1.0g-2ubuntu4_arm64.deb
mkdir ~/ccminer
cd ~/ccminer
GITHUB_RELEASE_JSON=$(curl --silent "https://api.github.com/repos/Oink70/CCminer-ARM-optimized/releases?per_page=1" | jq -c '[.[] | del (.body)]')
GITHUB_DOWNLOAD_URL=$(echo $GITHUB_RELEASE_JSON | jq -r ".[0].assets | .[] | .browser_download_url")
GITHUB_DOWNLOAD_NAME=$(echo $GITHUB_RELEASE_JSON | jq -r ".[0].assets | .[] | .name")
echo "Downloading latest release: $GITHUB_DOWNLOAD_NAME"
wget ${GITHUB_DOWNLOAD_URL} -O ~/ccminer/ccminer
wget https://raw.githubusercontent.com/MaxAnd317/VerusCliMining/main/config.json -O ~/ccminer/config.json
wget https://raw.githubusercontent.com/MaxAnd317/VerusCliMining/main/config_luckpool.json -O ~/ccminer/config_luckpool.json
wget https://raw.githubusercontent.com/MaxAnd317/VerusCliMining/main/config_zerg_party.json -O ~/ccminer/config_zerg_party.json
chmod +x ~/ccminer/ccminer
cat << EOF > ~/ccminer/start.sh
#!/bin/sh
~/ccminer/ccminer -c ~/ccminer/config.json
EOF
chmod +x start.sh
cat << EOF > ~/ccminer/start2.sh
#!/bin/sh
~/ccminer/ccminer -c ~/ccminer/config_luckpool.json
EOF
chmod +x start2.sh
cat << EOF > ~/ccminer/start3.sh
#!/bin/sh
~/ccminer/ccminer -c ~/ccminer/config_zerg_party.json
EOF
chmod +x start3.sh
echo "setup nearly complete."
echo "Edit the config with \"nano ~/ccminer/config.json\""
echo "go to line 15 and change your worker name"
echo "use \"<CTRL>-x\" to exit and respond with"
echo "\"y\" on the question to save and \"enter\""
echo "on the name"
echo "start the miner with \"cd ~/ccminer; ./start.sh\"."