AGITIME Terminal: Unterschied zwischen den Versionen

Aus Agilos Wiki
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 38: Zeile 38:


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


  <code>mkdir ~/seafile-client
  <code>mkdir ~/seafile-client
Zeile 51: Zeile 50:


'''Seafile beim Booten des Servers starten:'''
'''Seafile beim Booten des Servers starten:'''


  <code>nano /usr/local/bin/seafile-client-starter.sh</code>
  <code>nano /usr/local/bin/seafile-client-starter.sh</code>
Zeile 58: Zeile 56:


'''mit folgendem Inhalt:'''
'''mit folgendem Inhalt:'''


  <code>#!/bin/sh
  <code>#!/bin/sh
Zeile 67: Zeile 64:


'''dann:'''
'''dann:'''


  <code>chmod +x /usr/local/bin/seafile-client-starter.sh
  <code>chmod +x /usr/local/bin/seafile-client-starter.sh
Zeile 75: Zeile 71:


'''und dort folgende Zeile eintragen:'''
'''und dort folgende Zeile eintragen:'''


  <code>@reboot sleep 180 && /usr/local/bin/seafile-client-starter.sh 2>&1 > /dev/null</code>
  <code>@reboot sleep 180 && /usr/local/bin/seafile-client-starter.sh 2>&1 > /dev/null</code>
Zeile 82: Zeile 77:


'''Bedienung erfolgt mit dem'''
'''Bedienung erfolgt mit dem'''


  <code>seaf-cli</code>
  <code>seaf-cli</code>
Zeile 89: Zeile 83:


'''Befehl. Eine Bibliothek kopiert man sich nach lokal mit:'''
'''Befehl. Eine Bibliothek kopiert man sich nach lokal mit:'''


  <code>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"</code>
  <code>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"</code>
Zeile 96: Zeile 89:


'''Will man eine Synchronisation so wählt man:'''
'''Will man eine Synchronisation so wählt man:'''


  <code>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"</code>
  <code>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"</code>

Version vom 4. Juli 2016, 07:07 Uhr


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.