• *Wellcome Guest This Forum is created to help each other. Join us in our journey.

    * Guest Earn Piont Every Post, like, comment,and etc.

How to Use OneDrive on Linux?

S

Simran Kaur

Guest
Microsoft OneDrive offers synchronization and file hosting services similar to MEGA, Dropbox, Google Drive, and many more. It is an online storage platform with appropriate space provided by Microsoft, so users can sign in with their Microsoft account to use it for free. Microsoft doesn’t offer any official version of OneDrive for Linux users to keep their files safe on the online platform.

However, there are a few ways to use OneDrive on Linux, we have covered complete information on using OneDrive on Linux in this writeup. Before explaining the procedures, let’s discuss some of the key features of Microsoft OneDrive:

  • It offers free storage to users.
  • Users can easily organize their files.
  • It has a close collaboration with the Office.
  • It has social networks.
How to Use OneDrive on Linux?


First, install all of the required Microsoft OneDrive dependencies using the following commands in the Linux terminal:

(You can use these commands for Linux Ubuntu/Mint)

sudo apt install libcurl4-openssl-dev git
sudo
apt install libsqlite3-dev
sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list
-O /etc/apt/sources.list.d/d-apt.list

This command will add a repository. Execute the following commands for further operations:

sudo nano /etc/apt/sources.list.d/d-apt.list

Next, insert this command:

sudo nano /etc/apt/sources.list.d/d-apt.list

Now, press “CTRL” and “X” to save it and type “Y”, then press the “Enter” button.

Execute the following command:

sudo apt-get update && sudo apt-get -y install d-apt-keyring
sudo apt-get update && sudo apt-get install dmd-compiler dub

You can execute the following command for Arch Linux and derivatives:

sudo pacman -S curl sqlite dlang git

You execute the following command for Fodera:

sudo yum install libcurl-devel git
sudo
yum install sqlite-devel
curl -fsS https://dlang.org/install.sh | bash -s dmd

After that, install the program in your system, but first, download the files using the commands below:

git clone https://github.com/skilion/onedrive.git

Now, compile and install OneDrive using the commands below:

cd oneDrive
make
sudo
make install

Once you execute the command successfully, the system will download all of the required files for OneDrive and create a directory in the home directory. In case you want to change the OneDrive directory destination, or add any extra exceptions to the file, execute the commands below to create a configuration file for Microsoft OneDrive.

mkdir -p ~/.config/onedrive
cp ~/onedrive/config ~/.config/onedrive/config

Now execute the following command:

nano .config/onedrive/config

At last, run the program by executing the following command in the Linux terminal.

onedrive

You will see a link on your screen, copy this link, and open it in the browser. It will open the Microsoft account login screen. Sign in and click on the “Yes” icon when the system requests permission to let the application access the data.

It will open a blank screen, copy the link, paste it into the Linux terminal, and then press “Enter” to download the required files.

That’s it! Your Microsoft OneDrive files are synced with the Linux system.

In case you want to uninstall OneDrive Free Client from the system, execute the following commands:

sudo make uninstall
rm -rf .config/onedrive

In this procedure, we are using OneDrive Free Client, which is an open-sourced tool. It offers impressive features like resumable uploads, state caching, OneDrive supports, folder sharing, real-time file monitoring with Notification, etc.

Use OneDrive on Linux Using Insync


Insync is an excellent third-party tool for syncing the system so that you can use it for Microsoft OneDrive as well. The latest version of Insync offers OneDrive support, but there is a specific procedure to do it. It is a premium tool, but you can use it for syncing your system on Microsoft OneDrive.

  • First, download the appropriate package for your Linux system on the official download page of Insync.
  • After installing Insync in the system, open and select the OneDrive option.
  • Now, log in to the Microsoft OneDrive account and select the folder you want to sync the data (it is a new feature of Insync 3 that you can choose any folder for syncing).
  • You can also customize your syncing preference by adding your rules for the sync folder that you want because it is entirely optional.
  • Start to sync your files by OneDrive on multiple platforms that include Linux desktop syncing with Insync.
  • You can also sync the files faster and smoother by using the new features of Insync and see the syncing process.
Conclusion


This article guides you step-by-step to use OneDrive on Linux easily. Microsoft OneDrive is an excellent online platform to sync data, but unfortunately, Microsoft OneDrive doesn’t have any official version for Linux. The article gives you the entire information to use OneDrive, and we have covered multiple procedures to be used according to the user requirements.

Credit to linux
 

Latest threads

Top