成功在centos7上挂载google-drive
2017-10-17 本文已影响1706人
mmmwhy
- 全部复制运行
# 安装必要组件
yum update -y
yum install -y git
yum install -y hg
yum install sqlite-devel fuse fuse-devel libcurl-devel zlib-devel m4 -y
# 安装 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/
yum install
opam init
- 安装 google-drive-ocamlfuse
这一步可能要10分钟左右
opam install google-drive-ocamlfuse
export DISPLAY=:0.0
source ~/.bash_profile
opam list
- 获取 Google Drive API
mmmwhy12、12345替换为自己的。
google-drive-ocamlfuse -headless -label me -id 1059522182613-89pc4hk9gv522889iteusipn4vpkppli.apps.googleusercontent.com -secret 1r7QyR35ATcOkz3KURCUq-9-
之后会出现一行链接,复制、粘贴到浏览器,打开
- 不能使用?
你先需要进入到:
Google Drive获取一个API,类型就选择“其他”。
- 挂载 Google Drive
mkdir /usr/local/caddy/www/aria2/Download
google-drive-ocamlfuse -label me /usr/local/caddy/www/aria2/Download
- 卸载
···
fusermount -u /home/google-drive
···