EBC Exercise 04 Mounting OneDrive

From eLinux.org
Revision as of 09:31, 10 October 2019 by Yoder (talk | contribs) (Installing rclone: Added fuse)
Jump to: navigation, search

thumb‎ Embedded Linux Class by Mark A. Yoder


Here are instructions on how to mount your Rose OneDrive files on your Beagle via rclone.

rclone is a command line program to sync files and directories to and from many different services, one of which is OneDrive.

Installing rclone

Install rclone on both your host and your Bone (https://rclone.org/downloads/):

bone$ curl https://rclone.org/install.sh | sudo bash
bone$ apt update
bone$ apt install fuse
host$ curl https://rclone.org/install.sh | sudo bash
bone$ apt update
host$ apt install fuse

Configuring rclone

Next configure on the machine you want to run it on. I'll show doing it on the Bone since it's a bit more involved.

bone$ rclone config
No remotes found - make a new one
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n

We're starting a new remote, so enter n

name> onedrive

Call it whatever you want, I'm using onedrive.

Type of storage to configure.
Enter a string value. Press Enter for the default ("").
Choose a number from below, or type in your own value
 1 / 1Fichier
   \ "fichier"
...
12 / Google Drive
   \ "drive"
13 / Google Photos
   \ "google photos"
...
20 / Microsoft OneDrive
  \ "onedrive"
...
Storage> 20

There are many choices, we want onedrive. Here's it's numbered 20, it may be different on yours.

Microsoft App Client Id
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_id> 

Leave this blank

Microsoft App Client Secret
Leave blank normally.
Enter a string value. Press Enter for the default ("").
client_secret> 

This blank too

Edit advanced config? (y/n)
y) Yes
n) No
y/n> y

We want y here

Chunk size to upload files with - must be multiple of 320k.

Above this size files will be chunked - must be multiple of 320k. Note
that the chunks will be buffered into memory.
Enter a size with suffix k,M,G,T. Press Enter for the default ("10M").
chunk_size>

Leave blank




thumb‎ Embedded Linux Class by Mark A. Yoder