Last active
August 16, 2020 17:08
-
-
Save iitsuraj/211b66c7591676e1d139e079cb269b31 to your computer and use it in GitHub Desktop.
How to Install Matrix Synapse Chat on Ubuntu 18.04 LTS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo updating... | |
apt-get -qq update | |
echo update completed. | |
echo upgrading... | |
apt-get -qq --yes upgrade | |
echo upgrade completed | |
echo Installing dev dependency | |
apt-get -qq --yes install build-essential python3-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libxslt1-dev | |
echo creating dir | |
mkdir -p ~/synapse | |
cd ~/synapse | |
virtualenv -p python3 ~/synapse/env | |
source ~/synapse/env/bin/activate | |
pip install -qq --upgrade pip virtualenv six packaging appdirs | |
pip install -qq --upgrade setuptools | |
pip install -qq matrix-synapse | |
pip install -qq -U matrix-synapse | |
python -m synapse.app.homeserver --server-name localhost --config-path homeserver.yaml --generate-config --report-stats=no | |
cd ~/synapse | |
source env/bin/activate | |
synctl start | |
echo Done. | |
echo open http://localhost:8008 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Matrix is a new ecosystem for decentralized communication in real-time for open federated instant messaging and VoIP services. It provides RESTful HTTP JSON APIs for building distributed and federated chat servers with no single point of control and failure and provides all references for the APIs.