Difference between revisions of "EBC Exercise 04 Mounting OneDrive"

From eLinux.org
Jump to: navigation, search
(Initial info)
 
m (Configuring rclone)
Line 16: Line 16:
 
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.
 
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$
+
  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
 +
 
  
 
{{YoderFoot}}
 
{{YoderFoot}}

Revision as of 08:41, 10 October 2019

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
host$ curl https://rclone.org/install.sh | sudo bash

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