Multiple Microsoft Onedrive install methods - which do you prefer?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
Eclipsenow+
Level 2
Level 2
Posts: 81
Joined: Mon Oct 07, 2019 3:26 am

Multiple Microsoft Onedrive install methods - which do you prefer?

Post by Eclipsenow+ »

Hi all,
I found this video interesting but a little beyond me.
Maybe it's quarantine-brain.
Uses tool Rclone
(It's terminal but he's running Arch / Manjaro terminal so we'd use "sudo apt install rclone" instead - any other terminal changes to what he does because I'm a total newb.)
https://www.youtube.com/watch?v=9u0LibdiF88

This one was more specifically Linux Mint and seemed a little easier to understand.
(Covers Drop Box and Google first so I timed it at Microsoft.)
https://youtu.be/rnSzNH5tkpQ?t=470

Which do you prefer? Any other guides on this?
Last edited by Eclipsenow+ on Wed May 13, 2020 11:20 pm, edited 1 time in total.
Cinnamon 20 on (2011?) ASUS i7-2670QM CPU @ 2.2GHz 4 Cores; 8 threads, 32G RAM, GeForce GT 540M
User avatar
MartyMint
Level 6
Level 6
Posts: 1053
Joined: Thu Dec 27, 2012 10:50 pm

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by MartyMint »

Eclipsenow+ wrote:
Wed May 13, 2020 10:50 pm
Which do you prefer?
I prefer not using Microsoft products if I can help it.
User avatar
Eclipsenow+
Level 2
Level 2
Posts: 81
Joined: Mon Oct 07, 2019 3:26 am

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by Eclipsenow+ »

Sure but:
  • my home business has this anyway
  • It will reduce my psychological dependence on Apple's Time Machine backup
  • 1 terabit storage for free!
Cinnamon 20 on (2011?) ASUS i7-2670QM CPU @ 2.2GHz 4 Cores; 8 threads, 32G RAM, GeForce GT 540M
JohnDoeDK
Level 1
Level 1
Posts: 7
Joined: Tue May 05, 2020 5:04 pm
Location: Denmark

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by JohnDoeDK »

I use the app "Onedrive" from the software repository. It installs like any app, but need setting up in the terminal.
- Go watch the hompage linked to it.

http://skilion.github.io/onedrive/
abraunegg
Level 1
Level 1
Posts: 7
Joined: Thu Oct 03, 2019 10:18 pm

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by abraunegg »

JohnDoeDK wrote:
Wed May 13, 2020 11:52 pm
I use the app "Onedrive" from the software repository. It installs like any app, but need setting up in the terminal.
- Go watch the hompage linked to it.

http://skilion.github.io/onedrive/
The 'skilion' repo appears to have been abandoned in 2018 and contains many defects that put you at risk of data loss and corruption if you use it. The original author is totally uncontactable despite numerous efforts by myself and others.

If you wish to use the latest code which contains numerous fixes and enhancements you need to clone & build from this repo: https://github.com/abraunegg/onedrive

To be notified of new releases / bug fixes please also watch the new repo.

Major differences / Enhancements:
- Existing bugs with 'skilion' client fixed
- File upload / download validation to ensure data integrity
- SharePoint / Office 365 Shared Libraries added
- Desktop notifications via libnotify
- Dry-run capability to test configuration changes
- Prevent major OneDrive accidental data deletion after configuration change
- Support for National cloud deployments (Microsoft Cloud for US Government, Microsoft Cloud Germany, Azure and Office 365 operated by 21Vianet in China)
- Support for OneDrive Personal and OneDrive Business Shared Folders
User avatar
smurphos
Level 17
Level 17
Posts: 7332
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by smurphos »

Eclipsenow+ wrote:
Wed May 13, 2020 10:50 pm
Which do you prefer? Any other guides on this?
Not specific to OneDrive but I've used rclone for years for my Google Drive integration and it works very well.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
JohnDoeDK
Level 1
Level 1
Posts: 7
Joined: Tue May 05, 2020 5:04 pm
Location: Denmark

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by JohnDoeDK »

