Now, you can easily use OneDrive on Linux without any hiccups.Īs you can see, using OneDrive in Linux with rclone takes some effort. Now, in the command field, enter the following: sh -c "rclone -vfs-cache-mode writes mount \"one drive\": ~/OneDrive" Mounting OneDrive On Startup I am using Ubuntu’s Startup Application Preferences tool here. Step 6: Mount One Drive on startupĮvery Linux distribution gives some way to manage startup applications. To mount one drive on startup, follow the next step below. When you stop the process with, ctrl c the one drive will be unmounted. This command will mount one drive in the given location and will continue to run in the terminal. You can check the name of the “remote” in step 2 of this tutorial. In the above command, “one drive” is the name of the “remote”, so you should use the correct name there if yours is different. Now you have to use the following command: rclone -vfs-cache-mode writes mount "one drive": ~/OneDrive You can name it whatever you want, but please make sure you change the name to yours in the commands.Ĭreate a new folder with mkdir command in your home directory or wherever you want: mkdir ~/OneDrive Step 5: Mounting OneDrive in the file managerĬreate a folder in your home directory where you will mount OneDrive. Hit ‘Y’ if it is.Īnd then enter ‘q’ to exit the Rclone configuration menu. It will ask one last time if this configuration is okay. So, for the most part, you need to select ‘0’ to select your drive and enter ‘ Y‘ for yes in next step. I believe it is personal, so go with 1.Īfter that, you will get a list of ‘Drives’ associated with your account. For most of the users, it will be the first one, ‘One drive Personal or business’. One Drive Logging In Step 5: Enter account type And if it asks for permission click on ‘yes’. When you enter ‘y’ and hit enter, your default browser will open and here you have to log into your Microsoft account. When you’re asked for ‘Use auto config’, press Y. Of course, if you want to configure something very specific, you can go ahead with Y. Next enter ‘N’ for selecting no for advanced configuration. Selecting Cloud ServiceĪs you don’t need to enter client ID or secret ID hit Enter twice. You have to enter the number of the service you want to use. Configuring Rclone Step 3: Select the cloud service you want to sync with rcloneĪfter entering the name and hitting enter, you will see a list of cloud services like Google cloud storage, Box, One Drive and others. You can enter any name here that matches the cloud service so that it is easy to identify. Now you have to enter the name of the remote. If it’s your first time using rclone, you must add a new remote to rclone. Enter the following command in the terminal: rclone config Once you have installed rclone successfully, you need to configure rclone. In Debian/Ubuntu-based distributions use: sudo apt install rcloneįor Arch-based distributions, use: sudo pacman -S rcloneįor other distributions, please use your distribution’s package manager. Just the rclone installation instruction could be different but the rest of steps remains the same. I am using Ubuntu 20.04 in this tutorial but you should be able to follow this tutorial in pretty much any Linux distribution. You need to tweak the configuration a little to make it work. Using Rclone in Linux is not that complicated but requires some patience and familiarity with the Linux terminal. Sync Microsoft OneDrive in Linux with rclone This is why I wrote this tutorial to show you how to use rclone with Microsoft OneDrive. Rclone is an extensive command line tool and using it could be confusing with so many options. You can use it with Google Drive, OneDrive, Nextcloud, Amazon S3 and over 40 such cloud services. With rclone, you can backup files to cloud storage, restore files from cloud storage, mirror cloud data, migrate data between cloud services, use multiple cloud storage as disk. Rclone is an open source command line tool that enables you to synchronize a local Linux directory with various cloud storage services. If you are not afraid of the Linux terminal, let me show you a command line tool rclone that you can use for synchronizing Microsoft OneDrive in Linux. It’s premium software and not everyone wants to use it. There is a hassle-free, GUI application that lets you use OneDrive on Linux easily. This means that you’ll have to resort to using web browser for accessing your files in OneDrive, which is not very convenient. The one major problem is that Microsoft does not provide a desktop client for Linux, unlike Dropbox and Mega. Microsoft’s own Cloud storage service, OneDrive, gives any Microsoft account holder 5 GB of free storage. You can also use where you can get 15 GB of free storage. There is Dropbox that gives 2 GB of free space. There are several cloud storage services available for Linux.
0 Comments
Leave a Reply. |