This is a step by step beginners guide shows how to install and setup OneDrive client in Ubuntu 22.04 and Ubuntu 24.04 to sync files between local machine and Microsoft cloud.
OneDrive is a file hosting service by Microsoft. It so far does not have an official app for Linux, but there’s a popular free open-source client works in most Linux. And, here’s the basic how to guide for installing and using it in Ubuntu Linux.
Thanks to open source, Ubuntu users now are able to sync content with Microsoft OneDrive while there is no official client for Linux.
OneDrive-d is an open source project on github that intends to develop an OneDrive (formerly SkyDrive) daemon on (X)Ubuntu Linux. The program is mainly written in Python and supplemented by Bash shell scripts. The API is based on Mike Kazantsev’s project python-onedrive.
With onedrive-d, you can simply create a folder and synchronize all content in your OneDrive account with that folder.
Install OneDrive-D in Ubuntu:
1. Download the package:
2. Extract the package and run the installer from the result folder: onedrive-d-master
To do so, press Ctrl+Alt+T and run the command below after your extracted the package:
cd ~/Downloads/onedrive-d-master/ && ./inst install
Use ./inst reinstall if you have a previous version installed.
3. Once installed, you’ll see the previous Settings window that asks you to connect to OneDrive and select an folder to sync. If not, run:
onedrive-prefs
When everything is done, run below command to start the daemon and enjoy!
onedrive-d
Make Onedrive-d start at login:
Search for and open “Startup Applications” (without quotes) from the Unity Dash. Click Add and type in a name and onedrive-d in command box.