初衷:前幾天,安裝CUDA最新版時把系統整掛了,進入恢復模式卸載CUDA,最后發現還是進不了XWindows,於是只能重裝,重要文件備份有點麻煩,加之多平台工作,有些文檔用移動介質很麻煩。
參考:https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md
1、安裝依賴:
dnf groupinstall -y 'Development Tools' dnf install -y libcurl-devel dnf install -y sqlite-devel dnf install -y libnotify-devel curl -fsS https://dlang.org/install.sh | bash -s dmd
2、下載Onedrive:
git clone https://github.com/abraunegg/onedrive.git ##or(用gitee轉存后,國內下載更快) git clone https://gitee.com/walden_yin/onedrive.git
3、安裝:
source ~/dlang/dmd-2.093.1/activate #激活安裝環境,類似Anaconda的環境管理 cd onedrive ./configure make clean;make;
4、配置:如下,終端輸入onedrive之后會有如下提示,此時按住Ctrl鍵,並點擊鼠標,跳轉到Microsoft的站點進行授權,授權完成后會得到一個空白頁面,復制地址欄鏈接到下面“uri:”的后面,然后Enter確定
[user@hostname ~]$ onedrive Authorize this app visiting: https://..... Enter the response uri:
5、簡單同步(全部文件):更多請參考:https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md
onedrive --synchronize
6、使用:目錄/home下會有一個onedrive的文件夾。