Automated infrastructure hardening, performance tuning, and shell customization for Linux servers.
This repository provides a production-grade provisioning script to set up a secure, high-performance environment on Linux servers and Raspberry Pis. It applies sensible defaults, installs essential utilities, and configures system parameters for optimal performance.
- β‘ Performance Tuning: Applies kernel optimizations via
sysctland sets thelatency-performanceprofile usingtuned. - π‘οΈ Security Hardening: Configures
firewalldwith SSH access and removesufwto prevent conflicts. - π Shell Experience: Installs Starship for a minimal, fast prompt and Fastfetch for system info.
- π Monitoring: Includes btop for real-time resource monitoring.
- π§ Essential Tools: Installs
tar,nano, andcurl.
Run the following command to download and execute the setup script. This must be run as a regular user with sudo privileges.
curl -fsSL https://raw.githubusercontent.com/ytcalifax/dotfiles/refs/heads/master/install.sh | sudo bashNote: The script will automatically detect your OS, install dependencies, and apply configurations.
The script supports the following Linux distributions:
| Family | Distributions | Versions |
|---|---|---|
| Debian | Ubuntu, Debian, Raspbian | 22+, 11+, 11+ |
| RHEL | CentOS, RHEL, AlmaLinux, Rocky, Oracle Linux | 8+ |
| Fedora | Fedora | All recent |
A comprehensive set of kernel parameters is applied to optimize networking, memory management, and filesystem performance.
- File:
etc/sysctl.d/99-performance-tuning.conf - Key Optimizations: Increased file descriptors, optimized TCP stack (congestion control, keepalives), and virtual memory tuning.
A minimal and fast configuration for the Starship prompt is installed, and the system-wide bashrc is enhanced.
- Starship Config: Fetched directly from this repository during installation.
- Bashrc Enhancements:
- Initializes Starship prompt.
- Runs Fastfetch on login for system overview.
- Aliases
btoptosudo btopfor full metrics access. - Clears screen on login.
firewalld is enabled as the default firewall manager.
- Default Zone:
public - Allowed Services:
ssh - Action:
ufwis removed to ensure a single source of truth for firewall rules.
Issues and pull requests are welcome! Please file an issue if you encounter any problems or have suggestions for improvements.
Designed for Linux Servers & Raspberry Pis.