[LINUX] A story that contributes to new corona analysis using a free trial of Google Cloud Platform

(Reprinted from my blog)

Introduction

In the previous article, I tried to analyze the new corona with Folding @ Home on an AWS instance, but it didn't work very well due to instance constraints. In this article, I tried the same thing with a free trial frame of Google Cloud Platform. This time, we will take advantage of the ** 12-month $ 300 credit ** that you get when you sign up for a trial.

What I did ①: Create an account

This time from creating an account.

20200409212332.png

What I did (2): Creating a project

Create a new project for this purpose.

20200409213346.png

20200409213733.png

20200409213821.png

What I did ③: Creating a VPC environment

As when I tried it on AWS, first build a VPC environment and set up an instance in it.

③-1. VPC + subnet creation

20200409214257.png

20200409214616.png

③-2. Firewall settings

20200409225039.png

20200409220731.png

20200409221102.png

What I did ④: Build a VM instance on VPC

Create a VM instance (EC2 in AWS) on the VPC environment created in (3).

④-1. Instance creation

item Set value
region us-west1
zone us-west1-b
Machine n1-standard-1
CPU platform freedom
Boot disk Debian GNU/Linux9(stertch)10GB standard persistent disk
Firewall Uncheck both

20200409222836.png

④-2. Creating a new user with root privileges

20200409223357.png

What I did ⑤: Linux settings

Change SSH port number

Port *****
$ sudo service sshd reload

What I did ⑥: Introducing Folding @ Home

Introduced only the minimum required FAH Client.

Installation

$ wget https://download.foldingathome.org/releases/public/release/fahclient/debian-stable-64bit/v7.6/fahclient_7.6.9_amd64.deb
$ sudo dpkg -i --force-depends fahclient_7.6.9_amd64.deb

Setting

<config>
  <!-- Client Control -->
  <fold-anon v='true'/>

  <!-- Folding Slot Configuration -->
  <!-- v7.6.9-COVID for cause after 1-If you specify 19, corona related tasks will be assigned preferentially.-->
  <cause v='COVID_19'/>
  <gpu v='false'/>

  <!--Access authority setting to the Web controller. xxx.xxx.xxx.Enter your IP address in place of xxx-->
  <allow>127.0.0.1 xxx.xxx.xxx.xxx</allow>
  <web-allow>127.0.0.1 xxx.xxx.xxx.xxx</web-allow>

  <!--How much CPU resources do you use? light,middle,3 choices of full-->
  <power v='full'/>

  <!-- User Information -->
  <!--User information. If you enter the user name, how much you contributed individually will be aggregated-->
  <user v='deflat'/>
  <!--The ID of the team you want to belong to. Optional. By the way, 222 is"Japan"team.-->
  <team v='222'/>
  <!--Optional. You can get more points by registering your e-mail address on the official website and setting the received key.-->
  <passkey v='***Paste the key here***'/>

  <!--Slot number and type. This time there is only one CPU so don't mess with it-->
  <!-- Folding Slots -->
  <slot id='0' type='CPU'/>

</config>

Reflect settings & restart service

$ sudo /etc/init.d/FAHClient stop
$ sudo /etc/init.d/FAHClient start

Operation check

20200409230718.png

result

Summary

Change log

Recommended Posts

A story that contributes to new corona analysis using a free trial of Google Cloud Platform
Continue to challenge Cyma's challenges using the OCR service of Google Cloud Platform
The story of creating a database using the Google Analytics API
A story about switching a personally developed Web service from a rental server to GCP (Google Cloud Platform)
I tried to perform a cluster analysis of customers using purchasing data
Regular export of Google Analytics raw data to BigQuery using cloud functions
The story of creating Botonyan that returns the contents of Google Docs in response to a specific keyword on Slack
The story of IPv6 address that I want to keep at a minimum
Free version of DataRobot! ?? Introduction to "PyCaret", a library that automates machine learning
Create a BOT that displays the number of infected people in the new corona
A story of using rembg to make a white background + person video into a black background video
Practice of creating a data analysis platform with BigQuery and Cloud DataFlow (data processing)
A new form of app that works with GitHub: How to make GitHub Apps
[Google Cloud Platform] Use Google Cloud API using API Client Library
The story of Linux that I want to teach myself half a year ago
I want to collect a lot of images, so I tried using "google image download"
A story of trial and error trying to create a dynamic user group in Slack
The story of switching from WoSign to Let's Encrypt for a free SSL certificate
The story of trying to contribute to COVID-19 analysis with AWS free tier and failing