How to access OneDrive from the Ubuntu desktop

ondrive

Synchronization with virtual hard drives is becoming The Achilles heel from Ubuntu. The Canonical distribution, first to integrate its own cloud service is lagging behind. After the removal of its cloud service and with the use of third-party services to access popular virtual hard drives such as Google Drive, the option of Cloud for Ubuntu is quite limited. However, thanks to the work of many developers, Ubuntu is solving these deficiencies. Recently a programmer, Xiangyu Bu has managed to develop a program that synchronizes our OneDrive virtual hard drive with a folder on our hard drive, just like Dropbox does with its folders. This program has been baptized with the name onedrive-d and gives us access to our OneDrive virtual hard disk.

How to install Onedrive-d and access OneDrive in Ubuntu

Onedrive-d is a program that is hosted on Github, in order to install it in Ubuntu we will need the Git program. If we do not have Git we install it and if we already have Git installed we will do the following:

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

cd onedrive-d

Once we have the onedrive-d files, we will start the installation of the program:

./inst install

This is how the installation will begin, the first thing it will ask us is to install a series of packages that we need for the program to work. Once we have installed these packages, a configuration screen will appear, it is the first configuration. On this screen we will only modify two data, first we press the upper button and a login screen will appear where we will enter our credentials to access OneDrive.
OneDrive-D

Once logged in, it will ask us for permission to access OneDrive. Once solved, we return to the first configuration screen and in the second button, the one below the previous button, we choose the folder where we will place the OneDrive data.
OneDrive-D

We leave the rest of the parameters and options as they are and press the Ok button. With this, a screen will appear stating that the changes have been updated. Now, we close the screen and in a terminal we write the following

oneedrive-d

