Use Microsoft ONEDRIVE in LINUX: EASY with rclone
HTML-код
- Опубликовано: 11 май 2023
- In this video you will learn how you can access Microsoft OneDrive from Arch Linux with rclone.
Rclone is an open-source command line program that allows you to sync files and directories to and from a variety of cloud storage services, such as Microsoft OneDrive, Google Drive, Dropbox, and Amazon S3. It's easy to use, reliable, and secure.
Rclone can be used to backup files and directories to the cloud, and keep them in sync with local copies. It can also be used to move files between cloud storage providers, or to mount cloud storage services as local drives.
Rclone is written in Go and is available for Linux, macOS, and Windows. It's free and open-source, and can be installed with a few simple commands.
Rclone Homepage:
rclone.org/
Create folder:
mkdir OneDrive
Install rclone:
sudo pacman -S rclone
Start Configuration:
rclone config
Mount OneDrive:
rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
Welcome to my channel! I'm Stephan Raabe, a Digital Marketing Professional with over 20 years of experience in B2B digital marketing, computer science, and web technologies.
Linux is an exceptional operating system that powers my business and personal life every day. It's stable, fast, and highly customizable to meet individual needs. On this channel, I share my Arch Linux setup, share experiences with differnet Linux distributions, featuring window managers like Hyprland and Qtile.
Whether you're a Linux enthusiast or someone looking to optimize your tech setup, there's something here for you. Subscribe and let's explore together!
👉 ML4W Dotfiles for Hyprland: github.com/mylinuxforwork/dot...
👉 ML4W Dotfiles Wiki: github.com/mylinuxforwork/dot...
👉 ML4W Hyprland Starter: github.com/mylinuxforwork/hyp...
👉 ML4W Hyprland Starter Wiki: github.com/mylinuxforwork/hyp...
👉 ML4W Hyprland Settings App: github.com/mylinuxforwork/hyp...
👉 Homepage: www.ml4w.com
👉 Discord: / discord
👉 ChatGPT Python Script: github.com/mylinuxforwork/cha...
#linux #onedrive #office365 #microsoft #archlinux
It finally worked! I have been trying forever to get OneDrive to sync with Ubuntu, and thanks to your video I made it! Thanks!
That’s great.
Thank you sooooo much! I switched to Linux 2 years ago and I just discovered rclone and thanks to your easy tutorial I am now able to manage my files directly on my computer without using the Web UI that is not great at all to manage a lot of files.
Thank you so much for your feedback. Have fun with rclone.
Thank you for your video. This worked and it was easy to follow your instructions. I appreciate you and your video!
Thank you.
damn you're slammin that enter key pretty hard man!
great tutorial...very easy to follow and got mine setup nicely!
thanks!
I know. Sorry… 😀
My thoughts exactly lmao but bro delivered! You rock Just got running on Ubu 24.
Thanks man. I am noob starting to slowly learn about linux. I use one drive and this is godsend.
Great. 👍
Incredibly helpful! Thanks a lot :)
Thank you.
Works like a treat, thanks so much :)
Great!
Thank you so much! I just started using Debian and this was so easy to follow!
Great.
Thank you very much, kind sir!! Worked fantastically for me.
That’s great.
Great video! Worked perfectly
Thank you. Great that everything worked.
Very informative and clear tutorial.
Thank you.
Thank you very much. It has been a great help to me.
👍
Thanks dude, it works well !
Perfect.
Awesome!!! Thank you soooo much
Thank you.
that's awesome thanks so much
Thanks.
This is a great tutorial 👍, thank you. I used Windows until the installation of Windows on the second disk damaged booting of Windows on first disk... I had some important data on OneDrive. Now I'm trying Arch Linux for web development. Hope it's a good choice...
Thanks for your feedback. Arch is my daily business driver incl. Teams and Outlook as Web Apps + Windows 11 in a VM to use PowerPoint. For me the perfect combination.
Gracias, si me funcionó
👍
You can find all commands to install rclone and to connect your Linux system with OneDrive in the video description.
If you like this video, please subscribe to my channel: 👉 www.youtube.com/@mylinuxforwork/?sub_confirmation=1
Hi, thanks for the video!
Before I do this, I want to know if there is an option to keep files locally and access them while offline, that would be perfect!
Thanks
Very good question. But this is not possible. rclone is like a network drive with background sync. When your're disconnected, you cannot access the files.
hi buddy! i was able to sync my folder Garbage to OneDrive. I just dont understand how to set it to be running always. Where do I apply this command on the right? please and thanks a lot. I tried onedriveR and it was awful, started downloading everything to my kubuntu
Hi. You can add a script like this to your Autostart of your desktop environment. gitlab.com/stephan-raabe/dotfiles/-/blob/main/scripts/onedrive.sh?ref_type=heads
hello sir, is this methode use Mirror? i mean, it wil store the file on my local drive? or directly 100% need internet connection, since the file will always NOT copied to local drive/folder?
Unfortunately you need an internet connection. It’s likeva network drive.
I'd be great if you could do a video on more advanced features like using crypt and chunker. Also how to encrypt the rclone.conf file and how to use it in scripts while encrypted. Thanks!
Thanks for your feedback.
My rclone does not have an option for business. The url open for the personal account. Did I miss something?
Thanks for your question. According to the rclone documentation, it‘s names OneDrive Personal and Business. rclone.org/onedrive/ Can you see this option during the configuration process?
Hello! thank for your explanatory video. I was wondering what about OneDrive Free Client that you can encounter for example in the Fedora repositorys? Rclone is better? Thanks.
Thanks for your comment. Never tested OneDrive free client. From the start i was super happy with rclone.
@@mylinuxforwork thanks for your super quick response. OK, I will give it a try. I was seeing a review of several clients and the first of the list was Rclone.
@@mylinuxforwork I just installed and my experience was incredibly SMOOTHLY. Rclone just works! Wow! Thank you for this guide through.
To clarify, if we were to make changes on OneDrive on another device, we have to use "rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &" to pull those changes every time. But if we make changes on our device (which has rclone installed), it will automatically sync those changes to OneDrive. Is that correct?
On second thought, I don't think this is correct. What does mounting do, and why do I have to do it every time I boot?
Thanks for testing. You can create a script for mounting the drives and add it to your autostart.
How would I go about syncing this onedrive? When I edit something on my linux machine and save it in that folder, how do I upload it to onedrive?
The upload happens in the background. You don’t need to trigger it. But it could take a while before it shows up on onedrive. Especially for large files.
@@mylinuxforwork Gotcha. I just tested it and everything works. Thanks a lot!
@@joshuaschmidt3261 Great!
Very good video! For my use case, I don't need (or want) access to my entire onedrive, I just want to have one specific folder on my raspberry pi that gets synced to a folder in my onedrive. Does rclone allow this or does it only take the onedrive as a whole?
As far as I know you can only connect to the whole OneDrive. But please check the rsync documentation.
@@mylinuxforwork thanks!
Great tutorial! But this mounting has to be done manually everytime I start up. Is there actually any way to make it mount on startup?
Yes. You can put the mount command into a script file and start it in your autostart of your window or desktop manager. gitlab.com/stephan-raabe/dotfiles/-/blob/main/scripts/onedrive.sh?ref_type=heads
@@mylinuxforwork Hi, how to let it do automatically at every start?
This is great..! Awesome in fact. One question - does it lazy load the files or download them all?
I only want a subset of files from OneDrvie in my linux machine.. and don't want all the other hundreds of GB filling up the drive.
Thank you and great work.
Thanks. Files will not be downloaded. It’s like a network drive.
Hey, I get an error that says: Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount3": executable file not found in $PATH
:(
Hi. When do you get the error? During the installation? Are you on Arch Linux? Please check the official rclone github. github.com/rclone/rclone/issues/6844
Please try the former versions.
It fixed.
Awesome vid! got me up and running in 5 minutes. Quick question though I can mount and unmount it safely right? also sometimes after say quite some time of lets say editing in obsidian my whole file directory lags have you experienced something similar?
Thank you. Should work without problems. It’s like a network drive.
Yeah finally got it to work, I don’t know what happened earlier but it doesn’t glitch anymore. Thank you man it’s cool you reply even though the video is old. Btw what would you recommend arch or Ubuntu? I’m currently running Ubuntu 24. But I see lots of folks on Arch can’t quite figure is it because of content creators or the system is that good
@@optalgin2371 I have started my Linux Journey on Ubuntu and moved several years ago to Arch. I love on Arch the possibility to create my own system configuration without having apps installed that I don’t need. It’s super flexible and with AUR easy to extend.
@@mylinuxforwork I downloaded it to my main PC, now I'm learning the hard way to install arch on my MacBook lol
Hi what a great video, one question what is it for sure?
Hi. Not sure how I can help you?
thanks for your video, very interesting. NICE WORK . for onedrive and googledrive , easy , but for google photos , i see the folder with files but files size 0, no possible to make a video on the method rclone with google photos, thanks
Thanks for testing. There is currently no video planned. Can you refer to the rclone website? Maybe there is a forum where you can ask your question.
I'm new to ubuntu and when I tried to mount my OneDrive to Ubuntu, I'm getting this error
Fatal error: failed to mount FUSE fs: cannot get mounts: open /proc/self/mountinfo: permission denied
I installed fuse and fuse3 using sudo apt install fuse3 but fuse3 --version doesn't work.
Can you please suggest a way to fix this?
Thanks!
Hi. Thanks for watching the video. But I’m not using Ubuntu and that’s why it’s difficult to help. Have you seen this page? snapshooter.com/learn/linux/install-and-use-rclone
Same here
Please try a previous version of reclone. It resolved the problem.
Hello! New with linux here, I'm having quite fun :)
This would be awesome if it could actually automatically mount on system startup. I've done my researches, tried many methods but no one seems to be working (plus, my inexperience doesn't help 😅). Do you have any clues/suggestion? Thanks!
Thanks for your very good question. Pretty sure that I can help you. What desktop environment are you using?
I think GNOME (Pop! OS)
@@mylinuxforwork
Is that possible to see the saved file using rclone in Android Onedrive app??
If the sync to Onedrive is complete you should see the updates on every connected client.
Hi ne kurze Frage, wie lass ich denn das Shell Skript permanent laufen. Ich bin noch nicht so lang auf Arch unterwegs, daher habe ich keine Ahnung und finde leider auch nichts im Internet. Danke dir schonmal im Vorraus!
Hi. Welchen Window Manager oder Desktop nutzt Du?
Du must das Shell Skript in den Autostart deines Window oder Desktop Mangager einbinden, damit es nach dem Login startet.
@@mylinuxforwork Ah super vielen Dank.
You really smash that enter key rather too hard
I know ;-)
Hello!! I'm a new user of Ubuntu (22.04.4 LTS). Would you be able to help on how to create this bash file and make it run at the startup of my machine??
The bash file should work also on Ubuntu. You can setup the start of the script in the Ubuntu Settings / Autostart section.
After two days of working it doesn't mount and appears an error that says at the end vfs invalid seek position and doesn't mount OneDrive
Have you seen this? forum.rclone.org/t/invalid-seek-position/26965/3
@@mylinuxforwork yes but I don't know how to delete the cache I can't find the directory (I'm new at Ubuntu)
Hello! Does it use space on you hdd/ssd?
No. It’s just a remote access like a network drive.
@@mylinuxforwork so it does work like Onedrive files On-Demand? I gave only 50GB to my Linux partition...if Rclone downloads my entire Onedrive it won't for sure. But if it works like files On-Demand all is good!
Hey there!
Your video still works perfectly after a year! But Idk how to set auto start so OneDrive can be mounted automatically upon startup. Hope you'll respond as soon as possible. Thanks for your video!
Thanks. You need to add the script to the autostart of your desktop environment.
@@mylinuxforwork Problem is where to find the script. I hope you'll send me a link cuz I'm completely dumb in coding. Also, even have the script I may not know how to set auto start. Plz help me.
@@imt39 You should find the command in the video and video description. Put it on a text file onedrive.sh and make it executable chmod +x ondedrive.sh Test the script by running ./onedrive.sh Please check the documentation of your desktop environment how to setup autostart of scripts. I hope I could help.
no code returned by remote server
how to solve it?
Not sure what you mean.
Hello! Hi, from Argentina, before anything, thanks so much, but ......How to make it mounted permanently ? I have Ubuntu 22.04.4 LTS. I am a noob
Please add the script to your autostart. In DE normally in the settings. In window managers normally in autostart files.
@@mylinuxforworkI do it in GNOME 42.9, in start app but it dosen´t work. I have to put this command? rclone --vfs-cache-mode writes mount OneDrive: ~/OneDrive &
@@sebastianivanbenitezMaybe this article helps: forum.manjaro.org/t/how-to-autostart-script-on-gnome-40-wayland-session-launch/81092/2
Great tutorial, but I must ask: Is your "enter" key still alive? I was worried for it 😂
Still alive 😅
@@mylinuxforwork 🤣
Work it in Fedora 40 (KDE)
Should work as well.
How to make it mounted permanently
You can create a script and add it to the autostart.
Thank you so much but how to do that@@mylinuxforwork
@@Jdrxxlordxx583 which desktop environment are you using?
Ubuntu os with Gnome desktop environment@@mylinuxforwork
This is a settled exposition. 📎 A predictable event
Never tried it before. Maybe this helps? rclone.org/commands/rclone_serve_webdav/#auth-proxy
Every boring return. An 📘 ordinary happening
@@-blackcat-4749 that is great.