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

Комментарии • 126

  • @TheSorrowOfTheReaper
    @TheSorrowOfTheReaper 4 месяца назад +3

    It finally worked! I have been trying forever to get OneDrive to sync with Ubuntu, and thanks to your video I made it! Thanks!

  • @Beny10
    @Beny10 10 месяцев назад +4

    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.

    • @mylinuxforwork
      @mylinuxforwork  10 месяцев назад +2

      Thank you so much for your feedback. Have fun with rclone.

  • @joebenni2
    @joebenni2 5 месяцев назад +1

    Thank you for your video. This worked and it was easy to follow your instructions. I appreciate you and your video!

  • @steeltormentors
    @steeltormentors 2 месяца назад +2

    damn you're slammin that enter key pretty hard man!
    great tutorial...very easy to follow and got mine setup nicely!
    thanks!

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      I know. Sorry… 😀

    • @optalgin2371
      @optalgin2371 2 месяца назад

      My thoughts exactly lmao but bro delivered! You rock Just got running on Ubu 24.

  • @lucianoramirez6111
    @lucianoramirez6111 7 месяцев назад +3

    Thanks man. I am noob starting to slowly learn about linux. I use one drive and this is godsend.

  • @ansanabria_
    @ansanabria_ 9 месяцев назад

    Incredibly helpful! Thanks a lot :)

  • @tfk5853
    @tfk5853 9 месяцев назад

    Works like a treat, thanks so much :)

  • @herkatron
    @herkatron 5 месяцев назад

    Thank you so much! I just started using Debian and this was so easy to follow!

  • @rodneywk1
    @rodneywk1 11 месяцев назад +1

    Thank you very much, kind sir!! Worked fantastically for me.

  • @Mikenight120
    @Mikenight120 Год назад

    Great video! Worked perfectly

  • @streetpigeongames3596
    @streetpigeongames3596 8 месяцев назад

    Very informative and clear tutorial.

  • @sb8fabian
    @sb8fabian 9 месяцев назад

    Thank you very much. It has been a great help to me.

  • @louis6189
    @louis6189 10 месяцев назад

    Thanks dude, it works well !

  • @TheGaenda
    @TheGaenda 5 месяцев назад

    Awesome!!! Thank you soooo much

  • @MohsenTheKnight21
    @MohsenTheKnight21 Месяц назад

    that's awesome thanks so much

  • @ivanbarta2821
    @ivanbarta2821 7 месяцев назад

    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...

    • @mylinuxforwork
      @mylinuxforwork  7 месяцев назад +1

      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.

  • @dromdev
    @dromdev 5 месяцев назад

    Gracias, si me funcionó

  • @mylinuxforwork
    @mylinuxforwork  Год назад +2

    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

  • @iliakos1182
    @iliakos1182 9 месяцев назад

    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

    • @mylinuxforwork
      @mylinuxforwork  9 месяцев назад +1

      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.

  • @cinetici
    @cinetici 10 месяцев назад

    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

    • @mylinuxforwork
      @mylinuxforwork  10 месяцев назад

      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

  • @cumaMyID
    @cumaMyID 7 месяцев назад

    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?

    • @mylinuxforwork
      @mylinuxforwork  7 месяцев назад

      Unfortunately you need an internet connection. It’s likeva network drive.

  • @dav1dw
    @dav1dw 3 месяца назад

    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!

  • @jhencluff
    @jhencluff Год назад

    My rclone does not have an option for business. The url open for the personal account. Did I miss something?

    • @mylinuxforwork
      @mylinuxforwork  Год назад

      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?

  • @ajlozadaro
    @ajlozadaro 11 месяцев назад

    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.

    • @mylinuxforwork
      @mylinuxforwork  11 месяцев назад

      Thanks for your comment. Never tested OneDrive free client. From the start i was super happy with rclone.

    • @ajlozadaro
      @ajlozadaro 11 месяцев назад

      @@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.

    • @ajlozadaro
      @ajlozadaro 11 месяцев назад

      ​@@mylinuxforwork I just installed and my experience was incredibly SMOOTHLY. Rclone just works! Wow! Thank you for this guide through.

  • @ccccalvin
    @ccccalvin 2 месяца назад

    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?

    • @ccccalvin
      @ccccalvin 2 месяца назад

      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?

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      Thanks for testing. You can create a script for mounting the drives and add it to your autostart.

  • @joshuaschmidt3261
    @joshuaschmidt3261 10 месяцев назад

    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?

    • @mylinuxforwork
      @mylinuxforwork  10 месяцев назад +1

      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.

    • @joshuaschmidt3261
      @joshuaschmidt3261 10 месяцев назад

      @@mylinuxforwork Gotcha. I just tested it and everything works. Thanks a lot!

    • @mylinuxforwork
      @mylinuxforwork  10 месяцев назад

      @@joshuaschmidt3261 Great!

  • @rbjohnson
    @rbjohnson 8 месяцев назад

    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?

    • @mylinuxforwork
      @mylinuxforwork  8 месяцев назад

      As far as I know you can only connect to the whole OneDrive. But please check the rsync documentation.

    • @rbjohnson
      @rbjohnson 8 месяцев назад

      @@mylinuxforwork thanks!

  • @liamkhoi
    @liamkhoi 10 месяцев назад

    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?

    • @mylinuxforwork
      @mylinuxforwork  10 месяцев назад +1

      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

    • @vincenzoserlenga1826
      @vincenzoserlenga1826 4 месяца назад

      @@mylinuxforwork Hi, how to let it do automatically at every start?

  • @conorhackett5698
    @conorhackett5698 Месяц назад

    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.

    • @mylinuxforwork
      @mylinuxforwork  Месяц назад +1

      Thanks. Files will not be downloaded. It’s like a network drive.

  • @sirdomasu8226
    @sirdomasu8226 Год назад

    Hey, I get an error that says: Fatal error: failed to mount FUSE fs: fusermount: exec: "fusermount3": executable file not found in $PATH
    :(

    • @mylinuxforwork
      @mylinuxforwork  Год назад

      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

    • @siddharthg8798
      @siddharthg8798 7 месяцев назад

      Please try the former versions.
      It fixed.

  • @optalgin2371
    @optalgin2371 2 месяца назад

    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?

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад +1

      Thank you. Should work without problems. It’s like a network drive.

    • @optalgin2371
      @optalgin2371 2 месяца назад

      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

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      @@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.

    • @optalgin2371
      @optalgin2371 2 месяца назад

      @@mylinuxforwork I downloaded it to my main PC, now I'm learning the hard way to install arch on my MacBook lol

  • @pa3546
    @pa3546 7 месяцев назад

    Hi what a great video, one question what is it for sure?

  • @jola6940
    @jola6940 4 месяца назад

    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

    • @mylinuxforwork
      @mylinuxforwork  4 месяца назад

      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.

  • @user-cu4bk6xr1d
    @user-cu4bk6xr1d 9 месяцев назад

    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!

    • @mylinuxforwork
      @mylinuxforwork  9 месяцев назад

      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

    • @hungowapower
      @hungowapower 7 месяцев назад

      Same here

    • @siddharthg8798
      @siddharthg8798 7 месяцев назад

      Please try a previous version of reclone. It resolved the problem.

  • @andreabaraldi6020
    @andreabaraldi6020 11 месяцев назад

    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!

    • @mylinuxforwork
      @mylinuxforwork  11 месяцев назад

      Thanks for your very good question. Pretty sure that I can help you. What desktop environment are you using?

    • @andreabaraldi6020
      @andreabaraldi6020 11 месяцев назад

      I think GNOME (Pop! OS)
      @@mylinuxforwork

  • @user-ui2du6sl8p
    @user-ui2du6sl8p 2 месяца назад

    Is that possible to see the saved file using rclone in Android Onedrive app??

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      If the sync to Onedrive is complete you should see the updates on every connected client.

  • @RBN-dev
    @RBN-dev Год назад

    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!

    • @mylinuxforwork
      @mylinuxforwork  Год назад

      Hi. Welchen Window Manager oder Desktop nutzt Du?

    • @mylinuxforwork
      @mylinuxforwork  Год назад

      Du must das Shell Skript in den Autostart deines Window oder Desktop Mangager einbinden, damit es nach dem Login startet.

    • @RBN-dev
      @RBN-dev Год назад

      @@mylinuxforwork Ah super vielen Dank.

  • @xavierayayaell546
    @xavierayayaell546 5 месяцев назад +3

    You really smash that enter key rather too hard

  • @gabrielstringueta3414
    @gabrielstringueta3414 3 месяца назад

    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??

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      The bash file should work also on Ubuntu. You can setup the start of the script in the Ubuntu Settings / Autostart section.

  • @user-et4qu6yq8h
    @user-et4qu6yq8h 4 месяца назад

    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

    • @mylinuxforwork
      @mylinuxforwork  4 месяца назад

      Have you seen this? forum.rclone.org/t/invalid-seek-position/26965/3

    • @user-et4qu6yq8h
      @user-et4qu6yq8h 4 месяца назад

      @@mylinuxforwork yes but I don't know how to delete the cache I can't find the directory (I'm new at Ubuntu)

  • @josueblascovernedas5844
    @josueblascovernedas5844 3 месяца назад +2

    Hello! Does it use space on you hdd/ssd?

    • @mylinuxforwork
      @mylinuxforwork  3 месяца назад +1

      No. It’s just a remote access like a network drive.

    • @steeltormentors
      @steeltormentors 2 месяца назад

      @@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!

  • @imt39
    @imt39 2 месяца назад

    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!

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      Thanks. You need to add the script to the autostart of your desktop environment.

    • @imt39
      @imt39 2 месяца назад

      @@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.

    • @mylinuxforwork
      @mylinuxforwork  2 месяца назад

      @@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.

  • @user-zm1gu6bj4k
    @user-zm1gu6bj4k 4 месяца назад

    no code returned by remote server
    how to solve it?

  • @sebastianivanbenitez
    @sebastianivanbenitez 4 месяца назад

    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

    • @mylinuxforwork
      @mylinuxforwork  4 месяца назад

      Please add the script to your autostart. In DE normally in the settings. In window managers normally in autostart files.

    • @sebastianivanbenitez
      @sebastianivanbenitez 4 месяца назад

      @@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 &

    • @mylinuxforwork
      @mylinuxforwork  4 месяца назад

      @@sebastianivanbenitezMaybe this article helps: forum.manjaro.org/t/how-to-autostart-script-on-gnome-40-wayland-session-launch/81092/2

  • @pietrolopesdev4366
    @pietrolopesdev4366 26 дней назад

    Great tutorial, but I must ask: Is your "enter" key still alive? I was worried for it 😂

  • @javip8731
    @javip8731 Месяц назад

    Work it in Fedora 40 (KDE)

  • @Jdrxxlordxx583
    @Jdrxxlordxx583 6 месяцев назад

    How to make it mounted permanently

    • @mylinuxforwork
      @mylinuxforwork  6 месяцев назад

      You can create a script and add it to the autostart.

    • @Jdrxxlordxx583
      @Jdrxxlordxx583 6 месяцев назад

      Thank you so much but how to do that@@mylinuxforwork

    • @mylinuxforwork
      @mylinuxforwork  6 месяцев назад

      @@Jdrxxlordxx583 which desktop environment are you using?

    • @Jdrxxlordxx583
      @Jdrxxlordxx583 6 месяцев назад

      Ubuntu os with Gnome desktop environment@@mylinuxforwork

  • @-blackcat-4749
    @-blackcat-4749 6 месяцев назад

    This is a settled exposition. 📎 A predictable event

    • @mylinuxforwork
      @mylinuxforwork  6 месяцев назад

      Never tried it before. Maybe this helps? rclone.org/commands/rclone_serve_webdav/#auth-proxy

    • @-blackcat-4749
      @-blackcat-4749 6 месяцев назад

      Every boring return. An 📘 ordinary happening

    • @mylinuxforwork
      @mylinuxforwork  6 месяцев назад

      @@-blackcat-4749 that is great.