Cloud storage on Onedrive
Onedrive and Onedrive business from Microsoft
In a terminal type:
sudo apt install onedrive
onedrive
Now you should copy the URL from the terminal in a browser. A login page from microsoft appears. Login with your credentials. When a white page appears, copy the URL and paste that back to the terninal.
Now a OneDrive map is created and al your Onedrive contents are downloaded.
Now enter the startup manager and enter a new program to startup like this
onedrive -m
the -m means that it keeps monitoring
Now onedrive is connected and keeps monitoring after a new startup.
Using Onedrive for personal accounts works pretty well. Business accounts at first seem to work, but after a while they don't work well. The onedrive daemon keeps crashing in my case. Since there is no tray icon or GUI available, you can only check the system monitor to see if onedrive is still running. That's not pretty neat is it.
Rclone and Rclone-Browser
I found another way to access Onedrive accounts. Using rclone and rclonebrowser. But not the version in the repository (1.36) bur a newer one that can be downloaded from their website. (1.41)
RcloneBrowser allows browsing and modifying (upload / download / remove, etc.) remote repositories, such as Google Drive, Dropbox, oneDrive and so on, including encrypted ones, using the same configuration file as Rclone, so you don't have to configure remote services twice. It is tested with the Onedrive for Hermann Wesselink college in Amstelveen, Netherlands and it seems to work OK.
Besides performing various operations on your cloud files, RcloneBrowser can also mount and unmount your remote cloud storage, and it can stream media files with an external player, such as mpv.
Note that Rclone (and thus, RcloneBrowser too) performs the synchronization on demand, without any real-time file monitoring and automatic uploading / downloading of changed files.
Installation is as follows:
Rclone
Downlouad the Rclone program here and install it on your system: (the version in the standard Ubuntu repository only works for Onedrive personal edition.)
https://rclone.org/downloads/ or directly from this for Ubuntu 64 bit systems: https://downloads.rclone.org/rclone-current-linux-amd64.deb
Rclone-browser
Download the rclonebrowser form here: https://github.com/mmozeiko/RcloneBrowser/releases
or install via a ppa (not yet for ubuntu 18.04)
sudo add-apt-repository ppa:mmozeiko/rclone-browser sudo apt-get update sudo apt install rclone-browser
After installing both packages, start rclone-browser from the dash.
start Config... and in a terminal rclone config is started.
select n for new remote and give it any name that suits you. Onedrive would be fine.
Select 16 Onedrive
leave blank twice
select personal or business
select Y if you are running a normal desktop system.
Now the browser should open and you can login in your onedrive account
now return to the terminal and conform with Y
press Q to exit and return to the rclone-browser and press the refresh button.
Now you should see your onedrive account and you can open it by double clicking
You are now able to mount it and see it in Nautilus. It is NOT a locally available filesystem. It is still remote. Some programs can read and write to this remote drive, and some don't. A workaround is to open a secon TAB in Nautilus, copy the files you need to the second TAB. Use them from there and copy them back afterwards.