A step-by-step guide for installing Synapse on Raspbian Buster.
- Execute:
sudo apt-get install build-essential
- Execute:
sudo apt-get install python3-dev
- Execute:
sudo apt-get install libffi-dev
- Execute:
sudo apt-get install python3-pip
- Execute:
sudo apt-get install python3-setuptools
- Execute:
sudo apt-get install sqlite3
- Execute:
sudo apt-get install libssl-dev
- Execute:
sudo apt-get install virtualenv
- Execute:
sudo apt-get install libjpeg-dev
- Execute:
sudo apt-get install libxslt1-dev
- Execute:
dpkg -s build-essential
- Execute:
dpkg -s python3-dev
- Execute:
dpkg -s libffi-dev
- Execute:
dpkg -s python3-pip
- Execute:
dpkg -s python3-setuptools
- Execute:
dpkg -s sqlite3
- Execute:
dpkg -s libssl-dev
- Execute:
dpkg -s virtualenv
- Execute:
dpkg -s libjpeg-dev
- Execute:
dpkg -s libxslt1-dev
Matrix-Synapse is installed within a Python Virtual Environment. Learn more about Python Virtual Environments.
- Execute:
mkdir -p "${HOME}/synapse"
- Execute:
virtualenv -p python3 "${HOME}/synapse/env"
To interact with the virtual environment that was created above, you must source activate
from within $HOME/synapse/env/bin/
.
- Execute:
source "${HOME}/synapse/env/bin/activate"
To validate that you have sourced the environment correctly, move your attention to the PS1 Prompt. env
should be prefixed to your prompt and resemble the example below.
(env) pi@raspberrypi:
Note: The following command assumes you have successfully sourced the virtual environment.
- Execute:
pip install matrix-synapse
Prior to starting Synapse, a configuration file is needed. When generating the configuration file using the command below, update the value for --server-name
to reflect your desired domain name.
Note: The following command assumes you have successfully sourced the virtual environment with your current shell session.
- Execute:
cd ~/synapse
- Execute:
python -m synapse.app.homeserver --server-name my.domain.name --config-path homeserver.yaml --generate-config --report-stats=yes