这是一个
涨姿势的站点

成功在centos7上挂载google-drive

  • 全部复制运行
# 安装必要组件
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-

之后会出现一行链接,复制、粘贴到浏览器,打开

mkdir /usr/local/caddy/www/aria2/Download
google-drive-ocamlfuse -label me /usr/local/caddy/www/aria2/Download
  • 卸载
    ···
    fusermount -u /home/google-drive
    ···
可以转载,注明出处。91vps » 成功在centos7上挂载google-drive

评论 1

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    centos6 行吗

    name3周前 (11-22)回复