root@iZj6c9vpc0x2q5gkwla1erZ:~# rclone config No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n
Enter name for new remote. name> triority
Option Storage. Type of storage to configure. Choose a number from below, or type in your own value.
在巨长的列表里找到onedrive然后输入前面的序号,比如我是31:
1 2 3 4 5 6 7 8
29 / Mega \ (mega) 30 / Microsoft Azure Blob Storage \ (azureblob) 31 / Microsoft OneDrive \ (onedrive) 32 / OpenDrive \ (opendrive)
下面的client id和client secret直接回车跳过,默认留空:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Storage> 31
Option client_id. OAuth Client Id. Leave blank normally. Enter a value. Press Enter to leave empty. client_id>
Option client_secret. OAuth Client Secret. Leave blank normally. Enter a value. Press Enter to leave empty. client_secret>
Option region.
后面的地区按照实际情况选择:
1 2 3 4 5 6 7 8 9 10 11 12
Choose national cloud region for OneDrive. Choose a number from below, or type in your own string value. Press Enter for the default (global). 1 / Microsoft Cloud Global \ (global) 2 / Microsoft Cloud for US Government \ (us) 3 / Microsoft Cloud Germany \ (de) 4 / Azure and Office 365 operated by Vnet Group in China \ (cn) region> 4
Edit advanced config? y) Yes n) No (default) y/n> n
Use web browser to automatically authenticate rclone with remote? * Say Y if the machine running rclone has a web browser you can use * Say N if running rclone on a (remote) machine without web browser access If not sure try Y. If Y failed, try N.
y) Yes (default) n) No y/n> n
Option config_token. For this to work, you will need rclone available on a machine that has a web browser available. For more help and alternate methods see: https://rclone.org/remote_setup/ Execute the following on the machine with the web browser (same rclone version recommended): rclone authorize "onedrive" "eyJyZWdpb24iOiJjbiJ9" Then paste the result. Enter a value. config_token>
Option config_type. Type of connection Choose a number from below, or type in an existing string value. Press Enter for the default (onedrive). 1 / OneDrive Personal or Business \ (onedrive) 2 / Root Sharepoint site \ (sharepoint) / Sharepoint site name or URL 3 | E.g. mysite or https://contoso.sharepoint.com/sites/mysite \ (url) 4 / Search for a Sharepoint site \ (search) 5 / Type in driveID (advanced) \ (driveid) 6 / Type in SiteID (advanced) \ (siteid) / Sharepoint server-relative path (advanced) 7 | E.g. /teams/hr \ (path) config_type> 1
根据个人情况选是否挂载根目录,我选是,然后确认配置文件,选择默认即可。创建成功:
1 2 3 4 5 6 7 8 9 10 11
Keep this "triority" remote? y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
Please contact me if you have any questions. We are using the CDN service by Cloudflare, without nodes in Chinese mainland. As for the people in Chinese mainland should solve the problem, like the terrible loading speed, by themselves.