Mount Google Drive pada Linux Server dengan Oauth Credentials Sendiri

Share

Tutorial Mount Google Drive pada Linux Server

Pada Artikel kali ini saya ingin berbagi Tutorial Mount Google Drive pada Linux Server dengan Oauth Credentials. Mari kita simak langkah langkah-nya :

Step 1 : Install Go Lang

tambahkan ini pada file .bash_profile

lalu reload PATH pake ini

Step 2 : Bikin Google Credentials Sendiri

caranya gini

  1. klik Google API Console
  2. Create a new project
  3. Enable Google Drive API
  4. Configure Consent Screen
  5. Create credentials pilih OAuth client ID

bingung ? ini ada tutorial yg pake gambar https://ztoro.com/blog/membuat-google-credential-sendiri-step-by-step/

Step 3 : Download GDrive & Set Credentials

Asumsi install go udah lancar, lanjut download GDrive project dari GitHub dan extract project pada folder. buka file handlers_drive.go edit lines 17 & 18 isi dengan google credentials yang tadi dibuat.

Step 4 : Build the Project

lihat pada GOOS=windows, jika pake linux atau macOS ganti jadi GOOS=linux. buka file yg ada di path GOENV=”/path/.config/go/env”

Step 5 : Upload & Test GDrive pada Server

akan muncul link kaya gini https://accounts.google.com/o/oauth2/auth?client_id=123456789123-7n0vf**** copas di browser lalu pilih akun yang tadi buat creadential lalu klik allow. Akan muncul verification code

copas itu code ke terminal.

Step 6 : File Upload Test

untuk melihat fitur lain ketik gdrive help di google. Selamat mencoba ya 😉
Sekian Tutorial yang bisa saya sampaikan I hope this article will help you.

Read More

1 Response

  1. November 20, 2020

    […] Baca juga : cara Mount Google Drive pada Linux Server dengan Oauth Credentials Sendiri […]