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 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 Responses to Install OneDrive on Ubuntu based distros

  1. rahul Aug 15, 2015 at 4:22 PM #

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

  2. Sam Sep 10, 2015 at 5:25 AM #

    Worked great, thanks for the info.

  3. Francisco Sep 15, 2015 at 10:46 PM #

    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?

  4. Curiuos Traveller Nov 21, 2015 at 8:11 PM #

    This doesn’t work anymore. https://github.com/xybu/onedrive-d/archive/future.zip does not exist. I just get a “not found”.

  5. Otavio Costa Sep 7, 2016 at 3:40 PM #

    Thank you, you saved me !!!

  6. Tetenterre Dec 16, 2016 at 6:40 PM #

    Thanks, works well.

Leave a Reply