- Added `scripts/library/venv_utils.py`:
- Utilities for creating, activating, and managing Python virtual environments.
- Supports automatic requirement installation and optional --verbose mode.
- Added `scripts/change_case.py`:
- CLI script to recursively rename files and directories based on case transformation (lower, upper, capitalize).
- Supports --recursive and --case flags, and integrates with `venv_utils.py`.
- Updated README with usage instructions and documentation for new components.
- Added shorthand options for common arguments:
- `-t` for --track
- `-f` for --file
- `-d` for --dir
- Simplified command-line usage for managing audio and subtitle tracks in video files.
- Implement functionality to remove, keep, or remove all subtitle tracks.
- Supports processing single video files or entire directories.
- Includes options for managing subtitle tracks by index.
- Refactored audio processing logic to handle both 'remove' and 'keep' commands.
- Added a command-line argument to specify whether to remove a specific audio track or keep only a selected audio track while preserving other streams.
- Improved handling of video file processing in directories with recursive function.
- Streamlined error handling for more informative output during ffmpeg execution.
- Updated argument parsing with command options and enhanced autocomplete support.
- Adds `video_autoreduce_rename.py`, a companion script to rename video files and directories containing resolution tags.
- Automatically replaces higher resolution tags (e.g., 2160p, 1080p) with a specified max height (default: 720p).
- Supports debug mode for detailed output.
- Prevents overwriting existing files by skipping conflicts.
- Complements `video_autoreduce.py` for a streamlined video processing workflow.
Added `video_autoreduce.py`, a Python script that scans directories for video files exceeding a specified resolution and prepares them for automatic resolution reduction using FFmpeg.
- Detects video files in a given directory.
- Determines their resolution using `ffprobe`.
- Identifies videos exceeding a maximum height threshold.
- Supports subtitle codec validation and ensures proper output handling.
- Includes utility functions for file management and logging.
This script will help streamline batch video processing while preserving essential metadata and subtitles.
- Updated `<hostname-intranet>`, `<hostname-internet>`, `<hostname-hypervisor>`, and `<hostname-hypervisor-nas>` placeholders to include `.domain.com` in examples.
- Added `<name-hypervisor-nas>` placeholder for clarity.
- Applied changes across all guides for consistency and enhanced obfuscation.
- Added references to new guides included in the repository.
- Updated paths to server setup notes moved to `setups/*`.
- Reflected overall structural changes and improvements in the repository.
This update ensures the README stays accurate and provides clear navigation for users.
- Introduced a detailed installation guide for Gitea on Debian in a Proxmox LXC container.
- Included sections on:
- Introduction to Gitea
- Prerequisites for installation
- Step-by-step installation procedure
- Important warnings and security practices
- Useful commands and information
This guide aims to simplify the setup and configuration of Gitea for efficient Debian package management.
- Updated README.md to reflect those changes.
- Unified and cleaned up common headers and notes for consistency.
- Standardized formatting and normalized examples for better readability.
- Aligned wording and comments for common commands to ensure uniform style.
These changes improve clarity, maintainability, and usability of the documentation.
- Added instructions for setting up Tesseract with language support.
- Documented steps for converting PDFs to images using `pdftoppm` and alternatives like `ImageMagick`.
- Included examples for single and multi-page OCR processing.
- Detailed methods for merging extracted text into a single file.
- Added troubleshooting tips for improving OCR results and handling selectable PDFs with `pdftotext`.
- Documented commands for flushing DNS cache using `resolvectl` and `systemd-resolve`.
- Included instructions for enabling and restarting `systemd-resolved` service.
- Added usage examples for `dig` and `nslookup` to query DNS records.
- Provided contextual explanations and legacy tool considerations.
Included various commands such as `lsb_release -a`, `cat /etc/debian_version`, and `hostnamectl` to document ways of retrieving system and distribution details.
- Introduced a detailed installation guide for Aptly on Debian in a Proxmox LXC container.
- Included sections on:
- Introduction to Aptly
- Prerequisites for installation
- Step-by-step installation procedure
- Important warnings and security practices
- Useful commands and information
This guide aims to simplify the setup and configuration of Aptly for efficient Debian package management.
- Updated README.md to reflect those changes.
- Added debrepo.fabq.ca.html template for the Debian package repository homepage.
- Included various icons for better representation and accessibility, such as:
- Favicon (16x16, 32x32)
- Android Chrome icons (192x192, 512x512)
- Apple Touch icon
- Web manifest for site configuration
This commit introduces comprehensive SSH documentation, covering key management, connection methods, firewall configurations, and secure file transfer protocols. The new section includes:
- Instructions for connecting using specific SSH keys.
- Detailed SSH key management processes, including key generation and public key installation.
- Verbose mode usage for connection troubleshooting.
- Configuration guidelines for enabling root login and firewall settings with firewalld.
- Examples of SCP (Secure Copy Protocol) for secure file transfers.
- Commands for executing remote commands and testing SSH connections.
- Best practices for managing SSH aliases and updating known hosts.
- Steps for removing offending SSH keys from the known_hosts file.
These notes serve as a resource for efficient SSH usage and management, enhancing the overall functionality of the repository.
- Published a Python script that removes specified audio tracks from video files.
- Supports individual files and recursive directory processing.
- Added argument parsing with options for specifying audio track, file, and directory.
- Implemented color-coded output for clearer feedback.
- Integrated argcomplete for command-line autocompletion.
- Added a comprehensive guide for creating Debian packages, including steps for source tarball creation, building control files, changelog format, and package testing.
- Clarified the purpose of key Debian control files (control, rules, changelog, etc.).
- Included optional `lintian` step to ensure package compliance with Debian policies.
- Provided instructions for testing the built `.deb` package after installation.
- Ensured versioning structure aligns with Debian conventions.
These notes provide a full step-by-step process to package applications for Debian, making it easier to manage future packaging tasks.
- Included instructions for required tools, building the package, and uploading to Test PyPI and Live PyPI.
- Added comments for clarity in the notes.
Added notes on user commands and font directories in Linux notes
- Included commands to run commands as a specific user, change user shells, and switch to a user with a specific shell.
- Added instructions for managing local and global font directories.
- Added sections for Information on Drives, Filesystem, Backup Procedures, Recovery, Drive Manipulation, Balances, Scrub, and Snapshots.
- Included commands and procedures for listing drives, displaying filesystem information, managing backups, handling recovery, drive replacements, balancing, scrubbing, and snapshot operations.
- Updated and standardized syntax highlighting and command format for clarity.
- Added resources and download links for Brother printer drivers (MFC-9010CN and DCP-L2520DW).
- Included installation commands for downloading and installing printer drivers.
- Provided detailed step-by-step instructions for extracting and running the installer script.
- Clarified options for USB and network printer setups during installation.
- **Disk Management**: Added commands for switching data between two USB drives, including formatting and copying operations.
- **Diagnosis**:
- **Apt**: Included command to view APT logs for package history.
- **Wayland Issues**: Added commands for checking system logs and GPU information to diagnose Wayland-related issues.
- Added instructions for setting and updating hostnames, including alias configuration.
- Included detailed `tar` commands for creating and transferring backups over SSH.
- Expanded time zone configuration section with `timedatectl` commands and manual link setup.
- Added methods for locating specific services using `systemctl`.
- Included steps for decrypting and re-encrypting `openssl` archives with password management.
- Added `diff`, `rsync`, and `cmp` methods for recursively verifying directory content differences.
- Added instructions for downloading, extracting, and copying font files.
- Included steps to update the font cache with explanations of `fc-cache` options.
- **System Information**:
- Added detailed commands for hardware and software information, including `lscpu`, `lshw`, `hwinfo`, and more.
- Included commands for finding binary paths, counting words and lines in files.
- **User Management**:
- Introduced new sections for managing user information, super user management, and switching users.
- Added commands for listing users, disabling root login via SSH, managing sudo permissions, and switching users with sudo or root privileges.
This update provides a more comprehensive overview of system and user management tasks.
- Included basic commands for common PDF tasks using pdftk
- Added instructions for:
- Merging PDFs
- Appending one PDF to another
- Cutting specific pages from a PDF
- Splitting PDFs into individual pages
- Rotating PDF pages
- Encrypting PDFs with a password
This commit provides essential pdftk commands for managing and manipulating PDF files.
- Added detailed instructions for checking and managing USB devices
- Included commands for:
- Viewing system information related to USB devices
- Identifying mount points and device information
- Checking filesystem and data integrity
- Testing for bad blocks and running SMART diagnostics
- Benchmarking read speed and safely removing devices
This commit provides a comprehensive guide for handling USB devices in Linux environments.