Forum Discussion
OneDrive on Linux
I would like to use OneDrive on Ubuntu, May be working with all or some folders. Since there is no office OneDrive client in Linux, I've searched online and found "rclone" but not sure how secure it is or is there any other alternative out there?
33 Replies
- danfly09Copper Contributor
Starting with Ubuntu 24.04, OneDrive and other cloud services are supported out of the box. Just go to settings > accounts. Enable the Microsoft 365 account, sign in and boom, done!!
Just go to files and you will see a shiny network connection to your OneDrive. - praneethashok14Copper Contributor
just install as webapp and hey presto, you have it!
- hali_omaniCopper Contributor
When installing it seems to be not working at all, because it's lazy. Then you remove that useless directory and presto: all your onedrive content is in the trash bin at MS site ! Be carefull !
- abrauneggIron Contributorhali_omani
What application did you actually install as there are a few which are detailed here.
There are 5 reliable ways to access OneDrive on Linux/Unix platforms:
* Via the OneDrive Client for Linux - https://github.com/abraunegg/onedrive - this 'syncs' your data, bi-directional operation, open source and free. Supports Personal, Business & SharePoint account types and Shared Folders. A Docker container is also available for all major architectures (i686, x86_64, ARMHF, AARCH64). If you need a GUI for onedrive client management use: https://github.com/bpozdena/OneDriveGUI
* Via the 'onedriver' client - https://github.com/jstaf/onedriver - Native file system that only provides the OneDrive 'on-demand' functionality, open source and free. Supports Personal, Business account types. Currently does not support Shared Folders or SharePoint.
* Via 'rclone' - https://rclone.org/ - one way sync client, open source and free. Has limitations with SharePoint.
* Via non-free clients such as 'insync', 'ExpanDrive'
* Via the web browser of your choice
Please note - if you install 'onedrive' on Ubuntu from Ubuntu provided packages - it will install by default a systemd service that describes your behavior. The correct way to install 'onedrive' on Ubuntu distributions is to follow: https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md
- DaxtasCopper Contributor
Windows is still afraid of Linux, keep blocking Linux under the table, just use it and copy it. MS takes the creators of the best Linux software to replicate open software and market them. In a not too distant time, with GitHub, the AI, they will do the job.
- RokeJulianLockhartCopper Contributor
I had filed a formal request at https://feedbackportal.microsoft.com/feedback/idea/35ecb207-a728-ee11-a81c-6045bd8534ad. However, it has been deleted.
- benhaubeCopper Contributor
muratkazanovamy preferred OneDrive client on Linux is Onedriver. https://github.com/jstaf/onedriver
The info on the GitHub page tells you how to get it installed and set up. Once it's done it mounts it just like any other network drive. I have been using it for 2 years and it works flawlessly. I set up my personal and work OneDrive accounts with it, and told the tool to mount them on boot-up automatically.
- obrobertsenCopper Contributor
I have try them all, this is the only one I like:
https://github.com/jstaf/onedriver
Have 1TB One Drive for Business and One Drive Personal mounted in filesystem on laptop with 128GB
All files is just mounted, and when I click on files then are downloaded and cached.
- boatguypatCopper ContributorThere is also a really good Office 365 app I use on Ubuntu called "Office365WebDesktop" if you just need occasional access to your onedrive folder (and a huge plus all O365 apps).
- philip_38Copper Contributor
How do I mount a onedrive link on a server without a graphic environment ? I cannot have one. I cann only access the server via ssh, as root.
- zKociCopper Contributor
https://github.com/abraunegg/onedrive its all in CLI - no need for GUI philip_38
- K_StuartCopper Contributor
Example 'null' [do NOT use in production or other than general convenience]
For DEV or Prodo use: Look below at 1 - 3.B.1
null: ============
Download Google Chrome Beta or Dev (keep the paths and SSH key separate- a tmp user account is my usual go to on fedora) In the browser - click you can mount it as a separate drive on your file system. No sudo required. muratkazanova
end null ========
Adv Look: =======
Before that trick and one I still leverage for cloud computation and clusters:
1 Set up a desktop controller, ie. FTP, SQL, Kube, etc. <- you get it ->
2 SharePoint server - Hint SharePoint online works just fine 😃
3.A.0 - Set up a share file with some- python, or- json, or- java, or- etc.
3.A.1 To add security/api's (running a workflow to the 'www')
3.B.0 For local or dev: 'curl' is best practice -
3.B.1 SharePoint_CLI on github - Hint look for ms365 under the topic 'Microsoft'
End Adv Look ========
Close:
If your still out there in the wild working on this - I can dev a framework to fit the use case and tarball it for you but I would need to know the logic just so I could make it useful, mine is pretty "neat-o", I can snap up something fairly quick if needed
Safe travels - KS
- eeddggCopper Contributorhonestly, rclone is the best solution if you want to mount OneDrive as a directory and only selectively cache files rather than download your whole OneDrive library. rclone is sufficiently secure, it doesn't have its own server code so it can't report your password or drive contents back to the devs or anything. It works almost exactly like on Windows except for the personal vault in my experience
- jrlowservicesCopper Contributor
Expandrive has the ability to connect to Onedrive and Sharepoint and create a virtual mounted drive. You do not have to sync files to your computer to use them. It operates like a mapped network drive in Windows (without a drive letter of course) or a mounted drive on a Mac. Expandrive is not free and I have no association with the company. But I do have a license of my own. You can try it for free and even keep using it for free once the trial expires. However, after the trial expires you will only be able to use it for something like 20 minutes and then have to restart it.
Expandrive also connects to may other platforms including SFTP (which allows a Windows client to map a drive letter to a Linux SFTP server). It has Windows, Linux and Mac clients. Even when you have a native client for a specific app (Say OneDrive or Dropbox in Windows), Expandrive can be useful to just create a mapped drive and not have to worry about managing synced folders.
- chanabosCopper Contributor
jrlowservices i prefer to use insync as the software is pretty intuitive. also expandrive would disconnet too often even with the paid version.