Wiki > onedrive-d
A Microsoft OneDrive desktop client / daemon for Linux, written in Python 3.
Installation
To execute the following commands you need to connect to your server via SSH
Create a virtualenv
-
Download virtualenv
wget -O virtualenv-15.0.3.tar.gz https://github.com/pypa/virtualenv/archive/15.0.3.tar.gz
-
Extract virtualenv
tar xvf virtualenv-15.0.3.tar.gz
-
Create the environment
python3 virtualenv-15.0.3/virtualenv.py --system-site-packages ~/onedrive/
-
Activate virtualenv
source ~/onedrive/bin/activate
Configure and run onedrive-d
-
Change to the virtualenv directory above
cd onedrive
-
Download onedrive-d from github and enter its directory
git clone https://github.com/xybu/onedrive-d-old.git cd onedrive-d-old
-
Add onedrive-d (virtualenv) directory to the PYTHONPATH
export PYTHONPATH=/home/user/onedrive/lib/python3.4/site-packages
-
Install onedrive-d
python3 setup.py install --prefix "/home/user/onedrive" python3 setup.py clean
-
Complete installation
mkdir -p ~/.onedrive cp ~/onedrive/onedrive-d-old/onedrive_d/res/default_ignore.ini ~/.onedrive/ignore_v2.ini
-
Configure onedrive-d
onedrive-pref --help onedrive-pref onedrive-d --help onedrive-d start
The onedrive-pref command will initiate a configuration wizard in which you will connect your OneDrive account (via visiting the provided link, logging in and copying the resulting URL into the SSH client). onedrive-d allows you to 'stop', 'start', 'restart' and check the 'status' of the program. To run these commands in the future, activate the virtualenv first.
source ~/onedrive/bin/activate
onedrive-d
Note: This software isn't an official release nor is it bug-free. You may find it necessary to restart the service on occasion, if it isn't syncing.