Google Cloud Mining Guide
Due to popular demand I am writing this guide for Google Cloud Platform as a follow on from my Upcloud guide.
First of all, sign up for a free Google Cloud Account here -
https://cloud.google.com/free/This will give you $300 or £214 to play with.
Once you have signed up, you can convert your account to a paid account, as mining on free credit is against the T's and C's. This will give you higher CPU limits but you won't lose your free credit. To enable a billing account, click on Compute Engine, Create Instance, Enable Billing.
Once this is done you can now continue with my guide. A WORD OF WARNING, DO NOT GO ALL GUNS BLAZING WITH GCP!! YOU DON'T HAVE TO FILL ALL YOUR INSTANCE SPACES ALL IN ONE GO. DO IT GRADUALLY AND YOU ARE FAR LESS LIKELY TO BE BANNED.
Sometimes you may be asked to verify your account after converting to a billing account. This is straightforward and nothing to worry about. Just send the required docs and you should be fine.
First things first, we are going to need to create an "Instance Template" -
Then we need to select "Create Instance Template" -
A new box will open with details of your instance. Click "Customise" -
Set the "Machine Type" to 1 CPU, 1Gb RAM and "Skylake" CPU -
Under "Boot Disk" select "Change" -
Select "Ubuntu 16.04" and then click "Select" -
Next click "Management,disks, neworking, SSH keys" -
Copy the following code - (
REMEMBER TO USE YOUR OWN WALLET ADDRESS)
#! /bin/bash
set -x #echo on
sudo apt-get update
sudo apt-get install openjdk-8-jdk maven git gcc make -y
sudo apt-get install build-essential -y
cd
git clone git://github.com/Programmerdan/arionum-java
cd /arionum-java/arionum-miner
git checkout master
touch config.cfg
chmod 755 config.cfg
echo "pool
http://aropool.com/65AkkjBs2arwbikYVDh3B57aeehzpVp9Xw69tgewj8y8stx9FjajNhxR5Y3D9vzjYGgPGzuXbf7xSKn
1C2i2DxFY
`nproc`
standard
true
`hostname`" > config.cfg
mvn clean package
chmod +x build-argon.sh
./build-argon.sh
chmod +x run.sh
sudo apt-get install tmux -y
tmux new-session -d -s my_session 'sh run.sh'
and paste it into the "Automation" box -
Next set the "Preemptibility" to "On" (we do this to keep costs as low as possible) -
Click "Create".
This will now have created the base for any instances you will now launch.
Now to actually create the instances.
First of all click "Instance Groups", then "Create Instance Group" -
Set the options to "Multi Zone" and use the drop down to select "us-west1" -
Select the drop down for the instance template to be used and you should see the template you just created -
Next, set the
"Target CPU Usage" and "Minimum number of instances" to the following -
Finally leave everything else and click "Create" -
IMPORTANT-PLEASE READ THIS CAREFULLY!!!Now, you are not quite done yet. You need to repeat the steps above to create another "Instance Group", but this time when selecting the zone, select the next one up, so in this case "us-east4". Go through the steps exactly the same as before, but all you are doing now is creating another 8 instances in a different zone, as you can only have one instance group per zone. Do this for all available zones. This will then create and launch 64 instances.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Ok, depending on your needs, you can now create a new project by clicking your project name -
Then click the "+" sign here -
Give your next project a new name and then start from the beginning of this guide, "Create Instance Template".
You can have up to 5 projects in all whilst in the free trial, giving you a total of 5 x 64 instances = 320 instances total. The average h/s from a 1 CPU 1Gb RAM instance is around 2.5-3 h/s so you should get around 750-900 h/s using this guide.
A WORD OF WARNING!!! KEEP AN EYE ON "BILLING"!!!That's basically it, if you want to view your instances to make sure they are working, click on "VM Instances" on the top left of the menu, select any of your VM's and click the "SSH" box to the right of it's name.
When the SSH console connects, simply type -
sudo tmux attach
If tmux doesn't work for some reason (I have had trouble getting it to work lately on AWS and Google), simply type "top". This will bring a list of all running instances, and at the very top you should see "java".
Bear in mind, the server will need time to download and run the java miner, so give it a few minutes before checking on a VM.
That is basically it, if you have found this guide helps you, please consider donating to one of the addresses below. This testing and refining has taken me a whole lot of time and personal cost, however it is done for the benefit of ARO development and the ARO community.
Thanks for reading.
ARO : 65AkkjBs2arwbikYVDh3B57aeehzpVp9Xw69tgewj8y8stx9FjajNhxR5Y3D9vzjYGgPGzuXbf7xSKn 1C2i2DxFY
LTC : LbT8dztnd1F5PPLQJGXg5QXcUtLKXh8GrJ