Sync With OneDrive in Ubuntu Via OneDrive-D (Unofficial Client)

Last updated: February 23, 2015

OneDrive Client in UbuntuThanks 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.

OneDrive sync in Ubuntu

With onedrive-d, you can simply create a folder and synchronize all content in your OneDrive account with that folder.

OneDrive in Ubuntu settings

Install OneDrive-D in Ubuntu:

As an one-person project, onedrive-d is still under development. Please back up your data if you really want to use it in real scenario.

1. Download the package:

Download OneDrive-d

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.

OneDrive daemon autostart

If you like this project, you can contribute to the code or report bugs to make it better: https://github.com/xybu92/onedrive-d

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via [email protected] Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

16 responses to Sync With OneDrive in Ubuntu Via OneDrive-D (Unofficial Client)

  1. Larry Hutchison July 21, 2014 at 8:32 pm

    This is great!!!!!!!!!

  2. This is great but I don’t want all my onedrive data on my mint desktop. Is it possible just to sync from say my document folder on mint to a mint document folder created in one drive?

  3. Hey how could I remove onedrive-d? I have had some problems whit this

    • You can run the uninstall script by running below command in terminal(Ctrl+Alt+T):

      cd ~/Downloads/onedrive-d-master/ && ./inst uninstall
  4. André Verwijs August 4, 2014 at 6:22 pm

    also tried onedrive-d script. still needs lot of work to be great syncing is not working perfect yet, some folder are not being synced at all… it also creates (OLDER ****) Files witch results in double files…

  5. Thanks That Great

    Before Im using Ubuntu i use Windows + Wondows Phone and i often use OneDrive and Im so Thankfull that it gives a application for Ubuntu to Use it
    Thank YOu

  6. Works great for me. I had to start the process a few times before all data was synced but its working far better than I’d have it expected to. Thank you!

  7. I am having an issue. When I hit the button to connect to one drive a window pops up but it is blank? I’m guessing the window should popup with a link to put in your onedrive credentials. Correct?

    • @Craig LaBruno

      I noticed that when the window poped up for me the terminal window was referencing “pipelight”

      PipeLight is the linux Silverlight pluggin. I already had it installed and did not run into any issues. Maybe installing Pipelight will help you.

      http://pipelight.net/cms/index.html

  8. For years I was tempted to move to ubuntu but due to lack of onedrive and other MS native applications I always used I was reluctant to move.

    This application has solved my big problem and a major point of reluctance to move to ubuntu.

    thank you and whoever created this so much for their help.

    regards
    Rajiv

  9. my bad .. this app is not finished yet… it has lots of bugs and it dosent sync in one go .. it just downloads few files and then fails .. with error that directory does note exists. Also as some one pointed out earlier that it creates duplicate files with the name OLDER

    needs lot of work before it is even in a beta version.

  10. Could you update such tutorial to accomodate recent changes in GitHub?

    This project was updated and these configs do not apply anymore.

  11. Sync is always problematic

    My OneDrive is a tetrabyte. My linux VPS is 60gb. . Is there a switch that simply on this wonderful useful programme that allows the OneDrive to be seen on my linux box as a remote directory? No watching, no sync.

    I am seeking a backup directory, so things put in the directory are passed onto the OneDrive cloud. No copy is made or kept on the linux box at all. Also files on the OneDrive are only downloaded is asked for.

  12. I’ve found a command line client for OneDrive in Java which syncs nicely for me:
    https://github.com/wooti/onedrive-java-client

  13. how to enable onedrive-d at boot or how to auto start after boot ?

    • You found the solution already?

      cron:
      @reboot root /root/onedrive_startup.sh

      onedrive_startup.sh:
      #!/bin/sh
      # Start up onedrive-d
      onedrive-d start &
      exit

      This is what is not working. Do you have the right one for me?