Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save digitalspaceport/1dc4ee6abdf3ef41410cdbc3bab98ac2 to your computer and use it in GitHub Desktop.
Save digitalspaceport/1dc4ee6abdf3ef41410cdbc3bab98ac2 to your computer and use it in GitHub Desktop.
stagMax - Mad Max plot stagger script with -2 directive
#!/bin/bash
cd ~/
mkdir stagMax
cd stagMax
wget https://github.com/jollyjollyjolly/chia-plotter/releases/download/beta6/chia_plot
chmod 755 chia_plot
#Uncomment for Slackware/UnRAID
#wget https://packages.slackonly.com/pub/packages/14.2-x86_64/libraries/libsodium/libsodium-1.0.18-x86_64-1_slonly.txz
#upgradepkg --install-new libsodium-1.0.18-x86_64-1_slonly.txz
#wget https://slackware.uk/slackware/slackware64-current/slackware64/ap/screen-4.8.0-x86_64-4.txz
#upgradepkg --install-new screen-4.8.0-x86_64-4.txz
mkdir ~/stagMax/chialogs && chmod 755 ~/stagMax/chialogs
ls ~/stagMax/chialogs
#execute on formatted devices mounts, make sure you end ALL mounts with a / or it crashes. Double check.
readonly pk='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
readonly fk='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
readonly dir2='/mnt/sdi/'
screen -d -m -S sdf bash -c 'sleep 000m && ~/stagMax/chia_plot -r 10 -n 2 -t /mnt/sdf/ -2 '"$dir2"' -d /mnt/sdf/ -p '"$pk"' -f '"$fk"' | tee ~/stagMax/chialogs/sdac.log'
screen -d -m -S sdb bash -c 'sleep 015m && ~/stagMax/chia_plot -r 10 -n 4 -t /mnt/sdb/ -2 '"$dir2"' -d /mnt/sdb/ -p '"$pk"' -f '"$fk"' | tee ~/stagMax/chialogs/sdac.log'
screen -d -m -S sdc bash -c 'sleep 030m && ~/stagMax/chia_plot -r 10 -n 4 -t /mnt/sdc/ -2 '"$dir2"' -d /mnt/sdc/ -p '"$pk"' -f '"$fk"' | tee ~/stagMax/chialogs/sdad.log'
screen -d -m -S sde bash -c 'sleep 045m && ~/stagMax/chia_plot -r 10 -n 4 -t /mnt/sde/ -2 '"$dir2"' -d /mnt/sde/ -p '"$pk"' -f '"$fk"' | tee ~/stagMax/chialogs/sdae.log'
screen -d -m -S sdg bash -c 'sleep 060m && ~/stagMax/chia_plot -r 10 -n 4 -t /mnt/sdg/ -2 '"$dir2"' -d /mnt/sdg/ -p '"$pk"' -f '"$fk"' | tee ~/stagMax/chialogs/sdaf.log'
screen -d -m -S sdh bash -c 'sleep 075m && ~/stagMax/chia_plot -r 10 -n 4 -t /mnt/sdh/ -2 '"$dir2"' -d /mnt/sdh/ -p '"$pk"' -f '"$fk"' | tee ~/stagMax/chialogs/sdag.log'
#lets watch it with tail, ctrl-c to quit tail on most machines
tail -f ~/stagMax/chialogs/*.log
@digitalspaceport
Copy link
Author

Change your keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment