Matrix is a free, open-source, and web-based solution used for messaging and VoIP services. It is an open standard VOIP protocol that allows you to communicate with other users on a different service provider via voice-over-IP and chat. 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. It is written in Python and allows you to create your home server and store all user personal info and chat history.
In this post, we will show you how to install Matrix Synapse on Ubuntu 22.04.
Useful Links:
VPS/VDS - [ Ссылка ]
Commands Used:
apt install curl wget gnupg2 apt-transport-https -y
wget -qO /usr/share/keyrings/matrix-org-archive-keyring.gpg [ Ссылка ]
echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] [ Ссылка ] $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/matrix-org.list
apt-get update -y
apt-get install matrix-synapse-py3 -y
systemctl start matrix-synapse
systemctl enable matrix-synapse
systemctl status matrix-synapse
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
nano /etc/matrix-synapse/homeserver.yaml
registration_shared_secret: ""
systemctl restart matrix-synapse
apt-get install nginx -y
nano /etc/nginx/conf.d/matrix.conf
server {
listen 80;
server_name matrix.linuxbuz.com;
location / {
proxy_pass [ Ссылка ];
proxy_set_header X-Forwarded-For $remote_addr;
}
}
nginx -t
systemctl restart nginx
systemctl status nginx
register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml [ Ссылка ]
Ещё видео!