Archiv der Kategorie: Raspberry

Seafile CLI sync certificate error

If you get the following error while syncing your seafile library with a server using a self signed certificate, you have to add the certficate to your certificate store.

Error:

urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>

Solution:

  1. Retrieve the self-signed certificate (usually .pem or .crt)
  2. Make sure you have ca-certificates installed
    apt-get install ca-certificates
  3. Copy your certificate into the certificate folder
    cp cert.pem /usr/share/ca-certificates
  4. Activate the certificate
    dpkg-reconfigure ca-certificates

For more information see: http://unix.stackexchange.com/a/90607

Update Seafile Client 4.x to 5.x on Raspberry Pi

To update your Seafile Client (e.g. 3.1.7) on your Raspberry you just have to install the new packages of version 5.x.

1. Download packages

2. Install packages

dpkg -i libsearpc-3.0_3.0-latest-2_armhf.deb
dpkg -i ccnet_5.0.1-1_armhf.deb
dpkg -i seafile_5.0.1-1_armhf.deb
dpkg -i seafile-client_5.0.1-1_armhf.deb

As usual: Please, report if you have any issues and also report if it worked for you.

Update Seafile Server on Raspberry

  1. Get link of newest seafile server release from https://github.com/haiwen/seafile-rpi/releases (e.g. v4.4.0/seafile-server_4.4.0_pi.tar.gz)
  2. Switch to the seafile user: sudo su seafile
  3. Switch to the seafile home folder: cd ~
  4. Download the new release: e.g. wget https://github.com/haiwen/seafile-rpi/releases/download/v4.4.0/seafile-server_4.4.0_pi.tar.gz
  5. Unpack the new release: tar -xzf seafile-server_4.4.0_pi.tar.gz
  6. Follow the steps in http://manual.seafile.com/deploy/upgrade.html

Update Seafile Client 3.x to 4.x on Raspberry Pi

To update your Seafile Client (e.g. 3.1.7) on your Raspberry you just have to install the new packages of version 4.x.

1. Download packages

2. Install packages

dpkg -i libsearpc-3.0_3.0.4-1_armhf.deb
dpkg -i ccnet_4.0.6-1_armhf.deb
dpkg -i seafile_4.0.6-1_armhf.deb
dpkg -i seafile-client_4.0.6-1_armhf.deb

As usual: Please, report if you have any issues and also report if it worked for you.

Seafile Client on Raspberry PI

The Raspberry PI is often used as a server for seafile. For this case there are ready-to-use binaries (http://seafile.com/en/download/) and good tutorials how to do so.

Unfortunately this is not the case for the client on raspberry. This article describes how to easily setup the seafile client on raspberry. It is also possible to install the client in parallel to the server on the same raspberry.

Make sure you have python installed:

sudo apt-get -y install python2.7 python-setuptools python-simplejson python-imaging sqlite3

Install the following packages. For the cli-version of the client only the first three are needed (and I have not yet tested the visual seafile-client):

Seafile 5.0.1 (current)

Seafile 4.0.x (old)

Seafile 3.1.x (old)

dpkg -i libsearpc-3.0_3.0.4-1_armhf.deb
dpkg -i ccnet_4.0.6-1_armhf.deb
dpkg -i seafile_4.0.6-1_armhf.deb
dpkg -i seafile-client_4.0.6-1_armhf.deb

These packages are created using checkinstall and following the steps on http://manual.seafile.com/build_seafile/linux.html

If you have dependency errors try to also install the following (however most should be only needed for the build):

sudo apt-get install autoconf automake libtool libevent-dev libcurl4-openssl-dev libgtk2.0-dev uuid-dev intltool libsqlite3-dev valac libjansson-dev libqt4-dev cmake libfuse-dev libssl-dev

Now you can start the seafile client:

# choose a folder where to store the seafile client settings e.g ~/.seafile-client
mkdir ~/.seafile-client            # create the settings folder
seaf-cli init -d ~/.seafile-client  # initialise seafile client with this folder
seaf-cli start

And sync your library:

seaf-cli sync -l "the id of the library" -s  "the url + port of server" -d "the folder where the library folder will be downloaded" -u "username on server" -p "password"

More information on the client usage is available on: https://seacloud.cc/group/3/wiki/seafile-cli-manual