Difference between revisions of "Onedrive"

From Applied Optics Wiki
Jump to: navigation, search
(Created page with "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 is a fork of On...")
 
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
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 is a fork of Onedrive Free Client (original - https://github.com/skilion/onedrive/, working fork - https://github.com/abraunegg/onedrive). Here are a set of instructions I used to get it working;
+
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 - https://github.com/skilion/onedrive/, working fork - https://github.com/abraunegg/onedrive). The software crashes every now and then, so you'll need to keep an eye on it. I use OneDrive strictly for archiving, and Dropbox for day-to-day. '''Be careful of Windows naming conventions!''' - I've had the program crash numerous times due to this, particularly with capitals (Windows/Linux is case insensitive/sensitive respectively).
  
* <code> sudo apt install libcurl4-openssl-dev </code>
+
Here are a set of instructions I used to get it working;
* <code> sudo apt install libsqlite3-dev </code>
+
 
* Find and install curl if not installed
+
* <code>sudo apt-get install libcurl4-openssl-dev</code>
* <code> curl -fsS https://dlang.org/install.sh | bash -s dmd </code>
+
* <code>sudo apt-get install libsqlite3-dev</code>
* <code> ~/dlang/install.sh </code>
+
* <code>sudo apt-get install curl</code>
* <code> source ~/dlang/dmd-2.080.1/activate </code>
+
* <code>curl -fsS https://dlang.org/install.sh | bash -s dmd</code>
* <code> mkdir ~/tmp </code> (if a ~/tmp folder doesn't exist)  
+
* <code>~/dlang/install.sh</code>
* <code> cd ~/tmp </code>
+
* <code>source ~/dlang/dmd-[version]/activate</code> look for the version in the terminal (2.083.0 on Dec 2018)
* <code> git clone https://github.com/abraunegg/onedrive.git </code>
+
* <code>mkdir ~/tmp</code> (if a ''tmp'' folder doesn't exist)  
* <code> cd onedrive </code>
+
* <code>cd ~/tmp</code>
* <code> make </code>
+
* <code>git clone https://github.com/abraunegg/onedrive.git</code>
* <code> sudo make install </code>
+
* <code>cd onedrive</code>
* <code> onedrive --synchronize </code>
+
* <code>./configure</code>
 +
* <code>make</code>
 +
* <code>sudo make install</code> (you can remove dlang at this point if you want)
 +
* <code>onedrive --synchronize</code>
 
* 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.
 
* 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
+
* Enter the copied url into the terminal - it will start syncing your files into <code> ~/Onedrive</code>
* Once that's done, run <code> onedrive -m </code> and leave it running
+
* Once that's done, run <code>onedrive -m</code> 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.
  
There is a way of running a onedrive service using systemctl
+
* I've found the program detox valuable here (<code>sudo apt-get install detox</code>). It changes 'non-standard' lettering to underscores (<code>detox -r -v ~/Onedrive/</code>).

Latest revision as of 13:57, 15 October 2020

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 - https://github.com/skilion/onedrive/, working fork - https://github.com/abraunegg/onedrive). The software crashes every now and then, so you'll need to keep an eye on it. I use OneDrive strictly for archiving, and Dropbox for day-to-day. Be careful of Windows naming conventions! - I've had the program crash numerous times due to this, particularly with capitals (Windows/Linux is case insensitive/sensitive respectively).

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 https://dlang.org/install.sh | bash -s dmd
  • ~/dlang/install.sh
  • source ~/dlang/dmd-[version]/activate look for the version in the terminal (2.083.0 on Dec 2018)
  • mkdir ~/tmp (if a tmp folder doesn't exist)
  • cd ~/tmp
  • git clone https://github.com/abraunegg/onedrive.git
  • cd onedrive
  • ./configure
  • 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.

  • I've found the program detox valuable here (sudo apt-get install detox). It changes 'non-standard' lettering to underscores (detox -r -v ~/Onedrive/).