成功在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
opam install google-drive-ocamlfuse
export DISPLAY=:0.0
source ~/.bash_profile
opam list
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
上一篇下一篇

猜你喜欢

热点阅读