Setting up OneDrive on Linux

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.

  1. Open a terminal window and install RClone using the following command.

    curl https://rclone.org/install.sh | sudo bash
  2. Start configuring OneDrive in RClone by running the config command.

    rclone config
  3. 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
  4. Enter “OneDrive” as the name for the remote.

  5. For storage type enter “onedrive”.

  6. Leave client_id and client_secret empty. Press enter to leave the fields blank.

  7. Enter 1 for the region.

  8. Press n to skip advanced configuration.

  9. Press y to use auto configuration.

  10. A browser window will open to a Microsoft login screen. Login using your UConn email address and NetID password.

  11. After logging in, close the browser window and go back to the terminal that is running RClone.

  12. When prompted for config_type enter “onedrive”.

  13. You’ll be prompted to connect to the root of your OneDrive. Press y to continue.

  14. Press y to confirm that the remote is ok.

  15. Press q to close the remote configuration procedure.

  16. Create a “OneDrive” directory in your home folder to mount the remote that you just created.

  17. Mount the remote by using the command:

  18. Close the terminal window. You should now have OneDrive mounted in your file system.

If you reboot the computer you will need to remount the remote using the command in step 17.