MICROSOFT ONEDRIVE not SYNC in DOCUMENTS!

Hello,
as saying [Talita_Leite] user in their post (/community.endlessos.com/t/cloud-storage-app/9734)

I’m struggling trying to fing a way to have my files on my laptop and in the cloud storage at the same time (like when we use OneDrive sync client or dropboxsync client ). Is there any app for Endless OS that allow me that .Thank you

Talita

For information, i have added my microsoft account succesfully (see file attached) , and the mail account works fine with “evolution” mail app but the file manager never display the onedrive content anywhere .

also tried to map onedrive in the file manager with another location option via webdav protocol : davs://d.docs.live.net/?cid=A34EDEE456433E or davs://onedrive.live.com/?cid…… but get errors HTTP:found message
Is there any correction witch sync function with ONEDRIVE ?? or any solution with a flatpack app version like insync or Rclone for Endless ??

is there anybody know the solution??
I see and installes the new Endless OS V4.0.0 update with the hope the Microsoft account works but nowhere !!! the same dysfunction !! the mail account sync option works fine but nothing at all for Documents sync option !!!
Also can anybody tell me why the Sync Documents option is there if do nothing ??? or please tell us how it work?
Regards

The ‘show document’ option requires GNOME Documents which doesn’t seem to be on Flatpak. Files/Nautilus is not GNOME Documents, hence why it doesn’t appear.

My recommendation is to use Syncthing which should also be available on App Center and on Windows as SyncTrayzor, to sync between multiples PCs and phones. There is a Getting Started guide on the syncthing website (which I couldn’t link to due to limitation) so please read that first.

You’ll want to start from the computer that has everything. While it’ll create a “Sync” folder by default, you can easily point to any folder and just sync everything inside that folder (including any sub-folders within, so you can choose specifically only the folder you want to sync or learn to use the ignore-patterns).

Also, just in case, make sure to turn on the File Versioning during setup (Simple File Versioning should be fine) so that you wouldn’t lose anything if something went wrong.

It isn’t true ‘cloud’ however. It just syncs between your PCs, but if you have a Windows PC or a Windows Virtual Machine that can sync to OneDrive, then it’ll work (this is what I do myself). Also, you can just copy the file manually and then start the sync - thus not needing to download any files and saving bandwidth.

The other option is to use Toolbox.

First open terminal and type/copy-paste the lines after '$ ':

$ toolbox create
$ toolbox enter {container-name-here}

(container name should be ‘fedora-container-32’, not sure, but pay attention to the output)

Next, depends on what you want. If you want a selective sync that is almost like on Windows 10 and wants a GUI for setup, use jstaf’s onedriver:

$ sudo dnf copr enable jstaf/onedriver
$ sudo dnf install onedriver
$ onedriver-launcher

(it’ll also try to update everything inside the toolbox, don’t worry if flatpak fails, we’re not using flatpak here)

You can then just login normally. The files are cached in the hidden folder within your user home folder: $HOME/.cache/onderiver so if you use a different drive for storing large files, you can change it by following instruction here (though make sure you are in the toolbox while doing it).

Another alternative are InSyncHQ (which is paid) and abraunegg’s onedrive (which is true sync, as opposed to onedriver’s more Win10-like selective syncing). I have not tested the former - don’t know if it works with Endless OS. The latter you can install inside the Toolbox using sudo dnf install onedrive but it has no GUI and the config might be confusing (so be sure to read the usage manual very closely).

Of course, you can also install gnome-documents using Toolbox, but I don’t recommend it. It’ll probably be bloated with many dependencies and you’re getting a worse experience than using onedriver IMHO.

tl;dr try syncthing - if not work or you want better selective syncing directly with cloud, use onedriver.

HOURA!!! all is sync and visible in my personnal document folder with the file manager !!! path /home/alex/OneDrive

THANKS very much to FengLengshun for your help !!
as you can see below my first test work perfectly (it’s my first time with linux commands but it’s very easy to understand and make it to run )

alex@toolbox:~$ onedrive --synchronize
Initializing the Synchronization Engine …
Syncing changes from OneDrive …
Creating local directory: Documents
Creating local directory: Images
Downloading file Prise en main de OneDrive.pdf … done.
Downloading file Document.docx … done.
Creating local directory: ALEX
alex@toolbox:~$

PS: I copy/ past below (with personnal REM: ) my entire commands log if anyone need to do the same and can help you …

