centos7挂载无限谷歌云盘

准备

一个无限谷歌云盘,一个普通谷歌云盘,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
注意:申请API用普通云盘的账号,无限的账号不能申请API

mkdir /home/google-drive
google-drive-ocamlfuse -label me /home/google-drive

查看分区

df -lh

谷歌云.png

Last modification:August 25th, 2018 at 03:46 pm
If you think my article is useful to you, please feel free to appreciate

5 comments

  1. yeefire

    弄个爬虫搞些视频岂不美哉~

    1. Sagit
      @yeefire

      emmm

  2. 绅士福利

    学习了,虽然我是技术菜鸟。

    1. Sagit
  3. Gcod

    厉害了!!OωO

Leave a Comment