2.7 KiB
2.7 KiB
OneDrive - Linux
It's possible to have files from OneDrive on Linux by two ways:
1. Using rClone (Mounting)
- Update the system:
- Install rClone:
sudo apt install rclone - Configure rClone:
rclone config - Follow the instructions to configure rClone
- Create a directory to mount the OneDrive:
mkdir ~/OneDrive - Mount OneDrive folder:
rclone --vfs-cache-mode writes mount [rCloneProfilName]: ~/OneDrive - Automount OneDrive folder on Startup
OnStartup Applicationsadd a new entry with the following command:sh -c "rclone --vfs-cache-mode writes mount [rCloneProfilName]: ~/OneDrive"
2. Using OneDrive for Linux (Synchronization)
This tutorial work for Ubuntu 22.04 Jammy
2.1 Remove any configured PPA and associated 'onedrive' package and systemd service files
Remove the PPA repository and the older client, run the following commands:
sudo apt remove onedrive
sudo add-apt-repository --remove ppa:yann1ck/onedrive
If no previous installation, the following command will return an error message, which can be ignored.
Remove the symbolic link to the systemd service file:
sudo rm /etc/systemd/user/default.target.wants/onedrive.service
2.2 Ensure the system is up to date and verify you system version
- Update the system:
- Reboot the system:
- Verify the system version:
The output should be similar to:
lsb_release -aremi@marvin:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy
2.3 Install OneDrive for Linux
- Add the OpenSuSE Build Service repository release key:
wget -qO - https://download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /usr/share/keyrings/obs-onedrive.gpg > /dev/null - Add the OpenSuSE Build Service repository:
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_22.04/ ./" | sudo tee /etc/apt/sources.list.d/onedrive.list - Update the package list:
sudo apt update - Install the OneDrive for Linux client:
sudo apt install --no-install-recommends --no-install-suggests onedrive - Autorun OneDrive for linux on Startup
OnStartup Applicationsadd a new entry with the following command:sh -c "onedrive --monitor"