OneDrive on Ubuntu
OneDrive on Ubuntu:abraunegg/onedrive
ReadMeに従う
依存
$ sudo apt install build-essential libcurl4-openssl-dev libsqlite3-dev libnotify-dev
$ curl -fsS https://dlang.org/install.sh | bash -s dmd
表示されるコマンド(source ~/dlang/dmd-2.xxx.x/activate)を実行
コンパイル
$ git clone https://github.com/abraunegg/onedrive.git
$ cd onedrive
$ ./configure --enable-notifications --enable-completions
$ make clean; make;
$ sudo make install
初回起動
$ onedrive # 認証する
$ onedrive --synchronize --verbose --dry-run # テスト
$ onedrive --display-config # 設定確認
同期
$ onedrive --synchronize # いろいろオプションあり
自動起動
$ systemctl --user enable onedrive
$ systemctl --user start onedrive
同期間隔などのパラメータ設定
~/.config/onedrive/configをいじる
パスワード変更したとき
認証情報を削除
$ rm -f ~/.config/onedrive/refresh_token
アンインストール
$ sudo make uninstall
$ rm -rf ~/.config/onedrive # delete the application state
#D言語
#Ubuntu ubuntu.icon
bash.icon