Google Cloud Platform (GCP)

Setting Up a VPS on Google Cloud Platform (GCP) and Installing Ubuntu for SendingNetwork Testnet Mining

Welcome to the SendingNetwork Testnet Mining tutorial! This guide is designed for both developers and non-developers interested in running a relay node on the SendingNetwork. We'll walk you through setting up a Virtual Private Server (VPS) on Google Cloud Platform (GCP), installing Ubuntu, and running a script that boosts up our node with a few commands. Don't worry if you have no coding experience; we'll keep things simple and straightforward.

Step 1: Create a Google Cloud Platform Account

  1. Click on the "Get started for free" button.

  2. Sign in with your Google account or create a new one.

  3. Follow the on-screen instructions to set up your GCP account. You might need to provide billing information, but GCP offers a free trial with $300 credit.

Step 2: Create a New Project

  1. Once logged in, go to the GCP Console.

  2. At the top of the page, next to "Google Cloud Platform," you'll see a dropdown. Click on it and select "New Project."

  3. Enter a project name and click "Create."

Step 3: Set Up a Virtual Private Server (VPS)

  1. In the GCP Console, click on the three horizontal lines in the left upper corner of the screen, then select "Compute Engine" > "VM instances."

  2. Click "Create Instance." If you don't see this button, click "ENABLE" first.

  3. Name your instance and choose a region.

  4. In the machine type section, click on “Custom”. Configure it with 4 vCPUs for “Cores” and 8 GB for “Memory”.

  5. In the "Boot disk" section, click "Change," select "Ubuntu," and choose "Ubuntu 20.04 LTS" with X86/64 architecture. Set the disk size to 200 GB.

  6. Click "Create" to set up your VPS.

Step 4: Configure the firewall

  1. In the GCP Console, click on the three horizontal lines in the left upper corner of the screen, then select "VPC network" > "Firewall".

  2. Click "CREATE FIREWALL RULE" on the top:

  3. Enter the rule name in the "Name" field.

  4. Select "Specified target tags" from the "Target" dropdown menu to ensure the firewall rule is applied only to certain instances within the virtual network. Afterwards, assign a tag to these instances by typing the tag name "relayrule" in the "Target tags" field.

  5. Enter "0.0.0.0/0" in the "Source IPv4 ranges" field. Select "Specified protocols and ports," tick the "TCP" option, and specify the ports to open by entering "9085,15858,9702,2112." Click "CREATE" to add the firewall tag.

  6. Now go back to the instance page by clicking on the three horizontal lines in the left upper corner of the screen, then select "Compute Engine" > "VM instances."

  7. Click on the instance to access its detail page.

  8. Click the "Edit" button.

  9. Enter the "relayrule" tag you previously created into the "Network tags" field, then click the "SAVE" button to complete the firewall configuration.

Step 5: Access Your VPS

  1. Go to the instance page. Click on the "SSH" button to open a terminal window directly in your browser.

  2. You're now connected to your VPS!

Conclusion

And that's it! You've successfully set up a VPS on Google Cloud Platform, installed Ubuntu 20.04 LTS with neccessary firewall configuration.

Should you encounter any issues or have questions, don't hesitate to seek support from the SendingNetwork community.

Last updated