43

Hi! I've done some research on self hosting Matrix for Matrix Bridges on a Raspberry Pi 5. Some people have said online that Matrix will be too beefy for an RPI due to large federated chatrooms and information. However, would it still be worthwhile installing just for my own bridges for social media, and maybe as a secure way for friends to interact?

Thanks in advance!

top 17 comments
sorted by: hot top controversial new old
[-] milk@discuss.tchncs.de 8 points 1 month ago

Not that the raspberry pi is particularly low end anymore, but if you do want to run matrix on low end hardware you may want to avoid synapse as it is very resource heavy.

There are a couple implementations that support bridges here

[-] poVoq@slrpnk.net 5 points 1 month ago

Uhm, this is not very good advise, as the bridges especially often do not work well with non-Synapse homeserver implementations. And especially Conduit also has a very different way to setup appservices, so it becomes much harder to configure the bridges correctly.

[-] Chewy7324@discuss.tchncs.de 1 points 1 month ago* (last edited 1 month ago)

It might depend on the particular bridges, but all mautrix- bridges work great for me with conduit. In a way adding bridges to conduit is easier since it's all done through the admin room on conduit.

[-] CyberTailor@lemmy.world 1 points 1 month ago

Oh, can you pm me (@cyber:sysrq.in)? I can't get mautrix-telegram bridge working, it doesn't respond to invites from rooms on other servers.

[-] poVoq@slrpnk.net 4 points 1 month ago

Matrix needs fast storage, and a lot of it, even if you only use it for bridges. A RPi5 with a good amount of NVMe storage will probably work, but if you only want to use it for bridges I would rather recommend to set up an XMPP server with Slidge which gives you better clients and can run on a RPi4 easily.

[-] Flax_vert@feddit.uk 2 points 1 month ago

How much is "a good amount"

[-] Spaenny@discuss.tchncs.de 2 points 1 month ago* (last edited 1 month ago)

I'm unsure why he mentioned a good amount, as I am across several large spaces on the matrix using Synapse and have accumulated approximately 30GB of data in >1 year. I must clarify that I am the sole user of my instance.

[-] Flax_vert@feddit.uk 1 points 1 month ago

That's quite big for a raspberry pi. Going to upgrade an old 2018 gaming computer into a server now. All it needed was a hard drive and a wifi antenna (My dad won't let me run an ethernet cable to my room ☹️). I was running out of Google storage anyway for my photos, so I'll set that up as well.

[-] poVoq@slrpnk.net 1 points 1 month ago

Completely depends on your use, but it is basically ever growing and larger than the typical cheap VPS includes. A few tens of GBs at least.

[-] hendrik@palaver.p3x.de 3 points 1 month ago

Not sure if that's true. I've ran a Synapse Matrix server on a SBC before and it worked. Just for a few users though. I don't know if it breaks if you have like 300 people using that...

You could use conduit.rs as a server. That runs on a few tens of megabytes of RAM. Not a whopping gigabyte. At least that's what I'm using now. It's still missing a few features, though.

[-] Flax_vert@feddit.uk 2 points 1 month ago* (last edited 1 month ago)

Funnily enough I considered that, but I literally couldn't find installation instructions anywhere on their site. The documentation has stuff for configuring a running instance but nothing for actually installing it, lmao

[-] coffee_chum@lemmy.ml 2 points 1 month ago* (last edited 1 month ago)

If you end up going with conduit, I would instead use conduwuit. More development effort and better docs IMO. I think maybe even one of the main devs from conduit moved over to conduwuit? But not 100% sure

https://conduwuit.puppyirl.gay/

The domain choice? Eh, not what I would have gone with but to each their own lol

[-] hendrik@palaver.p3x.de 1 points 1 month ago

Yeah. Their documentation is a bit "lacking" so to say... it's practically nonexistent.

They follow the usual procedure, though. So if you already set up 10 webservices on your server, you will know what to do. They documented a few special things like how to hook the appservices. But also that took me some trial and error.

I believe it's more for developers at this point. And people with a lot of expertise. That may change. And it already works well for the basic stuff. But i'm not sure if I'd recommend it unless it's a special case like this.

[-] mesamunefire@lemmy.world 3 points 1 month ago* (last edited 1 month ago)

If it was the pi 4, I would agree, but the Pi 5 would probably handle less than 20 people. I have a 4 that uses Yunohost that covers a LOT of services. I played around with matrix but it required too much out of the system. But that's with a lot of other services running. Give it a shot and let the rest of us know.

BTW I had a lemmy/irc/bookwyrm/mastodon all running on the pi4 without any real issues. Mastodon is probably the beefiest/slowest app, and its been getting better as time goes on. So a PI can definitely work with fediverse apps.

[-] Flax_vert@feddit.uk 2 points 1 month ago

Yeah, I literally have a wordpress with broken federation running, along with a VPN. It's quite good

[-] Decronym@lemmy.decronym.xyz 1 points 1 month ago* (last edited 1 month ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
NVMe Non-Volatile Memory Express interface for mass storage
SBC Single-Board Computer
VPS Virtual Private Server (opposed to shared hosting)
XMPP Extensible Messaging and Presence Protocol ('Jabber') for open instant messaging

4 acronyms in this thread; the most compressed thread commented on today has 16 acronyms.

[Thread #858 for this sub, first seen 8th Jul 2024, 21:15] [FAQ] [Full list] [Contact] [Source code]

[-] seang96@spgrn.com 1 points 1 month ago

From my limited Raspberry PI experience I believe their single core performance isn't great and synapse at least is single threaded. You'd have to use workers to utilize the other cores. If you have multiple pi devices you could also utilize workers on different pis and hosting postgres on one. Using only one, it would likely be quite slow like others noted.

this post was submitted on 08 Jul 2024
43 points (95.7% liked)

Selfhosted

38652 readers
378 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS