Skip to content

Instantly share code, notes, and snippets.

@iitsuraj
Last active August 16, 2020 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iitsuraj/211b66c7591676e1d139e079cb269b31 to your computer and use it in GitHub Desktop.
Save iitsuraj/211b66c7591676e1d139e079cb269b31 to your computer and use it in GitHub Desktop.
How to Install Matrix Synapse Chat on Ubuntu 18.04 LTS
#!/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
@iitsuraj
Copy link
Author

iitsuraj commented Aug 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment