logo NodeSeekbeta

请教rclone挂载google drive

Google cloud之前已设置过google drive挂载alist
现准备直接用rclone挂载云盘到vps,新建了一个项目启用google drive API,获取了客户端id和密钥
image
image
配置rclone时运行rclone authorize "drive" "XXXXXXXXXX"获取授权时无法跳转rclone对应项目,跳转到了之前alist对应的项目

API是按照这个步骤来的
image
请问是怎么回事呀 xhj027

  • @gong1234 #0 callback配置问题?

  • rclone不用像alist那么麻烦搞api
    直接有个Google Drive选

  • @charliez0 #1 那个重定向url吗?我没配置,请问要怎样设置呀?我找的挂载教程都没提这个。。。

  • 那这个逻辑是不是可以直接当大盘鸡用?直接用rclone扩容?

  • @tommy101992 #2 他应该是硬制定用自己的token吧

  • 17 / Google Drive
    \ (drive)

    client_id> 留空
    client_secret> 留空
    service_account_file> 留空
    Edit advanced config? n

    在本机:rclone authorize "drive" "xxxxxxxxxxxxx"

    cmd ~ % rclone authorize "drive" "xxxxxxxxxxxxxxx"
    2024/04/14 15:16:22 NOTICE: Config file "/Users/xxxxxxx/.config/rclone/rclone.conf" not found - using defaults
    2024/04/14 15:16:22 NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=xxxxxxxxxxxxxxx
    2024/04/14 15:16:22 NOTICE: Log in and authorize rclone for access
    2024/04/14 15:16:22 NOTICE: Waiting for code...
    2024/04/14 15:17:01 NOTICE: Got code
    Paste the following into your remote machine --->
    abcdefg
    abcdefg
    abcdefg
    abcdefg
    abcdefg
    <---End paste
    

    然后返回vps输入
    abcdefg
    abcdefg
    abcdefg
    abcdefg
    abcdefg

  • @tommy101992 #6 请问这个和设置API啥区别呀?我搜的几个教程都有个设置API

  • @gong1234 #7 不同认证方式(主帐号认证和sa帐户认证) 如果不是搬盘或者自己开发项目没太必要弄这个api

  • @tommy101992 #8 我在本机运行rclone authorize "drive" "xxxxxxxxxxxxx",一直failed to get token: Post "https://oauth2.googleapis.com/token" ,开全局也没用 xhj017

    解决了,用vps dd windows运行拿到token了

  • 在windows全局翻,跑rclone,拿到rclone conf配置文件粘贴过去vps rclone conf里用

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

📈用户数目📈

目前论坛共有15225位seeker

🎉欢迎新用户🎉