In June 2014, Microsoft raised the amount of storage you get with a free OneDrive account to 15GB, from 7GB. Now that you have all this free online storage, why not use it? I use Ubuntu, not Windows, you say. No worries. There is a solution.

The solution is to install a tool called “OneDrive-D.” This tool is free, but it’s not available in the Ubuntu Software Center. We will show you how to install OneDrive-D and use it to connect to your OneDrive account and sync your content.

NOTE: When we say to type something in this article and there are quotes around the text, DO NOT type the quotes, unless we specify otherwise.

The first step is to download the program from GitHub. Open the Files Manager and navigate to the directory into which you downloaded the file. To extract the contents of the .zip file, right-click on the file and select “Extract Here.”

01_extracting_onedrive_d

Open the folder you extracted, “onedrive-d-master.”

02_opening_extracted_folder

In the “onedrive-d-master” folder, you’ll find an installation script which will handle installation of the program and the required dependencies. To run this script, we will use the Terminal.

03_install_script

Press Ctrl + Alt + T to open a Terminal window. At the prompt, change to the “onedrive-d-master” directory. If you need help changing directories, see our article about using the Linux Terminal.

04_change_directory

To install OneDrive-D, type the following command at the prompt and press “Enter.”

sudo ./inst install

Type your password when prompted and press “Enter.”

05_running_install_script

The progress of the installation displays and then a message displays saying how much disk space will be used. When asked if you want to continue, type a “Y” and press Enter.

06_do_you_want_to_continue

When the installation is finished, the OneDrive-D “Settings” dialog box displays. First, you’ll need to connect to your OneDrive account. To do so, click “Connect to OneDrive.com”.

NOTE: Leave the Terminal window open. We will be using again later in this article.

07_clicking_connect_to_onedrive

On the “Connect to OneDrive.com” dialog box, enter your Microsoft email address and password and click “Sign in.”

08_connect_to_onedrive_dialog

Another dialog box displays telling you that OneDrive-D needs permission to access your OneDrive info. To continue, click “Yes.”

09_permission_dialog

A message displays above the “Connect to OneDrive.com” button indicating that you have connected to your OneDrive account.

Now you need to select a directory on your hard drive into which the content from your OneDrive account will be synced. You can do this in a Terminal window (as described in our article about using the Linux Terminal) or in the Files Manager.

Once you’ve created a directory for your OneDrive content, click the “Location” drop-down list and select “Other...”.

10_selecting_other

On the “Choose your local OneDrive folder” dialog box, navigate to the directory you created for your OneDrive content and click “Open.”

NOTE: If you need to create a new folder, use the “Create Folder” button.

11_choosing_local_onedrive_folder

By default, all the check boxes are selected in the “Exclusions” section for types of files you want to exclude when syncing. If you don’t want to exclude certain types, de-select the applicable check boxes. Once you’ve finished choosing your settings, click “OK.”

12_clicking_ok

A message displays telling you that your preferences were saved successfully. Click “OK” to close the dialog box.

13_preferences_saved

You are returned to the “Settings” dialog box. Click “Close.”

14_clicking_close

Now, you must tell OneDrive-D to sync with OneDrive to get your content into the directory you specified. To do this, go back to your open Terminal window and type the following command at the prompt and press “Enter.”

onedrive-d

15_syncing_content

The syncing process starts and the progress displays in the Terminal window.

16_sync_in_terminal

You will also see notifications on the right side of the screen as files are synced.

17_sync_notifications

When the syncing is done, OneDrive-D sets up “watches.” This allows OneDrive-D to sync in real time as you make changes to files in the synced directory or add files to or remove files from the directory.

18_setting_up_watches

For the watch to continue to work, you must leave the Terminal window open. If you close the Terminal window, the following message displays. If you really want to end the watch process, click “Close Terminal.” Otherwise, click “Cancel” to continue running the watch.

18a_closing_terminal_and_watches

If you make changes to your OneDrive content on multiple computers or other devices, such as a phone or tablet, you may want to automatically sync your content when you boot your Ubuntu machine. To do this, add OneDrive-D to the startup applications. You should have an item similar to the OneDrive Sync item in the image below. Make sure it’s checked and click “Close.”

23_closing_startup_application_prefs

You can also add a shortcut to the desktop so you can quickly run OneDrive-D to sync your OneDrive content, if you didn’t add the program to startup, or if you just want to sync again while still logged into your session.

NOTE: The article linked to here about adding shortcuts to the desktop refers to Ubuntu 11.04 and 11.10. However, the process still works in Ubuntu 14.04.

When you double-click the shortcut, any changes you made to the synced folder are uploaded to OneDrive and any changes you made outside of Ubuntu are downloaded to your synced folder in Ubuntu.

24_syncing_on_startup

When you use the shortcut to run OneDrive-D and sync your OneDrive content, the program remains running in the background. If you don’t want it to continue running, you can use the “ps” and “kill” commands to kill the process. See our article about managing processes from the Linux Terminal for information about killing processes.