![]() In my first attempt to install the daemon, I focused on using systemctl -user because I wanted a user-centric installation. I was going crazy trying to figure out why it continued to ask for a login every time I tried to start the daemon. Since it is a dry-run, it will not only not up- or download anything but also not store the authentication token. ![]() Note: You can perform a test before authentication, and it will ask you to authorize it before doing anything. $ onedrive -dry-run -verbose -synchronize -single-directory Code Add -dry-run to the list of parameters, and onedrive will simulate the operation. You can test every command and verify the output before you commit to the action. Instead, onedrive receives an authentication token and stores it in ~/.config/onedrive/refresh_token. Now, those secrets are not stored somewhere on the file system. It is not the most user-friendly process but preferred over giving it your plain-text credentials. Instead, you copy the URL from your browser’s address bar and enter that on the command line where onedrive asks you for the “response uri”. This is the part that confused me because I expected some output. It is a Microsoft login page, and after you have authenticated yourself, you will be left with a white website. It will print a URL on the command line that you must visit in a web browser. To do that, you run it without parameters. Nothing special here, so I will move right along to… Authorizationįor this tool to work, you need to grant it access to your OneDrive account. My test system is the same Fedora 34 distribution, and I have also tested the steps on Pop!_OS, which means it should work on the other Ubuntu derivates. That is why I will include the setup process again, this time in more detail, and refer you to the other blog post for configuration tips. I have mentioned the installation in the other post, but I also left out a thing or two that I came across. To my defense, other steps I had tried are omitting a necessary detail required to make it work. However, I was not satisfied, so I went back to the documentation to see if I missed something. I used an crontab workaround to achieve my goal instead. One thing I was having trouble with was the installation as a daemon. It was the Open-Source project “onedrive” by Github user “abraunegg” (a fork of an abandoned project by user “skilion”). In a previous blog post, I showed another way of syncing OneDrive folders on Linux as an alternative to using RCLONE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |