close

首先先安裝:Node.js

1. pkg install node

2. cd /usr/ports/www/node-devel

     make install clean

3. pkg install www/npm  

     npm install n -g

4. 檢查版本   node -v  
          npm -v

會出現版本訊息 這樣就ok了

 安裝Etherpad     http://etherpad.org/#download 

# /usr/local/www/apache24/data/ether/bin
./run.sh

使用 etherpad

開啟瀏覽器, 輸入網址 http://my.linux.host:9001
點擊 New Pad (新記事本) 以隨機名稱建立記事本
於方框輸入記事本名稱 (中文亦可) 建立或進入指定記事本
輸入網址 http://my.linux.host:9001/p/記事本名稱 亦可建立或進入指定記事本\

除所有記事本內容

# rm -f ~etherpad/etherpad-lite/var/*

刪除指定記事本

Step 1. 取得 API Key # cat ~etherpad/etherpad-lite/APIKEY.txt
Step 2. 開啟瀏覽器, 輸入網址 http://my.linux.host:9001/api/1/deletePad?apikey=myAPIkey&padID=padName

使用帳號密碼進行簡易防護
# vi ~etherpad/etherpad-lite/settings.json

取消註解以下內容, 並設置帳號密碼

"requireAuthentication" : true,
 
  "users": {
    "admin": {
      "password": "密碼",
      "is_admin": true
    },
    "帳號": {
      "password": "密碼",
      "is_admin": false
    }
  },

使用加密連線

# cd /etc/pki/tls/certs
# make epl-server.pem
# chown etherpad:etherpad epl-server.pem
# mv epl-server.pem ~etherpad/etherpad-lite/
# vi ~etherpad/etherpad-lite/settings.json

取消註解並修改以下內容

"ssl" : {
          "key"  : "/home/etherpad/etherpad-lite/epl-server.pem",
          "cert" : "/home/etherpad/etherpad-lite/epl-server.pem"
        },

安裝 Plugin 或編輯設定檔

開啟瀏覽器, 連入 http://my.linux.host:9001/admin/

相關教學文件: http://jamyy.us.to/blog/2015/01/7058.html

arrow
arrow
    全站熱搜

    benson82208 發表在 痞客邦 留言(0) 人氣()