How to Sync Microsoft OneDrive in Linux Mint

Thanks to a project called onedrive-d, you can officially sync your OneDrive with Linux. In this tutorial, I’ll show you how to sync Microsoft OneDrive in Linux by using onedrive-d.

Video Tutorial:

Install onedrive-d on Linux

1. Open the terminal window and install git using this command:

sudo apt-get install git

2. Clone the source code from git using the following command:

git clone https://github.com/xybu92/onedrive-d.git

3. Now change directory to the onedrive-d folder:

cd onedrive-d

4. Here run the install script to download and install the required dependencies. Accept all packages to install.

./install.sh install

Once the installation has completed, you’ll be prompted to enter the “onedrive-pref” command in the terminal. From there on you would need to follow the on-screen instruction.

Sync-Microsoft-OneDrive-in-Linux-picture-6

Copy the URL provided and paste it on the browser address bar. Enter your OneDrive username and password on the “Sign in” page.

Sync-Microsoft-OneDrive-in-Linux-picture-7

Then grant onedrive-d read/write access to your OneDrive.

Sync-Microsoft-OneDrive-in-Linux-picture-5

Now Copy the URL provided after you have click on Yes button and and paste it on the terminal:

Sync-Microsoft-OneDrive-in-Linux-picture-4

Sync-Microsoft-OneDrive-in-Linux-picture-3

Now create a local folder inside the Home folder to be used to sync OneDrive.

Once created, paste the path in the terminal on step 2/4.

Sync-Microsoft-OneDrive-in-Linux-picture-2

On step 3/4 and 4/4 select no.

Sync-Microsoft-OneDrive-in-Linux-picture-1

Then run the following command to start syncing.

onedrive-d start

Sync-Microsoft-OneDrive-in-Linux-picture-31

That is it!!

If you find yourself  having  problems with onedrive-d, there is an issue tracker where you can find help.

Miguel

I started this tech blog back in 2011 as a place to write down processes I took to fix my client systems and network. Now I write some tips and tricks to help others with the tech issues that one might encounter.

You may also like...

6 Responses

  1. Michael says:

    This is not it!! This would require you to manually start OneDrive every time you log on, and the performance is dicey that way.

    But fortunately, you only seem to be missing one final step: I went to startup applications and created a command ¨onedrive-d start¨. After some initial bad runs, for some reason, it has been syncing regularly and automatically. Peace.

  2. John says:

    Works great. Thanks

  3. David says:

    Hi Miguel,
    Have a problem at end of install:

    Traceback (most recent call last):
    File “setup.py”, line 4, in
    from setuptools import setup, find_packages
    ModuleNotFoundError: No module named ‘setuptools’

    Cheers, Dave 🙁