Ajustments to 'README.install'.
This commit is contained in:
parent
4478ec4dc4
commit
28f65758fa
186
README.install
186
README.install
@ -4,17 +4,30 @@
|
||||
|
||||
# Add repository for node.js 10.x
|
||||
#
|
||||
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
||||
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||
|
||||
|
||||
# Install nodejs
|
||||
#
|
||||
apt install -y nodejs
|
||||
|
||||
|
||||
# Install abiword
|
||||
#
|
||||
# Abiword is needed to get advanced import/export features of pads. Setting
|
||||
# it to null disables Abiword and will only allow plain text and HTML
|
||||
# import/exports.
|
||||
#
|
||||
apt-get install abiword
|
||||
|
||||
# Create user/group etherpad
|
||||
#
|
||||
_etherpad_user="etherpad"
|
||||
adduser --system --home=/var/www/etherpad/ --group $_etherpad_user
|
||||
|
||||
cp /root/{.bashrc,.profile,.vimrc} /var/www/etherpad/
|
||||
chown -R etherpad:etherpad /var/www/etherpad/
|
||||
|
||||
# ---
|
||||
# As user 'etherpad'
|
||||
# ---
|
||||
@ -32,9 +45,94 @@ git clone --branch master https://github.com/ether/etherpad-lite.git
|
||||
|
||||
# Initial run is needed here!
|
||||
#
|
||||
# Type CTRL + 'c' to leave
|
||||
#
|
||||
cd etherpad-lite
|
||||
bin/run.sh
|
||||
|
||||
# <CTRL> + c
|
||||
|
||||
|
||||
# Install plugins
|
||||
#
|
||||
# does NOT WORK this time (etherpad version 1.8.7)
|
||||
# ep_delete_after_delay \
|
||||
#
|
||||
npm install \
|
||||
ep_adminpads2 \
|
||||
ep_headings2 \
|
||||
ep_delete_empty_pads \
|
||||
ep_fileupload \
|
||||
ep_markdown \
|
||||
ep_comments_page \
|
||||
ep_align \
|
||||
ep_font_color \
|
||||
ep_font_size \
|
||||
ep_print \
|
||||
ep_set_title_on_pad \
|
||||
ep_table_of_contents \
|
||||
ep_embedded_hyperlinks2
|
||||
|
||||
npm audit fix
|
||||
|
||||
# Edit settings file 'vim /var/www/etherpad/etherpad-lite/settings.json'
|
||||
#
|
||||
# 1.) enable abiword
|
||||
# change
|
||||
# "abiword": null,
|
||||
# to
|
||||
# "abiword": "/usr/bin/abiword",
|
||||
#
|
||||
# 2.) Uncomment section '"users": {' and set password to make admin settings page
|
||||
# available - https://${FQHN}/admin
|
||||
#
|
||||
# 3.) To suppress these warning messages change 'suppressErrorsInPadText' to true
|
||||
#
|
||||
vim /var/www/etherpad/etherpad-lite/settings.json
|
||||
|
||||
|
||||
|
||||
# Plugin delete_after_delay
|
||||
#
|
||||
# Add foolowing code to settings.json
|
||||
#
|
||||
# maybe after
|
||||
#
|
||||
# "loglevel": "INFO",
|
||||
#
|
||||
# add:
|
||||
#
|
||||
# /*
|
||||
# * Automatically deletes pads after a configured delay
|
||||
# *
|
||||
# * delay: (mandatory) delay in seconds with no edition of the pad before deletion. You can't put
|
||||
# * 7*86400 for a week, you have to put 604800.
|
||||
# *
|
||||
# * loop: boolean, tells if you want to use deletion loops (true) or not (false) (if you use an
|
||||
# * external script for example). Default is true.
|
||||
# *
|
||||
# * loopDelay delay: in seconds between deletion loops. Deletion loop will check all pads to see if
|
||||
# * they have to be deleted. You can't put 60*60 for a hour, you have to put 3600.
|
||||
# * Default is one hour.
|
||||
# *
|
||||
# * deleteAtStart: boolean, tells if you want to start a deletion loop at Etherpad startup. Default
|
||||
# * is true.
|
||||
# *
|
||||
# * text: is the text that will replace the deleted pad's content. Default is what is in the example
|
||||
# * above.
|
||||
# */
|
||||
# "ep_delete_after_delay": {
|
||||
# "delay": 86400, // one day, in seconds
|
||||
# "loop": true,
|
||||
# "loopDelay": 3600, // one hour, in seconds
|
||||
# "deleteAtStart": true,
|
||||
# "text": "The content of this pad has been deleted since it was older than the configured delay."
|
||||
# }, // ep_delete_after_delay
|
||||
#
|
||||
vim /var/www/etherpad/etherpad-lite/settings.json
|
||||
|
||||
|
||||
|
||||
# Exit from user etherpad
|
||||
#
|
||||
exit
|
||||
@ -170,89 +268,3 @@ ln -s ../sites-available/${FQHN}.conf /etc/nginx/sites-enabled/
|
||||
# Restart NGINX servive
|
||||
#
|
||||
systemctl restart nginx
|
||||
|
||||
|
||||
# -----
|
||||
# Configure etherpad
|
||||
# ----
|
||||
|
||||
# Install abiword
|
||||
#
|
||||
# Abiword is needed to get advanced import/export features of pads. Setting
|
||||
# it to null disables Abiword and will only allow plain text and HTML
|
||||
# import/exports.
|
||||
#
|
||||
apt-get install abiword
|
||||
|
||||
cp -a /var/www/etherpad/etherpad-lite/settings.json /var/www/etherpad/etherpad-lite/settings.json.ORIG
|
||||
|
||||
# Edit settings file 'vim /var/www/etherpad/etherpad-lite/settings.json'
|
||||
#
|
||||
# 1.) enable abiword
|
||||
# change
|
||||
# "abiword": null,
|
||||
# to
|
||||
# "abiword": "/usr/bin/abiword",
|
||||
#
|
||||
# 2.) Uncomment section '"users": {' and set password to make admin settings page
|
||||
# available - https://${FQHN}/admin
|
||||
#
|
||||
# 3.) To suppress these warning messages change 'suppressErrorsInPadText' to true
|
||||
#
|
||||
vim /var/www/etherpad/etherpad-lite/settings.json
|
||||
|
||||
# Install the foollowing plugins via admin page
|
||||
#
|
||||
# - adminpads2
|
||||
# - delete_after_delay
|
||||
# - delete_empty_pads
|
||||
# - fileupload
|
||||
# - font_color
|
||||
# - font_family
|
||||
# - font_size
|
||||
# - headings2
|
||||
# - padlist2
|
||||
# - printer
|
||||
# - table_of_contents
|
||||
# - set_title_on_pad
|
||||
# - subscript_and_superscript
|
||||
|
||||
|
||||
# Plugin delete_after_delay
|
||||
#
|
||||
# Add foolowing code to settings.json
|
||||
#
|
||||
# maybe after
|
||||
#
|
||||
# "loglevel": "INFO",
|
||||
#
|
||||
# add:
|
||||
#
|
||||
# /*
|
||||
# * Automatically deletes pads after a configured delay
|
||||
# *
|
||||
# * delay: (mandatory) delay in seconds with no edition of the pad before deletion. You can't put
|
||||
# * 7*86400 for a week, you have to put 604800.
|
||||
# *
|
||||
# * loop: boolean, tells if you want to use deletion loops (true) or not (false) (if you use an
|
||||
# * external script for example). Default is true.
|
||||
# *
|
||||
# * loopDelay delay: in seconds between deletion loops. Deletion loop will check all pads to see if
|
||||
# * they have to be deleted. You can't put 60*60 for a hour, you have to put 3600.
|
||||
# * Default is one hour.
|
||||
# *
|
||||
# * deleteAtStart: boolean, tells if you want to start a deletion loop at Etherpad startup. Default
|
||||
# * is true.
|
||||
# *
|
||||
# * text: is the text that will replace the deleted pad's content. Default is what is in the example
|
||||
# * above.
|
||||
# */
|
||||
# "ep_delete_after_delay": {
|
||||
# "delay": 86400, // one day, in seconds
|
||||
# "loop": true,
|
||||
# "loopDelay": 3600, // one hour, in seconds
|
||||
# "deleteAtStart": true,
|
||||
# "text": "The content of this pad has been deleted since it was older than the configured delay."
|
||||
# }, // ep_delete_after_delay
|
||||
#
|
||||
vim /var/www/etherpad/etherpad-lite/settings.json
|
||||
|
Loading…
Reference in New Issue
Block a user