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 !!