Projects
BTRFS Snapshot Manager
BTRFS is one of the best filesystems for Linux thanks to the features it offers of most modern filesystems. One of the features that I like the most is the ability to create snapshots of the filesystem. This is very useful when you want to backup your system or just want to try out new software without the fear of breaking your system.
With BTRFS-Snapshots-Manager, there is no need to manually create snapshots before installing, remove or updating software. The script will automatically create a snapshot of the filesystem before and after the installation, removal or update of software. With the added benefit of Systemd Timers
, the script will also create snapshots at regular intervals each day.
Download the latest release from here and install it using the following command:
sudo dpkg -i btrfs-snapshots-manager_*.deb
ZRAM for SWAP
I have created a simple script to enable ZRAM for SWAP on Linux. This script is based on the ZRAM configuration for Ubuntu and Debian. It creates a ZRAM device and enables it as SWAP. The script also sets the ZRAM device to be used as SWAP on boot.
The script is written in Bash and can be used on any Linux distribution that supports ZRAM. However, there is a deb
package available
here
.
To install the deb
package, download it and install it using the following command:
sudo dpkg -i simple-zram_*.deb
SystemD Timer Scripts
Here are some SystemD Timer Scripts I wrote to automate some tasks on my Virtual Machine and/or LXC Containers that help me to keep my system up-to-date and running without much need manual intervention.
- Update Pihole Gravity and underlying Framework.
- Keep Unbound DNS Resolver up-to-date.
- Clean up apt cache.
- Update Starship prompt to the latest version.
- Keep Vaultwarden Docker container updated.
If using these scripts, please make sure to adjust the paths and commands to your needs.
Note: The timer script for Starship Prompt only works if Starship is installed globally.
The advantage of using SystemD over Cron is that it is more reliable when it comes to running tasks at a specific time and if the time was missed. This means that SystemD will run the task as soon as possible after the missed time.
Linux Kernel for WSL
I have compiled a Linux Kernel for Windows Subsystem for Linux (WSL). This kernel is based on the based on either the mainline or stable kernel from kernel.org . The kernel is compiled inside WSL and can be installed on Windows 10 or Windows 11.
To use this Kernel Patch you need to have the following installed development tools on your system.
sudo apt install build-essential \
flex bison libssl-dev \
libelf-dev bc libncurses-dev
You can download the compiled kernel from here and install it on your system. Note: Don’t install in the default location for the kernel. Instead, install it in a separate directory and point to it in your WSL configuration.
Hugo Theme Simple Dark
I have created a Hugo Theme called Simple Dark. This theme is a simple and clean dark theme for Hugo. It is based on the Hugo theme Hugo Coder created by Luiz F. A. de Prá.
I did make some changes, most noteably to how the SCSS files are structured and transpiled. I also added some additional features like how the FontAwesome icons are loaded and used in the theme.
The source code for this theme can be found on GitHub .