Sergio Durigan Junior: Chatting in the 21st century
Several people have been asking me to explain and/or write about my
solution for chatting nowadays. I realize that the current scenario
is much more complex than, say, 10 or 20 years ago. Back then, this
post would probably be more about the IRC client I used than about
different chatting technologies.
I have also spent a non trivial amount of time setting things up the
way I want, so I understand that it s about time to write about my
setup not only because I think it can be helpful to others, but also
because I would like to document things for myself.
The backbone: Matrix
I chose to use Matrix as the place where I integrate everything.
Despite there being some heavy (and justified) criticism on the
protocol itself, it serves me well for what I need right now.
Obviously, I don t like the fact that I have to provide Matrix and all
of its accompanying bridges a VPS with 4GB of RAM and 3 vCPUs, but I
think that that ship has sailed, unfortunately.
In an ideal world, I would be using XMPP and dedicating only a
fraction of the resources I m using today to have a full chat system.
And since I have been running my personal XMPP server for more than a
decade now, I did try to find a solution that would allow me to keep
using it, but unfortunately the protocol became almost a hobbyist
thing, so there s that.
The backbone: Matrix
I chose to use Matrix as the place where I integrate everything.
Despite there being some heavy (and justified) criticism on the
protocol itself, it serves me well for what I need right now.
Obviously, I don t like the fact that I have to provide Matrix and all
of its accompanying bridges a VPS with 4GB of RAM and 3 vCPUs, but I
think that that ship has sailed, unfortunately.
In an ideal world, I would be using XMPP and dedicating only a
fraction of the resources I m using today to have a full chat system.
And since I have been running my personal XMPP server for more than a
decade now, I did try to find a solution that would allow me to keep
using it, but unfortunately the protocol became almost a hobbyist
thing, so there s that.
A few disclaimers
I self-host everything, including my Matrix server. Much of what I
did won t work if you don t self-host Matrix, so keep that in mind.
This won t be a post teaching you how to deploy the services. My
intention is to describe what I use and for what purpose.
Also, as much as I try to use Debian packages for everything I do, I
opted to deploy all services using a community-maintained Ansible
playbook which is very well written and organized:
matrix-docker-ansible-deploy.
Last but not least, as I said above, you will likely need a machine
with a good amount of RAM, CPU and storage, especially if you deploy
Synapse as your Matrix homeserver (which is what I recommend if you
plan to use the bridges I ll mention). My current VPS has 4GB of RAM,
3 vCPUs and 80GB of storage (of which I m currently using
approximately 55GB).
Problem #1: my Matrix client(s)
There are a lot of clients that can talk the Matrix protocol, but most
of them are either web clients or GUI programs. I live on the
terminal, more specifically inside Emacs, so I settled for the amazing
ement.el Emacs mode. It works surprisingly well, but unfortunately
doesn t support end-to-end encryption out of the box; for that, you
have to hook it up with pantalaimon. Unfortunately, the project seems
abandoned and therefore I don t recommend you to use it. I don t use
it myself.
When I have to reply some E2E encrypted message from another user, I
go to my web browser and use my self-hosted Element client. It s a
nuisance, but one that I m willing to accept because of security
concerns.
If you re into web clients and don t want to use Element (because it
is heavy), you can try Cinny. It s lightweight and supports a decent
set of features.
If you re a terminal lover but don t use Emacs, you may want to try
gomuks or iamb.
Problem #2: IRC bridging
There are basically two types of IRC bridges for Matrix:
-
The regular and most used matrix-appservice-irc. This bridge takes
Matrix to IRC (think of IRC users with the
[m] suffix appended to
their nicknames), and is what the matrix.org and other big
homeservers (including matrix.debian.social) use. It s a complex
service which allows thousands of Matrix users to connect to IRC
networks, but that unfortunately has complex problems and is only
worth using if you intend to host a community server.
-
A bouncer-like bridge called Heisenbridge. This is what I use
personally. It takes IRC to Matrix, which means that people on
IRC will not know that you re using Matrix. This bridge is much
simpler, and because it acts like a bouncer it s pretty much
impossible for it to cause problems with the IRC network.
Due to the fact that I sometimes like to use other IRC clients, I
still run a regular ZNC bouncer, and I use Heisenbridge to connect to
my ZNC. This means that I can use, e.g., ERC inside Emacs and my
Matrix bridge at the same time. But you don t necessarily need to run
another bouncer; you can simply use Heisenbridge and connect directly
to the IRC network(s) you want.
A word of caution, though: unlike ZNC, Heisenbridge doesn t support
per-user configuration when you use it in bouncer mode. This is the
reason why you need to self-host it, and why it s not possible to
offer the service to other users (they would have access to your IRC
network configuration otherwise).
It s also worth talking about logs. I find that keeping logs of
everything that goes on IRC has saved me a bunch of times, and so I
find it really important to continue doing that. Unfortunately,
neither ement.el nor Element support logging things out of the box
(at least not that I know). This is also one of the reasons why I
still keep my ZNC around: I configure it to log everything.
Problem #3: Telegram
I don t use Telegram myself, but unfortunately several people from the
Debian community do, especially in Brazil. There is a whole Debian
community on Telegram, and I wanted to be able to bridge our Debian
Matrix channels to their Telegram counterparts.
I am currently using mautrix-telegram for that, and it s working
great. You need someone with a Telegram account to configure their
credentials so that the bridge can connect to it, but afterwards it s
really easy to bridge channels together.
Problem #4: GitLab webhooks
Something else I wanted to be able to do was to receive notifications
regarding new issues, merge requests and other activities from Salsa.
For this, I m using maubot, which is awesome and has a
huge list of plugins. I m using the gitlab one.
Final thoughts
Overall, I m satisfied with the setup I have now. It has certainly
taken some time and effort to find the right tool for each problem I
needed to solve, and I still feel like there are some rough edges to
soften (like the fact that my Emacs client doesn t support E2E
encryption out of the box, or the whole logging situation), but
otherwise things are working fine and I haven t had any big problems
with the deployment. You do have to be much more careful about stuff
(for example, when I installed an unrelated service that hijacked my
Apache configuration and made Matrix s federation silently stop
working), though.
If you have more specific questions about any part of my setup, shoot
me an email and I ll do my best to help.
Happy chatting!
Problem #1: my Matrix client(s)
There are a lot of clients that can talk the Matrix protocol, but most
of them are either web clients or GUI programs. I live on the
terminal, more specifically inside Emacs, so I settled for the amazing
ement.el Emacs mode. It works surprisingly well, but unfortunately
doesn t support end-to-end encryption out of the box; for that, you
have to hook it up with pantalaimon. Unfortunately, the project seems
abandoned and therefore I don t recommend you to use it. I don t use
it myself.
When I have to reply some E2E encrypted message from another user, I
go to my web browser and use my self-hosted Element client. It s a
nuisance, but one that I m willing to accept because of security
concerns.
If you re into web clients and don t want to use Element (because it
is heavy), you can try Cinny. It s lightweight and supports a decent
set of features.
If you re a terminal lover but don t use Emacs, you may want to try
gomuks or iamb.
Problem #2: IRC bridging
There are basically two types of IRC bridges for Matrix:
-
The regular and most used matrix-appservice-irc. This bridge takes
Matrix to IRC (think of IRC users with the
[m] suffix appended to
their nicknames), and is what the matrix.org and other big
homeservers (including matrix.debian.social) use. It s a complex
service which allows thousands of Matrix users to connect to IRC
networks, but that unfortunately has complex problems and is only
worth using if you intend to host a community server.
-
A bouncer-like bridge called Heisenbridge. This is what I use
personally. It takes IRC to Matrix, which means that people on
IRC will not know that you re using Matrix. This bridge is much
simpler, and because it acts like a bouncer it s pretty much
impossible for it to cause problems with the IRC network.
Due to the fact that I sometimes like to use other IRC clients, I
still run a regular ZNC bouncer, and I use Heisenbridge to connect to
my ZNC. This means that I can use, e.g., ERC inside Emacs and my
Matrix bridge at the same time. But you don t necessarily need to run
another bouncer; you can simply use Heisenbridge and connect directly
to the IRC network(s) you want.
A word of caution, though: unlike ZNC, Heisenbridge doesn t support
per-user configuration when you use it in bouncer mode. This is the
reason why you need to self-host it, and why it s not possible to
offer the service to other users (they would have access to your IRC
network configuration otherwise).
It s also worth talking about logs. I find that keeping logs of
everything that goes on IRC has saved me a bunch of times, and so I
find it really important to continue doing that. Unfortunately,
neither ement.el nor Element support logging things out of the box
(at least not that I know). This is also one of the reasons why I
still keep my ZNC around: I configure it to log everything.
Problem #3: Telegram
I don t use Telegram myself, but unfortunately several people from the
Debian community do, especially in Brazil. There is a whole Debian
community on Telegram, and I wanted to be able to bridge our Debian
Matrix channels to their Telegram counterparts.
I am currently using mautrix-telegram for that, and it s working
great. You need someone with a Telegram account to configure their
credentials so that the bridge can connect to it, but afterwards it s
really easy to bridge channels together.
Problem #4: GitLab webhooks
Something else I wanted to be able to do was to receive notifications
regarding new issues, merge requests and other activities from Salsa.
For this, I m using maubot, which is awesome and has a
huge list of plugins. I m using the gitlab one.
Final thoughts
Overall, I m satisfied with the setup I have now. It has certainly
taken some time and effort to find the right tool for each problem I
needed to solve, and I still feel like there are some rough edges to
soften (like the fact that my Emacs client doesn t support E2E
encryption out of the box, or the whole logging situation), but
otherwise things are working fine and I haven t had any big problems
with the deployment. You do have to be much more careful about stuff
(for example, when I installed an unrelated service that hijacked my
Apache configuration and made Matrix s federation silently stop
working), though.
If you have more specific questions about any part of my setup, shoot
me an email and I ll do my best to help.
Happy chatting!
-
The regular and most used matrix-appservice-irc. This bridge takes
Matrix to IRC (think of IRC users with the
[m]suffix appended to their nicknames), and is what the matrix.org and other big homeservers (including matrix.debian.social) use. It s a complex service which allows thousands of Matrix users to connect to IRC networks, but that unfortunately has complex problems and is only worth using if you intend to host a community server. - A bouncer-like bridge called Heisenbridge. This is what I use personally. It takes IRC to Matrix, which means that people on IRC will not know that you re using Matrix. This bridge is much simpler, and because it acts like a bouncer it s pretty much impossible for it to cause problems with the IRC network.
ement.el nor Element support logging things out of the box
(at least not that I know). This is also one of the reasons why I
still keep my ZNC around: I configure it to log everything.
Dear Debian community,
this are my bits from DPL for August.
Happy Birthday Debian
On 16th of August Debian celebrated its 31th birthday. Since I'm
unable to write a better text than our great publicity team I'm
simply linking to their article for those who might have missed it:
por Allythy
O Debian Day um evento anual que celebra o anivers rio do Debian, uma das
distribui es GNU/Linux mais importante do Software Livre, criada em 16 de
Agosto de 1993, por Ian Murdock.
No ltimo s bado (17/08/2024) no Sebrae-RN comemoramos os 31 anos Debian em
Natal, no Rio Grande do Norte. A celebra o, foi organizada pela
PotiLivre(Comunidade Potiguar de Software Livre), destacou os 31 anos de
hist ria do Debian. O evento contou com algumas palestras e muitas discuss es
sobre Software Livre. Tivemos 70 inscri es, 40 estiverem presentes.
O Debian Day em Natal foi uma ocasi o para celebrar a trajet ria do Debian e
refor ar a import ncia do Software Livre.
Palestrantes
Agradecemos imensamente a Isaque Barbosa Martins, Eduardo de Souza Paix o,
Fernando Guisso,que palestraram nessa edi o! Obrigado por compartilhar tanto
conhecimento com a comunidade. Esperamos ver voc s novamente em futuros
encontros!
Essa edi o do Debina Day Natal foi organizada por: Allythy, Clara Nobre,
Gabriel Damazio e Marcel Ribeiro.
(The issues described in this post have been fixed, I have not exhaustively researched whether any other issues exist)
To ease my nerves, I struck up a conversation with a man seated nearby who was
also traveling to Abu Dhabi for work. He provided helpful information about
safety and transportation in Abu Dhabi, which reassured me. With the boarding
process complete and my anxiety somewhat eased. I found my window seat on the
flight and settled in, excited for the journey ahead. Next to me was a young
man from Ranchi(Zarkhand, India), heading to Abu Dhabi for work at a mining
factory. We had an engaging conversation about work culture in Abu Dhabi and
recruitment from India.
Upon arriving in Abu Dhabi, I completed my transit, collected my luggage, and
began finding my way to the hotel
I reached Tirana, Albania after a six hours flight, feeling exhausted and I was
suffering from a headache. The air pressure had blocked my ears, and jet lag
added to my fatigue. After collecting my checked luggage, I headed to the first
ATM machine at the airport. Struggling to insert my card, I asked a nearby
gentleman for help. He tried his best, but my card got stuck inside the
machine. Panic set in as I worried about how I would survive without money.
Taking a deep breath, I found an airport employee and explained the situation.
The gentleman stayed with me, offering support and repeatedly apologizing for
his mistake. However, it wasn t his fault, the ATM was out of order, which I
hadn t noticed. My focus was solely on retrieving my ATM card. The airport
employee worked diligently, using a hairpin to carefully extract my card.
Finally, the card was freed, and I felt an immense sense of relief, grateful
for the help of these kind strangers. I used another ATM, successfully withdrew
money, and then went to an airport mobile SIM shop to buy a new SIM card for
local internet and connectivity.
I found my top bunk bed, only to realize I had booked a mixed-gender
dormitory. This detail had completely escaped my notice during the booking
process. I felt unsure about how to handle the situation. Coincidentally,
my experience mirrored what Kangana faced in the movie Queen .
Feeling acidic due to an empty stomach and the exhaustion of heavy
traveling, I wasn t up to cooking in the hostel s kitchen.
I asked the front desk about the nearest restaurant. It was nearly 9:30 PM,
and the streets were deserted. To avoid any mishaps like in the movie
Queen, I kept my passport securely locked in my bag, ensuring it wouldn t
be a victim of theft.
Venturing out for dinner, I felt uneasy on the quiet streets. I eventually
found a restaurant recommended by the hostel, but the menu was almost
entirely non-vegetarian. I struggled to ask about vegetarian options and was
uncertain if any dishes contained eggs, as some people consider eggs to be
vegetarian. Feeling frustrated and unsure, I left the restaurant without
eating.
I noticed a nearby grocery store that was about to close and managed to get
a few extra minutes to shop. I bought some snacks, wafers, milk, and tea
bags (though I couldn t find tea powder to make Indian-style tea). Returning
to the hostel, I made do with wafers, cookies, and milk for dinner. That day
was incredibly tough for me, I filled with exhaustion and struggle in a new
country, I was on the verge of tears .
I made a video call home before sleeping on the top bunk bed. It was a new
experience for me, sharing a room with both unknown men and women. I kept my
passport safe inside my purse and under my pillow while sleeping, staying
very conscious about its security.
I took a bus from Shkod r to the southern part of Albania, heading to
Sarand . The journey lasted about five to six hours, and I had booked a stay
at 









I m finishing typing up this blog entry hours before my last 13 hour leg back home, after I spent 2 weeks in 



Conference Dinner Photo from Santiago


You can also see it in: