Etherpad Lite (Debian): Unterschied zwischen den Versionen

Aus MattWiki
Zeile 13: Zeile 13:


  # adduser --system --group etherpad
  # adduser --system --group etherpad
Alternativ user mit abweichendem Homeverzeichnis erstellen
# adduser --system --home=/srv/etherpad --group etherpad-lite


Repository von git clonen
Repository von git clonen

Version vom 8. Mai 2016, 14:25 Uhr

Anleitung für Etherpad Lite auf Debian 8 mit systemd

Installation Etherpad Lite 1.6.0

Softwarevoraussetzungen installieren:

# apt-get install gzip git curl python libssl-dev nodejs

Datenbanksystem installieren:

# apt-get install mysql-server mysql-client

System-User etherpad erstellen

# adduser --system --group etherpad

Repository von git clonen

# git clone git://github.com/ether/etherpad-lite.git

Einrichtung

# cd /home/etherpad/etherpad-lite
# emacs settings.json

Datenbankname und Verbindungsdaten eingeben

Installation als Dienst

Ensure the etherpad-lite user has full access to the etherpad-lite source.

Create a new file etherpad-lite.service in /etc/systemd/system/

[Unit]
Description=etherpad-lite (real-time collaborative document editing)
After=syslog.target network.target 

[Service]
Type=simple
User=etherpad-lite
Group=etherpad-lite
ExecStart=/srv/etherpad-lite/bin/run.sh

[Install]
WantedBy=multi-user.target


Run

systemctl enable etherpad-lite 

to enable the service on boot.


Dienststeuerung

systemctl start etherpad-lite         # start the service

NB: might need to change "/srv/etherpad-lite/bin/run.sh" with "/bin/sh /srv/etherpad-lite/bin/run.sh" according to configuration