Technology

Installing the new Dendrite Matrix Homeserver on Debian Buster

This post contains my personal notes on how to set up Dendrite, Matrix.org’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: 127.0.0.1 interface: ::1 access-control: 127.0.0.0/8 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 https://download.brother.com/welcome/dlf006893/linux-brprinter-installer-2.2.1-1.gz gunzip linux-brprinter-installer-*.*.*-*.gz Turn on printer

Bitwarden: How to setup a self-hosted password manager

Bitwarden is an open-source password manager. Using Bitwarden_rs, it is possible to create a self-hosted server, using little resources, enabling you to use all its features. Bitwarden makes it possible to share and sync usernames and passwords across all devices and webbrowsers.

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 {} \;