---
title: "Ubuntu 18 : Installation d’un client OneDrive avec OneDrive Free Client"
url: https://www.cyber-neurones.org/2020/04/ubuntu-18-installation-dun-client-onedrive-avec-onedrive-free-client/
date: 2020-04-01
modified: 2020-04-01
author: "Frederic"
description: "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..."
categories:
  - "Ubuntu"
tags:
  - "OneDrive"
  - "Ubuntu"
word_count: 143
---

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

Le projet est disponible ici : [https://github.com/skilion/onedrive](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/