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

OneProvider: €10/month/i3-530/4GB RAM/2TB HDD/unlimited traffic/France

OneProvider is a long-established hosting provide...

Vultr: Deposit $5 and get $25, valid for 1 year

Vultr, a well-known hosting provider, has many da...

OneProvider 512MB RAM Los Angeles KVM VPS Review

Details: OneProvider: $2.5/month/512MB memory/20G...

Rackedge: $2/month/2GB memory/30GB space/unlimited traffic/100Mbps port/OVZ/UK

Rackedge, an Indian merchant, was established in ...

Beyotta Network: $10.95/month/2G memory/20GB space/1TB traffic/KVM/Singapore M1

Beyotta Network, a Singapore hosting provider, st...

VortexNode: $1/year/5GB space/50GB traffic/Chicago/Atlanta

VortexNode has launched two more discounted virtu...

MVPS: €3/month/2GB RAM/25GB SSD space/3TB bandwidth/KVM/Germany/France

MVPS, a Cyprus hosting company, is a formally reg...