aspectoffate

joined 1 year ago
6
submitted 10 months ago* (last edited 10 months ago) by aspectoffate@lemmy.world to c/matrix@lemmy.ml
 

Hello everyone,

I just got a Pi4b 8gb model and was looking to set up a matrix instance on it.

Right now it would just be for me and a few close friends. Maybe eventually federating to bigger rooms.

Does anyone have any up to date guides on the best way to set this up? Thank you.

UPDATE:

Hello everyone. So after many hours of tinkering, I can confirm you can run Dendrite on the pi4.

I decided to go with the Docker version of Dendrite with Postgresql.

Generally, the official guide got me most of the way through: https://matrix-org.github.io/dendrite/installation

Some important notes I would like to make however, for anyone reading this post in the future:

  1. I used the Raspberry Pi OS-Lite 64 bit.
  2. I used Caddy for a reverse proxy, which I admit I had never heard of. I highly recommend saving yourself from the trouble, if possible and you're new like me, and just edit/use the example configuration rather than try to follow the bits and pieces of the Caddy instructions throughout the rest of the guide.
  3. If you want to use an external storage drive to hold the Matrix/Jetstream storage, for the love of God set it up to automount and change the Docker data directory config to use it BEFORE you actually get the image/container up and running.
  4. Related to point 3, the docker container seems a bit fragile (which is to be expected). Changing file structures, trying to change data directory, database changes, etc. will basically force the Matrix instance to start all over again and you'll have to readd your users, rooms, etc. that you made while testing.
  5. Here is the big one that caused me to nearly rip my hair out before I realized what was going on. I also self-host Nextcloud via Nextcloudpi, which uses ports 80/443. Matrix + Dendrite + Docker use ports 80/443 too. I could not figure out how to get Dendrite to use any other ports, and did not want to learn how to use the reverse proxy just to jankily set it up. So instead I just changed my Nextcloudpi's config files to use different ports.
  6. Some changes to the dendrite.yaml config did not seem to take affect just with a container restart. I had to reboot the entire pi.
  7. Unless you fully own the domain and its dns records (I use the same one I made through NOIP when configuring my nextcloud instance), do not try to make a subdomain such as matrix.your-url.com to redirect matrix traffic. LetsEncrypt did not play well with it.

Having said all of that... Performance seems okay! It's just my wife and I so far, but we can chat, upload 1gb files, voice call, and screen share with virtually no lag. If that changes in the future as we add users and possibly federate, I will update this post.

[–] aspectoffate@lemmy.world 8 points 10 months ago

House Ego: I don't want the cheapest thing, but I'm only willing to go a single step up.