go to desktop and launch “TERMINAL” app
alex@endless:~$ toolbox create
Image required to create toolbox container.
Download registry.fedoraproject.org/f32/fedora-toolbox:32 (500MB)? [y/N]: y
Created container: fedora-toolbox-32
Enter with: toolbox enter
alex@endless:~$ toolbox enter

Welcome to the Toolbox; a container where you can install and run
all your tools.

  • Use DNF in the usual manner to install command line tools.
  • To create a new tools container, run ‘toolbox create’.

For more information, see the documentation.

alex@toolbox:~$ toolbox enter fedora-toolbox-32
alex@toolbox:~$ sudo dnf copr enable jstaf/onedrive

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/jstaf/onedriver? [y/N]: y
Error: This repository does not have any builds yet so you cannot enable it now.
alex@toolbox:~$ sudo dnf install onedriver
Fedora 32 openh264 (From Cisco) - x86_64 164 B/s | 2.5 kB 00:15
Fedora Modular 32 - x86_64 309 kB/s | 4.9 MB 00:16
Fedora Modular 32 - x86_64 - Updates 292 kB/s | 4.6 MB 00:16
Fedora 32 - x86_64 - Updates 1.6 MB/s | 30 MB 00:19
Fedora 32 - x86_64 3.1 MB/s | 70 MB 00:22
No match for argument: onedriver
Error: Unable to find a match: onedriver

REM : of course , mismatch typing onedriver instead onedrive!!!

alex@toolbox:~$ sudo dnf install onedrive
Last metadata expiration check: 0:05:00 ago on Mon Dec 6 19:01:35 2021.
Dependencies resolved.

Package Architecture Version Repository Size

Installing:
onedrive x86_64 2.4.2-1.fc32 updates 424 k
Installing dependencies:
ldc-druntime x86_64 1:1.20.1-1.fc32 fedora 592 k
ldc-phobos x86_64 1:1.20.1-1.fc32 fedora 1.8 M

Transaction Summary

Install 3 Packages

Total download size: 2.8 M
Installed size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): onedrive-2.4.2-1.fc32.x86_64.rpm 82 kB/s | 424 kB 00:05
(2/3): ldc-druntime-1.20.1-1.fc32.x86_64.rpm 109 kB/s | 592 kB 00:05
(3/3): ldc-phobos-1.20.1-1.fc32.x86_64.rpm 331 kB/s | 1.8 MB 00:05

Total 180 kB/s | 2.8 MB 00:16
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : ldc-druntime-1:1.20.1-1.fc32.x86_64 1/3
Installing : ldc-phobos-1:1.20.1-1.fc32.x86_64 2/3
Installing : onedrive-2.4.2-1.fc32.x86_64 3/3
Running scriptlet: onedrive-2.4.2-1.fc32.x86_64 3/3
Verifying : onedrive-2.4.2-1.fc32.x86_64 1/3
Verifying : ldc-druntime-1:1.20.1-1.fc32.x86_64 2/3
Verifying : ldc-phobos-1:1.20.1-1.fc32.x86_64 3/3

Installed:
ldc-druntime-1:1.20.1-1.fc32.x86_64 ldc-phobos-1:1.20.1-1.fc32.x86_64
onedrive-2.4.2-1.fc32.x86_64

Complete!

alex@toolbox:~$ sudo dnf copr enable jstaf/onedrive
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.

The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr,
and packages are not held to any quality or security level.

Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.

Do you really want to enable copr.fedorainfracloud.org/jstaf/onedrive? [y/N]: y
Error: This repository does not have any builds yet so you cannot enable it now.
alex@toolbox:~$ sudo dnf install onedrive
Last metadata expiration check: 0:09:29 ago on Mon Dec 6 19:01:35 2021.
Package onedrive-2.4.2-1.fc32.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

REM : well: now all seems installed and OK !!!

alex@toolbox:~$ onedrive
Authorize this app visiting:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?

client_id=blablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla

REM : copy this url link and paste it on your webbrowser in the way to get a blank page with a new URL like this :
https://login.microsoftonline.com/common/oauth2/nativeclient?code=blablablablablabla

and copy/paste it on the toolbox like this:

Enter the response uri: https://login.microsoftonline.com/common/oauth2/nativeclient?code=blablablablablabla

Application has been successfully authorised, however no additional command switches were provided.

Please use --help for further assistance in regards to running this application.

and then I can ask for help to learn the commands :

