Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Zcoin cloud mining guide for newbies Part 1: Google Cloud
Zcoin cloud mining guide for newbies
Copyright 2017 by Zcoin developers
Part 1 - Google Cloud
1 - First is of course to register if you don't have any. Simply go to https://console.cloud.google.com/ and follow the instruction.
After activating your account and give Google the information they require, you should be able to use their services.
Go to https://console.cloud.google.com/billing to check your current billing account. You should see your free trial credit (300$) in the standard billing.
**Remember that you can't use this free trial credit to mine cryptocurrencies because it's against Google' ToS and they will suspend your account if you use that billing to mine. **
2 - Therefore, we have to create another billing account. Simply click on 'New billing account'. Give it a name, then click Continue. Choose the country, click Confirm. You have to give your info and the payment data, then click Submit and enable billing. You should be able to use the new billing account to mine now.
If you have some credits you could redeem them at https://console.cloud.google.com/billing/redeem Make sure you choose the right billing account.
That is for the billing part. You could create as many billing accounts as you want with Google Cloud, which is a nice thing.
3 - Now comes to the mining part. You just go back to your home page at google cloud and create a new project. Simply click on the text near the Google Cloud Platform banner on top left side and click on Create project. Give it a name and click on Create. It will take a few minutes.
To ensure you choose the right billing you might want to check your billing page again to see whether the new project is linked correctly to your new billing account.
4 - Make sure you choose the newly created project, then click on top left icon and choose Compute Engine.
If the screen shows like this then you do correctly, it will take another few minutes to activate the compute engine. Then choose Instance templates and click on Create instance templates. Choose customize and set the specs like below: 8 cores, 7.2 GB RAM, Ubuntu 14.04 LTS, then click on Management, disk, networking, SSH keys
Remember to choose Preemptibility = On to reduce the cost and you have to use the startup script as described below
Startup script basically does all the dirty mining work for you at start so you really should to use them, esp. when you set the instance with Preemptibility = On.
You have two choices of startup script: Remember to change the pool info to your need.
a) Update the instance and compile cpuminer from source, which should take about 10-20minutes. Advantage: you don't have to trust our precompiled-binaries. Just paste this code on the startup script field at google cloud.
#!/bin/bash sudo apt-get update sudo apt-get install -y build-essential libssl-dev libcurl4-openssl-dev libjansson-dev libgmp-dev automake git screen git clone https://github.com/Optiminer/cpuminer-xzc cd cpuminer-xzc ./build.sh cp cpuminer ../ cd .. screen -d -m ./cpuminer -a lyra2rev2 -o stratum+tcp://xzc.pool.mn:2428 -u yourname.1 -p x
b) Using precompiled binaries somewhere. For example https://github.com/aizensou/cpuminer-xzc/releases. Advantage: instance could start mining almost immediately.
#!/bin/bash cd / wget https://github.com/aizensou/cpuminer-xzc/releases/download/beta/xzc.tar.gz tar -zxvf xzc.tar.gz cp libjansson.so.4 /usr/lib/x86_64-linux-gnu/libjansson.so.4 chmod +x cpuminer screen -d -m ./cpuminer -a lyra2rev2 -o stratum+tcp://xzc.pool.mn:2428 -u yourname.1 -p x
It should look like that, click on Create. 5 - Now go to Instance groups, click on Create Instance groups. You could give a name to the group to easier to remember. Important to choose is the Zone, there are 6 zones to choose (asia-east, asia-northeast, europe ... etc.) and each zone you have a hard limit of 24 cores. So choose a zone and give 3 for number of instances (Since 8 cores per instance x 3 = 24 cores). You simply can't have more. Click Create and if it looks like this you will be fine.
Now go to create more group, one group for each zone so you could have 24cores x 6 zones mining for you.
Of course you could create another project and do the same to have more mining power.
That is. Have fun mining.