![]() ![]() The persistent can be done either using SQLite (files storage) or a Postgres database.Īs recommended in the installation document, we will install Dendrite in monolith mode with a PostgreSQL database. This mode will use Naffka to emulate an in memory Kafka. You can also decide to run all those components in a single process ( Monolith mode). In that mode you also need to install Apache Kafka as the event streaming system to allow those components to communicate with each other. You can decide to install all those services as standalone components ( Polylith mode). There are multiple ways to install a Dentrite homeserver and the installation document describes those options.Ī Dentrite homeserver is a collection of services that provide the required functionalities. One last time, log out and log back in as the dendrite user Dendrite installation Polylith or Monolith? The command above make zsh your default shell. This is NOT a required step, but this will give you IMHO more comfort if you do it: $ sudo apt install zsh You should be able to login to your server directly with the dendrite user account: ssh -i ~/.ssh/id_droplet_rsa zsh and oh-my-zsh $ chown -R dendrite:dendrite ~dendrite/.ssh $ cp ~/.ssh/authorized_keys ~dendrite/.ssh/ As the root user is already setup for that, you can copy over its SSH authorized key file: $ mkdir ~dendrite/.ssh You still want to be able to run command as root, so you need to give the sudo permission to that user: usermod -aG sudo dendriteįinally, you want also to be able to directly connect to the box with that user through SSL. Make sure to write down the password you choose for that user. The command will prompt with a couple of questions. To create a dendrite user, while you are logged in as root, just type: adduser dendrite create dendrite userįor obvious security reasons, you don’t want to use the root account to setup your server. That should be the last time you connect as root. Once the server is restarted, you can log back in again as root. You can then reboot your server with the command reboot To upgrade all those packages: apt dist-upgrade -y To see the list of upgradable packages apt list The first step is to make sure that your distribution is up to date. It takes time for the DNS updates to propagate, so better to do that early in the process. Once you have your IP, update your DNS server to add 3 A records pointing to your IP address: Once the droplet is created, you will get the IP address and then you can log as root: ssh -i ~/.ssh/id_droplet_rsa setup It is safer, and more convenient, than a password authentication. choose a region that is the closest to you.you can use the cheapest droplet ($5 a month) to start with: Basic Shared CPU, regular Intel with SSD.use the latest Ubuntu server (was 20.04 (LTS) 圆4 at the time I wrote that document).If you use Digital Ocean, my recommendations are: My ubuntu server will be hosted on Digital Ocean (referral link that gives you $100 in credit over 60 days), but any Ubuntu hosting provider should work. We will use Let’s Encrypt as a trusted authority for that domain The requirements to install Dendrite are: I will be using Digital Ocean but the instructions should work with any hosting provider. In this document, I will show how to install Dendrite on an ubuntu server. It intends to provide an efficient, reliable and scalable alternative to Synapse. The Dendrite description states: Dendrite is a second-generation Matrix homeserver written in Go. There is another implementation, named Dendrite: it is also maintained by the Matrix foundation and is written in go. The main Matrix Homeserver reference implementation is Synapse: this is a python 3 implementation that you can install on your own server or run using docker. Through the use of bridges, you can even communicate with users on IRC, Slack, Discord, Telegram etc… When you install your own Matrix homeserver you can communicate with users having having accounts on different providers via chat or voice other IP.īasically, with Matrix, you can host your own slack or discord server. Matrix is an open standard for decentralized, real-time communication. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |