Install Etherpad on debian

 
 # apt-get install -yy abiword sudo git mariadb-server
 # curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
 # apt-get install -yy nodejs
 # cd /opt
 # git clone --branch master https://github.com/ether/etherpad-lite.git 
 # cd etherpad-lite 
 # export NODE_ENV=production; bin/run.sh --root

vim settings.json

“title”: “RadioPad”,
“userName”: true,
“userColor”: true,
“alwaysShowChat”: true,
“chatAndUsers”: true,
“lang”: “de”
“suppressErrorsInPadText” : true,
“abiword” : “/usr/bin/abiword”,
“automaticReconnectionTimeout” : 10
“requireAuthentication”: false,
“requireAuthorization”: true,

vim src/static/css/iframe_editor.css

#innerdocbody {
  font-size: 14px;
  line-height: 18px; 
  font-family: Verdana, ...
}

Load as admin (http://PAD.DOMAIN.TLD:9001/admin/) + add plugins:

activepads, adminpads, printer, mypads

vim etherpad.service

[Unit]
Description=Etherpad-lite, the collaborative editor.
After=syslog.target network.target

[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/opt/etherpad-lite
Environment=NODE_ENV=production
ExecStart=/usr/bin/nodejs /opt/etherpad-lite/node_modules/ep_etherpad-lite/node/server.js/n
Restart=always 
# use mysql plus a complete settings.json to avoid Service hold-off time over, scheduling restart.

[Install]
WantedBy=multi-user.target

systemctl start mariadb

mysql_secure_installation

echo "create database etherpad_lite_db;" | mysql -u root -p

echo "grant CREATE,ALTER,SELECT,INSERT,UPDATE,DELETE on `etherpad_lite_db`.* to 'etherpaduser'@'localhost' identified by
'zuppipass';" | mysql -u root -p

edit mysql stuff in settings.json

chown -R www-data:www-data /opt/etherpad-lite

systemctl start etherpad

systemctl enable etherpad

systemctl enable mariadb

mypads admin stuff:
http://PAD.DOMAIN.TLD:9001/mypads/index.html?/admin
avoid mail stuff.

 

Tune your start page:

/opt/etherpad-lite/src/templates/index.html

Tune your favicons:

src/static/favicon.ico

node_modules/ep_mypads/static/img/mypads_fav.ico

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.