//安装python3,目前arm版本最新只到3.2.3 android@localhost:~/onedrive-d$ sudo apt-get install python3 //安装python3-pip,大概有几百兆,耐心等待 android@localhost:~/onedrive-d$ sudo apt-get install python3-pip //安装inotify-tools,用来监视文件夹改变 android@localhost:~/onedrive-d$ sudo apt-get install inotify-tools //省略安装onedrive-d的步骤,开始配置 android@localhost:~/onedrive-d$ onedrive-pref Loading configuration ... OK [2015-07-0515:43:54,632] DEBUG: thread_mgr: started. Setting up onedrive-d... //应用授权,打开网址一路点接受,在下面粘贴最终跳转到的网址 (STEP 1/4) Do you want to authorize signin with your OneDrive account? [Y/n] y
You will need to visit the OneDrive sign-in page in a browser, login 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 visit the sign-in URL in your browser: https://login.live.com/oauth20_authorize.srf?locale=XXXXXXXX
Please paste the callback URL: https://login.live.com/oauth20_desktop.srf?code=XXXXX [2015-07-0515:45:55,813] DEBUG: MainThread: config saved. onedrive-d has been successfully authorized. //指定本地文件夹,可以直接按回车跳过 (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/android/OneDrive): [2015-07-0515:47:23,518] DEBUG: MainThread: config saved. Path successfully set. //设定上传设置,回车跳过 (STEP 3/4) Do you want to change the numeric settings? [Y/n] y How many seconds to wait for before retrying a network failure (current: 10)?
Files larger than what size (in MiB) will be uploaded blocks by blocks? (current: 4.0)?
When a file is uploaded blocks by blocks, what is the block size (in KiB)? (current: 512.0)? [2015-07-0515:49:01,715] DEBUG: MainThread: config saved. //指定本地不同步的文件,回车跳过 (STEP 4/4) Do you want to edit the ignore list file? [Y/n] n Skipped. You can manually edit "/home/android/.onedrive/ignore_v2.ini" at your convenience.
All steps are finished. //完成之后开始同步 android@localhost:~/onedrive-d$ onedrive-d start