Zcoin cloud mining guide for newbies Part 1: Google Cloud

aizensou edited this page Jan 10, 2017 · 1 revision

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.

1

**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'. 2 Give it a name, then click Continue. 3 Choose the country, click Confirm. 4 You have to give your info and the payment data, then click Submit and enable billing. 5 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 6 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. 7 Give it a name and click on Create. It will take a few minutes. 8

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. 9

If the screen shows like this then you do correctly, it will take another few minutes to activate the compute engine. 10 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 11

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. 12 5 - Now go to Instance groups, click on Create Instance groups. 13 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. 14 Click Create and if it looks like this you will be fine. 15

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.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.