LoginSignup
9
12

More than 3 years have passed since last update.

Raspberry Pi で OneDriveを使う

Last updated at Posted at 2019-08-30

Raspberry Pi で OneDrive を使う

お父様がラズパイで OneDrive を使いたいと仰っていたので。
とりあえず、起動確認まで

編集履歴
'19/09/02 : ldc2 バージョン修正

環境

Raspberry Pi 3b+

$ cat /etc/debian_version
9.9

カーネルバージョンは9.9

先駆者様

Raspberry PiでOneDriveを使う

概要

https://github.com/abraunegg/onedrive/blob/master/docs/INSTALL.md
これを読めばわかるのですが、
様々なOSが対象となっていてわかりにくいので、
ラズパイの部分だけ抜きます。

以下作業ログ

sudo apt-get install libcurl4-openssl-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install libxml2
sudo apt-get install pkg-config
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

先駆者様のところでは ldc2のバージョンがv1.11.0と古く、
この後のコンパイル作業でエラーが出ます(した)

git clone https://github.com/abraunegg/onedrive.git
cd onedrive
./configure DC=~/ldc2-1.16.0-linux-armhf/bin/ldmd2
make clean; make
sudo make install

これらのログは全てホームディレクトリで作業しているような感じなので、作業ディレクトリに適宜パスを合わせてください
公式が
ldc2-1.13.0
としていますが、おそらく
ldc2-1.16.0
の間違いだと思います

起動確認

$ onedrive --display-config
onedrive version                    = v2.3.8-9-g219fce2
Config path                         = /home/kawamata/.config/onedrive
Config file found in config path    = false
Config option 'check_nosync'        = false
Config option 'sync_dir'            = /home/kawamata/OneDrive
Config option 'skip_dir'            =
Config option 'skip_file'           = ~*|.~*|*.tmp
Config option 'skip_dotfiles'       = false
Config option 'skip_symlinks'       = false
Config option 'monitor_interval'    = 45
Config option 'min_notify_changes'  = 5
Config option 'log_dir'             = /var/log/onedrive/
Config option 'sync_root_files'     = false
Selective sync configured           = false

とりあえずここまで

9
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
12