install / update

This commit is contained in:
Bastien Lacoste 2022-04-05 20:30:17 +02:00 committed by admin666
parent 9f3226d8e4
commit bf3707bef9
2 changed files with 40 additions and 23 deletions

View File

@ -35,32 +35,38 @@ Add etherpad user
``` ```
# adduser etherpad # adduser etherpad
# su etherpad && cd # su - etherpad && cd
``` ```
Install and run etherpad 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 # apt install -y nodejs
$ git clone --branch master https://github.com/ether/etherpad-lite.git && $ git clone --branch master https://github.com/ether/etherpad-lite.git
$ cd etherpad-lite && $ cd etherpad-lite
``` ```
Restore "etherpad/settings.json" in etherpad-lite Restore "etherpad/settings.json" in etherpad-lite
Then try to start etherpad Then try to start etherpad
`$ src/bin/run.sh` `$ src/bin/run.sh`
Then CTRL-C Then CTRL-C
Restore the run.sh script in home folder Restore the run.sh script in home folder
Setup the cron 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 `$ crontab -e`
`$ screen -dmS pad ./run.sh`
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 Install the proxy
================== ==================
@ -84,27 +90,34 @@ Link available to enable
Start nginx Start nginx
`# systemctl enable --now nginx` `# systemctl enable --now nginx`
Open firewall Open firewall
`# ufw allow proto tcp port 80,443` `# ufw allow proto tcp port 80,443`
Check the service is reachable at Check the service is reachable at
```
http://pad.chalec.org http://pad.chalec.org
https://pad.chalec.org https://pad.chalec.org
```
INSTALL etherpad plugins INSTALL etherpad plugins
======================== ========================
adminpads2
align Plugin list to install at https://pad.chalec.org/admin
author_hover - adminpads2
delete_after_delay - align
delete_empty_pads - author_hover
font_color - delete_after_delay
font_size - delete_empty_pads
headings2 - font_color
spellcheck - font_size
table_of_contents - headings2
- spellcheck
- table_of_contents
Chalec infos Chalec infos
============ ============
@ -116,14 +129,15 @@ Intall Java
Add to admin group to read logs Add to admin group to read logs
``` ```
# adduser statoolinfos admin # adduser statoolinfos admin
# su statoolinfos # su - statoolinfos
# cd $ cd
``` ```
Download Statoolinfos jar at https://forge.devinsy.fr/devinsy/statoolinfos/releases Download Statoolinfos jar at https://forge.devinsy.fr/devinsy/statoolinfos/releases
Uncompress in /home/statool-<version> Uncompress in /home/statool-<version>
link versioned folder to generic one link versioned folder to generic one
`$ ln -s statoolinfos-<verion> statoolinfos` `$ ln -s statoolinfos-<verion> statoolinfos`
Restore statool config Restore statool config
@ -134,4 +148,4 @@ Restore statool config
`$ crontab -e` `$ 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`

View File

@ -1,16 +1,19 @@
Etherpad Etherpad
======== ========
```
# su etherpad && cd # su etherpad && cd
$ cd etherpad-lite $ cd etherpad-lite
$ git pull $ git pull
$ git rebase $ git rebase
```
Plugins Plugins
=======
https://pad.chalec.org/admin https://pad.chalec.org/admin
npm npm
=== ===
# npm -g update npm `# npm -g update npm`