Installing the new Dendrite Matrix Homeserver on Debian Buster

This post contains my personal notes on how to set up Dendrite,’s second-generation homeserver written in Go. These notes are not yet complete, but do contain the basics to get things going.

Nano YAML Highlighting

By default, nano on Debian Buster does not support syntax highlighting YAML files. Adding this template to nano will give you syntax highlighting when opening YAML files in nano. sudo tee /usr/share/nano/yaml.

Setup Unbound DNS cache & resolver on Debian Buster

sudo apt install unbound sudo su -c "unbound-anchor -a /var/lib/unbound/root.key" sudo tee -a /etc/unbound/unbound.conf << EOF > /dev/null server: interface: interface: ::1 access-control: allow access-control: ::1/128 allow # enable remote-control (useful when utilising monitoring tools such as netdata) remote-control: control-enable: yes EOF sudo systemctl restart unbound sudo apt install resolvconf sudo nano /etc/network/interfaces change nameservers to 127.

Disable sudo password prompt

sudo nano /etc/sudoers add # Paswordless sudo %sudo ALL=(ALL) NOPASSWD: ALL

Zsh: Increase your productivity when using the terminal

Recently, I’ve become a big fan of replacing bash with zsh as my standard shell on Debian. Combined with the Oh My Zsh (GitHub) framework, it makes the terminal more convenient to use, offering better history search, autocompletion and plugins for many popular tools, such as git, systemctl and kubectl.

Comments on your website: How to setup the Commento commenting platform

Commento is, according to its developer, “A fast, privacy-focused commenting platform”. You can use it to enable visitors to comment on your website. It’s also what is powering the comments on this website.

Brother printer: Install on Debian

Brother printers work great on Linux. However, in order to make use of all supported features such as toner-save, you’ll need to install the manufacturer’s driver. wget gunzip linux-brprinter-installer-*.*.*-*.gz Turn on printer

Bitwarden: How to setup a self-hosted password manager using Vaultwarden

Bitwarden is an open-source password manager. Using Vaultwarden, a Bitwarden compatible server implementation written in Rust formerly known as Bitwarden_RS, it is possible to create a self-hosted server, using little resources, enabling you to use all its features.

Unattended upgrades: Reboot Required E-mail Notification

I like my systems to automatically apply security updates. Sometimes these require a reboot, but I do not want reboots to happen unattended. This script: Checks daily (every day at 8.

Rspamd: Train spamfilter after mailserver migration

Learn spam: find /var/vmail/mailboxes/*/*/mail/Spam/cur -type f -exec /usr/bin/rspamc learn_spam {} \; Learn ham: find /var/vmail/mailboxes/*/*/mail/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Sent/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Trash/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Drafts/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Templates/cur -type f -exec /usr/bin/rspamc learn_ham {} \; find /var/vmail/mailboxes/*/*/mail/Archives/*/cur -type f -exec /usr/bin/rspamc learn_ham {} \;