Etherpad 安装简记

发布时间: 更新时间: 总字数:453 阅读时间:1m 作者: IP上海 分享 网址

Etherpad 是一个线上共制平台,是基于网络的实时合作文档编辑器,本文介绍 Etherpad 安装简记。

安装

依赖包

yum install curl vim gcc-c++ make

创建数据库

安装 MariaDB 略。

MariaDB [(none)]> CREATE DATABASE etherpad;  
MariaDB [(none)]> GRANT ALL PRIVILEGES ON etherpad.* TO 'etherpad'@'localhost' IDENTIFIED BY '123456';  
MariaDB [(none)]> FLUSH PRIVILEGES;  

安装 Node.js

yum install -y nodejs

创建 etherpad 用户

adduser --home /opt/etherpad --shell /bin/bash etherpad

clone etherpad 源码

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

创建配置文件:

cp ~/etherpad-lite/settings.json.template ~/etherpad-lite/settings.json

编辑settings.json文件:

sudo vim ~/etherpad-lite/settings.json

如果你要使用Nginx做反向代理,把"ip": “0.0.0.0” 改为 “ip”: “127.0.0.1”,trustProxy设置为true。 注释掉"dbType" : “dirty”。

数据库配置:

"dbType" : "mysql",  
"dbSettings" : {  
    "user"    : "etherpad",
    "host"    : "localhost",
    "password": "test1234",
    "database": "etherpad"
},

添加管理员用户:

"users": {
    "admin": {
         "password": "admin123",
         "is_admin": true
      }
},

最后退出保存!

安装依赖:

~/etherpad-lite/bin/installDeps.sh

启动Etherpad:

~/etherpad-lite/bin/run.sh

完了访问你的ip:9001

Plugins 安装

ep_mypads

Groups and private pads for etherpad

后台http://127.0.0.1:9001/admin/plugins安装mypads

or

cd ~/etherpad-lite/
npm install ep_mypads

ldapauth

Hooks into etherpad lite auth to provide LDAP authentication.

    "ldapauth": {
        "url": "ldap://<ad-url>:389/",
        "accountBase": "OU=etherpad,DC=xxx,DC=com",
        "accountPattern": "(&(objectClass=*)(uid={{username}}))",
        "displayNameAttribute": "sAMAccountName",
        "searchDN": "OU=etherpad,DC=xxx,DC=com",
        "searchPWD": "<pwd>",
        "groupSearchBase": "ou=Groups,dc=example,dc=com",
        "groupAttribute": "member",
        "groupAttributeIsDN": true,
        "searchScope": "sub",
        "groupSearch": "(&(cn=admin)(objectClass=groupOfNames))",
        "anonymousReadonly": false
    }

tasklist

Task list in Etherpad

adminpads

Gives the ability to list and administrate all pads on admin page

Home Archives Categories Tags Statistics
本文总阅读量 次 本站总访问量 次 本站总访客数