This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:onedrive [2024/01/16 19:29] – deul | linux:onedrive [2024/01/17 08:01] (current) – jansen | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Using One Drive====== | + | |
- | + | * [[linux:onedrive:macos|Mounting | |
- | =====Setup One Drive===== | + | * [[linux:onedrive:browser|Access |
- | + | ||
- | | + | |
- | + | ||
- | # rclone config | + | |
- | + | ||
- | * You will be prompted with configuration options. Choose n to create a new remote. | + | |
- | + | ||
- | No remotes found - make a new one | + | |
- | n) New remote | + | |
- | s) Set configuration password | + | |
- | q) Quit config | + | |
- | n/ | + | |
- | + | ||
- | * Enter for instance “UL-OneDrive” as the name for the remote. | + | |
- | + | ||
- | name> UL-OneDrive | + | |
- | + | ||
- | * For storage type enter “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 | + | |
- | ... | + | |
- | 21 / Mega | + | |
- | \ " | + | |
- | 22 / Microsoft Azure Blob Storage | + | |
- | \ " | + | |
- | 23 / Microsoft | + | |
- | \ " | + | |
- | 24 / OpenDrive | + | |
- | \ " | + | |
- | 25 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH) | + | |
- | \ " | + | |
- | ... | + | |
- | Storage> onedrive | + | |
- | ** See help for onedrive backend at: https:// | + | |
- | + | ||
- | * Leave client_id and client_secret empty. Press enter to leave the fields blank. | + | |
- | + | ||
- | Microsoft App Client Id | + | |
- | Leave blank normally. | + | |
- | Enter a string value. Press Enter for the default ("" | + | |
- | client_id> | + | |
- | Microsoft App Client Secret | + | |
- | Leave blank normally. | + | |
- | Enter a string value. Press Enter for the default ("" | + | |
- | client_secret> | + | |
- | + | ||
- | * Do not go for advanced config, type n | + | |
- | + | ||
- | Edit advanced config? (y/n) | + | |
- | y) Yes | + | |
- | n) No (default) | + | |
- | y/n> n | + | |
- | + | ||
- | * Press y to use auto configuration. | + | |
- | + | ||
- | Remote config | + | |
- | Use auto config? | + | |
- | * Say Y if not sure | + | |
- | * Say N if you are working on a remote or headless machine | + | |
- | y) Yes (default) | + | |
- | n) No | + | |
- | y/n> y | + | |
- | + | ||
- | * A browser window will open to a Microsoft login screen. Login using your ULCN account information. | + | |
- | + | ||
- | * When prompted for config_type choose “onedrive”, | + | |
- | + | ||
- | + | ||
- | + | ||
- | Choose a number from below, or type in an existing value | + | |
- | 1 / OneDrive Personal or Business | + | |
- | \ " | + | |
- | 2 / Root Sharepoint site | + | |
- | \ " | + | |
- | 3 / Type in driveID | + | |
- | \ " | + | |
- | 4 / Type in SiteID | + | |
- | \ " | + | |
- | 5 / Search a Sharepoint site | + | |
- | \ " | + | |
- | Your choice> 1 | + | |
- | + | ||
- | * You’ll be prompted to connect to the root of your OneDrive. Press y to continue. | + | |
- | + | ||
- | Found 1 drives, please select the one you want to use: | + | |
- | 0: OneDrive | + | |
- | Chose drive to use:> 0 | + | |
- | Found drive ' | + | |
- | + | ||
- | Is that okay? | + | |
- | y) Yes (default) | + | |
- | n) No | + | |
- | y/n> y | + | |
- | | + | |
- | * Press y to confirm that the remote is ok. | + | |
- | -------------------- | + | |
- | | + | |
- | type = onedrive | + | |
- | token = {" | + | |
- | drive_id = b!9lLca7qW5Uqos5tnc3zl3xVQs7GKhd1Pi_6ugA5eVjVYitM-xxxxxxxxxxxxx | + | |
- | drive_type = business | + | |
- | -------------------- | + | |
- | y) Yes this is OK (default) | + | |
- | e) Edit this remote | + | |
- | d) Delete this remote | + | |
- | y/e/d> y | + | |
- | + | ||
- | * Press q to close the remote configuration procedure. | + | |
- | + | ||
- | Current remotes: | + | |
- | + | ||
- | Name | + | |
- | ==== | + | |
- | UL-OneDrive | + | |
- | + | ||
- | e) Edit existing remote | + | |
- | n) New remote | + | |
- | d) Delete remote | + | |
- | r) Rename remote | + | |
- | c) Copy remote | + | |
- | s) Set configuration password | + | |
- | q) Quit config | + | |
- | e/ | + | |
- | + | ||
- | * Create a “OneDrive” directory in your home folder to mount the remote that you just created. | + | |
- | + | ||
- | mkdir ~/ | + | |
- | + | ||
- | * Mount the remote by using the command: | + | |
- | + | ||
- | rclone --vfs-cache-mode writes mount UL-OneDrive: ~/OneDrive & | + | |
- | + | ||
- | And now the drive is mounted: | + | |
- | # df ~/ | + | |
- | Filesystem | + | |
- | UL-OneDrive: | + |