全球主机交流论坛

标题: 学校无管理A1/A1P 使用rclone不完全教程 [打印本页]

作者: jsenet    时间: 2021-3-20 10:46
标题: 学校无管理A1/A1P 使用rclone不完全教程
正规学校无管理很稳,但是因为无管理所以不能使用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文件限制


作者: jqbaobao    时间: 2021-3-20 10:53
呃,什么原理啊
作者: Waylon    时间: 2021-3-20 10:59
漂亮,学校的账号我一直放着吃灰呢
作者: CCCP    时间: 2021-3-20 11:00
sharepoint支持webdav?可以用于支持webdav的其他app吗
作者: 御坂    时间: 2021-3-20 11:02
CCCP 发表于 2021-3-20 11:00
sharepoint支持webdav?可以用于支持webdav的其他app吗

同问
作者: zxxx    时间: 2021-3-20 11:07
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/

这个是个人版吧?

作者: jsenet    时间: 2021-3-20 11:10
zxxx 发表于 2021-3-20 11:07
https://onedrive.live.com/about/en-us/signin/

这个是个人版吧?

实测教育版ok   耶鲁和同济校友(国际版)测试通过
作者: yuanyuexiaoni    时间: 2021-3-20 11:12
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
作者: jsenet    时间: 2021-3-20 11:16
CCCP 发表于 2021-3-20 11:00
sharepoint支持webdav?可以用于支持webdav的其他app吗

实测仅rclone支持   nplayer不能直接支持
我的用法是路由器rclone挂载    然后nginx再开webdav给电视看
当然有流量大的vps更好   外面也能看
不过真要手机看直接onedrive客户端就好了
作者: uranus    时间: 2021-3-20 11:29
请问这个挂载下来的是OneDrive还是SharePoint
如果是SharePoint也就是说siit可以靠这个复活?
作者: jsenet    时间: 2021-3-20 11:31
uranus 发表于 2021-3-20 11:29
请问这个挂载下来的是OneDrive还是SharePoint
如果是SharePoint也就是说siit可以靠这个复活? ...

sp自己摸索   理论也可以     世纪互联没测试
作者: 0000    时间: 2021-3-20 11:33
uranus 发表于 2021-3-20 11:29
请问这个挂载下来的是OneDrive还是SharePoint
如果是SharePoint也就是说siit可以靠这个复活? ...

坐等
作者: 爱偏离轨道    时间: 2021-3-20 11:39
请问还有撸的教程吗?
作者: games00    时间: 2021-3-20 22:07
操作有点骚,但是还是一脸懵逼
作者: yinguo520    时间: 2021-3-20 23:00
是否就是上传限制了,配合aria2下载后上传的话。
作者: yours    时间: 2021-3-20 23:04
留言标记一下,感谢分享
作者: lewss    时间: 2021-3-20 23:12
学校的1T网盘可以用起来了
作者: Goood    时间: 2021-4-7 16:55
谢谢分享,mark

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

正规学校无管理很稳,但是因为无管理所以不能使用API(可以创建应用,授权时候会提示关于无管理的错误)
好在我们有rclone神器
参考:https://rclone.org/webdav/
新增配置的时候不要选onedrive  而是选webdav  然后接下来选sharepoint 输入webdav链接(参考上面rclone官网教程)
接着输入账号(就是邮箱)密码
完工

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

rclone有个beta功能chunker https://rclone.org/chunker/
实测od设置为1.99G可以正常使用
大于1.99G的文件将切割传输
这个文件使用onedrive客户端或者网页是无**常使用的
但是用rclone挂载能正常使用(包括电影文件,挂载后能正常观看)
/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
Transferred:        3.099G / 3.099 GBytes, 100%, 13.791 MBytes/s, ETA 0s
Checks:                22 / 22, 100%
Renamed:                2
Transferred:            1 / 1, 100%
Elapsed time:      3m58.5s
复制代码


好吧,就这样了,实测webdav方式挂载速度和api挂载没啥区别
目前发现唯一不爽的就是这个2G文件限制
作者: 博客    时间: 2021-4-8 10:13
提示: 作者被禁止或删除 内容自动屏蔽
作者: 惜为伊人醉    时间: 2021-4-8 10:15
厉害厉害。
作者: txjcv    时间: 2021-4-8 10:45
这些教程写的很详细,看来楼主的基础知识很丰富
作者: 博客    时间: 2021-4-8 19:07
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://loc.imgfree.eu.org/) Powered by Discuz! X3.4