You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
There is currently no port for OpenBSD. Additionally, OpenBSD's security
189
191
settings require a slightly more difficult installation process.
190
192
191
-
XXX: I suspect this is out of date.
193
+
(XXX: I suspect this is out of date)
192
194
193
195
1. Create a new directory in `/usr/local` called `_synapse`. Also, create a
194
196
new user called `_synapse` and set that directory as the new user's home.
195
197
This is required because, by default, OpenBSD only allows binaries which need
196
198
write and execute permissions on the same memory space to be run from
197
199
`/usr/local`.
198
200
2.`su` to the new `_synapse` user and change to their home directory.
199
-
3. Create a new virtualenv: `virtualenv -p python2.7 ~/.synapse`
201
+
3. Create a new virtualenv: `virtualenv -p python3 ~/.synapse`
200
202
4. Source the virtualenv configuration located at
201
203
`/usr/local/_synapse/.synapse/bin/activate`. This is done in `ksh` by
202
204
using the `.` command, rather than `bash`'s `source`.
@@ -217,45 +219,6 @@ be found at https://docs.microsoft.com/en-us/windows/wsl/install-win10 for
217
219
Windows 10 and https://docs.microsoft.com/en-us/windows/wsl/install-on-server
218
220
for Windows Server.
219
221
220
-
### Troubleshooting Installation
221
-
222
-
XXX a bunch of this is no longer relevant.
223
-
224
-
Synapse requires pip 8 or later, so if your OS provides too old a version you
225
-
may need to manually upgrade it::
226
-
227
-
sudo pip install --upgrade pip
228
-
229
-
Installing may fail with `Could not find any downloads that satisfy the requirement pymacaroons-pynacl (from matrix-synapse==0.12.0)`.
230
-
You can fix this by manually upgrading pip and virtualenv::
231
-
232
-
sudo pip install --upgrade virtualenv
233
-
234
-
You can next rerun `virtualenv -p python3 synapse` to update the virtual env.
235
-
236
-
Installing may fail during installing virtualenv with `InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.`
237
-
You can fix this by manually installing ndg-httpsclient::
238
-
239
-
pip install --upgrade ndg-httpsclient
240
-
241
-
Installing may fail with `mock requires setuptools>=17.1. Aborting installation`.
242
-
You can fix this by upgrading setuptools::
243
-
244
-
pip install --upgrade setuptools
245
-
246
-
If pip crashes mid-installation for reason (e.g. lost terminal), pip may
247
-
refuse to run until you remove the temporary installation directory it
248
-
created. To reset the installation::
249
-
250
-
rm -rf /tmp/pip_install_matrix
251
-
252
-
pip seems to leak *lots* of memory during installation. For instance, a Linux
253
-
host with 512MB of RAM may run out of memory whilst installing Twisted. If this
254
-
happens, you will have to individually install the dependencies which are
255
-
failing, e.g.::
256
-
257
-
pip install twisted
258
-
259
222
## Prebuilt packages
260
223
261
224
As an alternative to installing from source, prebuilt packages are available
@@ -314,7 +277,7 @@ For `buster` and `sid`, Synapse is available in the Debian repositories and
314
277
it should be possible to install it with simply:
315
278
316
279
```
317
-
sudo apt install matrix-synapse
280
+
sudo apt install matrix-synapse
318
281
```
319
282
320
283
There is also a version of `matrix-synapse` in `stretch-backports`. Please see
@@ -375,8 +338,10 @@ sudo pip install py-bcrypt
375
338
376
339
Synapse can be found in the void repositories as 'synapse':
377
340
378
-
xbps-install -Su
379
-
xbps-install -S synapse
341
+
```
342
+
xbps-install -Su
343
+
xbps-install -S synapse
344
+
```
380
345
381
346
### FreeBSD
382
347
@@ -420,6 +385,7 @@ so, you will need to edit `homeserver.yaml`, as follows:
420
385
resources:
421
386
- names: [client, federation]
422
387
```
388
+
423
389
* You will also need to uncomment the `tls_certificate_path` and
424
390
`tls_private_key_path` lines under the `TLS` section. You can either
425
391
point these settings at an existing certificate and key, or you can
@@ -435,7 +401,7 @@ so, you will need to edit `homeserver.yaml`, as follows:
435
401
`cert.pem`).
436
402
437
403
For a more detailed guide to configuring your server for federation, see
438
-
[federate.md](docs/federate.md)
404
+
[federate.md](docs/federate.md).
439
405
440
406
441
407
## Email
@@ -482,7 +448,7 @@ on your server even if `enable_registration` is `false`.
482
448
## Setting up a TURN server
483
449
484
450
For reliable VoIP calls to be routed via this homeserver, you MUST configure
485
-
a TURN server. See [docs/turn-howto.md](docs/turn-howto.md) for details.
451
+
a TURN server. See [docs/turn-howto.md](docs/turn-howto.md) for details.
486
452
487
453
## URL previews
488
454
@@ -491,10 +457,24 @@ turn it on you must enable the `url_preview_enabled: True` config parameter
491
457
and explicitly specify the IP ranges that Synapse is not allowed to spider for
492
458
previewing in the `url_preview_ip_range_blacklist` configuration parameter.
493
459
This is critical from a security perspective to stop arbitrary Matrix users
494
-
spidering 'internal' URLs on your network. At the very least we recommend that
460
+
spidering 'internal' URLs on your network. At the very least we recommend that
495
461
your loopback and RFC1918 IP addresses are blacklisted.
496
462
497
-
This also requires the optional lxml and netaddr python dependencies to be
498
-
installed. This in turn requires the libxml2 library to be available - on
463
+
This also requires the optional `lxml` and `netaddr` python dependencies to be
464
+
installed. This in turn requires the `libxml2` library to be available - on
499
465
Debian/Ubuntu this means `apt-get install libxml2-dev`, or equivalent for
500
466
your OS.
467
+
468
+
# Troubleshooting Installation
469
+
470
+
`pip` seems to leak *lots* of memory during installation. For instance, a Linux
471
+
host with 512MB of RAM may run out of memory whilst installing Twisted. If this
472
+
happens, you will have to individually install the dependencies which are
473
+
failing, e.g.:
474
+
475
+
```
476
+
pip install twisted
477
+
```
478
+
479
+
If you have any other problems, feel free to ask in
0 commit comments