顯示具有 webRTC 標籤的文章。 顯示所有文章
顯示具有 webRTC 標籤的文章。 顯示所有文章

星期一, 1月 14, 2013

EasyRTC install with openSUSE 12.2 小記

EasyRTC install log
Date:  20130103
OS:  openSUSE 12.2

參考  https://github.com/priologic/easyrtc/blob/master/docs/easyrtc_installing.md


透過 One Click install 安裝 nodejs  nodejs-devel
#OneClickInstallCLI   http://software.opensuse.org/ymp/openSUSE:12.2/standard/nodejs.ymp
#zypper   install  nodejs-devel

建立相關目錄
# mkdir   -p   /var/nodes/easyrtc

確認 www (apache)執行使用者
# grep   www  /etc/passwd
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false

將相關目錄(/var/nodes/easyrtc)更改擁有人為 wwwrun (調整權限)

# ls  -ld  /var/nodes/easyrtc/
drwxr-xr-x 2 root root 4096 Jan  3 11:06 /var/nodes/easyrtc/

# chown   wwwrun  /var/nodes/easyrtc/

# ls  -ld  /var/nodes/easyrtc/
drwxr-xr-x 2 wwwrun root 4096 Jan  3 11:06 /var/nodes/easyrtc/

下載 EasyRTC 套件
# cd   /root
# wget   https://github.com/priologic/easyrtc/archive/master.zip

解壓縮 EasyRTC 套件
# unzip   master.zip

將解壓縮的套件移到 相關目錄(/var/nodes/easyrtc)
# mv  /root/easyrtc-master/   /var/nodes/easyrtc/

切換到解壓縮的目錄
# cd   /var/nodes/easyrtc/easyrtc-master

執行安裝
#npm   install
還沒有啟動前, 觀察一下 netstat

# netstat   -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2023/sshd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      2731/cupsd
tcp        0      0 0.0.0.0:58265           0.0.0.0:*               LISTEN      2658/gnome-session
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2607/master
tcp        0      0 :::22                   :::*                    LISTEN      2023/sshd
tcp        0      0 :::631                  :::*                    LISTEN      1/init
tcp        0      0 ::1:25                  :::*                    LISTEN      2607/master
tcp        0      0 :::37755                :::*                    LISTEN      2658/gnome-session
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           452/avahi-daemon: r
udp        0      0 0.0.0.0:57592           0.0.0.0:*                           452/avahi-daemon: r
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1/init
udp        0      0 :::59115                :::*                                452/avahi-daemon: r
udp        0      0 :::5353                 :::*                                452/avahi-daemon: r

啟動 EasyRTC
#node   server.js

啟動完之後觀察 netstat

# netstat   -tupln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      11035/node
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2023/sshd
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      2731/cupsd
tcp        0      0 0.0.0.0:58265           0.0.0.0:*               LISTEN      2658/gnome-session
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      2607/master
tcp        0      0 :::22                   :::*                    LISTEN      2023/sshd
tcp        0      0 :::631                  :::*                    LISTEN      1/init
tcp        0      0 ::1:25                  :::*                    LISTEN      2607/master
tcp        0      0 :::37755                :::*                    LISTEN      2658/gnome-session
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           452/avahi-daemon: r
udp        0      0 0.0.0.0:57592           0.0.0.0:*                           452/avahi-daemon: r
udp        0      0 0.0.0.0:631             0.0.0.0:*                           1/init
udp        0      0 :::59115                :::*                                452/avahi-daemon: r
udp        0      0 :::5353                 :::*                                452/avahi-daemon: r


測試結果 Okay

=====================================================================

EsayRTC with Windows 安裝小記

EsayRTC 安裝流程 version 0.01 by Max


測試時間: 2012/12/22
建立環境: Windows 7


Reference: https://github.com/priologic/easyrtc/blob/master/docs/easyrtc_installing.md

1. 請連上 http://nodejs.org/
請點選 INSTALL 下載 nodejs 安裝檔案






2.請點選執行安裝 nodejs






3. 請點選 Next 開始安裝





4. 請勾選 “I accept the terms in the LIcense Agreement” → 請點選 Next






5. 請點選 Finish 完成 Node.js 安裝





6. 請連線到 http://www.easyrtc.com/
請點選 Download easyRTC beta, FREE!






7. 畫面會被重導向到 https://github.com/priologic/easyrtc
請點選 Clone in Windows 旁邊的 ZIP 圖示







8. 請將 .zip 檔案解壓縮到指定目錄
例如 C:\Users\使用者帳號\nodes\easyrtc
解壓縮的檔案會解壓縮到 C:\Users\max\nodes\easyrtc\easyrtc-master







9. 啟動 node.js command line
請點選 開始 → 所有程式 → Node.js  → Node.js command prompt







10. 請於node.js command line 切換到easyRTC 安裝目錄
請輸入 cd    C:\Users\max\nodes\easyrtc\easyrtc-master   (當初解壓縮目錄)







11. 請輸入 npm  install 開始安裝 EasyRTC






12. 啟動 EasyRTC
請輸入 node  server.js
預設會在 port 8080 LISTEN






13. 如果有 Windows 安全性警訊, 請點選 允許存取







14. 請於瀏覽器輸入http://localhost:8080 或是 http://自己的IP:8080
開始測試