Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dienste:bytecluster0002:pad [02.01.2021 14:44] – Plugin mape2kdienste:bytecluster0002:pad [04.11.2026 14:20] (aktuell) – Fix borgmatic mape2k
Zeile 27: Zeile 27:
   - Benutzer anlegen   - Benutzer anlegen
     * **sudo useradd -m -c "Etherpad" etherpad -s /bin/bash**     * **sudo useradd -m -c "Etherpad" etherpad -s /bin/bash**
-  - NodeJS installieren +  - NodeJS und npm installieren 
-    * **curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -** +    * **curl -sL https://deb.nodesource.com/setup_24.x | sudo -E bash -** 
-    * **sudo apt-get install nodejs**+    * **sudo apt-get install nodejs npm** 
 +  - pnpm installieren 
 +    * **sudo npm install -g pnpm** 
   - Etherpad-Lite installieren   - Etherpad-Lite installieren
     * **sudo mkdir /opt/etherpad-lite**     * **sudo mkdir /opt/etherpad-lite**
     * **sudo chown etherpad:etherpad /opt/etherpad-lite**     * **sudo chown etherpad:etherpad /opt/etherpad-lite**
-    * **sudo -u etherpad git clone --branch master https://github.com/ether/etherpad-lite.git /opt/etherpad-lite**+    * **sudo -u etherpad git clone --branch master https://github.com/ether/etherpad.git /opt/etherpad-lite**
   - Etherpad-Standard-Konfiguration kopieren   - Etherpad-Standard-Konfiguration kopieren
     * **sudo -u etherpad cp /opt/etherpad-lite/settings.json.template /opt/etherpad-lite/settings.json**     * **sudo -u etherpad cp /opt/etherpad-lite/settings.json.template /opt/etherpad-lite/settings.json**
Zeile 64: Zeile 66:
 </file> </file>
   - Etherpad-Abhängigkeiten updaten   - Etherpad-Abhängigkeiten updaten
-    * **sudo -u etherpad /opt/etherpad-lite/bin/installDeps.sh**+    * **sudo su - etherpad**   
 +    * **cd /opt/etherpad-lite** 
 +    * **pnpm i** 
 +    * **pnpm run build:etherpad** 
 +    * **exit**
   - Plugins installieren   - Plugins installieren
     * **sudo su - etherpad**       * **sudo su - etherpad**  
     * **cd /opt/etherpad-lite**     * **cd /opt/etherpad-lite**
-    * **npm install ep_pad-lister**+    * **pnpm run plugins i ep_pad-lister**
     * **exit**     * **exit**
-  - systemd Unit einrichten<file|/etc/systemd/system/etherpad-lite.service>+  - systemd Unit einrichten<file|/etc/systemd/system/etherpad.service> 
 [Unit] [Unit]
-Description=Etherpad-lite, the collaborative editor. +Description=Etherpad - real-time collaborative editor 
-After=syslog.target network.target+Documentation=https://etherpad.org https://github.com/ether/etherpad 
 +After=network-online.target 
 +Wants=network-online.target
  
 [Service] [Service]
Zeile 81: Zeile 90:
 WorkingDirectory=/opt/etherpad-lite WorkingDirectory=/opt/etherpad-lite
 Environment=NODE_ENV=production Environment=NODE_ENV=production
-ExecStart=/usr/bin/nodejs --experimental-worker /opt/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js +ExecStart=pnpm run prod 
-# use mysql plus a complete settings.json to avoid Service hold-off time over, scheduling restart. +Restart=on-failure 
-Restart=always+RestartSec=5s 
 +TimeoutStopSec=20s 
 + 
 +StandardOutput=journal 
 +StandardError=journal 
 +SyslogIdentifier=etherpad 
 + 
 +# --- Sandboxing --------------------------------------------------------- 
 +NoNewPrivileges=true 
 +ProtectSystem=strict 
 +PrivateTmp=true 
 +PrivateDevices=true 
 +ProtectKernelTunables=true 
 +ProtectKernelModules=true 
 +ProtectKernelLogs=true 
 +ProtectControlGroups=true 
 +ProtectHostname=true 
 +ProtectClock=true 
 +RestrictRealtime=true 
 +RestrictSUIDSGID=true 
 +RestrictNamespaces=true 
 +LockPersonality=true 
 +# Node's JIT needs W+X mappings 
 +MemoryDenyWriteExecute=false 
 +SystemCallArchitectures=native 
 +RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK 
 +UMask=0027 
 +ReadWritePaths=/opt/etherpad-lite 
 + 
 +LimitNOFILE=65536
  
 [Install] [Install]
Zeile 90: Zeile 128:
   - systemd unit einlesen, aktivieren und starten   - systemd unit einlesen, aktivieren und starten
     * **sudo systemctl daemon-reload**     * **sudo systemctl daemon-reload**
-    * **<nowiki>sudo systemctl enable --now etherpad-lite.service</nowiki>**+    * **<nowiki>sudo systemctl enable --now etherpad.service</nowiki>**
  
 ==== Backup mit Borgmatic ==== ==== Backup mit Borgmatic ====
Zeile 97: Zeile 135:
   - Konfiguration <file|/etc/borgmatic/config.yaml>   - Konfiguration <file|/etc/borgmatic/config.yaml>
 ... ...
-location: +source_directories: 
-    # List of source directories to backup (required). Globs and +  - /etc 
-    # tildes are expanded. +  - /home 
-    source_directories: +  - /opt 
-        - /etc +  - /root 
-        - /home +  - /var/log
-        - /opt +
-        - /root +
-        - /var/log+
 ... ...
 </file> </file>
  • dienste/bytecluster0002/pad.1609598669.txt.gz
  • Zuletzt geändert: 02.01.2021 14:44
  • von mape2k