AuthorSasha

middle aged linux nerd. likes coding and pizza. owner of this particular site.

Creating logrotate Configs

C

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

L

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...

Limit SSH Logins by Country on Ubuntu 22.04.3

L

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...

Recent Posts

Archives

About

middle aged linux nerd. likes coding and pizza. owner of this particular site.