synology
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
synology [2014/06/05 23:19] – olli | synology [2022/02/05 09:55] – [GIT-Server (mit gitolite)] olli | ||
---|---|---|---|
Zeile 2: | Zeile 2: | ||
NAS auf Basis von Linux | NAS auf Basis von Linux | ||
- | ===== IPKG ===== | + | ===== Entware===== |
+ | <WRAP info round> | ||
+ | '' | ||
+ | </ | ||
==== Installation ==== | ==== Installation ==== | ||
- | * Per SSH als root einloggen | + | * Per SSH einloggen |
- | * CPU identifizieren: <code bash>cat /proc/cpuinfo | grep cpu</ | + | * zu '' |
+ | * permanentes Verzeichnis erstellen: <code bash>mkdir -p /volume1/@Entware/ | ||
+ | * <WRAP important round> | ||
+ | mkdir /opt | ||
+ | mount -o bind "/ | ||
+ | * CPU-Typ auszeigen: <code bash> | ||
* Bootstrap-Skript nach CPU-Typ auswählen: | * Bootstrap-Skript nach CPU-Typ auswählen: | ||
^CPU^ Bootstrap Skript^ | ^CPU^ Bootstrap Skript^ | ||
- | |ARM (armv5tejl)| http://ipkg.nslu2-linux.org/feeds/optware/syno-x07/cross/unstable/ | + | |armv8 (aarch64) Realtek RTD129x| <code bash> |
- | |PowerPC (ppc_6xx)| http://ipkg.nslu2-linux.org/feeds/optware/ds101g/cross/unstable/ | + | |armv5|<code bash> |
- | |PowerPC (ppc_85xx, e500v?)| http://ipkg.nslu2-linux.org/feeds/optware/syno-e500/cross/unstable/ | + | |armv7|<code bash> |
- | |Marvell Kirkwood 88F6281, 88F6282, 88FR131 (ARMv5TE Feroceon)| http://ipkg.nslu2-linux.org/feeds/ | + | |x64|<code bash> |
- | |Intel Atom| http://ipkg.nslu2-linux.org/feeds/optware/syno-i686/ | + | |
- | * Bootstrap-Skript für passende Plattform herunterladen, | + | |
- | wget http:// | + | * Unter '' |
- | | + | |
- | | + | |
- | PATH=/sbin:/ | + | |
- | export PATH</ | + | Vor-Aufgabe: leer lassen</ |
- | PATH=/ | + | * Unter '' |
- | export PATH | + | |
- | </ | + | |
- | In / | + | |
- | * Optware-Verzeichnis umounten: <code bash> | + | |
- | * Symbolischen Link anlegen: <code bash> | + | |
- | ln -s / | + | |
- | * optware.sh unter / | + | |
#!/bin/sh | #!/bin/sh | ||
- | # | ||
- | # Optware setup | ||
- | # Alternatives Optware Startup und Shutdown Script #/ | ||
- | # | ||
- | case $1 in | ||
- | start) | ||
- | [ ! -h /opt -a ! -d /opt ] && ln -s / | ||
- | for i in / | ||
- | # | ||
- | # Ignore dangling symlinks (if any). | ||
- | [ ! -f " | ||
- | # | ||
- | case " | ||
- | *.sh) | ||
- | # Source shell script for speed. | ||
- | ( | ||
- | trap - INT QUIT TSTP | ||
- | set start | ||
- | . $i | ||
- | ) | ||
- | ;; | ||
- | *) | ||
- | # No sh extension, so fork subprocess. | ||
- | $i start | ||
- | ;; | ||
- | esac | ||
- | done | ||
- | ;; | ||
- | # | ||
- | stop) | ||
- | # | ||
- | for i in / | ||
- | # | ||
- | # Ignore dangling symlinks (if any). | ||
- | [ ! -f " | ||
- | # | ||
- | case " | ||
- | *.sh) | ||
- | # Source shell script for speed. | ||
- | ( | ||
- | trap - INT QUIT TSTP | ||
- | set stop | ||
- | . $i | ||
- | ) | ||
- | ;; | ||
- | *) | ||
- | # No sh extension, so fork subprocess. | ||
- | $i stop ;; | ||
- | esac | ||
- | done | ||
- | ;; | ||
- | # | ||
- | *) | ||
- | echo " | ||
- | ;; | ||
- | esac | ||
- | # | ||
- | # End | ||
- | </ | ||
- | * Skript ausführbar machen: <code bash> | ||
- | === Links === | + | # Mount/Start Entware |
- | [[http:// | + | mkdir -p /opt |
+ | mount -o bind "/volume1/ | ||
+ | / | ||
- | ==== nützliche Pakete ==== | + | # Add Entware Profile in Global Profile |
- | <code bash> | + | if grep |
- | ipkg install nano git core-utils | + | echo " |
- | </code> | + | else |
+ | echo " | ||
+ | cat >> / | ||
- | ===== Synology als Scanserver ===== | + | # Load Entware Profile |
- | * SANE installieren: | + | . /opt/etc/profile |
- | ipkg install sane-backends libusb inetutils libieee1284</ | + | EOF |
- | * SANE konfigurieren\\ z.B. [[#scanner_acer_620u_fuer_diskstation|Acer 620U]] | + | fi |
- | * eigenes Subnetz, bzw. Clients, die scannen dürfen in /opt/etc/sane.d/ | + | |
- | * / | + | |
- | sane-port | + | |
- | </ | + | |
- | * / | + | |
- | sane-port | + | |
- | </ | + | |
- | * inetd neustarten< | + | |
- | / | + | |
</ | </ | ||
- | ==== Debugging ==== | ||
- | * saned manuell (ohne inetd) mit Debuggingoutput starten:< | ||
- | saned -d5 | ||
- | </ | ||
- | * per Telnet auf Port 6566 verbinden | ||
+ | === Links === | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
- | + | ==== nützliche Pakete | |
- | + | < | |
- | ===== Scanner Acer 620U für Diskstation===== | + | opkg install nano git |
- | Die Konfiguration ist ähnlich wie [[sane# | + | |
- | * Firmwaredatei " | + | |
- | * Firmware nach / | + | |
- | * nano / | + | |
- | firmware / | + | |
</ | </ | ||
===== Unison ===== | ===== Unison ===== | ||
- | [[Unison]] ist nicht über ipkg erhältlich, | + | [[Unison]] ist nicht über entware |
+ | Unison ist anspruchsvoll, | ||
- | ==== ohne ocamlopt ==== | + | |
- | | + | * [[https:// |
- | ipkg install | + | |
- | * Unison Sourcen herunterladen und entpacken z.B. nach / | + | |
* Kompilieren: | * Kompilieren: | ||
- | make UISTYLE=text NATIVE=false | + | make UISTYLE=text NATIVE=true |
</ | </ | ||
+ | * Executable '' | ||
+ | |||
+ | <WRAP info round> | ||
+ | '' | ||
+ | Dies kann zu '' | ||
+ | Auch PowerPC e500v2 ist betroffen (mindestens in der Kombination Unison 2.51.5 kompiliert mit Ocaml 4.12.0). | ||
+ | Als Abhilfe kann man auf diesen Architekturen dann mit '' | ||
+ | </ | ||
- | ==== mit ocamlopt ==== | ||
- | * Tools installieren< | ||
- | ipkg install make gcc</ | ||
- | * [[synology# | ||
- | * Unison Sourcen herunterladen und entpacken z.B. nach / | ||
- | * Kompilieren: | ||
- | make UISTYLE=text NATIVE=true | ||
- | </ | ||
===== Ocaml ===== | ===== Ocaml ===== | ||
- | * ipkg-Paket deinstallieren, | ||
- | ipkg remove ocaml</ | ||
* Tools installieren< | * Tools installieren< | ||
- | ipkg install gcc make</ | + | opkg install gcc make</ |
- | * ocaml sourcen | + | * [[https:// |
* Konfigurieren: | * Konfigurieren: | ||
- | ./configure --prefix=/ | + | ./configure --prefix / |
* Kompilieren: | * Kompilieren: | ||
make world.opt</ | make world.opt</ | ||
- | * Installieren <code bash> | + | * Installieren |
- | sudo make install</ | + | make install</ |
- | ===== GIT-Server | + | ===== rsync ===== |
- | * Git installieren: | + | Damit das NAS als Zielserver für rsync benutzt werden kann, muss seit DSM 5.1 oder 5.2 unter Hauptmenü -> Datensicherung & Replikation -> Sicherungsdienste -> Netzwerksicherungsdienst aktivieren gesetzt sein. |
- | ipkg install git | + | Andernfalls erscheint der Fehler |
+ | < | ||
+ | Permission denied, please try again. | ||
+ | rsync: connection unexpectedly closed (0 bytes received so far) [sender] | ||
+ | rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.0] | ||
</ | </ | ||
- | | + | |
- | * SSH-Zugang für Benutzer | + | Unter DSM 7 liegt diese Einstellung unter Systemsteuerung -> Dateidienste -> rsync. |
- | * symbolische Links anlegen (als root)< | + | |
+ | ===== screen ===== | ||
+ | [[screen]] kann über '' | ||
+ | |||
+ | ==== Fehler " | ||
+ | Die Ursache für die Fehlermeldung '' | ||
+ | | ||
+ | * das Paket '' | ||
+ | |||
+ | ===== GIT-Server (mit gitolite)===== | ||
+ | <WRAP info round> | ||
+ | * Benutzer '' | ||
+ | | ||
+ | * Möglichkeit 1: das Paket "Git Server" | ||
+ | * Möglichkeit 2: Git über opkg installieren (Vorteil: manchmal aktuellere Git-Version verfügbar, muss über opkg aktualisiert werden), dazu | ||
+ | * dazu (als root)< | ||
+ | opkg install git | ||
+ | </ | ||
+ | | ||
ln -s / | ln -s / | ||
</ | </ | ||
Zeile 177: | Zeile 124: | ||
ssh-keygen | ssh-keygen | ||
</ | </ | ||
- | * Key .ssh/ | + | * Key .ssh/ |
* Installation starten (als Benutzer git)< | * Installation starten (als Benutzer git)< | ||
git clone git:// | git clone git:// | ||
Zeile 185: | Zeile 132: | ||
</ | </ | ||
- | [[http:// | + | * [[http:// |
Comprehensive Guide to Git and Gitolite on a Synology DiskStation (via Wayback Machine)]] | Comprehensive Guide to Git and Gitolite on a Synology DiskStation (via Wayback Machine)]] | ||
Zeile 196: | Zeile 143: | ||
reboot | reboot | ||
</ | </ | ||
+ | |||
+ | ===== Synology als Scanserver ===== | ||
+ | <WRAP alert round> | ||
+ | Die Synology wird von mir nicht mehr als Scan-Server verwendet und daher wird dieser Abschnitt nicht mehr aktualisiert. Der folgende Stand beschreibt das Vorgehen für das mittlerweile obsolete '' | ||
+ | * SANE installieren: | ||
+ | ipkg install sane-backends libusb inetutils libieee1284</ | ||
+ | * SANE konfigurieren\\ z.B. [[# | ||
+ | * eigenes Subnetz, bzw. Clients, die scannen dürfen in / | ||
+ | * / | ||
+ | sane-port | ||
+ | </ | ||
+ | * / | ||
+ | sane-port | ||
+ | </ | ||
+ | * inetd neustarten< | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | ==== Debugging ==== | ||
+ | * saned manuell (ohne inetd) mit Debuggingoutput starten:< | ||
+ | saned -d5 | ||
+ | </ | ||
+ | * per Telnet auf Port 6566 verbinden | ||
+ | |||
+ | ==== Scanner Acer 620U für Diskstation==== | ||
+ | Die Konfiguration ist ähnlich wie [[sane# | ||
+ | * Firmwaredatei " | ||
+ | * Firmware nach ''/ | ||
+ | * ''/ | ||
+ | firmware / | ||
+ | </ | ||
+ | |||
+ | ===== Links ===== | ||
+ | * [[https:// | ||
synology.txt · Zuletzt geändert: 2023/02/11 11:38 von olli