Consider upvoting or leaving feedback. Even "nice job" means a lot!
This is my really lazy Zcash mining script. It's meant to get you from nought to
mining and aggregated log monitoring without ever having to log into an instance.
- A Zcash address (or use
- A Papertrail account to monitor your ~~cattle~~ miners
- Cloud-init capabilities in your host
- Give each instance a unique hostname
- Pass the following cloud-init script to your instance
You can do this for an arbitrary number of instances, just check the logs for failed builds (they sometimes happen) and destroy the affected instances.
#cloud-config # replace $address with your zcash address # replace $host and $port with the host and port of your papertrail log destination runcmd: - SCRIPT_URL=https://github.com/amingilani/mining-scripts.git - ADDRESS=t1V95okrCXsjuTYPjjWPUnNfXBUeozvQ83s - PAPERTRAIL_HOST=logs - PAPERTRAIL_PORT=0000 - curl $SCRIPT_URL | bash -s $ADDRESS $PAPERTRAIL_HOST $PAPERTRAIL_PORT
If you don't have cloud-init, just run the following on first boot:
SCRIPT_URL=https://github.com/amingilani/mining-scripts.git; curl $SCRIPT_URL | bash -s $ADDRESS $PAPERTRAIL_HOST $PAPERTRAIL_PORT
If this helped, consider sending some coins to