From Applied Optics Wiki
Revision as of 15:26, 20 June 2018 by Rikesh Patel (talk | contribs)

Jump to: navigation, search

We need to start saving data on Onedrive (or at least use as a backup) as the university moves towards cloud saving. I've tried a few Linux solutions, the best I found is a fork of Onedrive Free Client (original -, working fork - Here are a set of instructions I used to get it working;

  • sudo apt-get install libcurl4-openssl-dev
  • sudo apt-get install libsqlite3-dev
  • sudo apt-get install curl
  • curl -fsS | bash -s dmd
  • ~/dlang/
  • source ~/dlang/dmd-2.080.1/activate
  • mkdir ~/tmp (if a tmp folder doesn't exist)
  • cd ~/tmp
  • git clone
  • cd onedrive
  • make
  • sudo make install (you can remove dlang at this point if you want)
  • onedrive --synchronize
  • Copy the web address it gives you to a web browser, login to your account and copy the web link when a blank page pops up.
  • Enter the copied url into the terminal - it will start syncing your files into ~/Onedrive
  • Once that's done, run onedrive -m and leave it running

There is a way of running a onedrive service using systemctl, but I haven't been able to get that working (see forked github). I prefer having it open in a terminal though, you can keep an eye on what's being transferred.