Using rclone to access MS OneDrive and cloud storage
A fix has been deployed and the shortcut from the University Menu should work.
If not and the folder that opens is empty, check the bottom of this page. You can also set this up with these instructions Rclone-MS OneDrive
Rclone is a open source software tool which can be used to access most cloud storage systems, including OneDrive. Rclone is installed by default in all Cubbli Linuxes (later than 18.04. If you have an older installation, you should upgrade). OneDrive cloud storage will work on any network. No VPN is needed.
University of Helsinki Office365 subscription has 1T of OneDrive storage available by default to all UH users. Helsinki University OneDrive storage can be accessed by University admins. Store all private data in a folder named private. Consider using encryption. More details about University OneDrive is available from Helpdesk.
OneDrive access with Cubbli
You can use the University menu to configure and access OneDrive in Cubbli. In VDI and Classroom Cubbli hosts you need to the configuration only once:
Select OneDrive from University menu: | Select Yes to configure OneDrive access. |
You need to login with your ad.helsinki.fi account. | If you don't at first succeed, try again! |
Success! | Access OneDrive and create the Private folder. |
Boring technical details about the configuration:
- The script will mount OneDrive at path /run/user/[your uid number]/rclone/onedrive-uh/
- The path will stay the same. You can use symlinks to create shortcuts there.
- You can access the directory from command line, just like any other directories. Reading and writing files might be slow though, depending on network conditions and OneDrive load.
- This is a fuse mount with rclone's mount command and full caching (--cache-mode-full)
- You can unmount OneDrive with cubbli-rclone-setup umount
- It is safe to leave the mount on.
If rclone stops working / the shortcut opens an empty folder with nothing in it
- This might be because the MFA has expired and you need to run the setup again for it to get authenticated
$ cubbli-rclone-setup setup-onedrive
If the folder is empty when you run the automated script from the uh-menu:
- In the terminal run:
$ rclone config reconnect onedrive-uh:
- And answer to the questions accordingly.
Using Rclone
You can set up other rclone remotes as you wish and you don't need to use the Cubbli Rclone configuration script. Remember that rclone mounts probably won't work under your AD home directory, so use a temporary directory for them. Please consult the rclone documentation.