瀏覽代碼

Update to match latest version of google doc instructions.

master
Matthew Duggan 11 年之前
父節點
當前提交
5ed9914334
共有 1 個檔案被更改,包括 39 行新增7 行删除
  1. 39
    7
      INSTALL.md

+ 39
- 7
INSTALL.md 查看文件

1
 # Server Installation for jitmeet
1
 # Server Installation for jitmeet
2
 
2
 
3
+This describes configuring a server `jitmeet.example.com`.  You will nedd to
4
+change references to that to match your host, and generate some passwords for
5
+`YOURSECRET1` and `YOURSECRET2`.
6
+
7
+There are also some complete [example config files](https://www.dropbox.com/sh/jgp4s8kp6xuyubr/5FACgJmqLD) available..
8
+
3
 ## Install prosody and otalk modules
9
 ## Install prosody and otalk modules
4
 ```sh
10
 ```sh
5
 echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list
11
 echo deb http://packages.prosody.im/debian $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list
40
 Component "jitsi-videobridge.jitmeet.example.com"
46
 Component "jitsi-videobridge.jitmeet.example.com"
41
     component_secret = "YOURSECRET1"
47
     component_secret = "YOURSECRET1"
42
 ```
48
 ```
43
-- check the example config file, next to the document (prosody.cfg.lua)
49
+- check the example config file, next to the document (`prosody.cfg.lua`)
44
 
50
 
45
 Generate certs for the domain:
51
 Generate certs for the domain:
46
 ```sh
52
 ```sh
47
 prosodyctl cert generate jitmeet.example.com
53
 prosodyctl cert generate jitmeet.example.com
48
 ```
54
 ```
49
 
55
 
56
+Restart prosody XMPP server with the new config
57
+```sh
58
+prosodyctl restart
59
+```
60
+
50
 ## Install nginx
61
 ## Install nginx
51
 ```sh
62
 ```sh
52
 apt-get install nginx
63
 apt-get install nginx
93
 cd /etc/nginx/sites-enabled
104
 cd /etc/nginx/sites-enabled
94
 ln -s ../sites-available/jitmeet.example.com jitmeet.example.com
105
 ln -s ../sites-available/jitmeet.example.com jitmeet.example.com
95
 ```
106
 ```
96
-check the example config files, next to the document (nginx.conf and jitmeet.example.com)
107
+check the example config files for more info.
97
 
108
 
98
 ## Fix firewall if needed
109
 ## Fix firewall if needed
99
 ```sh
110
 ```sh
123
 ```
134
 ```
124
 Or autostart it by adding the line in `/etc/rc.local`:
135
 Or autostart it by adding the line in `/etc/rc.local`:
125
 ```sh
136
 ```sh
126
-/bin/bash /root/jitsi-videobridge-linux-x64-74/jvb.sh --host=localhost --domain=jitmeet.example.com --port=5347 --secret=YOURSECRET1 </dev/null >> /var/log/jvb.log 2>&1
137
+/bin/bash /root/jitsi-videobridge-linux-{arch-buildnum}/jvb.sh --host=localhost --domain=jitmeet.example.com --port=5347 --secret=YOURSECRET1 </dev/null >> /var/log/jvb.log 2>&1
127
 ```
138
 ```
128
 
139
 
129
 Checkout and configure jitmeet:
140
 Checkout and configure jitmeet:
133
 mv jitmeet/ jitmeet.example.com
144
 mv jitmeet/ jitmeet.example.com
134
 ```
145
 ```
135
 
146
 
136
-Edit `/srv/jitmeet.example.com/config.js`:
147
+Edit host names in `/srv/jitmeet.example.com/config.js`:
137
 ```
148
 ```
138
 var config = {
149
 var config = {
139
     hosts: {
150
     hosts: {
143
     },
154
     },
144
     useNicks: false,
155
     useNicks: false,
145
     bosh: '//jitmeet.example.com/http-bind' // FIXME: use xep-0156 for that
156
     bosh: '//jitmeet.example.com/http-bind' // FIXME: use xep-0156 for that
157
+    desktopSharing: 'ext', // Desktop sharing method. Can be set to 'ext', 'webrtc' or false to disable.
158
+    chromeExtensionId: 'diibjkoicjeejcmhdnailmkgecihlobk', // Id of desktop streamer Chrome extension
159
+    minChromeExtVersion: '0.1' // Required version of Chrome extension
146
 };
160
 };
147
 ```
161
 ```
148
 check the example config file, next to the document (config.js)
162
 check the example config file, next to the document (config.js)
149
 
163
 
164
+Restart nginx to get the new configuration:
165
+```sh
166
+invoke-rc.d nginx restart
167
+```
168
+
150
 
169
 
151
 ## Install [Turn server](https://github.com/andyet/otalk-server/tree/master/restund)
170
 ## Install [Turn server](https://github.com/andyet/otalk-server/tree/master/restund)
152
 ```sh
171
 ```sh
155
 tar zxvf re-0.4.7.tar.gz
174
 tar zxvf re-0.4.7.tar.gz
156
 ln -s re-0.4.7 re
175
 ln -s re-0.4.7 re
157
 cd re-0.4.7
176
 cd re-0.4.7
158
-make install PREFIX=/usr
177
+sudo make install PREFIX=/usr
159
 cd ..
178
 cd ..
160
 wget http://creytiv.com/pub/restund-0.4.2.tar.gz
179
 wget http://creytiv.com/pub/restund-0.4.2.tar.gz
161
 wget https://raw.github.com/andyet/otalk-server/master/restund/restund-auth.patch
180
 wget https://raw.github.com/andyet/otalk-server/master/restund/restund-auth.patch
162
 tar zxvf restund-0.4.2.tar.gz
181
 tar zxvf restund-0.4.2.tar.gz
163
 cd restund-0.4.2/
182
 cd restund-0.4.2/
164
 patch -p1 < ../restund-auth.patch
183
 patch -p1 < ../restund-auth.patch
165
-make install PREFIX=/usr
184
+sudo make install PREFIX=/usr
166
 cp debian/restund.init /etc/init.d/restund
185
 cp debian/restund.init /etc/init.d/restund
167
 chmod +x /etc/init.d/restund
186
 chmod +x /etc/init.d/restund
168
 cd /etc
187
 cd /etc
184
 ```
203
 ```
185
 turncredentials_secret = "YOURSECRET2";
204
 turncredentials_secret = "YOURSECRET2";
186
 turncredentials = {
205
 turncredentials = {
187
-    { type = "turn", host = "turn.address.ip.configured", port = 80, transport = "tcp" }
206
+    { type = "turn", host = "turn.address.ip.configured", port = 3478, transport = "tcp" }
188
 }
207
 }
189
 ```
208
 ```
190
 
209
 
196
 quit
215
 quit
197
 ```
216
 ```
198
 
217
 
218
+## Running behind NAT
219
+In case of videobridge being installed on a machine behind NAT, add the following extra lines to the file `~/.sip-communicator/sip-communicator.properties` (in the home of user running the videobridge):
220
+```
221
+org.jitsi.videobridge.NAT_HARVESTER_LOCAL_ADDRESS=<Local.IP.Address>
222
+org.jitsi.videobridge.NAT_HARVESTER_PUBLIC_ADDRESS=<Public.IP.Address>
223
+```
224
+
225
+So the file should look like this at the end:
226
+```
227
+org.jitsi.impl.neomedia.transform.srtp.SRTPCryptoContext.checkReplay=false
228
+org.jitsi.videobridge.NAT_HARVESTER_LOCAL_ADDRESS=<Local.IP.Address>
229
+org.jitsi.videobridge.NAT_HARVESTER_PUBLIC_ADDRESS=<Public.IP.Address>
230
+```

Loading…
取消
儲存