with this, the synchronization with One Drive will begin and in a short time we will have the hard disk updated and synchronized.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Arturo Diaz said

    Thank you very much for your article, I need to use OneDrive to synchronize information between my laptop and my iPad, and it was wonderful. Merci!

  2.   Pig Soup said

    Thank you very much, with this I will use more Ubuntu ... Greetings!

  3.   skirmish said

    great !!! it was perfect ...

  4.   Sa said

    It does not connect me with OneDrive, why can it be?

  5.   ivanlutin said

    It worked for me with ./setup.sh inst

  6.   Rafa said

    Hello, when I get to the stage of creating the file it throws me the error:
    cp: can't create regular file "/home/usernamer/.onedrive/ignore_v2.ini": Permission denied but I can't change permission since I'm not the author.

    They have some idea how to fix it. I am following these stages ... https://github.com/xybu/onedrive-d

  7.   ronald said

    When I put "sudo ./inst install" it tells me "./inst: command not found". I have Lubuntu 14.04. Thanks!

  8.   Javier said

    Ronal! try "sudo ./install", it worked for me: 3

  9.   Jordi said

    When entering ./inst install in the console, the file does not exist.

  10.   Augustine Rius said

    Look in the onedrive-d folder which is the install file, in my case it was install.sh so the correct command is "./install.sh" and it installs correctly, I have Ubuntu 15.04

    1.    Fabio said

      That is the option, Thank you. i have lubuntu 15.10

      1.    Arthur said

        Thanks, I had a doubt why it didn't work for me XD

      2.    Paulo said

        Perfect! Thank you!

    2.    Angel said

      Thanks, that was my problem 🙂

    3.    Adolfo Felix said

      Hello to me it also worked with Ubuntu version 14.04, thanks.

    4.    Jose Alfredo Monterrosa said

      is correct, this is the form or argument to define in the terminal

    5.    Danny said

      Thank you
      With your help I could solve it

    6.    Hugh said

      thanks it worked for me ./install.sh

    7.    federico moné said

      thanks crack

  11.   Javier said

    Hello and thank you for this article. Please can you help me, when installing it did not work with "./inst install", it worked with "./install.sh" but when installing I got something that said "Python 3.x not found on the system", then several things were downloaded and installed and in the end I get something else "pip3 not found on the system". How do I install this missing pip3? Thanks in advance for the help.

  12.   FRANCO ALVARADO said

    Javier uses apt.get -f install to fix the missing dependencies.
    regards

  13.   Andrés Reyes said

    Excellent contribution and help…. I had problems but I followed Javier's instructions and everything was perfect… thank you

  14.   Gustavo Ramirez placeholder image said

    Excellent !!!, I have just installed ubuntu MATE and this was the application I was looking for to have my OneDrive folders synchronized… Thank you very much !!!!!

  15.   Fabio said

    Great Joaquin, Thank you very much

  16.   Gabriel Maple said

    Hello!! It throws me this error after running in the onedrive-d terminal .. "CRITICAL: MainThread: path to local OneDrive repo is not set." How can I solve it?? (I already passed oneedrive-pref ..)
    Thank you!!

  17.   Gabriel Maple said

    Ready, in onedrive-pref set the default folder and solved! Greetings!!

    1.    Oscar Osorio Lopez said

      What do you mean by setting the default folder I have the same problem hopefully you can help me, greetings.

  18.   host said

    install it and configure everything well although by console. but I have some files on the drive and it does not sync them to me, so it downloads how to know if it is really synchronizing.

  19.   Esteban said

    Do you know how to install Para e linux mint rafaela 17.3 because by the steps you have put it I do not get it

  20.   Maica said

    Hello, good afternoon,

    I have tried a thousand ways (including giving root permissions) to the installer and I can't install it. I get the following message that I can't fix: WARNING: Dummy-2: failed to dump config to file "/home/maica/.onedrive/config_v2.json".

    If someone could help me I would really appreciate it.

  21.   Juan Antonio Dominguez Moguel said

    Excellent contribution. Thanks. In my particular case with Ubuntu Studio 16.04, it worked perfectly for me changing the instruction: "./inst install" to "./install.sh install" and then configure from the terminal with the following instruction: "onedrive-pref". Greetings!

  22.   jonathan said

    I have this problem and I have not been able to solve it at the beginning it installs normal but almost at the end I get an error I thank you for your collaboration I leave the lines of code
    jonathan @ jonathan-CQ1110LA ~ / onedrive-d $ sudo ./install.sh
    python3 installed… OK
    Reading package list ... Done
    Creating dependency tree
    Reading the status information ... Done
    python3-dev is already in its latest version (3.5.1-3).
    0 updated, 0 new will be installed, 0 to remove, and 28 not updated.
    pip3 installed… OK
    inotifywait installed… OK
    Reading package list ... Done
    Creating dependency tree
    Reading the status information ... Done
    python3-gi is already in its latest version (3.20.0-0ubuntu1).
    inotify-tools is already in its latest version (3.14-1ubuntu1).
    0 updated, 0 new will be installed, 0 to remove, and 28 not updated.
    Traceback (most recent call last):
    File "setup.py", line 4, in
    from setup tools import setup, find_packages
    ImportError: No module named 'setuptools'

    1.    Jose Iranzo said

      Hello, I had the same problem and I solved it by running

      sudo apt-get install python3-setuptools

      Greetings.

  23.   Juan Pablo said

    It is sooo much easier than what is explained here. At least on Linux Mint 19
    First:
    sudo apt install onedrive
    Second:
    Once installed, a Folder called OneDrive will appear in our «Personal Folders» and within it: Documents - Favorites - Shared Favorites - Public - Safeguard 1 (at least these folders appeared to me, perhaps because I have a folder with that name)
    Third:
    We access our Microsoft account and go to OneDrive.

    I did the test of creating a document in a folder on my hard drive and then in a terminal I typed "onedrive" and with that command alone, it was updated in the onedrive cloud. The answer on my console was: Uploading: ./Documents/Testing OD.txt

    Then I deleted all the other installation that didn't help me.

    Greetings from Argentina

    Juan Pablo

  24.   Jose Alfredo Monterrosa said

    at the end, you just have to give the instruction to synchronize

    "Oneedrive –synchronize" and that's it.

  25.   zifra said

    It no longer works. The microsoft API is deprecated

  26.   DANILO RIANO said

    Hello, when I run the onedrive command from the terminal, in the end it throws the error:

    OSError: [Errno 88] Socket operation on non-socket

    I have Ubuntu 20.04.

    Can you help me, Thank you.

  27.   jesbenmx said

    It no longer works in any way, auth0 authentication can be achieved, it remains blank after logging in.

  28.   Nicholas said

    Friends, thanks for sharing it, "./install.sh" worked for me directly, which is different from what it says in the code, I share it in case it works for someone,

    1.    marleng said

      Hello, how did you do this part of the steps:

      # you may need to change `whoami` to your username
      sudo chown `whoami` /var/log/onedrive_d.log

      -----

      When I put that part, the following appears, because I also don't know exactly what the user is:

      sudo chown $ CURRENT_USER `/ var / log / onedrive_d.log`
      bash: /var/log/onedrive_d.log: Permission denied
      chown: missing operand
      Try 'chown –help' for more information.

      ---

      I don't know how to solve it, I hope you can help me.
      Regards!

  29.   Jimmy said

    Hello, I see that there are comments from 8 years ago, is this still a correct and feasible instruction?