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.
Open a terminal window and install RClone using the following command.
curl https://rclone.org/install.sh | sudo bash
Start configuring OneDrive in RClone by running the config command.
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/s/q> n
Enter “OneDrive” as the name for the remote.
For storage type enter “onedrive”.
Leave client_id and client_secret empty. Press enter to leave the fields blank.
>>>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>
Enter 1 for the region.
Press n to skip advanced configuration.
>>>Edit advanced config? y) Yes n) No (default) y/n> n
Press y to use auto configuration.
>>>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 UConn email address and NetID password.
After logging in, close the browser window and go back to the terminal that is running RClone.
When prompted for config_type enter “onedrive”.
You’ll be prompted to connect to the root of your OneDrive. Press y to continue.
>>>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
Press y to confirm that the remote is ok.
>>>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 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
Create a “OneDrive” directory in your home folder to mount the remote that you just created.
mkdir ~/OneDrive
Mount the remote by using the command:
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
Close the terminal window. You should now have OneDrive mounted in your file system.