From bf3707bef9aeaff7f8579d49d27212a24bc77f52 Mon Sep 17 00:00:00 2001 From: Bastien Lacoste Date: Tue, 5 Apr 2022 20:30:17 +0200 Subject: [PATCH] install / update --- INSTALL.md | 58 +++++++++++++++++++++++++++++++++--------------------- UPDATE.md | 5 ++++- 2 files changed, 40 insertions(+), 23 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index fe391de..93cce82 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -35,32 +35,38 @@ Add etherpad user ``` # adduser etherpad -# su etherpad && cd +# su - etherpad && cd ``` Install and run etherpad ``` -$ curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - +# curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - # apt install -y nodejs -$ git clone --branch master https://github.com/ether/etherpad-lite.git && -$ cd etherpad-lite && +$ git clone --branch master https://github.com/ether/etherpad-lite.git +$ cd etherpad-lite ``` Restore "etherpad/settings.json" in etherpad-lite Then try to start etherpad + `$ src/bin/run.sh` + Then CTRL-C Restore the run.sh script in home folder Setup the cron -`$ crontab -e` -and insert at the end of the file -@reboot /home/etherpad/run.sh -Start etherpad in a screen "pad" session -`$ screen -dmS pad ./run.sh` +`$ crontab -e` + +and insert at the end of the file + +`@reboot /home/etherpad/run.sh` + +Restore "run.sh" script helper to run Etherpad in screen znd run + +`~/run.sh` Install the proxy ================== @@ -84,27 +90,34 @@ Link available to enable Start nginx + `# systemctl enable --now nginx` Open firewall + `# ufw allow proto tcp port 80,443` Check the service is reachable at +``` http://pad.chalec.org https://pad.chalec.org +``` INSTALL etherpad plugins ======================== -adminpads2 -align -author_hover -delete_after_delay -delete_empty_pads -font_color -font_size -headings2 -spellcheck -table_of_contents + +Plugin list to install at https://pad.chalec.org/admin +- adminpads2 +- align +- author_hover +- delete_after_delay +- delete_empty_pads +- font_color +- font_size +- headings2 +- spellcheck +- table_of_contents + Chalec infos ============ @@ -116,14 +129,15 @@ Intall Java Add to admin group to read logs ``` # adduser statoolinfos admin -# su statoolinfos -# cd +# su - statoolinfos +$ cd ``` Download Statoolinfos jar at https://forge.devinsy.fr/devinsy/statoolinfos/releases Uncompress in /home/statool- link versioned folder to generic one + `$ ln -s statoolinfos- statoolinfos` Restore statool config @@ -134,4 +148,4 @@ Restore statool config `$ crontab -e` -45 * * * * /home/statoolinfos/statoolinfos/statoolinfos.sh probe -previousday /home/statoolinfos/statoolinfos/conf/pad.chalec.org.conf >> /home/statoolinfos/statoolinfos.log +`45 * * * * /home/statoolinfos/statoolinfos/statoolinfos.sh probe -previousday /home/statoolinfos/statoolinfos/conf/pad.chalec.org.conf >> /home/statoolinfos/statoolinfos.log` diff --git a/UPDATE.md b/UPDATE.md index 9a05672..83feba1 100644 --- a/UPDATE.md +++ b/UPDATE.md @@ -1,16 +1,19 @@ Etherpad ======== +``` # su etherpad && cd $ cd etherpad-lite $ git pull $ git rebase +``` Plugins +======= https://pad.chalec.org/admin npm === -# npm -g update npm +`# npm -g update npm`