dt.iki.fi

All Articles (123)

Getting email off my web server with msmtp (and PHP)

My server is not a mail server, and I never learned to make use of UNIX' internal mailing system. But sometimes I want to get a message from my server, e.g. diagnostic stuff from services (SMART daemon, fail2ban), or if someone tries to contact me on my website, and I want it sent to my email addres.....

Time not synced

I noticed that my server's (Debian stable) datetime was way off. Years. Strange, because I was sure I had enabled systemd-timesyncd (but apparently never gave it a second thought after that). Looking at systemctl status systemd-timesyncd I found this cryptic message: ● systemd-timesyncd.service - Ne.....

Improve maintenance and performance of your CMS

Situation I am using PicoCMS1. It's not installed through the global package management: all its files, content & executables (except PHP itself) are located under a single directory. This is not ideal, but common practice; and it has the advantage that it makes maintenance easier. This article .....

Firefox: hide pop‑ups (or any web page element)

Are you using noscript or a similar addon, possibly uMatrix, that blocks javascript, cookies and third party requests? If so (and probably even if you don't) then you have seen web pages become virtually unreadable for all the additional nagging elelments that pop up top, bottom, left and right. Exa.....

Short Review Diary ‑ Books and other Reading

An incomplete timeline of what I read - mostly contributions to various forum threads. Read books and stories (audio formats) are included here. April 14 2021 We have talked about Hannu Rajaniemi before. Now I am pleased to announce that he published a post-Covid19-SciFi story (or a bunch of them af.....

Encrypt any block device

Goal A hard drive or a USB stick set up in this way is recognised by common filemanagers (e.g. Thunar, PCManFM) - it shows up as an encrypted device in the side bar, a password dialog pops up, and the twofold decrypt/mount process happens in one click. Device encryption, performance considerations W.....

Disable the Linux kernel watchdog

journalctl -b | grep watchdog; sudo dmesg | grep watchdog Both commands return something like NMI watchdog: Enabled. Permanently consumes one hw-PMU counter. I have no use for this watchdog on a desktop computer. This link already contains all the information required to disable it, but here's the m.....