miketowns
Posts: 6
Joined: Tue Apr 15, 2014 9:10 pm

MS Onedrive

Wed Apr 16, 2014 1:01 pm

Hi All,

Has anybody connected to the cloud MS Onedrive?

I have installed Chromium as I understand that this will let me log on to the drive but I want to be able to add it as an extra HD so I can reference it directly.

Thanks

Mike


JarrodXD
Posts: 2
Joined: Fri Jan 03, 2020 10:16 pm

Re: MS Onedrive

Fri Jan 03, 2020 10:23 pm

I know this reply is a bit late but thought it might help someone else who stumbles across it.
Rclone is a good method for syncing OneDrive to a Pi. I wrote a quick guide. It basically syncs OneDrive to a folder on the Pi. https://jarrodstech.net/how-to-raspberr ... rive-sync/

bls
Posts: 596
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA
Contact: Twitter

Re: MS Onedrive

Sat Jan 04, 2020 4:55 pm

I've been using https://github.com/abraunegg/onedrive for syncing OneDrive for quite some time. Easy to set up and works well.
Super-useful tools:
RPi SD Card Image Manager: https://github.com/gitbls/sdm
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo
Easy-Peasy VPN installer/manager: https://github.com/gitbls/pistrong

K4ktus
Posts: 20
Joined: Sun Jun 30, 2019 5:22 pm

Re: MS Onedrive

Mon Jan 06, 2020 4:38 pm

Today I checked out the client bls suggested
I've been using https://github.com/abraunegg/onedrive for syncing OneDrive for quite some time. Easy to set up and works well.
But I can't figure out how to make monitor mode run at startup. Tried adding

Code: Select all

onedrive --monitor &
to rc.local, but it doesn't work.
If I manually type the command into the terminal, it works fine.
Using Pi as a full-time desktop PC since January 2019

DirkS
Posts: 10346
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: MS Onedrive

Mon Jan 06, 2020 4:43 pm

K4ktus wrote:
Mon Jan 06, 2020 4:38 pm
Today I checked out the client bls suggested
I've been using https://github.com/abraunegg/onedrive for syncing OneDrive for quite some time. Easy to set up and works well.
But I can't figure out how to make monitor mode run at startup. Tried adding

Code: Select all

onedrive --monitor &
to rc.local, but it doesn't work.
If I manually type the command into the terminal, it works fine.
I would try using the systemd service file that's part of the source on github: https://github.com/abraunegg/onedrive/t ... ib/systemd

andrum99
Posts: 1205
Joined: Fri Jul 20, 2012 2:41 pm

Re: MS Onedrive

Mon Jan 06, 2020 5:37 pm

I use rclone (see rclone.org) with Google Drive but it also works with OneDrive.

K4ktus
Posts: 20
Joined: Sun Jun 30, 2019 5:22 pm

Re: MS Onedrive

Tue Jan 07, 2020 10:03 pm

Thanks! Enabling the systemd service worked! Now it functions exactly how I wanted.
Using Pi as a full-time desktop PC since January 2019

User avatar
Botspot
Posts: 1241
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: MS Onedrive

Wed Jan 08, 2020 3:30 pm

andrum99 wrote: I use rclone (see rclone.org) with Google Drive but it also works with OneDrive.
+1. Rclone is the way to go. I use it to mount 2 Google Drives, Onedrive, Dropbox, and Opendrive.
Want to make your own Raspbian image?
  • Hard way: Mess with confusing terminal commands.
  • Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a VM, Flash from the Internet at top speed, Mount (to drop files in), Edit partitions, Shrink/Expand, Repair, and more. Enjoy! :)
https://github.com/Botspot/Pi-Power-Tools

johnny.bravo
Posts: 1
Joined: Sat Jan 11, 2020 11:22 am

Re: MS Onedrive

Sat Jan 11, 2020 11:34 am

bls wrote:
Sat Jan 04, 2020 4:55 pm
I've been using https://github.com/abraunegg/onedrive for syncing OneDrive for quite some time. Easy to set up and works well.
Hi, i tried to use those instructions on my Raspberry Pi Model B Rev 2, but when making the configuration to be LDMD2 it fails...

