1. Registration
1.1. Google Account
-
Browse to Google Sign in.
-
Select Create account > For myself.
-
Select Use my current email address instead.
-
Enter first name, last name, email address and password.
First name John Last name Doe Your email address john@shoklo-unit.com Password ******** Confirm ********
-
Click Next.
-
Enter the verification code sent to john@shoklo-unit.com.
-
Click Verify.
-
Select country and enter phone number, birthday and gender.
Country Thailand Phone number 12345678 Birthday Month DD YYYY Gender Female/Male
-
Click Next.
-
Send Send to send a text message wih a 6-digit verification code to your phone.
-
Enter the verification code sent to your phone.
-
Click Verify.
-
Select Skip to skip adding your phone number to your Google account.
-
Click I agree.
-
Select > Sign out.
1.2. Google Cloud Platform
-
Browse to Google Sign in.
-
Type your email address and click Next.
-
Type your password and click Next.
-
Check I agree to the Google Cloud Platform Terms of Service and ….
-
Check I would like to receive periodic emails on news, product updates and special offers from Google Cloud and Google Cloud Partners.
-
Click Continue.
-
Set account type to Individual.
-
Enter your name and address details.
Name John Doe Address line 1 123 Main St Address line 2 Suburb City Anytown Province Postal code Phone number (optional) Card number #### #### #### #### MM YY MM/YY CVC ### Cardholder name John Doe ■ Credit or debit card address is same as above
-
Click START MY FREE TRIAL.
-
Select GOT IT.
-
Select > Sign out.
2. Google Cloud Sign In
-
Sign in to Google Cloud
-
Browse to Google Cloud.
-
Select Sign in.
-
Type your email address and click Next.
-
Type your password and click Next.
-
Click Go to console.
-
-
Make a note of the Project ID.
-
Select > Sign out.
3. Google Cloud SDK
3.1. Installation
3.1.1. Linux
3.1.2. Windows
-
Windows with Python installed: Extract the google-cloud-sdk-308.0.0-windows-x86_64.zip file.
-
Windows without Python installed: Extract the google-cloud-sdk-308.0.0-windows-x86_64-bundled-python.zip file.
-
Move the google-cloud-sdk folder to the C:\Program Files folder.
-
Enter the following commands at a Command Prompt with administrative privileges.
"C:\Program Files\google-cloud-sdk\install.bat" rem Press Enter to disable improving the Google Cloud SDK. rem Press Enter to update %PATH% to include Cloud SDK binaries. -
Add the C:\Program Files\google-cloud-sdk\bin path to the PATH system environment variable.
-
Enter the following commands at a Command Prompt with administrative privileges.
gcloud version gcloud components update -
Enter the following commands at a Command Line.
gcloud info gcloud version
3.2. Authorization
-
Enter the following commands at a Command Line.
gcloud auth login --no-launch-browser -
Start Mozilla Firefox.
-
Paste the authentication link in the address bar of the browser.
-
Type your email address and click Next.
-
Type your password and click Next.
-
Click Allow.
-
Paste the verification code at the Command Prompt and press Enter.
-
Close Mozilla Firefox.
3.3. Configuration
-
Enter the following commands at a Command Line.
gcloud config set project <project-id>
4. Enable OS Login
-
Enter the following commands at a Command Line.
gcloud compute project-info add-metadata --metadata enable-oslogin=TRUE
5. Debian Server
-
Sign in to Google Cloud
-
Select > Compute Engine > VM instances.
-
Click Create.
-
Type the host name.
-
Select a region and zone.
-
Select General-purpose.
-
Select CPU platform and GPU.
-
Select Boot disk > Change.
-
Select Debian GNU/Linux 10 (buster).
-
Click Select.
-
-
Select Management, security , disks, networking, sole tenancy.
-
Select the Management tab.
-
Select the Security tab.
-
Select the Disks tab.
-
Select the Networking tab.
-
Type
smru-tst-gcp.shoklo-unit.comfor the custom hostname.
-
-
Select the Sole Tenancy tab.
Name smru-tst-gcp Labels Region asia-southeast1 (Singapore) Zone asia-southeast1-b Machine configuration Machine family General-purpose Series N1 Machine type f1-micro (1 vCPU, 614 MB memory) CPU platform Automatic GPUs Display device □ Turn on display device Confidential VM service □ Enable the Confidential Computing service on this VM instance. Container □ Deploy a container image to this VM instance. Boot disk New 10 GB standard persistent disk Debian GNU/Linux 10 (buster) Identity and API access Service account Comp[ute Engine default service account Access scopes ● Allow default access ○ Allow ful access to all cloud APIs ○ Set access for each API Firewall □ Allow HTTP traffic □ Allow HTTPS traffic -
Click Create.
-
Sign out*.
6. First Time SSH Connection
6.1. CMD
gcloud compute ssh smru-tst-gcp
gcloud compute scp W:\Software\_Delta\delta-linux-tools-#.#.#-1-all.deb smru-tst-gcp:
6.2. GUI
-
Sign in to Google Cloud
-
Select > Compute Engine > VM instances.
-
Select SSH.
-
Do your thing.
-
Type
exitand press Enter. -
Sign out.