Advanced Search
Search Results
206 total results found
Deploy cron jobs to many servers from one script folder
A lightweight way to manage scheduled jobs on a handful of Linux servers without Ansible. Keep one folder of scripts and cron files on an admin box, copy it to every server, and let each server install the cron files meant for it. Folder layout /opt/scripts/ ...
Reliable Let's Encrypt renewals on RHEL / Rocky
A certificate can only be renewed in its last 30 days. A cron job that tries once a month can miss that window after a single failure, and the certificate expires. Use the packaged timer The EPEL certbot package ships a systemd timer that runs twice a day: sud...
A menu script for Docker media containers, with a VPN routing check
If you run a group of media containers (the *arr apps, download clients, flaresolverr and so on), a small menu script saves typing for the common jobs. The most useful part is a check that download clients really leave through the VPN. Pick the "media" group b...
Clean up leftover {tmdb-...} folders in a media library
Media managers (Radarr, Sonarr, Jellyfin) name folders like Movie (2020) {tmdb-12345}. When an item is removed or re-imported, a folder can be left behind with just artwork or an .nfo file. This how-to finds those folders and removes them, after showing you th...
Remove movie folders that have no video files (safely)
Over time a movie library collects folders that hold only posters, .nfo files or subtitles, because the movie itself was deleted or moved. This finds them, shows the list, and deletes only after you confirm. The logic A folder is a candidate when nothing under...
Set the "date taken" on photos with ExifTool
Scanned or undated photos often have no EXIF date, so photo libraries (Immich, PhotoPrism, Synology Photos) sort them by file date. ExifTool can set it. Install sudo dnf install perl-Image-ExifTool # RHEL/Rocky (EPEL) sudo apt install libimage-exiftool-pe...
Convert images in bulk (convert_images.sh)
Location: /opt/scripts/docker_scripts/convert_images.sh (68 lines) Purpose Converts HEIC photos (iPhone) in a folder to JPG next to the originals, with heif-convert. How it runs By hand. Usage /opt/scripts/docker_scripts/convert_images.sh -n /path/to/photos ...
Delete HEIC files that already have a JPG copy
Location: /opt/scripts/docker_scripts/delete_heic_jpg.sh and /opt/scripts/docker_scripts/delete_jpg_heic.sh (56 lines each) Purpose Two mirror-image clean-up scripts for use after converting photos. Each works in the current folder only: delete_heic_jpg.sh d...
Rename all files in a folder to upper case
Location: /opt/scripts/renameuppercase.sh (May 2016, 1 line of logic) Purpose Renames every file in the current folder to upper case (for example photo.jpg becomes PHOTO.JPG). How it runs By hand, from inside the folder you want to change. Usage cd /path/to/fo...
Shrink Raspberry Pi SD-card images with PiShrink
Location: /opt/scripts/pishrink.sh (April 2018) Purpose A copy of the open-source PiShrink tool. It shrinks a Raspberry Pi SD-card image (.img) to the smallest size its root filesystem allows. Unless you pass -s, it also sets the Pi to grow the filesystem back...
Linux - Bag of Tricks (Part 2): Certificates, Databases, Disks & Boot
This page continues Linux - Bag of Tricks. Create a CERT First, you need to generate the private key and the Certificate Signing Request (CSR). You can do this via the openssl command: openssl req -nodes -newkey rsa:2048 -keyout privatekey.key -out mail.csr ...
RedHat - Kubernetes Cluster on RHEL 9.x | Rocky 9.x (Part 2): Control Plane, Workers & Test
This page continues RedHat - Install a Kubernetes Cluster on RHEL 9.x | Rocky 9.x: A Step-by-Step Guide. Install a Kubernetes Cluster on RHEL 9.x | Rocky 9.x: Control Plane (Master) Node Configuration NOTE: Up to this point, we've installed and configured the ...