#基础环境
yum update -y
yum install -y git hg sqlite-devel fuse fuse-devel libcurl-devel zlib-devel m4

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

#用opam安装google-drive-ocamlfuse
opam install google-drive-ocamlfuse
export DISPLAY=:0.0
source ~/.bash_profile

#新建应用,获取Google Drive API
https://console.developers.google.com/apis/credentials/oauthclient

#替换client-ID、client-secret
google-drive-ocamlfuse -headless -label me -id client-ID -secret client-secret
#复制URL进行web认证

#挂载Google Drive
mkdir -p /gdrive
google-drive-ocamlfuse -label vps /gdrive

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code