Ubuntu18(不清楚是否適用16)安裝onedrive再也不用像以前那麼麻煩了,官方二進制包直接支持:
sudo apt update
sudo apt install onedrive
然後執行onedrive
啓動。
把彈出的網址複製到瀏覽器,登錄賬戶,然後把地址再複製回來即可。
程序會自動創建${HOME}/OneDrive
目錄,並自動下載Onedrive網盤的文件。
使用
onedrive -h
可以查看命令使用說明。
如果想每次登錄都自動開啓onedrive的登錄和同步,執行
systemctl --user enable onedrive
systemctl --user start onedrive
參考:
- https://www.howtoinstall.me/ubuntu/18-04/onedrive/
- https://github.com/skilion/onedrive