pi@raspberrypi:~/onedrive $ ./configure DC=~/ldc2-1.16.0-linux-armhf/bin/ldmd2
checking for a BSD-compatible install... /usr/bin/install -c
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for dmd... /home/pi/ldc2-1.16.0-linux-armhf/bin/ldmd2
checking version of D compiler...
configure: error: Compiler version insufficient, current compiler version , minimum version 1.12.0

how did you surpass this? IS this related to being using a very old RPI? I didn't see anything stating minimum version of RPI board, but...
I'm using Raspbian Buster Lite latest version and installed all prereqs mentioned according to instructions, so it is looks to be something related to min requirements of the compiler or my Pi board version supporting it. Any help appreciated. Thanks

bls
Posts: 596
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA
Contact: Twitter

Re: MS Onedrive

Sat Jan 11, 2020 8:30 pm

johnny.bravo wrote:
Sat Jan 11, 2020 11:34 am

how did you surpass this?
It's fairly well documented on https://github.com/abraunegg/onedrive/b ... INSTALL.md, but can be a bit of a pain to follown if Linux isn't your primary language :lol:.

Here's what I did based on the above link:

Code: Select all

cd /home/pi
sudo apt install libcurl4-openssl-dev libsqlite3-dev libxml2 pkg-config libnotify-dev git
mkdir work                    # Not strictly needed, but wanted to start out in an empty directory
cd work                       # Ditto
wget https://github.com/ldc-developers/ldc/releases/download/v1.16.0/ldc2-1.16.0-linux-armhf.tar.xz
tar -xvf ldc2-1.16.0-linux-armhf.tar.xz 
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
./configure DC=/home/pi/work/ldc2-1.16.0-linux-armhf/bin/ldmd2
make
sudo make install
Super-useful tools:
RPi SD Card Image Manager: https://github.com/gitbls/sdm
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo
Easy-Peasy VPN installer/manager: https://github.com/gitbls/pistrong

criostage
Posts: 8
Joined: Wed Jan 30, 2013 2:00 pm

Re: MS Onedrive

Mon Jan 13, 2020 11:28 pm

I got the same result by following bls step-by-step, screenshot bellow:
Image

I m trying to run this on headless OS, does it have any impact?

User avatar
Botspot
Posts: 1241
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: MS Onedrive

Mon Jan 13, 2020 11:33 pm

Very easy to mount your entire Onedrive using rclone.

Code: Select all

sudo apt install rclone
rclone config #very intuitive to set up. Just follow the instructions.
#Assuming you named your remote "Onedrive" and want it mounted to /home/pi/mounted, just run this command:
mkdir onedrive
rclone mount "Onedrive:" /home/pi/Onedrive #Do not forget to add the colon to your remote's name!!!
That's it! Rclone also supports over 20 cloud storage providers. I use it to backup my entire Pi daily, and have Onedrive, 2 Google Drives, and Dropbox all mounted to their respective folders.
Want to make your own Raspbian image?
  • Hard way: Mess with confusing terminal commands.
  • Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a VM, Flash from the Internet at top speed, Mount (to drop files in), Edit partitions, Shrink/Expand, Repair, and more. Enjoy! :)
https://github.com/Botspot/Pi-Power-Tools

abraunegg
Posts: 1
Joined: Tue Jan 14, 2020 6:17 pm

Re: MS Onedrive

Tue Jan 14, 2020 6:25 pm

@criostage
Can you create an issue for assistance here: https://github.com/abraunegg/onedrive/issues for correct tracking and assistance

If the compiler cannot run, it will throw this error - so either the compiler cannot be found, or you installed the wrong one for your ARM architecture:

ARMHF: https://github.com/abraunegg/onedrive/b ... bian-armhf
ARM64: https://github.com/abraunegg/onedrive/b ... bian-arm64

What is CPU architecture of your device?

bls
Posts: 596
Joined: Mon Oct 22, 2018 11:25 pm
Location: Seattle, WA
Contact: Twitter