abraunegg wrote:
Sun Jun 21, 2020 3:02 am
JohnDoeDK wrote:
Wed May 13, 2020 11:52 pm
I use the app "Onedrive" from the software repository. It installs like any app, but need setting up in the terminal.
- Go watch the hompage linked to it.

http://skilion.github.io/onedrive/
The 'skilion' repo appears to have been abandoned in 2018 and contains many defects that put you at risk of data loss and corruption if you use it. The original author is totally uncontactable despite numerous efforts by myself and others.

If you wish to use the latest code which contains numerous fixes and enhancements you need to clone & build from this repo: https://github.com/abraunegg/onedrive

To be notified of new releases / bug fixes please also watch the new repo.

Major differences / Enhancements:
- Existing bugs with 'skilion' client fixed
- File upload / download validation to ensure data integrity
- SharePoint / Office 365 Shared Libraries added
- Desktop notifications via libnotify
- Dry-run capability to test configuration changes
- Prevent major OneDrive accidental data deletion after configuration change
- Support for National cloud deployments (Microsoft Cloud for US Government, Microsoft Cloud Germany, Azure and Office 365 operated by 21Vianet in China)
- Support for OneDrive Personal and OneDrive Business Shared Folders
Didn't know that. Thanks for the info.

If I use the ppa, the dependencies will follow? (excuse me, nooby question)
Emma1410
Level 1
Level 1
Posts: 9
Joined: Mon Dec 19, 2016 3:56 pm

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by Emma1410 »

In order to install onedrive, first you need to install some dependencies and set up git, unless you already have it. Head to the Terminal and enter one of the following.

For Ubuntu:

Code: Select all

sudo apt install libcurl4-openssl-dev git
sudo apt install libsqlite3-dev
If you are using Ubuntu 18.04 or newer, use snap to install dmd:

Code: Select all

sudo snap install --classic dmd && sudo snap install --classic dub
If not:

Code: Select all

sudo wget http://master.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list
sudo apt-get update && sudo apt-get -y --allow-unauthenticated install --reinstall d-apt-keyring
sudo apt-get update && sudo apt-get install dmd-compiler dub
For Fedora:

Code: Select all

sudo yum install libcurl-devel git
sudo yum install sqlite-devel
curl -fsS https://dlang.org/install.sh | bash -s dmd
Arch Linux:

Code: Select all

sudo pacman -S curl sqlite dlang git
Installation
After installing the dependencies, fetch the files with git:

Code: Select all

git clone https://github.com/abraunegg/onedrive.git
And compile and install it:

Code: Select all

cd onedrive
./configure
make
sudo make install
After you have done this, now you need to authorize onedrive with Microsoft so it can access your account after Onedrive or SharePoint Migration. Simply enter the following in the Terminal:

onedrive
And it will prompt you to visit the URL to get authorization.

onedrive-authorize-url
Log in to your OneDrive account, and grant the app permission to access your account.

ms-auth


Once this is done, you will be presented with a blank white page. Copy the URL and paste it into the Terminal at the prompt.

onedrive-response-url
This will complete the setting up.

To start synchronizing OneDrive to your local folder, run

onedrive --synchronize
Onedrive will start downloading all your files in the cloud to your local folder.

Alternatively, you can run:

onedrive --monitor
to get it to monitor your local folder for changes.

Configuration
You can find the “config” file at the onedrive git folder. To make it active, move it to the “~/.config/onedrive/” folder.

mkdir -p ~/.config/onedrive
cp ~/onedrive/config ~/ .config/onedrive/config
Open the config file. There are three options that you can configure: “sync_dir” and “skip_files.”

sync_dir: the location to store your OneDrive files. All files placed in/removed from this folder will be synced to the cloud.
skip_files: the file type (or file pattern) that won’t be synced.
monitor_interval: the time interval between sync operations.
Once you have made the changes, save and restart onedrive.

At any time, you can check your configuration with the command:

onedrive --display-config
Appoloin
Level 3
Level 3
Posts: 147
Joined: Sun Apr 28, 2013 3:58 am

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by Appoloin »

