There is no official OneDrive client for Linux computers. The functionality of drive syncing can be achieved by using the third party software RClone. RClone requires a Linux computer with a GUI interface (it will not work on command line only installs).
RClone is a third party software not supported by Microsoft.
Ctrl + Alt + Tto open a terminal session.
curl https://rclone.org/install.sh | sudo bash
>>>No remotes found, make a new one? n) New remote s) Set configuration password q) Quit config n/s/q> n
>>>Option client_id. OAuth Client Id. Leave blank normally. Enter a value. Press Enter to leave empty. client_id> >>>Option client_secret. OAuth Client Secret. Leave blank normally. Enter a value. Press Enter to leave empty. client_secret>
>>>Edit advanced config? y) Yes n) No (default) y/n> n
>>>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
>>>Drive OK? Found drive "root" of type "business" URL: https://uconn-my.sharepoint.com/personal/timothy_bogues_uconn_edu/Documents y) Yes (default) n) No y/n> y
>>>y) Yes this is OK (default) e) Edit this remote d) Delete this remote y/e/d> y
Current remotes: Name Type ==== ==== OneDrive 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/n/d/r/c/s/q> q
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
If you reboot the computer, you will need to remount the remote using the command in step 17. Set up CRON to run the above command at reboot. See below for more details.
From https://kb.uconn.edu/space/IKB/26050527301/Setting+up+OneDrive+on+Linux, viewed 6-Apr-2023.
Commands can be scheduled to run at various times using Linux's
First, run the crontab command:
Edit the crontab file, adding the following line to the end of the file.
@reboot rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
From https://www.cyberciti.biz/faq/linux-execute-cron-job-after-system-reboot/, viewed 6-Apr-2023.