plexdrive

plexdrive

plexdrive

使用 fuse 将 Google Drive 挂载到本地 fs。目前只支持 *inx 系 OS。

rclone mount 相比,plexdrive 专门为 stream 流媒体播放优化。除“删除”外不支持其他形式的写入操作。

运行需要安装 fuse (apt-get install fuse)。

# 除非指定 allow_other,否则 fuse挂载的文件系统只有本用户可以访问(即使权限显示是755)
nohup plexdrive mount -o read_only,allow_other /mnt/plexdrive &

第一次执行时,会提示输入 Google API Client id, secret,然后会提示在浏览器里打开 https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=<CLIENT_ID>&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=state-token 获取授权码。

可以在打开 URL 之前把 URL 里的 https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive 部分最后的 drive 改为 drive.readonly。这样获取的 Google Drive Token 是 readonly 权限,保证数据安全。

plexdrive 配置文件默认保存在 /root/.plexdrive。


Last update: 2019-02-04 05:45:32 UTC