Followed a link? 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.
1 click to deploy, and all your miner logs are aggregated in a single place.
You'll need:
- A Zcash address (or use
t1V95okrCXsjuTYPjjWPUnNfXBUeozvQ83s
) - A Papertrail account to monitor your
cattleminers - Ubuntu instances (tested on 14.04 & 16.04)
- Optional: cloud-init capabilities in your host
To start:
- Give each instance a unique hostname (this will be your worker name)
- Pass the following cloud-init script to your instance
- Profit!
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 the values of:
# - $ADDRESS with your zcash address
# - $PAPERTRAIL_HOST and $PAPERTRAIL_PORT with the host and port of your
# papertrail log destination
runcmd:
- SCRIPT_URL=https://raw.githubusercontent.com/amingilani/mining-scripts/master/initialize.sh
- ADDRESS=t1V95okrCXsjuTYPjjWPUnNfXBUeozvQ83s
- PAPERTRAIL_HOST=logs5
- PAPERTRAIL_PORT=00000
- curl $SCRIPT_URL | bash -s $ADDRESS $PAPERTRAIL_HOST $PAPERTRAIL_PORT
If you don't have cloud-init, just run the following on first boot:
# Change ADDRESS, and PAPERTRAIL variables
ADDRESS=t1V95okrCXsjuTYPjjWPUnNfXBUeozvQ83s && \
PAPERTRAIL_HOST=logs5 && \
PAPERTRAIL_PORT=00000 && \
SCRIPT_URL=https://raw.githubusercontent.com/amingilani/mining-scripts/master/initialize.sh && \
curl $SCRIPT_URL | bash -s $ADDRESS $PAPERTRAIL_HOST $PAPERTRAIL_PORT
These scripts aren't free, but you're allowed to trial them as long as you want. When you're ready, pay via:
- Code contributions
- Zcash:
t1V95okrCXsjuTYPjjWPUnNfXBUeozvQ83s