Category: Bash

Fail2Ban Nginx Setup – Block Scanners and Exploits Without Blocking WordPress Admin

Fail2Ban Nginx Setup – Block Scanners and Exploits Without Blocking WordPress Admin

This guide shows a complete Fail2Ban installation and configuration for Nginx, designed to: block real scanners and exploit attempts (e.g. requests to /.env, /.git, /phpmyadmin, etc.), avoid blocking administrators by accident (common issue when banning only by HTTP errors), ban IP addresses after repeated suspicious activity, use a short ban time (5 minutes) to reduce […]

Read more »

Automatic upgrade Debian 12 → Debian 13 with optional PHP and nginx update

Automatic upgrade Debian 12 → Debian 13 with optional PHP and nginx update

Upgrading Debian from version 12 (bookworm) to 13 (trixie) is an operation that should be performed in a repeatable and predictable way, especially on servers and containers (for example Proxmox LXC or virtual machines). Below you will find a simple guide and ready-to-use commands to download and run the upgrade script. Before running the upgrade: […]

Read more »

Dynamic Tmux Window Titles with SSH and Hostname

Dynamic Tmux Window Titles with SSH and Hostname

Want your Tmux window titles to automatically show the hostname you connect to via SSH — and restore the local name after you disconnect? This guide will walk you through setting that up step by step. 1. Tmux configuration – ~/.tmux.conf In your Tmux configuration file, set the default shell command to a custom Bash […]

Read more »

Automatic deletion of files on QNAP drive via SSHFS

Automatic deletion of files on QNAP drive via SSHFS

Automation of Disk Space Management in a Linux Environment In today’s digital world, where data is being accumulated in ever-increasing amounts, managing disk space has become a key aspect of maintaining operational efficiency in systems. In this article, I will present a script that automates the process of managing space on a remote disk mounted […]

Read more »

Expanding Storage Space in Linux: Step-by-Step Guide using LVM and fdisk

Expanding Storage Space in Linux: Step-by-Step Guide using LVM and fdisk

Expanding disk space in Linux virtual machines is a key aspect of server system management. In this article, we show how to effectively increase disk space using LVM and fdisk tools, based on real system data. Preliminary Preparations Before making changes to partitions and volumes, it is important to check the current state of the […]

Read more »

Upgrading Apache Cassandra from Version 3.1.15 and Higher to 4.1.x on Ubuntu 20.04.5 LTS: A Comprehensive Guide

Upgrading Apache Cassandra from Version 3.1.15 and Higher to 4.1.x on Ubuntu 20.04.5 LTS: A Comprehensive Guide

Upgrading Apache Cassandra to a newer version is a significant task that database administrators undertake to ensure their systems benefit from new features, enhanced security measures, and improved performance. This guide provides a detailed walkthrough for upgrading Apache Cassandra from version 3.1.15 and higher to the latest 4.1.x version, specifically on Ubuntu 20.04.5 LTS, with […]

Read more »