Install Google-drive-ocamlfuse in Centos/Ubuntu and mount Google Drive

Install Google-drive-ocamlfuse in Centos/Ubuntu and mount Google Drive

See: Gdrive: Sync Google Drive files and automatically backup websites to Google Drive under Linux
In fact, Google Drive can also be mounted on Linux using the Google-drive-ocamlfuse (OCamlfuse) tool.

1. Install Google-drive-ocamlfuse under CentOS 7 and mount Google Drive
1. Install necessary components

 yum install -y git yum install -y hg yum install sqlite-devel fuse fuse-devel libcurl-devel zlib-devel m4

2. Install opam

 yum install ocaml ocamldoc ocaml-camlp4-devel wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh -O - | sh -s /usr/local/bin/ yum install opam init

3. Install google-drive-ocamlfuse

 opam install google-drive-ocamlfuse

4. google-drive-ocamlfuse common commands

 google-drive-ocamlfuse --help

5. Get the Google Drive API
Reference: Install Nextcloud on VPS, share Google Drive, and download BT

6. Replace client-ID and client-secret with your own.

 google-drive-ocamlfuse -headless -label me -id client-ID -secret client-secret

After that, a line of links will appear. Copy and paste it into the browser and open it.

7. Mount Google Drive

 mkdir /home/google-drive google-drive-ocamlfuse -label me /home/google-drive

2. Install Google-drive-ocamlfuse in Ubuntu 14.04 and mount Google Drive

1. Install google-drive-ocamlfuse

 sudo add-apt-repository ppa:alessandro-strada/ppa sudo apt-get update sudo apt-get install google-drive-ocamlfuse

2. Get the Google Drive API
Reference: Install Nextcloud on VPS, share Google Drive, and download BT

3. Replace client-ID and client-secret with your own.

 google-drive-ocamlfuse -headless -label me -id client-ID -secret client-secret

After that, a line of links will appear. Copy and paste it into the browser and open it.

4. Mount Google Drive

 mkdir /home/google-drive google-drive-ocamlfuse -label me /home/google-drive

The above article refers to the following 2 articles:
https://github.com/kimduho/linux/wiki/CentOS-7-Google-Drive-mount
https://www.linode.com/docs/applications/cloud-storage/access-google-drive-linode

<<:  Uniregistry: Single-letter domain names at low prices

>>:  LayerOnline: $199/month/E3-1230/16GB memory/1TB SSD hard drive/100TB traffic/Dallas

Recommend

PeakServers:$12/year/1 CPU/1G/25G/2T/1 IP/OpenVZ

I have introduced it many times. Now it seems tha...

cbvps: 7 yuan/month/1GB memory/12GB space/800GB traffic/NAT/KVM/Dallas Psychz

cbvps, a Hong Kong hosting provider, mainly provi...

DignusData 1GB RAM 50Mbps Bandwidth Hong Kong PCCW KVM VPS Review

Details : DignusData: Hong Kong pccw, Taiwan, Mac...

HiFormance: $9.99/year/1G memory/120GB space/2TB traffic/OpenVZ/Los Angeles

HiFormance, an American hosting provider, is loca...

Tencent Cloud: 8 yuan/month/1GB memory/50GB space/unlimited traffic/1Mbps/Guangzhou

Tencent Cloud’s activities are very powerful. AMD...

【Double 11】Xura Cloud: Double 11 discount

Shura Cloud is welcoming the most favorable event...