Multiple Microsoft Onedrive install methods - which do you prefer?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
Eclipsenow+
Level 2
Level 2
Posts: 92
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 LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Cinnamon 20 on (2011?) ASUS i7-2670QM CPU @ 2.2GHz 4 Cores; 8 threads, 32G RAM, GeForce GT 540M
User avatar
MartyMint
Level 7
Level 7
Posts: 1732
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: 92
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

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 2
Level 2
Posts: 59
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 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
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

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

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: 174
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: 92
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 2
Level 2
Posts: 59
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 OpenSuse Build Service (confirmed with Linux Mint 20.x):
1. Configure your platform to use the OpenSuse Build Service
Refer to: https://github.com/abraunegg/onedrive/b ... install.md

2. Install 'onedrive' from the OpenSuse Build Service

Code: Select all

sudo apt install onedrive

For further details refer to:
Last edited by abraunegg on Wed Oct 13, 2021 1:31 am, edited 3 times in total.
abraunegg
Level 2
Level 2
Posts: 59
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: 92
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
Locked

Return to “Software & Applications”