Update INSTALL.md
This commit is contained in:
parent
a8af817f8e
commit
68fb3b4751
37
INSTALL.md
37
INSTALL.md
|
@ -1,60 +1,72 @@
|
||||||
Initial requirements
|
Initial requirements
|
||||||
====================
|
====================
|
||||||
|
|
||||||
|
```
|
||||||
# apt install screen
|
# apt install screen
|
||||||
# adduser etherpad
|
# adduser etherpad
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Install Etherpad-lite
|
Install Etherpad-lite
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
Log as etherpad user
|
Log as etherpad user
|
||||||
# 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
|
`$ crontab -e`
|
||||||
and insert at the end of the file
|
and insert at the end of the file
|
||||||
@reboot /home/etherpad/run.sh
|
@reboot /home/etherpad/run.sh
|
||||||
|
|
||||||
Start etherpad in a screen "pad" session
|
Start etherpad in a screen "pad" session
|
||||||
$ screen -dmS pad ./run.sh
|
`$ screen -dmS pad ./run.sh`
|
||||||
|
|
||||||
Install the proxy
|
Install the proxy
|
||||||
==================
|
==================
|
||||||
Restore html content into /var/www
|
Restore html content into /var/www
|
||||||
|
|
||||||
Install nginx
|
Install nginx
|
||||||
|
```
|
||||||
# apt install nginx
|
# apt install nginx
|
||||||
# mkdir /var/log/nginx/pad.chalec.org
|
# mkdir /var/log/nginx/pad.chalec.org
|
||||||
# chown www-data:www-data /var/log/nginx/pad.chalec.org
|
# chown www-data:www-data /var/log/nginx/pad.chalec.org
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Setup the config file from nginx/sites-available/etherpad in /etc/nginx/sites-available/etherpad
|
Setup the config file from nginx/sites-available/etherpad in /etc/nginx/sites-available/etherpad
|
||||||
|
|
||||||
Link available to enable
|
Link available to enable
|
||||||
|
```
|
||||||
# cd /etc/nginx/sites-enabled
|
# cd /etc/nginx/sites-enabled
|
||||||
# ln -s ../sites-available .
|
# ln -s ../sites-available .
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
@ -74,25 +86,28 @@ table_of_contents
|
||||||
Chalec infos
|
Chalec infos
|
||||||
============
|
============
|
||||||
Intall Java
|
Intall Java
|
||||||
# apt install openjdk-jre-headless
|
`# apt install openjdk-jre-headless`
|
||||||
|
|
||||||
# adduser statoolinfos
|
`# adduser statoolinfos`
|
||||||
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
|
Download Statoolinfos jar at
|
||||||
https://forge.devinsy.fr/devinsy/statoolinfos/releases
|
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
|
||||||
(/var/www/html/.well-known/statoolinfos already restored in etherpad install)
|
(/var/www/html/.well-known/statoolinfos already restored in etherpad install)
|
||||||
|
|
||||||
/home/statoolinfos/statoolinfos/statoolinfos.sh probe -full /hhome/statoolinfos/statoolinfos/conf/pad.chalec.org.conf
|
/home/statoolinfos/statoolinfos/statoolinfos.sh probe -full /hhome/statoolinfos/statoolinfos/conf/pad.chalec.org.conf
|
||||||
|
|
||||||
$ 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
|
Loading…
Reference in New Issue