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.
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.
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.
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!
Thank you very much, with this I will use more Ubuntu ... Greetings!
great !!! it was perfect ...
It does not connect me with OneDrive, why can it be?
It worked for me with ./setup.sh inst
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
When I put "sudo ./inst install" it tells me "./inst: command not found". I have Lubuntu 14.04. Thanks!
Ronal! try "sudo ./install", it worked for me: 3
When entering ./inst install in the console, the file does not exist.
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
That is the option, Thank you. i have lubuntu 15.10
Thanks, I had a doubt why it didn't work for me XD
Perfect! Thank you!
Thanks, that was my problem 🙂
Hello to me it also worked with Ubuntu version 14.04, thanks.
is correct, this is the form or argument to define in the terminal
Thank you
With your help I could solve it
thanks it worked for me ./install.sh
thanks crack
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.
Javier uses apt.get -f install to fix the missing dependencies.
regards
Excellent contribution and help…. I had problems but I followed Javier's instructions and everything was perfect… thank you
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 !!!!!
Great Joaquin, Thank you very much
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!!
Ready, in onedrive-pref set the default folder and solved! Greetings!!
What do you mean by setting the default folder I have the same problem hopefully you can help me, greetings.
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.
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
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.
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!
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'
Hello, I had the same problem and I solved it by running
sudo apt-get install python3-setuptools
Greetings.
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
at the end, you just have to give the instruction to synchronize
"Oneedrive –synchronize" and that's it.
It no longer works. The microsoft API is deprecated
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.
It no longer works in any way, auth0 authentication can be achieved, it remains blank after logging in.
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,
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!
Hello, I see that there are comments from 8 years ago, is this still a correct and feasible instruction?