Weave Minimal Server für Firefox Sync

Aus

*** IN ERSTELLUNG *** zur Zeit ist das Dokument unvollständig und führt nicht zum gewünschten Ergebnis !!

Vorwort

Im Folgendem wird die Installation eines Weave Minimal Servers auf der Synology Diskstation beschrieben. Der Weave Minimal Server ermöglicht die Nutzung des Firefox Sync Mechanismus mit einem "Eigenen Server", so dass der Ort der Datenablage für die zu synchronisierenden Datenelemente (ja nach Konfiguration: Lesezeichen, Passworte, Einstellungen, Chronik und Tabs) die eigene Diskstation ist.


Voraussetzungen

  • Apache Server (vorzugsweise) mit SSL-Unterstützung
  • PHP mit sqlite-, mbstring- und json- Unterstützung (beides mit aktueller Firmware DSM 3.0 - 1337 gegeben)
  • Weave Minimal Server Software - Download (Link im vorletzten Absatz“here“): http://tobyelliott.wordpress.com/2009/09/11/weave-minimal-server/
  • Zugang zur Diskstation mit SSH / Telnet (z.B. Putty) als root-user


SERVER einrichten

  • das heruntergeladene Archiv "weave_minimal.tgz" entpacken. (z.B. mit Midnight Commander auf der DS oder Total Commander auf Windows-PC)
  • das entpackte Verzeichnis in ein Verzeichnis ausserhalb des Web-Space kopieren welches im "open_basedir" bekannt gemacht ist.

im hier verwendeten Beispiel sollte es dann so aussehen:

> pwd
/usr/syno/synoman/weaveminiserver
> ll
total 372
drwxr-xr-x  2 root   root     4096 Oct 20 17:29 .
drwxr-xr-x 11 root   root     4096 Oct 13 13:32 ..
-rwxr-xr-x  1 root   root      656 Oct 12 18:31 README
-rwxr-xr-x  1 root   root     2694 Oct 12 18:31 create_user
-rwxr-xr-x  1 root   root    13800 Oct 12 18:31 index.php
-rwxr-xr-x  1 root   root     6558 Oct 12 18:31 weave_basic_object.php
-rwxr-xr-x  1 root   root    18386 Oct 12 18:31 weave_storage.php
>
  • auf das neu erstellte Verzeichnis Rechte setzen
> chmod 777 /usr/syno/synoman/weaveminiserver
  • die User-Apache-Konfiguration (/usr/syno/apache/conf/httpd.conf-user) im Modul Aliase um den Eintrag "Alias /weave /[Pfad zum Weave-Verzeichnis]/index.php" erweitern.
> vi /usr/syno/apache/conf/httpd.conf-user
.
.
<IfModule alias_module>
 #
 # Redirect: Allows you to tell clients about documents that used to
 # exist in your server's namespace, but do not anymore. The client
.
. 
 # need to provide a <Directory> section to allow access to
 # the filesystem path.

Alias /weave /usr/syno/synoman/weaveminiserver/index.php
.
.
  • Restart des User-Apache
> /usr/syno/etc.defaults/rc.d/S97apache-user.sh restart
/usr/syno/etc.defaults/rc.d/S97apache-user.sh: user httpd stopped
Start User Apache Server .....
/usr/syno/etc.defaults/rc.d/S97apache-user.sh: user httpd started
>

alternativ:

> /usr/syno/etc.defaults/rc.d/S97apache-user.sh stop
/usr/syno/etc.defaults/rc.d/S97apache-user.sh: user httpd stopped
> /usr/syno/etc.defaults/rc.d/S97apache-user.sh start
Start User Apache Server .....
/usr/syno/etc.defaults/rc.d/S97apache-user.sh: user httpd started
>
  • anschließend im Firefox-Browser in der Adressleiste folgende URL aufrufen
https://<servername>/weave/1.0/blah/info/collection
  • Es erscheint eine Login-Maske. Als Benutzername: "blah" und das Passwort: "garbage" eingeben. Das Login läuft auf Fehler. Danach kann man die Login-Maske schliessen. Im Ergebnis sollte jetzt im Weave-Verzeichnis die Datei "weave_db" angelegt worden sein.
> ll
total 372
drwxrwxrwx  2 root   root     4096 Oct 20 17:29 .
drwxr-xr-x 11 root   root     4096 Oct 13 13:32 ..
-rwxr-xr-x  1 root   root      656 Oct 12 18:31 README
-rwxr-xr-x  1 root   root     2694 Oct 12 18:31 create_user
-rwxr-xr-x  1 root   root    13800 Oct 12 18:31 index.php
-rwxr-xr-x  1 root   root     6558 Oct 12 18:31 weave_basic_object.php
-rw-r--r--  1 nobody nobody 314368 Oct 20 17:29 weave_db
-rwxr-xr-x  1 root   root    18386 Oct 12 18:31 weave_storage.php
>
  • Nun ist noch mit Hilfe des PHP-Script "create_user" im Weave-Verzeichnis ein Synchronisations-User einzurichten.
> pwd
/usr/syno/synoman/weaveminiserver
> php create_user
(c)reate, (d)elete or change (p)assword: "c"
Please enter username: "user"
Please enter password: "password"
>

Die Installation des Weave-Minimal-Server ist damit abgeschlossen. Es muß noch der Firefox Sync Client konfiguriert werden.

Firefox Sync Client konfigurieren

Bekannte Probleme