vps挂载谷歌无限网盘,附无限网盘申请方法

前言

谷歌网盘服务真的是很强大,个人可以通过很小的代价获取到gsuit或者团队盘,这两种都是无限空间的。文章最后我会简单介绍下怎么免费获取无限的团队盘,但是如果你不是通过官方途径购买的无限盘理论上都存在翻车的风险,所以存点影音资料就可以了,千万不要把自己的重要文件存在里面,不但有翻车风险也可能被邪恶的***查看哦!

搭建

安装rclone

centos:

curl https://rclone.org/install.sh | sudo bash

debain或者ubuntu:

wget https://www.moerats.com/usr/shell/rclone_debian.sh && bash rclone_debian.sh

配置

rclone config


o remotes found – make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

name gd 随意取 但是后面的代码也会相应改变


Choose a number from below, or type in your own value
选谷歌 (13) 可能会因为版本的不同而改变 注意选择 Google drive


client_id> 直接回车


client_secret> 直接回车


Choose a number from below, or type in your own value
scope> 1 选1 有最大的使用权限。


ID of the root folder
Leave blank normally.

Fill in to access “Computers” folders (see docs), or for rclone to use
a non root folder as its starting point.

Note that if this is blank, the first time rclone runs it will fill it
in with the ID of the root folder.

Enter a string value. Press Enter for the default (“”).
root_folder_id> 空,直接回车。空是跟路径如果想用别的根路径


Service Account Credentials JSON file path
Leave blank normally.
Needed only if you want use SA instead of interactive login.
Enter a string value. Press Enter for the default (“”).
service_account_file> 直接回车


Edit advanced config? (y/n)
y) Yes
n) No (default)
y/n> n 不用别的高级配置


Use auto config?

  • Say Y if not sure
  • Say N if you are working on a remote or headless machine
    y) Yes (default)
    n) No
    y/n> n 因为我们是vps操作,不能auto config

Please go to the following link: https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Log in and authorize rclone for access
Enter verification code>贴入你获取到的key


Configure this as a team drive?
y) Yes
n) No (default)
y/n> y


Choose a number from below, or type in your own value
这里会列出你的团队盘,选择一个你想挂载的序号
Enter a Team Drive ID>


y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y


e) Edit existing remote
n) New remote
d) Delete remote
r) Rename remote
c) Copy remote
s) Set configuration password
q) Quit config
e/n/d/r/c/s/q> q

挂载

mkdir -p /home/gdrive

/usr/bin/rclone mount gd: /home/gdrive \
 --umask 0000 \
 --default-permissions \
 --allow-non-empty \
 --allow-other \
 --buffer-size 32M \
 --dir-cache-time 12h \
 --vfs-read-chunk-size 64M \
 --vfs-read-chunk-size-limit 1G &

查看挂载情况

df -h

设置自动挂载

cat > /etc/systemd/system/rclone.service <<EOF
[Unit]
Description=Rclone
AssertPathIsDirectory=LocalFolder
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/rclone mount gd: /home/gdrive \
 --umask 0000 \
 --default-permissions \
 --allow-non-empty \
 --allow-other \
 --buffer-size 32M \
 --dir-cache-time 12h \
 --vfs-read-chunk-size 64M \
 --vfs-read-chunk-size-limit 1G
ExecStop=/bin/fusermount -u LocalFolder
Restart=on-abort
User=root

[Install]
WantedBy=default.target
EOF

启动程序

systemctl start rclone

设置开机启动

systemctl enable rclone

至此rclone挂载gdrive就完成了,后面会介绍下我挂载了gdrive都有什么用途,包括下载bt直接到gd,emby读取gd内的影音资源等等。

如何获取无限团队盘

这里王大佬的博客有一篇详细的文章介绍了获取办法,大家可以参考下:Google Drive:在线创建谷歌团队无限网盘(持续更新)

未经允许不得转载: » vps挂载谷歌无限网盘,附无限网盘申请方法

分享到: 更多 (0)

评论 抢沙发

  • QQ号
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

登录

忘记密码 ?

切换登录

注册