Etherpad es un editor colaborativo web que permite editar el mismo documento en tiempo real. También incluye chat, por lo que resulta útil para trabajo en equipo y notas rápidas. Esta guía lo instala en Ubuntu 18.04.
Requisitos
- VPS Ubuntu 18.04.
- Node.js.
- Root o sudo.
1. Actualiza el sistema
sudo apt-get update
sudo apt-get upgrade
2. Instala paquetes necesarios
sudo apt install libssl-dev pkg-config gcc g++ make build-essential
cd /opt
sudo wget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-x64.tar.xz
sudo tar xJf node-v10.15.3-linux-x64.tar.xz
sudo mkdir -p /opt/nodejs
sudo mv node-v10.15.3-linux-x64/* /opt/nodejs/
3. Instala MySQL
sudo apt-get install mysql-server mysql-client
sudo mysql -u root -p
CREATE DATABASE etherpad_db;
GRANT ALL PRIVILEGES ON etherpad_db.* TO 'etherpad'@'localhost' IDENTIFIED BY 'contraseña_segura';
FLUSH PRIVILEGES;
exit;
4. Crea usuario Etherpad
sudo adduser --home /opt/etherpad --shell /bin/bash etherpad
sudo install -d -m 755 -o etherpad -g etherpad /opt/etherpad
sudo su - etherpad
echo "PATH=$PATH:/opt/nodejs/bin" >> ~/.profile
5. Instala y configura Etherpad
git clone git://github.com/ether/etherpad-lite.git ~/etherpad-lite
cd /opt/etherpad/etherpad-lite/
cp settings.json.template settings.json
nano settings.json
Configura bind IP 127.0.0.1, trustProxy, MySQL y contraseña de administrador.
~/etherpad-lite/bin/installDeps.sh
~/etherpad-lite/bin/run.sh
Etherpad estará disponible en https://SERVER_IP:9001/.
6. Proxy inverso Apache
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo systemctl restart apache2
7. Servicio systemd
Crea etherpad.service para iniciar automáticamente.
sudo systemctl daemon-reload
sudo systemctl start etherpad.service
sudo systemctl enable etherpad.service