The initial plan was to develop further bridges but since a lot of the community were already focussing efforts there, the Matrix.org team set me alternate tasks I could choose from. I was given the task to develop a way for Matrix to be indexable by search engines, as Riot.im is a really heavy React application that is not crawler friendly, so a client which had no client side scripting was desired. I was also tasked with squashing bugs and some substantial changes or fixes in riot-web, outlined below. The reason this was needed is that riot-web (riot.im) is a very heavy React web application, and the Google crawler simply is unable to index it.

Continue reading

Whether it be for privacy or simply for fun, a time will come that you will want to set up a Matrix homeserver. Currently that pretty much means Synapse, as other solutions are less…”feature complete”, though the Readme does not really include enough information for less tech-savvy people to do so easily, so here is that information.

First things first, get ahold of a machine with 2GB+ RAM, modern enough CPU and some disk space. It’ll also need an IP Address, public if you wish to connect to it from anywhere, and optionally a domain if you don’t want to have to type the IP for everything. This guide will take you through installation, basic configuration and even setting up Let’s Encrypt Certificates in a fashion that you can copy and paste or dig deeper into and understand.

Make sure you log in as root for the installation, this just means that you will not have to authorize each and every action you do with sudo. This can often be done using the command sudo su. If you are using a VPS from the likes of DigitalOcean they often provide you direct access to the root user without sudo, though if you are new, be careful not to mistype things.

Next we will trust repository key and add the repository to apt’s repository list.

1
2
3
wget -qO - https://matrix.org/packages/debian/repo-key.asc | apt-key add -
apt-add-repository http://matrix.org/packages/debian/
apt-get update

If it complains about add-apt-repository: command not found you should run apt-get update && apt-get install software-properties-common -y and rerun the failed command.

At this stage the system knows about the Synapse package, and we can install it.

1
apt-get install matrix-synapse -y

The installer will ask you for a server name, enter what you would like to see as the server part of your username, often your domain.
If I wanted usernames like [email protected] I would enter bit.ovh, this will even work if bit.ovh does not resolve to the server hosting synapse.
After this it will ask you about reporting analytics, this choice is up to you. Some time later, once apt is done installing Synapse you will see your prompt return and you can continue.

At this stage you will do any configurations you may need.
If you configured your server_name to be a domain which does not point at the server and wish to federate your server you will have to create an SRV record as detailed here

Lets Encrypt configuration to follow, LAPTOP DYING

To start your new server you will have to run service matrix-synapse start assuming your distro ships with upstart/systemd/similar.

See more documentation at https://github.com/matrix-org/synapse

Comment and share

The best way to get riot installed is to install it from the official repositories, this way your package manager can keep it up to date for you. All the info you need is on https://riot.im/desktop but along with no instructions, the ones below should work for most users but do assume you have wget, software-properties-common, sudo and the apt wrapper.

1
2
3
4
5
set -e
wget -qO - https://riot.im/packages/debian/repo-key.asc | sudo apt-key add -
sudo apt-add-repository https://riot.im/packages/debian/
sudo apt update
sudo apt install riot-web

Comment and share

  • page 1 of 1
Author's picture

Michael Telatynski

Computer Science Student


Student


United Kingdom