How to install Onedrive on Ubuntu
Use Ubuntu 16.04 LTS
Install from source with pip
(recommended)
To install latest
onedrived
from source with pip3
, run the command below.
Notes:
git
must be installed on the system.- To install onedrived system-wide (that is, make onedrived program available to all users in the OS), remove argument
--user
from the command).
$ pip3 install --user git+https://github.com/xybu/onedrived-dev.git
Usage
onedrived
exposes two commands -- onedrived
and onedrived-pref
. The former is the "synchronizer" and the latter is the "configurator". If you want to run it directly in code repository without installing the package, in the following example commands replace onedrived
with python3 -m onedrived.od_main
and replace onedrived-pref
with python3 -m onedrived.od_pref
.onedrived-pref drive set
Reading drives information from OneDrive server...
onedrived start --debug
We can set the ignore path as in this file:
Successfully configured Drive 32bff1c143a98ca2 of account abc@outlook.com (32bff1):
Local directory: /home/albert/OneDrive
Ignore file path: /home/albert/.config/onedrived/ignore_v2.txt
onedrived-pref config set logfile_path
PATH_TO_SOME_WRITABLE_FILE
albert@AlbertPC:~$ onedrived-pref config set logfile_path ~/onedrive.log
config.logfile_path = /home/albert/onedrive.log
Then you need to download the ngrok & copy to this path:
https://ngrok.com/download
/usr/local/bin/
https://github.com/xybu/onedrived-dev
Comments
Post a Comment