Introduction logrotate is the de facto standard on Linux and UNIX systems for automatically rotating, compressing, and pruning log files. A well-crafted logrotate configuration keeps disks from filling up, ensures older logs are archived, and makes debugging easier. In this guide, you’ll learn: Where logrotate looks for configs and how it runs Global vs. per-service configuration structure All...
Logging and Error Checking in Bash Scripts
Introduction When your automation grows beyond a handful of lines, ad-hoc echo’s and unchecked failures become a maintenance headache. In this guide, you’ll learn how to build: a configurable logging function with levels, colors, and optional file output a robust error-checking framework using exit codes and traps real-world examples to tie it all together 1. Why Abstract Logging & Error...
Getting some important answers from AI (part 1)
I’ve been playing around with some local AI lately, this time using the Llama-3.1-8B-Lexi-Uncensored model. I started asking important questions carefully, and I ended up having a really interesting conversation about what might be coming for us all in the not-so-distant future. So, here it is, enjoy:
Limit SSH Logins by Country on Ubuntu 22.04.3
Hiding your SSH login from potential attackers is crucial for safeguarding your server. In this guide, we’ll explore how to further enhance your server’s security by limiting SSH logins based on the country of the connecting IP address. While this method adds an extra layer of security, it’s important to note that it may not prevent access if attackers are using VPNs with IP...