Table of Contents
Building owncloud client for Raspberry pi's raspbian
I use my Raspberry pi as an owncloud client to synchronize my NAS and my server. Unfortunately, the official package is not up-to-date so I have to build it by myself.
If you don't want to compile by yourself, you can get the installer from http://pub.sgripon.net/owncloud-client/rpi/ (See README for details).
Note: this page has been updated for client 1.7.0.
Most of the build instructions are from owncloud official website (http://doc.owncloud.org/desktop/1.7/building.html) with some adjustments for RPI.
Get owncloud client sources from official web site here: http://owncloud.org/sync-clients.
This tutorial assumes that the work is done on raspbian in folder /home/pi/dev/owncloud-client:
If not, change all paths.
On your pi:
Some dependencies are necessary to build the two packages.
sudo apt-get install libsqlite3-dev libneon-dev
sudo apt-get install libqt4-dev libqtkeychain0 qtkeychain-dev libqt4-sql-sqlite
You will need to install cmake if not already done to build both:
sudo apt-get install cmake
Also iniparser 3.1 is required. It can be downloaded from here: http://ndevilla.free.fr/iniparser.
#!/bin/sh tar -xjf mirall-1.7.0.tar.bz2 mkdir mirall-build cd mirall-build cmake -DCMAKE_BUILD_TYPE="Release" ../mirall-1.7.0 make make install
You can also prepare a redistribuable package easily:
Then, library pathes must be rebuilt using ldconfig:
Launch at startup
If you want to launch owncloud client automatically at startup, just add this line:
at the end of /etc/xdg/lxsession/LXDE/autostart
Note that owncloud client needs a graphical session to be launched so if you want to launch the client at raspi boot, it must be configured to start X automatically.