美文网首页
成功在centos7上挂载google-drive

成功在centos7上挂载google-drive

作者: mmmwhy | 来源:发表于2017-10-17 14:27 被阅读1706次
    • 全部复制运行
    # 安装必要组件
    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
    mkdir /usr/local/caddy/www/aria2/Download
    google-drive-ocamlfuse -label me /usr/local/caddy/www/aria2/Download
    
    • 卸载
      ···
      fusermount -u /home/google-drive
      ···

    相关文章

      网友评论

          本文标题:成功在centos7上挂载google-drive

          本文链接:https://www.haomeiwen.com/subject/wwdduxtx.html