User Tools

Site Tools


linux:onedrive

OneDrive on Mint 22

Source: https://linuxhint.com/install-and-use-onedrive-on-linux-mint/
https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md#distribution-ubuntu-2404

The OneDrive version in the Ubuntu universe repository is version 2.4.25 - do not use, it does not work on Mint 22! Use the repo instead (current version 2.5.6).

wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_24.04/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/xUbuntu_24.04/ ./" | sudo tee /etc/apt/sources.list.d/onedrive.list
sudo apt-get update
sudo apt install --no-install-recommends --no-install-suggests onedrive

First run:

onedrive

Then open the displayed url in a browser, authenticate, copy the url of blank page into console

Test:

onedrive --synchronize --verbose --dry-run

Sync manually:

onedrive --synchronize

Install Service:

systemctl status --user onedrive
systemctl --user enable onedrive
systemctl --user start onedrive

systemctl status --user onedrive

If reauth is required:

onedrive --reauth

Then open the displayed url in a browser, authenticate, copy the url of blank page into console

linux/onedrive.txt · Last modified: by Wulf Rajek