u@rs:~/onedrive-d$ onedrive-pref Loading configuration ... OK [2018-07-20 20:29:47,347] DEBUG: thread_mgr: started. Setting up onedrive-d... (STEP 1/4) Do you want to authorize sign in with your OneDrive account? [Y/n] y
You will need to visit the OneDrive sign-in page in a browser, log in and authorize onedrive-d, and then copy and paste the callback URL, which should start with "https://login.live.com/oauth20_desktop.srf".
The callback URL is the URL where the sign-in page finally goes blank.
Please paste the callback URL: https://login.live.com/oauth20_desktop.srf?code=Mf922a696-9e63-551f-98c5-61c9d1c4c168&lc=1033 /usr/lib/python3/dist-packages/urllib3/connectionpool.py:860: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) [2018-07-20 20:31:04,635] DEBUG: MainThread: config saved. onedrive-d has been successfully authorized.
1 2 3 4 5
(STEP 2/4) Do you want to specify path to local OneDrive repository? [Y/n] y Please enter the abs path to sync with your OneDrive (default: /home/u/OneDrive): The path "/home/u/OneDrive" does not exist. Try creating it. [2018-07-20 20:31:39,905] DEBUG: MainThread: config saved. Path successfully set.
1 2
(STEP 3/4) Do you want to change the numeric settings? [Y/n] n Skipped.
1 2 3 4 5
(STEP 4/4) Do you want to edit the ignore list file? [Y/n] n Skipped. You can manually edit "/home/u/.onedrive/ignore_v2.ini" at your convenience.
All steps are finished. [2018-07-20 20:31:49,593] DEBUG: MainThread: config saved.
第3步:帮助
$ onedrive-d --help
1 2 3 4 5
Commands: start Start the daemon. stop Stop the daemon. restart Stop then start the daemon. status Get the status of the daemon.