OneDrive logo

But while applications like Office are still not available for desktop users (well, unless you use virtual machines or Wine), you can get OneDrive file syncing today using an open source application created by GitHub user skilion.

While this application is still early in development, it already has a good set of features, some of which are not available for the official OneDrive client on Windows or Linux:

  • File change monitoring
  • Resumable file transfers
  • Support for multiple accounts
  • Selective sync


Currently, this client is not packaged for most major distributions, therefore, you will have to compile and install it manually.

The application has 3 dependencies (along with typical tools such as curl, gcc, git, and make). These are libcurl, sqlite, and the DMD Compiler.

To install these on Ubuntu, type this command in the terminal: sudo apt install libcurl4-openssl-dev libsqlite3-dev

For Fedora: sudo dnf install libcurl-devel sqlite-devel

To install the DMD Compiler (if it is not available through your package manager), use this command: curl -fsS | bash -s dmd.

After the compiler downloads the necessary files, it will offer you to activate it with a command that looks something like this, depending on the latest version available and the path you used to install it: source ~/dlang/dmd-2.077.1/activate. Once you useit, the compiler will be activated, which will be indicated by (dmd-X.XXX.X) appearing in front of your terminal prompt.

Installing the client takes just a few steps:

  1. Install the dependencies
  2. Clone the Git repository and enter it by typing the following command into the terminal: git clone; cd onedrive
  3. Compile the OneDrive client by running make
  4. Install the client by running sudo make install

Once that is done, the OneDrive client should be installed.

Next, you will need to sign in. To do that:

  1. Type onedrive in the terminal
  2. Open the URL the app provides in a web browser
  3. Sign into your Microsoft account
  4. Copy the URL of the empty page that you are redirected to after signing in
  5. Paste it into the terminal where you opened onedrive

With that, your OneDrive client should be ready to sync all of your files

Setting up the OneDrive systemd service

This client also includes a systemd service, which can be enabled after installation using the following terminal commands:

systemctl --user enable onedrive
systemctl --user start onedrive

One useful tweak you can do yourself is make it so that the client will automatically restart if it crashes. To do that, before you install the client, open the file in a text editor, and change the line Restart=no to be Restart=always. Once you do that and install the OneDrive client, it will always restart after something goes wrong.

You can also see the status of the service by running the following command: journalctl --user-unit onedrive -f


While this OneDrive client does not provide a GUI, it still has a lot of customizable options and convenient features. For example, it allows you to either sync only the files and folders that you specifically choose, or to exclude certain files and folders from syncing. The GitHub repository has a detailed description of all the options available, and examples of how to use them. You can find the repository by following the link below: