diff --git a/wow-sman.sh b/wow-sman.sh index 4ec9e0a..80f858b 100644 --- a/wow-sman.sh +++ b/wow-sman.sh @@ -9,22 +9,18 @@ textbox=cyan,yellow button=yellow,magenta ' -if (whiptail --title "Solo Miners Alliance Network" --yesno "This will install Wownero and add peers according to Wownero Solo Miners Alliance (https://forum.wownero.com/t/solo-miners-alliance-network/746)" --yes-button "Continue" --no-button "Exit" 8 78); then - > /tmp/wow-sman.log -else - exit -fi + ## add packages for install -sudo apt install ansible pip libffi-dev curl git build-essential cmake libuv1-dev libssl-dev libhwloc-dev uuid-dev -y &> /tmp/wow-sman.log | whiptail --title 'Solo Miners Alliance Network' --gauge 'Adding packages.. ansible pip libffi-dev curl git' 6 60 10 +sudo apt install ansible pip libffi-dev curl git build-essential cmake libuv1-dev libssl-dev libhwloc-dev uuid-dev -y ## grab ansible playbook -git clone https://git.wownero.com/qvqc/ansible-remote-node &> /tmp/wow-sman.log | whiptail --title 'Solo Miners Alliance Network' --gauge 'Adding packages.. ansible pip libffi-dev curl git' 6 60 30 +git clone https://git.wownero.com/qvqc/ansible-remote-node cd ansible-remote-node ## add Alliance Network Nodes here -cat <> roles/wownerod/templates/wownerod.conf.j2 | whiptail --title 'Solo Miners Alliance Network' --gauge 'Add Alliance Peers' 6 60 40 +cat <> roles/wownerod/templates/wownerod.conf.j2 add-peer=v2admi6gbeprxnk6i2oscizhgy4v5ixu6iezkhj5udiwbfjjs2w7dnid.onion:34566 add-peer=iy6ry6uudpzvbd72zsipepukp6nsazjdu72n52vg3isfnxqn342flzad.onion:34566 add-peer=7ftpbpp6rbgqi5kjmhyin46essnh3eqb3m3rhfi7r2fr33iwkeuer3yd.onion:34566 @@ -44,15 +40,15 @@ add-peer=rkel2qy7xv3cc5bnxfrzwgh3jvd4woagd4vlhr3qsdxy6cfkimnq.b32.i2p:34565 EOT ## setup pip dep -sudo pip install -r requirements.txt &> /tmp/wow-sman.log | whiptail --title 'Solo Miners Alliance Network' --gauge 'Setup Ansible' 6 60 40 +sudo pip install -r requirements.txt ## wipe and set inventory to localhost -> inventory.ini | whiptail --title 'Solo Miners Alliance Network' --gauge 'Setup Ansible' 6 60 40 -echo "[all]" >> inventory.ini | whiptail --title 'Solo Miners Alliance Network' --gauge 'Setup Ansible' 6 60 40 -echo "localhost ansible_connection=local" >> inventory.ini | whiptail --title 'Solo Miners Alliance Network' --gauge 'Setup Ansible' 6 60 40 +> inventory.ini +echo "[all]" >> inventory.ini +echo "localhost ansible_connection=local" >> inventory.ini ## run playbook -ansible-playbook -i inventory.ini site.yaml -b &> /tmp/wow-sman.log | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Wownero, Tor, i2pd' 6 60 70 +ansible-playbook -i inventory.ini site.yaml -b ## getting local node info i2pP2P=$( curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0-9./?=_%:-]*" | grep "34565" ) @@ -60,24 +56,26 @@ i2pRPC=$( curl http://127.0.0.1:7070/?page=i2p_tunnels 2>&1 | grep -Eo "[a-zA-Z0 torRPCP2P=$( cat /var/lib/tor/wownero/hostname ) ## add xmrig -git clone https://github.com/xmrig/xmrig.git /tmp/xmrig | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 93 -sudo mkdir /tmp/xmrig/build | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 94 -cd /tmp/xmrig/build | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 94 -sudo cmake .. | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 94 -sudo make -j$(nproc) | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 95 -sudo cp -a /tmp/xmrig/build/xmrig /usr/local/bin/xmrig| whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 95 +cd ~ +git clone https://github.com/xmrig/xmrig.git +mkdir xmrig/build +cd xmrig/build +cmake .. +make -j$(nproc) +sudo cp -a xmrig /usr/local/bin/xmrig ## add xmrig-proxy -git clone https://github.com/xmrig/xmrig-proxy.git /tmp/xmrig-proxy &> /tmp/wow-sman.log| whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig-Proxy' 6 60 96 -mkdir /tmp/xmrig-proxy/build -cd /tmp/xmrig-proxy/build -sudo cmake .. &> /tmp/wow-sman.log| whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig-Proxy' 6 60 97 -sudo make -j$(nproc) &> /tmp/wow-sman.log | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig-Proxy' 6 60 98 -sudo cp -a /tmp/xmrig-proxy/build/xmrig-proxy /usr/local/bin/xmrig-proxy | whiptail --title 'Solo Miners Alliance Network' --gauge 'Installing Xmrig' 6 60 95 +cd ~ +git clone https://github.com/xmrig/xmrig-proxy.git +mkdir xmrig-proxy/build +cd xmrig-proxy/build +cmake .. +make -j$(nproc) +sudo cp -a xmrig-proxy /usr/local/bin/xmrig-proxy ## display node information > /tmp/WelcomeAlliance -cat <> /tmp/WelcomeAlliance | whiptail --title 'Solo Miners Alliance Network' --gauge 'Finishing Up..' 6 60 100 +cat <> /tmp/WelcomeAlliance Welcome to the Wownero Solo Miners Alliance Network ADD RPC URLs TO @@ -93,4 +91,4 @@ YOUR TOR P2P/RPC ADDRESS ( :34566 / :34568 ) $torRPCP2P EOT -whiptail --title "Solo Miners Alliance Network" --textbox /tmp/WelcomeAlliance 20 70 +cat /tmp/WelcomeAlliance