1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| $ sudo apt remove onedrive $ sudo add-apt-repository --remove ppa:yann1ck/onedrive $ sudo rm /etc/systemd/user/default.target.wants/onedrive.service $ sudo rm -rf /var/lib/dpkg/lock-frontend $ sudo rm -rf /var/lib/dpkg/lock $ sudo apt-get update $ sudo apt-get upgrade -y $ sudo apt-get dist-upgrade -y $ sudo apt-get autoremove -y $ sudo apt-get autoclean -y $ wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/Debian_12/Release.key | gpg --dearmor | sudo tee /usr/share/keyrings/obs-onedrive.gpg > /dev/null $ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/obs-onedrive.gpg] https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/Debian_12/ ./" | sudo tee /etc/apt/sources.list.d/onedrive.list $ sudo apt-get update $ sudo apt install --no-install-recommends --no-install-suggests onedrive
$ onedrive Authorise this app by visiting: ...... Enter the response URI from your browser: ...... The application has been successfully authorised, but no additional command switches were provided.
$ sudo cp /usr/share/doc/onedrive/config ~/.config/onedrive/ $ sudo chown $USER:$USER ~/.config/onedrive/config $ vim ~/.config/onedrive/sync_list /Document/ /MD/
$ onedrive --sync
$ systemctl start --user onedrive $ systemctl enable --user onedrive
$ onedrive --display-config $ onedrive --sync --verbose --dry-run $ onedrive --sync --local-first $ onedrive --sync --single-directory '<dir_name>' $ onedrive --sync --download-only --cleanup-local-files $ onedrive --sync --upload-only --no-remote-delete $ onedrive --create-share-link <path/to/file>
|