This is an old revision of the document!
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.
Note: if you need a newer version of the client, just tweet me @sgripon.
If you don't want to compile by yourself, you can get the debian package installer from http://pub.sgripon.net/owncloud-client/rpi/. To install:
sudo dpkg -i owncloud-client-2.2.0_armhf.deb
If there are missing dependencies, this command should automatically install all:
sudo apt-get install -f
If not, you should be able to install manually missing packages with apt-get.
I also experiment ppa. You can try it by adding my ppa to the source.list. Add line:
deb http://pub.sgripon.net ppa/
sudo apt-get update sudo apt-get install owncloud-client
I use raspberry pi emulator to build owncloud. See Raspberry pi emulator. This is to avoid too much writing on SD card and breaking it too quickly.
Note: this page has been updated for client 2.2.0.
Most of the build instructions are from owncloud official website (http://doc.owncloud.org/desktop/2.2/building.html) with some adjustments for RPI.
Get owncloud client sources from official web site here: https://download.owncloud.com/desktop/stable/owncloudclient-2.2.0.tar.xz.
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:
cd /home/pi/dev/owncloud-client wget https://download.owncloud.com/desktop/stable/owncloudclient-2.2.0.tar.xz
Some dependencies are necessary to build the two packages.
sudo apt-get install libsqlite3-dev libneon27-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
The following script downloads and builds the source code (remove download command (wget) if already done). The script must be invoked with the desired client version:
The script should work for future versions unless ownlcoud changes files naming.
#!/bin/sh wget https://download.owncloud.com/desktop/stable/owncloudclient-$1.tar.xz tar -xf owncloudclient-$1.tar.xz mkdir client-build cd client-build cmake -DWITH_DOC=TRUE -DCMAKE_BUILD_TYPE="Release" ../owncloudclient-$1 make # Prepare a redistribuable package make package
sudo make install
Then it seems that libocsync and libowncloudsync shared libraries must be installed manually:
sudo cp csync/src/libocsync.so.2.2.0 /usr/local/lib sudo cp src/libsync/libowncloudsync.so.2.2.0 /usr/local/lib sudo ldconfig
In /home/pi/dev/owncloud-client, create a deb folder:
cd /home/pi/dev/owncloud-client mkdir -p deb/owncloud-client
First thing is to copy all needed files to this new folder. We are lucky, the “make install” command has produced a file with all files installed, so it can be used with rsync:
cd deb/owncloud-client rsync --files-from /home/pi/dev/owncloud-client/client-build/install_manifest.txt / .
Add also libraries installed manually:
cp /usr/local/lib/libocsync.so.2.2.0 usr/local/lib cp /usr/local/lib/libowncloudsync.so.2.2.0 usr/local/lib
Then, follow tutorial How To Build a Debian Package.
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.
Older versions can have a different build sequence:
Share this page: