How to optimize used space in flash storage images

Due to their write-sensitive nature, flash storage (both USB sticks and SD cards) normally don’t get zeroed out when data is deleted, making any images created for backup purposes contain random data in the empty sectors. This makes images take up the full size of the disk/card even if very little is actually used from it and also makes image poorly compressible.

The solution is to zero out the unused space in the image file before compressing it. Linux has all the tools necessary for this task readily built-in. If one is not available, a bootable self-contained system such as SystemRescue can be used instead.

How to filter SSH connections per IP on Rocky Linux 8 / CentOS 8

The TCP Wrappers suite of programs is no longer included in RHEL 8, meaning the hosts.allow/deny files no longer exist nor work. This makes quick filtering SSH connections per IP address a bit more difficult as it requires configuring the firewall.

Luckily, the tcp_wrappers package is still available in the EPEL repository even for versions 8 so the previous functionality can be restored, albeit with some additional steps.

How to add (experimental) sensors support for IT8665E in CentOS

Due to lacking driver support for newer hardware I have been missing hardware monitoring on my home server for more than 4 years now, having access to only hard disks temperatures.

Now the time has come to upgrade the good ol’ machine to a new hardware configuration – and of course the new hardware is also unsupported in even the latest CentOS kernels.

Google has nightmares and sees evil things

No, the site wasn’t hacked (I checked and double-checked), I haven’t started hosting viruses or other nefarious things, the warning you may be seeing appears to stem from the fact that Google’s algorithms decided (after over a year) that they don’t like a particular program I link to and flagged an entire category of articles as dangerous.

Thanks also to the fact that Google’s SafeBrowsing lists are used by all major browsers this warning is present in all browser while accessing any of my tech-related articles. So until Google gets its fact straight and has less nightmares about invisible enemies, you’re free to browse those articles at your own risk. Or not, your choice.

How to tweak Samba on ASUSWRT with both public and protected folders

ASUSWRT does a decent job at providing Samba shares to the Windows clients on the network and this will work in most cases. However, if you need to mix password protected with public (open) folders, the firmware cannot handle this scenario.

Fortunately, Asus made a decent job at making the firmware customizable enough that this functionality can be enabled with a bit of custom tweaking.