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
- Go to the Google Cloud Platform website. 
- Click on the "Get started for free" button. 
- Sign in with your Google account or create a new one. 
- 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
- Once logged in, go to the GCP Console. 
- At the top of the page, next to "Google Cloud Platform," you'll see a dropdown. Click on it and select "New Project."  
- Enter a project name and click "Create." 
Step 3: Set Up a Virtual Private Server (VPS)
- In the GCP Console, click on the three horizontal lines in the left upper corner of the screen, then select "Compute Engine" > "VM instances."  
- Click "Create Instance." If you don't see this button, click "ENABLE" first.   
- Name your instance and choose a region. 
- In the machine type section, click on “Custom”. Configure it with 4 vCPUs for “Cores” and 8 GB for “Memory”.  
- 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.  
- Click "Create" to set up your VPS. 
(Edge Node Only) Step 4: Configure the firewall
- In the GCP Console, click on the three horizontal lines in the left upper corner of the screen, then select "VPC network" > "Firewall".  
- Click "CREATE FIREWALL RULE" on the top:  
- Enter the rule name in the "Name" field.  
- 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. 
- 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.  
- 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." 
- Click on the instance to access its detail page.  
- Click the "Edit" button.  
- 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
- Go to the instance page. Click on the "SSH" button to open a terminal window directly in your browser.  
- 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.
Last updated
