AGITIME Terminal

Aus Agilos Wiki
Zur Navigation springen Zur Suche springen


auf folgender Seite ist eine Anleitung zu finden: https://znil.net/index.php?title=Seafile_Terminal_Client_-_Installation_und_Synchronisation_unter_Ubuntu_14.04.x_LTS

Nachfolgend auch in ausgeschriebener Form

|

v

Anleitung zur Installation

Nachfolgend läuft der Seafile Terminal Client als Benutzer root.

Root werden:

sudo -i

Voraussetzungen installieren:

apt-get install python2.7 python-setuptools python-simplejson python-imaging sqlite3 autoconf automake libtool libevent-dev libcurl4-openssl-dev libgtk2.0-dev uuid-dev intltool libsqlite3-dev valac libjansson-dev libqt4-dev cmake libfuse-dev


Herunterladen, entpacken und kopieren:

cd /usr/src

wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-cli_4.3.2_x86-64.tar.gz

tar xzfv seafile-cli_4.3.2_x86-64.tar.gz

cd seafile-cli-4.3.2

cp -r -f * /usr/local/bin/


Benutzerverzeichnis anlegen und Seafile bereitmachen für http-Sync / https-Sync auch mit selbstsignierten Zertifikaten:


mkdir ~/seafile-client

seaf-cli init -d ~/seafile-client

seaf-cli start

seaf-cli config -k disable_verify_certificate -v true

seaf-cli config -k enable_http_sync -v true

seaf-cli stop

seaf-cli start


Seafile beim Booten des Servers starten:


nano /usr/local/bin/seafile-client-starter.sh


mit folgendem Inhalt:


#!/bin/sh

set -e

/usr/local/bin/seaf-cli start


dann:


chmod +x /usr/local/bin/seafile-client-starter.sh

crontab -e


und dort folgende Zeile eintragen:


@reboot sleep 180 && /usr/local/bin/seafile-client-starter.sh 2>&1 > /dev/null


Bedienung erfolgt mit dem


seaf-cli


Befehl. Eine Bibliothek kopiert man sich nach lokal mit:


seaf-cli download -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"


Will man eine Synchronisation so wählt man:


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"


Die ID der Library (Bibliothek) erhält man wenn man diese im Webbrowser aufruft und die Zahl hinter /repo/ kopiert.