alex@toolbox:~$ onedrive --help
OneDrive - a client for OneDrive Cloud Services

Usage:
onedrive [options] --synchronize
Do a one time synchronization
onedrive [options] --monitor
Monitor filesystem and sync regularly
onedrive [options] --display-config
Display the currently used configuration
onedrive [options] --display-sync-status
Query OneDrive service and report on pending changes
onedrive -h | --help
Show this help screen
onedrive --version
Show version

Options:

–auth-files
Perform authentication not via interactive dialog but via files read/writes to these files.
–check-for-nomount
Check for the presence of .nosync in the syncdir root. If found, do not perform sync.
–check-for-nosync
Check for the presence of .nosync in each directory. If found, skip directory from sync.
–classify-as-big-delete
Number of children in a path that is locally removed which will be classified as a ‘big data delete’
–confdir ARG
Set the directory used to store the configuration files
–create-directory ARG
Create a directory on OneDrive - no sync will be performed.
–debug-https
Debug OneDrive HTTPS communication.
–destination-directory ARG
Destination directory for renamed or move on OneDrive - no sync will be performed.
–disable-notifications
Do not use desktop notifications in monitor mode.
–disable-upload-validation
Disable upload validation when uploading to OneDrive
–display-config
Display what options the client will use as currently configured - no sync will be performed.
–display-sync-status
Display the sync status of the client - no sync will be performed.
–download-only
Only download remote changes
–dry-run
Perform a trial sync with no changes made
–enable-logging
Enable client activity to a separate log file
–force
Force the deletion of data when a ‘big delete’ is detected
–force-http-1.1
Force the use of HTTP/1.1 for all operations (DEPRECIATED)
–force-http-2
Force the use of HTTP/2 for all operations where applicable
–get-O365-drive-id ARG
Query and return the Office 365 Drive ID for a given Office 365 SharePoint Shared Library
–get-file-link
Display the file link of a synced file
–help -h
This help information.
–local-first
Synchronize from the local directory source first, before downloading changes from OneDrive.
–log-dir ARG
Directory where logging output is saved to, needs to end with a slash.
–logout
Logout the current user
–min-notify-changes ARG
Minimum number of pending incoming changes necessary to trigger a desktop notification
–monitor -m
Keep monitoring for local and remote changes
–monitor-fullscan-frequency ARG
Number of sync runs before performing a full local scan of the synced directory
–monitor-interval ARG
Number of seconds by which each sync operation is undertaken when idle under monitor mode.
–monitor-log-frequency ARG
Frequency of logging in monitor mode
–no-remote-delete
Do not delete local file ‘deletes’ from OneDrive when using --upload-only
–print-token
Print the access token, useful for debugging
–remove-directory ARG
Remove a directory on OneDrive - no sync will be performed.
–remove-source-files
Remove source file after successful transfer to OneDrive when using --upload-only
–resync
Forget the last saved state, perform a full sync
–single-directory ARG
Specify a single local directory within the OneDrive root to sync.
–skip-dir
Skip any directories that match this pattern from syncing
–skip-dir-strict-match
When matching skip_dir directories, only match explicit matches
–skip-dot-files
Skip dot files and folders from syncing
–skip-file ARG
Skip any files that match this pattern from syncing
–skip-size
Skip new files larger than this size (in MB)
–skip-symlinks
Skip syncing of symlinks
–source-directory ARG
Source directory to rename or move on OneDrive - no sync will be performed.
–sync-root-files
Sync all files in sync_dir root when using sync_list.
–syncdir ARG
Specify the local directory used for synchronization to OneDrive
–synchronize
Perform a synchronization
–upload-only
Only upload to OneDrive, do not sync changes from OneDrive locally
–user-agent ARG
Specify a User Agent string to the http client
–verbose -v+
Print more details, useful for debugging (repeat for extra debugging)
–version
Print the version and exit

REM : I try to send the synchronize command :

alex@toolbox:~$ onedrive --synchronize
Initializing the Synchronization Engine …
Syncing changes from OneDrive …
Creating local directory: Documents
Creating local directory: Images
Downloading file Prise en main de OneDrive.pdf … done.
Downloading file Document.docx … done.
Creating local directory: ALEX
alex@toolbox:~$

REM : HOURA!!! all is sync and visible in my personnal document folder with the file manager !!! path /home/alex/OneDrive

THANKS very much to FengLengshun for your help !!

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.