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 install.sh 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 install.sh in your terminal and type sudo ./install.sh

Run install.sh 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.

 Notes: 

  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. rahul says:

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

  2. Francisco says:

    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 “onedrive.com:80”.

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

    can u help me?

Leave a Reply

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