Ubuntu 18 : Installation d’un client OneDrive avec OneDrive Free Client

Le projet est disponible ici : https://github.com/skilion/onedrive .

Voici les phases de l’installation :

$ sudo apt install libcurl4-openssl-dev
...
$ sudo apt install libsqlite3-dev
...
$ sudo snap install --classic dmd && sudo snap install --classic dub
...
$ git clone https://github.com/skilion/onedrive.git
...
$ cd onedrive/
...
$ make
echo v1.1.3 >version
dmd -g -ofonedrive -O -L-lcurl -L-lsqlite3 -L-ldl -J. src/config.d src/itemdb.d src/log.d src/main.d src/monitor.d src/onedrive.d src/qxor.d src/selective.d src/sqlite.d src/sync.d src/upload.d src/util.d
src/sqlite.d(142): Deprecation: foreach: loop index implicitly converted from size_t to int
sed "s|@PREFIX@|/usr/local|g" onedrive.service.in > onedrive.service
$ sudo make install
...
$ mkdir -p ~/.config/onedrive
...
$ cp ./config ~/.config/onedrive/config
...

Ensuite il suffit de lancer onedrive :

$ onedrive 
Authorize this app visiting:

https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=...&scope=files.readwrite%20files.readwrite.all%20offline_access&response_type=code&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient

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

Rien à dire cela fonctionne parfaitement. J’ai pu faire le transfert de 1,2 Go.

$ du -sh OneDrive/
1,2G	OneDrive/

3 réflexions sur « Ubuntu 18 : Installation d’un client OneDrive avec OneDrive Free Client »

  1. Bonjour,

    Merci pour cette procédure qui a l’air de bien fonctionner… jusqu’à la dernière étape !
    Au lancement de onedrive, on doit donc entrer une url :
    https://login.microsoftonline.com/common/oauth2/nativeclient?code=
    Ma question : à quoi correspond ce code à renseigner ?
    (Pour cause de confinement, j’essaie de m’adapter à des outils que je ne maîtrise pas du tout… j’ai un compte pro Microsoft Online, mais le code demandé ne semble pas être égal au mot de passe qui y correspond.)
    Merci d’avance pour votre réponse.

    • Bonjour. Je pense que c’est un token afin d’avoir l’acces. C’est pour cela que je l’ai pas mis dans mon article. Frédéric.

  2. @Frederic
    The ‘skilion’ repo appears to have been abandoned in 2018 and contains many defects that put you at risk of data loss and corruption if you use it. The original author is totally uncontactable despite numerous efforts by myself and others.

    If you wish to use the latest code which contains numerous fixes and enhancements you need to clone & build from this repo: https://github.com/abraunegg/onedrive

    To be notified of new releases / bug fixes please also watch the above repo.

    Major differences / Enhancements:
    * Existing bugs with ‘skilion’ client fixed
    * File upload / download validation to ensure data integrity
    * SharePoint / Office 365 Shared Libraries added
    * Desktop notifications via libnotify
    * Dry-run capability to test configuration changes
    * Prevent major OneDrive accidental data deletion after configuration change

Répondre à Ysengrin Annuler la réponse

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Time limit is exhausted. Please reload CAPTCHA.