If you just want a GUI for rclone try https://github.com/kapitainsky/RcloneBrowser
User avatar
Eclipsenow+
Level 2
Level 2
Posts: 81
Joined: Mon Oct 07, 2019 3:26 am

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by Eclipsenow+ »

Can I just say the post a few back with 20 something lines of terminal commands is quite intimidating to a newbie like myself? :oops:
I think I'll have a look at the GUI version - I just hope it doesn't take that much code.
I wish there was something on the app store to just download.
Cinnamon 20 on (2011?) ASUS i7-2670QM CPU @ 2.2GHz 4 Cores; 8 threads, 32G RAM, GeForce GT 540M
abraunegg
Level 1
Level 1
Posts: 7
Joined: Thu Oct 03, 2019 10:18 pm

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by abraunegg »

Emma1410 wrote:
Fri Sep 18, 2020 8:27 am
In order to install onedrive, first you need to install some dependencies and set up git, unless you already have it. Head to the Terminal and enter one of the following.

...
incorrect instructions removed
...

At any time, you can check your configuration with the command:

onedrive --display-config
I am the developer of the Linux OneDrive Client: https://github.com/abraunegg/onedrive

The information you have posted is not entirely accurate or correct. Whatever website you pulled those commands from is providing incorrect information - you do not need to modify the apt list, or do anything like that. It appears that most of those commands are from ~2017 and were relevant for the 'skilion' client, which was abandoned in 2018.

For Linux Mint users you have 2 options to install the client:
1. Use the Ubuntu PPA - This supports Ubuntu 19.x and Ubuntu 20.x
2. Compile from source - This is your only option if you are running Ubuntu 18.x and below.

To compile from source (confirmed with Linux Mint 19.x):
1. Install the dependencies

Code: Select all

sudo apt install build-essential libcurl4-openssl-dev libsqlite3-dev pkg-config git curl
2. Install the compiler

Code: Select all

curl -fsS https://dlang.org/install.sh | bash -s dmd
3. Activate the compiler

Code: Select all

source ~/dlang/dmd-2.093.1/activate
4. Clone the repo

Code: Select all

git clone https://github.com/abraunegg/onedrive.git
5. Build the client

Code: Select all

cd onedrive; ./configure; make clean; make;
6. Install

Code: Select all

sudo make install
To install using the Ubuntu PPA (confirmed with Linux Mint 20.x):
1. Add the Ubuntu PPA

Code: Select all

sudo add-apt-repository ppa:yann1ck/onedrive
sudo apt-get update
2. Install 'onedrive' from the Ubuntu PPA

Code: Select all

sudo apt install onedrive

For further details refer to:
Last edited by abraunegg on Mon Sep 21, 2020 7:01 pm, edited 2 times in total.
abraunegg
Level 1
Level 1
Posts: 7
Joined: Thu Oct 03, 2019 10:18 pm

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by abraunegg »

Eclipsenow+ wrote:
Sat Sep 19, 2020 9:03 am
Can I just say the post a few back with 20 something lines of terminal commands is quite intimidating to a newbie like myself? :oops:
I think I'll have a look at the GUI version - I just hope it doesn't take that much code.
I wish there was something on the app store to just download.
Please see the steps in my post. The 20+ lines are not correct.
User avatar
Eclipsenow+
Level 2
Level 2
Posts: 81
Joined: Mon Oct 07, 2019 3:26 am

Re: Multiple Microsoft Onedrive install methods - which do you prefer?

Post by Eclipsenow+ »

abraunegg wrote:
Sun Sep 20, 2020 9:58 pm
Eclipsenow+ wrote:
Sat Sep 19, 2020 9:03 am
Can I just say the post a few back with 20 something lines of terminal commands is quite intimidating to a newbie like myself? :oops:
I think I'll have a look at the GUI version - I just hope it doesn't take that much code.
I wish there was something on the app store to just download.
Please see the steps in my post. The 20+ lines are not correct.
Thanks so much!
Cinnamon 20 on (2011?) ASUS i7-2670QM CPU @ 2.2GHz 4 Cores; 8 threads, 32G RAM, GeForce GT 540M
Post Reply

Return to “Software & Applications”