Linux system deployment Etherpad document editor

1. Introduction to Etherpad

1.1 Introduction to Etherpad

Etherpad is a web-based open source online text editor that allows multiple users to edit the same document at the same time, providing truly real-time collaborative editing.

1.2 Features of Etherpad

Etherpad allows you to collaboratively edit documents in real time, like a real-time multi-person editor running in your browser. Work on articles, press releases, to-dos, and more with your friends, classmates, or colleagues, all while working on the same document at the same time.

2. Introduction to the local environment

2.1 Local Environment Planning

This practice is a personal test environment, and the operating system version is centos7.6.

hostname IP address operating system version kernel version node.js version
jeven 192.168.3.166 hundred 7.6 3.10.0-957.el7.x86_64 v14.17.0

2.2 Introduction to this practice

1. The deployment environment for this practice is a personal test environment;
2. Deploy the Etherpad document editor in the centos7.6 environment.

3. Check the local environment

3.1 Check the local operating system version

Check local OS version

[root@jeven ~]# cat /etc/redhat-release 
CentOS Linux release 7.6.1810 (Core) 

3.2 Check the system kernel version

Check system kernel version

[root@jeven ~]# uname -r 
3.10.0-957.el7.x86_64

3.3 Check whether Node.js is installed in the system

Check if Node.js is installed on the system

[root@jeven ~]# node -v
-bash: /usr/local/bin/node: No such file or directory

4. Deploy the Node.js environment

4.1 Download the Node.js installation package

Download the Node.js installation package

wget https://nodejs.org/dist/v14.17.0/node-v14.17.0-linux-x64.tar.xz

4.2 Unzip the Node.js installation package

Unzip the Node.js installation package

tar -xvJf node-v14.17.0-linux-x64.tar.xz

insert image description here

4.3 Copying binaries

Copy the binary files under /root/node-v14.17.0-linux-x64/bin/ to /usr/local/bin

cp -a /root/node-v14.17.0-linux-x64/bin/node /usr/local/bin/node
cp -a /root/node-v14.17.0-linux-x64/bin/npm /usr/local/bin/npm

4.4 Configure environment variables

-In the /etc/profile file, add the following two lines:

export NODE_HOME=/root/node-v14.17.0-linux-x64/bin/
export PATH=$PATH:$NODE_HOME:/usr/local/bin/

  • make the variable take effect
source /etc/profile

4.5 View node version

Check node version

[root@jeven ~]# node -v
v14.17.0
[root@jeven ~]# npm -v
6.14.13

5. Download Etherpad source code

5.1 Download Etherpad source code

Download Etherpad source code

git clone https://github.com/ether/etherpad-lite.git

5.2 View Etherpad source directory

View Etherpad source code directory structure

[root@jeven data]# tree -L 2 ./etherpad-lite/
./etherpad-lite/
├── bin -> src/bin
├── CHANGELOG.md
├── CONTRIBUTING.md
├── doc
│   ├── api
│   ├── assets
│   ├── cookies.md
│   ├── database.md
│   ├── docker.md
│   ├── documentation.md
│   ├── easysync
│   ├── images
│   ├── index.md
│   ├── localization.md
│   ├── plugins.md
│   ├── skins.md
│   ├── stats.md
│   └── template.html
├── Dockerfile
├── LICENSE
├── Makefile
├── node_modules
│   └── ep_etherpad-lite -> ../src
├── README.md
├── SECURITY.md
├── settings.json.docker
├── settings.json.template
├── src
│   ├── bin
│   ├── ep.json
│   ├── etherpad_icon.svg
│   ├── locales
│   ├── node
│   ├── package.json
│   ├── package-lock.json
│   ├── README.md
│   ├── static
│   ├── templates
│   ├── tests
│   └── web.config
├── start.bat
├── tests -> src/tests
└── var

17 directories, 26 files

6. Deploy the Etherpad document editor

6.1 Set up npm mirror source

npm set domestic Taobao mirror source

npm config set registry https://registry.npm.taobao.org

6.2 Start Etherpad service

  • Enter the etherpad-lite/directory
[root@jeven etherpad-lite]# ls
bin           CONTRIBUTING.md  Dockerfile  Makefile      README.md    settings.json.docker    src        tests
CHANGELOG.md  doc              LICENSE     node_modules  SECURITY.md  settings.json.template  start.bat  var

  • Start the Etherpad service
src/bin/run.sh --root

insert image description here

6.3 View Etherpad listening port

View Etherpad listening port 9001

[root@jeven ~]# ss -tunlp |grep 9001
tcp    LISTEN     0      128       *:9001                  *:*                   users:(("node",pid=21212,fd=27))

7. Access the Etherpad Documentation Editor

Access address: http://192.168.3.166:9001/, replace the IP with the IP address of your own server

insert image description here

8. Basic operation of Etherpad

8.1 Set Chinese language

In the system setting option, set Chinese.

insert image description here

8.2 Create a new notepad

Create a new notepad and edit the content.

insert image description here

8.3 Send collaboration chat messages

  • set username

insert image description here
insert image description here

  • Send collaborative chat messages in the browser
    insert image description here
  • Collaborative editing with other browsers or computers, sending messages

insert image description here

8.4 Exporting files

Optionally import and export files

insert image description here

Guess you like

Origin blog.csdn.net/jks212454/article/details/131290812