Category Archives: Solved Problems

Problems and solutions. Good stuff.

Killing a process tree, killing a PID and all children

Here are a couple of useful functions I wrote to kill a process tree. It’s useful when dealing with tcpserver, which refuses to disconnect a client for as long as a process it started, or a child of that process, still runs. It’s also good for tackling runaway unintentional fork bombs, rogue daemons and other […]

Making a telnet server with Bash and tcpserver

Telnet servers are everywhere. They are simple, insecure by nature, outdated, and often badly implemented. Let’s do that, shall we? 🙂 TL;DR: Here’s the library. A simple way to make any command line interface listen to incoming TCP connections is tcpserver, provided as part of the ucspi-tcp or ucspi-tcp-ipv6 package on Debian. Using this, we […]

apt-get reports Packages not found

So.. this shit again. # apt-get update Ign http://ftp.debian.org jessie-updates InRelease Ign http://ftp.debian.org jessie-updates Release.gpg Ign http://ftp.debian.org jessie-updates Release Ign http://ftp.debian.org jessie-updates/main Sources/DiffIndex Ign http://ftp.debian.org jessie-updates/main i386 Packages/DiffIndex Ign http://ftp.no.debian.org jessie InRelease Ign http://ftp.no.debian.org jessie Release.gpg Ign http://ftp.no.debian.org jessie Release Ign http://ftp.no.debian.org jessie/main Sources/DiffIndex Ign http://ftp.no.debian.org jessie/main i386 Packages/DiffIndex Ign http://security.debian.org jessie/updates InRelease Ign http://security.debian.org […]

The Windows XP PowerToys, archived here for your pleasure

These are apparently slowly disappearing from the intertubes. This is my attempt at archiving them. -> DOWNLOAD HERE <- Included PowerToys: Alt-Tab Replacement Task Switcher replaces the simpler Alt-Tab switcher with a more visual one which shows live window previews. CD Slide Show Generator generates a slideshow from photos burned to a CD. ClearType Tuner […]

Duplicate bind mounts with chroots on systemd

When setting up jails, I commonly end up with structures like this in my /etc/fstab: /dev /jail/test/dev auto bind 0 0 /dev/pts /jail/test/dev/pts auto bind 0 0 /dev/shm /jail/test/dev/shm auto bind 0 0 /proc /jail/test/proc auto bind 0 0 /sys /jail/test/sys auto bind 0 0 /dev /jail/test2/dev auto bind 0 0 /dev/pts /jail/test2/dev/pts auto bind […]

Fixing empty search results in the Windows 10 Settings (the shiny new Control Panel)

This happened on a few machines I am responsible for, after the upgrade to Windows 10. You click “Start”, type “updates”, it suggests “Check for Updates” in the “Settings” app, you click <enter> and it opens an empty settings window with no search results. Great. After looking around for a while, I stumbled over the […]