MJJ论坛

 找回密码
 注册
查看: 5591|回复: 21

[疑问] 学校无管理A1/A1P 使用rclone不完全教程

  [复制链接]
发表于 2021-3-20 10:46:56 | 显示全部楼层 |阅读模式
正规学校无管理很稳,但是因为无管理所以不能使用API(可以创建应用,授权时候会提示关于无管理的错误)
好在我们有rclone神器
参考:https://rclone.org/webdav/
新增配置的时候不要选onedrive  而是选webdav  然后接下来选sharepoint 输入webdav链接(参考上面rclone官网教程)
接着输入账号(就是邮箱)密码
完工

关于webdav方式上传大文件限制(实测为2G)
错误提示
  1. Failed to copy: 413 Request Entity Too Large
复制代码

rclone有个beta功能chunker https://rclone.org/chunker/
实测od设置为1.99G可以正常使用
大于1.99G的文件将切割传输
这个文件使用onedrive客户端或者网页是无**常使用的
但是用rclone挂载能正常使用(包括电影文件,挂载后能正常观看)
  1. /usr/local/sbin/rclone copy --ignore-existing -P kxxensys-admin-admin:/public/Movie yale-xhost-xhost-chunk:/public/Movie --config /root/.config/rclone/rclone.conf
  2. Transferred:        3.099G / 3.099 GBytes, 100%, 13.791 MBytes/s, ETA 0s
  3. Checks:                22 / 22, 100%
  4. Renamed:                2
  5. Transferred:            1 / 1, 100%
  6. Elapsed time:      3m58.5s
复制代码


好吧,就这样了,实测webdav方式挂载速度和api挂载没啥区别
目前发现唯一不爽的就是这个2G文件限制

发表于 2021-3-20 10:53:58 | 显示全部楼层
呃,什么原理啊
发表于 2021-3-20 10:59:09 | 显示全部楼层
漂亮,学校的账号我一直放着吃灰呢
发表于 2021-3-20 11:00:12 来自手机 | 显示全部楼层
sharepoint支持webdav?可以用于支持webdav的其他app吗
发表于 2021-3-20 11:02:27 | 显示全部楼层
CCCP 发表于 2021-3-20 11:00
sharepoint支持webdav?可以用于支持webdav的其他app吗

同问
发表于 2021-3-20 11:07:59 | 显示全部楼层
Sharepoint
Rclone can be used with Sharepoint provided by OneDrive for Business or Office365 Education Accounts. This feature is only needed for a few of these Accounts, mostly Office365 Education ones. These accounts are sometimes not verified by the domain owner github#1975

This means that these accounts can't be added using the official API (other Accounts should work with the "onedrive" option). However, it is possible to access them using webdav.

To use a sharepoint remote with rclone, add it like this: First, you need to get your remote's URL:

Go here to open your OneDrive or to sign in

https://onedrive.live.com/about/en-us/signin/

Now take a look at your address bar, the URL should look like this: https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/_layouts/15/onedrive.aspx
You'll only need this URL up to the email address. After that, you'll most likely want to add "/Documents". That subdirectory contains the actual data stored on your OneDrive.

Add the remote to rclone like this: Configure the url as https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents and use your normal account email and password for user and pass. If you have 2FA enabled, you have to generate an app password. Set the vendor to sharepoint.

Your config file should look like this:


  1. [sharepoint]
  2. type = webdav
  3. url = https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents
  4. vendor = other
  5. user = YourEmailAddress
  6. pass = encryptedpassword
复制代码


https://onedrive.live.com/about/en-us/signin/

这个是个人版吧?
 楼主| 发表于 2021-3-20 11:10:13 来自手机 | 显示全部楼层
zxxx 发表于 2021-3-20 11:07
https://onedrive.live.com/about/en-us/signin/

这个是个人版吧?

实测教育版ok   耶鲁和同济校友(国际版)测试通过
发表于 2021-3-20 11:12:24 | 显示全部楼层
zxxx 发表于 2021-3-20 11:07
https://onedrive.live.com/about/en-us/signin/

这个是个人版吧?

绝对不可能是个人版,你看那个url里面 有sharepoint和your domain. 必定是onedrive for business
url = https://[YOUR-DOMAIN]-my.sharepoint.com/personal/[YOUR-EMAIL]/Documents
 楼主| 发表于 2021-3-20 11:16:51 来自手机 | 显示全部楼层
CCCP 发表于 2021-3-20 11:00
sharepoint支持webdav?可以用于支持webdav的其他app吗

实测仅rclone支持   nplayer不能直接支持
我的用法是路由器rclone挂载    然后nginx再开webdav给电视看
当然有流量大的vps更好   外面也能看
不过真要手机看直接onedrive客户端就好了
发表于 2021-3-20 11:29:18 | 显示全部楼层
请问这个挂载下来的是OneDrive还是SharePoint
如果是SharePoint也就是说siit可以靠这个复活?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|MJJ论坛

Copyright MJJ论坛 © 2022 All Rights Reserved.

快速回复 返回顶部 返回列表