Loading... # 准备 --- 一个无限谷歌云盘,一个普通谷歌云盘,centos7 # 安装组件 --- ``` yum update -y yum install -y git yum install -y hg yum install sqlite-devel fuse fuse-devel libcurl-devel zlib-devel m4 ``` # 安装 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 ``` # 安装 google-drive-ocamlfuse --- ``` opam install google-drive-ocamlfuse export DISPLAY=:0.0 source ~/.bash_profile ``` # 常用命令 --- ``` google-drive-ocamlfuse --help ``` # 获取 Google Drive API --- client-ID、client-secret 替换为自己的。 google-drive-ocamlfuse -headless -label me -id client-ID -secret client-secret 之后会出现一行链接,复制、粘贴到浏览器,打开,登录无限的谷歌盘,将出现的密钥复制到命令行,执行 # 挂载 Google Drive --- [点击这里跳转谷歌云盘api][2]https://console.developers.google.com/apis/library/drive.googleapis.com **注意:申请API用普通云盘的账号,无限的账号不能申请API** mkdir /home/google-drive google-drive-ocamlfuse -label me /home/google-drive # 查看分区 --- ``` df -lh ``` ![谷歌云.png][3] [1]: https://www.sagit.top/usr/uploads/2018/08/1077660629.jpg [2]: https://console.developers.google.com/apis/library/drive.googleapis.com [3]: https://www.sagit.top/usr/uploads/2018/08/208427705.png 最后修改:2022 年 04 月 18 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