Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > onedrive-d

A Microsoft OneDrive desktop client / daemon for Linux, written in Python 3.

Github page

Installation

To execute the following commands you need to connect to your server via SSH

Create a virtualenv

  1. Download virtualenv

     wget -O virtualenv-15.0.3.tar.gz https://github.com/pypa/virtualenv/archive/15.0.3.tar.gz
    
  2. Extract virtualenv

     tar xvf virtualenv-15.0.3.tar.gz
    
  3. Create the environment

     python3 virtualenv-15.0.3/virtualenv.py --system-site-packages ~/onedrive/
    
  4. Activate virtualenv

     source ~/onedrive/bin/activate
    

Configure and run onedrive-d

  1. Change to the virtualenv directory above

     cd onedrive
    
  2. Download onedrive-d from github and enter its directory

     git clone https://github.com/xybu/onedrive-d-old.git
     cd onedrive-d-old
    
  3. Add onedrive-d (virtualenv) directory to the PYTHONPATH

     export PYTHONPATH=/home/user/onedrive/lib/python3.4/site-packages
    
  4. Install onedrive-d

     python3 setup.py install --prefix "/home/user/onedrive"
     python3 setup.py clean
    
  5. Complete installation

     mkdir -p ~/.onedrive
     cp ~/onedrive/onedrive-d-old/onedrive_d/res/default_ignore.ini ~/.onedrive/ignore_v2.ini
    
  6. 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.