How to Sync Your OneDrive Account in Linux
OneDrive, Microsoft's deject storage service is a pretty popular offer when information technology comes to cloud storage services. OneDrive enables us to access our files anytime, anywhere, on all our devices. Still, there is one big caveat – no official Linux customer is bachelor. Therefore, Linux users have to rely on the web version (which does non provide syncing), or on unofficial clients. At that place used to be a working unofficial customer named onedrive-d, however, information technology is no longer maintained. Having said that, there is another unofficial OneDrive client appropriately named onedrive by GitHub user skilion. It has support for manual and automatic sync, real-time file monitoring and resumable uploads. Although the set up involves some tinkering and using the command line, it works well plenty for daily usage and does not pose problems. So, if you are looking to sync your OneDrive information with your Linux computer, here's how to do information technology:
Annotation : This program has been tested under Linux Mint 18. These instructions volition work unmodified with Ubuntu 16.04. While getting information technology to work with other distributions is possible, we haven't covered information technology in this article.
Installing OneDrive on Linux
Open the Concluding, and run the following commands to install the prerequisite software libcurl
, libsqlite
, build-essential
, and git
:
[sourcecode]
sudo apt-get install libcurl4-openssl-dev libsqlite3-dev build-essential git
[/sourcecode]
Later the installation is consummate, run the post-obit commands to install the compiler for the D programming language:
[sourcecode]
sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
wget -qO – http://dlang.org/d-keyring.gpg | sudo apt-central add –
sudo apt-get update && sudo apt-go install dmd-bin
[/sourcecode]
We will now download and install the onedrive software. In your Home directory, download the source code using the following command:
[sourcecode]git clone https://github.com/skilion/onedrive.git onedrive_code[/sourcecode]
Now, compile and install the software:
[sourcecode]cd onedrive_code
make
sudo make install
[/sourcecode]
And you are done.
Configuring Your OneDrive Account
To configure your OneDrive business relationship for the first time, open theFinal, and run onedrive
. You will see a prompt with a URL like this:
Only copy this URL, and enter it in your web browser of choice. You volition be asked for your Microsoft account and password. Once entered, you lot will go the following screen:
Select Yes hither, and copy the URL that appears on the following screen:
Now paste this URL in your Terminal window, and press Enter. You will notice that it automatically starts syncing your OneDrive business relationship with the Onedrive
folder in your home directory. If y'all have several gigabytes of information stored in your OneDrive business relationship, be patient because this is going to accept a while.
Basic Usage
Whenever you lot want to sync your local storage with your OneDrive account on Linux, simply run the command onedrive
from your terminal. Every bit a demonstration, I deleted some images from my OneDrive storage using the spider web app. On my Linux system, I created a text file in the Onedrive
folder. Running the command onedrive
gives me the following outcome:
Setting Up Automatic Sync
If you wish to automatically go on your OneDrive business relationship in sync, instead of running the control manually every fourth dimension, you can enable the systemd service. In a terminal, run:
[sourcecode]systemctl –user enable onedrive
systemctl –user start onedrive[/sourcecode]
There is a caveat hither. Adding or removing files from your local filesystem reflects the changes in your OneDrive account almost instantly. Yet, the other way round is slightly delayed. This is non a large deal for most people, but can be a trouble if you lot transfer a lot of files regularly.
If you are not sure whether or not a certain file synced or not, you can bank check the logs. To practice that, run:
[sourcecode]journalctl –user-unit onedrive -f[/sourcecode]
Excluding Files And Folders From Syncing
Permit'due south say you accept a folder filled to the brim with HD videos in your OneDrive account, and yous desire to avert syncing that, as it will take up significant bandwidth and space. Mayhap you also desire to avoid syncing disc images (.iso files). To do this, open the file ~/.config/onedrive/config
using your favorite text editor, and modify the skip_file
and skip_dir
sections accordingly:
[sourcecode]skip_file = ".*|~*|*.iso"
skip_dir = ".*|Videos"[/sourcecode]
If yous are running the sync service, and then you lot need to turn information technology off beginning:
[sourcecode]systemctl –user stop onedrive[/sourcecode]
Later that, run onedrive with the resync option:
[sourcecode]onedrive –resync[/sourcecode]
Afterwards this, you lot tin re-enable the sync service:
[sourcecode]systemctl –user starting time onedrive[/sourcecode]
Encounter Besides: 4 Popular (Unofficial) Google Bulldoze Linux Clients
Utilise OneDrive Seamlessly With Linux
Some other good Linux OneDrive client to consider is rclone. While it just offers manual sync, it has sure additional features non present in onedrive, such as support for simultaneous, multiple deject accounts, including, just not limited to OneDrive, Google Drive, Dropbox, Amazon S3 and Yandex. You can become rclone hither.
Well, that'due south how you lot can sync a Microsoft OneDrive account with Linux. Do let us know how it works for you. If you are having problems setting it up, feel costless to ask the states a question in the comments section below.
Source: https://beebom.com/how-sync-onedrive-account-linux/
Posted by: rowlandimation.blogspot.com
0 Response to "How to Sync Your OneDrive Account in Linux"
Post a Comment