Re: MS Onedrive

Tue Jan 14, 2020 7:22 pm

criostage wrote:
Mon Jan 13, 2020 11:28 pm
I got the same result by following bls step-by-step, screenshot bellow:
Image

I m trying to run this on headless OS, does it have any impact?
Huh. the directions that I posted were from an actual installation on a headless Buster. What version of Raspbian are you using?
Super-useful tools:
RPi SD Card Image Manager: https://github.com/gitbls/sdm
Lightweight Virtual VNC Config: https://github.com/gitbls/RPiVNCHowTo
Easy-Peasy VPN installer/manager: https://github.com/gitbls/pistrong

Artee
Posts: 1
Joined: Sat May 09, 2020 7:14 am

Re: MS Onedrive

Sat May 09, 2020 2:07 pm

Hi, i was facing the same issue on my old RPi (armv6l). If you run the ldmd2 binary that comes from the package in the official guide, it throws segmentation fault. So that pre-compiled compiler is not usable. I had to compile the ldc2 compiler from source (took ages) and then it worked fine. I used version 1.13 of ldc2, compiled it and used it to compile abraunegg's onedrive client v2.4.1. I also had to increase the swap file size (used 2048 MB) as otherwise it also ended up with segmentation fault during the compilation. Let me know if you want the ldc2 binary or need more details.

Giga_Pi
Posts: 147
Joined: Mon May 20, 2019 9:48 am

Re: MS Onedrive

Mon May 11, 2020 11:09 am

Botspot wrote:
Mon Jan 13, 2020 11:33 pm
Very easy to mount your entire Onedrive using rclone.

Code: Select all

sudo apt install rclone
rclone config #very intuitive to set up. Just follow the instructions.
#Assuming you named your remote "Onedrive" and want it mounted to /home/pi/mounted, just run this command:
mkdir onedrive
rclone mount "Onedrive:" /home/pi/Onedrive #Do not forget to add the colon to your remote's name!!!
That's it! Rclone also supports over 20 cloud storage providers. I use it to backup my entire Pi daily, and have Onedrive, 2 Google Drives, and Dropbox all mounted to their respective folders.
Intuitive it may be, but I can't auth (connection refused)

Thought this might be a step up from my nas, but it turns out I was wrong.
GNOME for Pi

A project to get the popular GNOME desktop to run on Raspberry Pi OS.

Guide here: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=276512

Source code here: https://github.com/TerraGitHuB/gnomeforpi

Pi4 4GB with Manjaro ARM KDE

User avatar
Botspot
Posts: 1241
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas
Contact: Website

Re: MS Onedrive

Mon May 11, 2020 12:58 pm

Giga_Pi wrote:
Mon May 11, 2020 11:09 am
Botspot wrote:
Mon Jan 13, 2020 11:33 pm
Very easy to mount your entire Onedrive using rclone.

Code: Select all

sudo apt install rclone
rclone config #very intuitive to set up. Just follow the instructions.
#Assuming you named your remote "Onedrive" and want it mounted to /home/pi/mounted, just run this command:
mkdir onedrive
rclone mount "Onedrive:" /home/pi/Onedrive #Do not forget to add the colon to your remote's name!!!
That's it! Rclone also supports over 20 cloud storage providers. I use it to backup my entire Pi daily, and have Onedrive, 2 Google Drives, and Dropbox all mounted to their respective folders.
Intuitive it may be, but I can't auth (connection refused)
It's worked flawlessly for me for years. It still does.

At one point in the rclone config, it's supposed to open a browser and let you sign in to onedrive to authenticate. Did you get that far, and were you able to sign in?
Want to make your own Raspbian image?
  • Hard way: Mess with confusing terminal commands.
  • Easy way: Let Pi-Power-Tools do it all for you!
Boot your image in a VM, Flash from the Internet at top speed, Mount (to drop files in), Edit partitions, Shrink/Expand, Repair, and more. Enjoy! :)
https://github.com/Botspot/Pi-Power-Tools

Return to “Advanced users”