ElementChat: Difference between revisions

From Traxel Wiki
Jump to navigation Jump to search
Line 34: Line 34:
=== Using Postgres ===
=== Using Postgres ===
<pre>
<pre>
sudo apt install -y postgresql
sudo apt install -y postgresql libpq5
</pre>
</pre>



Revision as of 19:20, 19 February 2023

Server: Matrix

https://matrix.org/docs/guides/installing-synapse/

Implementation: Synapse

Installation

  • Host: matrix.traxel.com
  • IP: 44.237.36.191
  • Provider: Lightsail

Host Basics

ssh -i path/to/key.pem admin@44.237.36.191
sudo apt update && sudo apt upgrade -y && sudo apt install -y emacs-nox net-tools git curl unzip wget

.ssh/config

Host matrix
  HostName 44.237.36.191
  User admin
  IdentityFile /path/to/key.pem

Synapse Install

sudo apt install -y lsb-release apt-transport-https wget
sudo wget -O /usr/share/keyrings/matrix-org-archive-keyring.gpg https://packages.matrix.org/debian/matrix-org-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/matrix-org.list
sudo apt update
sudo apt install -y matrix-synapse-py3

Using Postgres

sudo apt install -y postgresql libpq5

Client: Element.io