Posted on 7 Comments

Install OneDrive on Ubuntu based distros

If you are migrating from Windows and you used OneDrive to sync your files, like I did, a wise step is to install OneDrive-D which is a Microsoft OneDrive desktop client / daemon on Linux, written in Python 3.

Install OneDrive on Ubuntu

First you need to download the zip file from github. Extract the zip file and run the script inside onedrive-d folder. Run the following command in a Terminal:

I am using Elementary Freya and I got an error:  

Cannot Install OneDrive-D

In case you get the same error (./inst: command not found) drag and drop in your terminal and type sudo ./

Run for OneDrive-D

After OneDrive-D is successfully installed run command onedrive-pref to setup the application. 

 There are 4 steps in the configuration process, but the most import is the first one, to authorize sign in with your OneDrive account. You need to click on the URL provided and after you authenticate with your OneDrive credentials you will end up at an empty page – just copy the URL and paste it in your Terminal.

Authorize sign in with your OneDrive account

For next steps you can select n and use default settings

Finish installing OneDrive on Ubuntu

After finishing the OneDrive configuration run command onedrive-d start to start syncing your OneDrive files.


  1. Files and folders deleted locally can be found in Trash and files and folders deleted remotely can be found in OneDrive recycle bin.
  2. Files that are overwritten remotely may not be synced, because OneDrive-D performs overwriting only when it is 100% sure that one file is older than its counterpart.
  3. Copying and moving files are treated as uploading and when you copy/ or move a folder OneDrive-D will upload the entire folder.

I still need to figure out how to enable it in top panel. On Elementary Freya I have the same issue with Dropbox, even though both apps work and sync as they should.

7 thoughts on “Install OneDrive on Ubuntu based distros

  1. Are you planning to support OneDrive for schools and academic institutions?
    The regular Microsoft login does not forward credentials to the right place.

  2. Worked great, thanks for the info.

  3. I’m connected normally, but the msg exhibited is:

    [2015-09-15 16:39:04,473] INFO: MainThread: waken up by ThreadManager.
    [2015-09-15 16:39:04,900] INFO: MainThread: network connection error.
    [2015-09-15 16:39:04,900] INFO: MainThread: put to sleep due to networking error.
    [2015-09-15 16:39:05,049] DEBUG: thread_mgr: able to realize “”.

    I approved to connect at onedrive.. the error occurring after paste the code/url…

    can u help me?

  4. This doesn’t work anymore. does not exist. I just get a “not found”.

  5. Thank you, you saved me !!!

  6. Thanks, works well.

Leave a Reply

Your email address will not be published. Required fields are marked *