AGITIME Terminal: Unterschied zwischen den Versionen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 23: | Zeile 23: | ||
'''Voraussetzungen installieren:''' | '''Voraussetzungen installieren:''' | ||
<code>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</code> | <code>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</code> | ||
---- | ---- | ||
| Zeile 29: | Zeile 29: | ||
'''Herunterladen, entpacken und kopieren:''' | '''Herunterladen, entpacken und kopieren:''' | ||
<code>cd /usr/src | <code>cd /usr/src | ||
wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-cli_4.3.2_x86-64.tar.gz | 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 | tar xzfv seafile-cli_4.3.2_x86-64.tar.gz | ||
cd seafile-cli-4.3.2 | cd seafile-cli-4.3.2 | ||
cp -r -f * /usr/local/bin/</code> | cp -r -f * /usr/local/bin/</code> | ||
---- | ---- | ||
| Zeile 44: | Zeile 44: | ||
<code>mkdir ~/seafile-client | <code>mkdir ~/seafile-client | ||
seaf-cli init -d ~/seafile-client | seaf-cli init -d ~/seafile-client | ||
seaf-cli start | seaf-cli start | ||
seaf-cli config -k disable_verify_certificate -v true | seaf-cli config -k disable_verify_certificate -v true | ||
seaf-cli config -k enable_http_sync -v true | seaf-cli config -k enable_http_sync -v true | ||
seaf-cli stop | seaf-cli stop | ||
seaf-cli start</code> | seaf-cli start</code> | ||
---- | ---- | ||
| Zeile 63: | Zeile 63: | ||
<code>nano /usr/local/bin/seafile-client-starter.sh</code> | <code>nano /usr/local/bin/seafile-client-starter.sh</code> | ||
---- | ---- | ||
| Zeile 70: | Zeile 70: | ||
<code>#!/bin/sh | <code>#!/bin/sh | ||
set -e | set -e | ||
/usr/local/bin/seaf-cli start</code> | /usr/local/bin/seaf-cli start</code> | ||
---- | ---- | ||
| Zeile 81: | Zeile 81: | ||
<code>chmod +x /usr/local/bin/seafile-client-starter.sh | <code>chmod +x /usr/local/bin/seafile-client-starter.sh | ||
crontab -e</code> | crontab -e</code> | ||
---- | ---- | ||
| Zeile 90: | Zeile 90: | ||
<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 97: | Zeile 97: | ||
<code>seaf-cli</code> | <code>seaf-cli</code> | ||
---- | ---- | ||
| Zeile 104: | Zeile 104: | ||
<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 111: | Zeile 111: | ||
<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> | ||
---- | ---- | ||
'''Die ID der Library (Bibliothek) erhält man wenn man diese im Webbrowser aufruft und die Zahl hinter /repo/ kopiert.''' | '''Die ID der Library (Bibliothek) erhält man wenn man diese im Webbrowser aufruft und die Zahl hinter /repo/ kopiert.''' | ||
Version vom 4. Juli 2016, 07:05 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.