Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Server Optimizer

An interactive, colorful, and safe CLI tuning tool for dedicated servers and VPS — by PingLess.ORG aka AnAverageBeing.

License: MIT Shell Platform

A single TUI-driven script that detects your hardware and applies conservative, reversible performance, security, and resource-limit tuning. No more memorizing sysctl keys or editing config files by hand.


⚡ One-Line Installer

Run the interactive optimizer directly from GitHub:

bash <(curl -fsSL https://raw.githubusercontent.com/AnAverageBeing/Server-Optimizer/main/install.sh)

Or with wget:

bash <(wget -qO- https://raw.githubusercontent.com/AnAverageBeing/Server-Optimizer/main/install.sh)

Note: Run as root. The script will refuse to start otherwise for safety.


✨ What It Does

  • Auto-detects your CPU, NICs, kernel, and vcore count.
  • Colorful terminal UI with dialog/whiptail and a colored text fallback.
  • Dedicated Server and VPS modes.
  • Performance tuning: BBR, CPU governor, IRQ balance, RPS/XPS, NIC queues/rings.
  • Security hardening: SYN cookies, rp_filter, ICMP/source-route blocking, kernel restrictions.
  • Resource limits: file-max, pid_max, nofile/nproc limits, systemd service limits.
  • Swap management: ZRam or disk swap with size input.
  • Dry-run mode: preview every change before it happens.
  • Rollback: restore previous settings with one menu option.
  • Idempotent: run it once or ten times — no duplicate entries.
  • Cross-distro: supports apt, dnf, yum, pacman, and apk.

🖥️ Menu Overview

   ____  __  __ _____ _____ ____  ____
  / __ \|  \/  |_   _| ____/ ___|| __ )
 | |  | | |\/| | | | |  _| \___ \|  _ \
 | |__| | |  | | | | | |___ ___) | |_) |
  \____/|_|  |_| |_| |_____|____/|____/

       by PingLess.ORG aka AnAverageBeing

Main Menu

  • Dedicated Server — full server tuning menu
  • VPS — VPS-focused tuning menu
  • System Audit — read-only hardware/system summary
  • Toggle Dry-Run Mode — preview changes without applying
  • Rollback — undo all changes made by the tool
  • View Logs — show recent run log

Dedicated Server Menu

  • Safe Optimize
  • NIC Install
  • Optimize Everything
  • Network Kernel Tuning
  • CPU / Power Tuning
  • IRQ / RPS / XPS Tuning
  • Security Hardening
  • Ulimits / File Descriptors
  • Swap Configuration

VPS Menu

  • Safe Optimize
  • Network Kernel Tuning
  • Kernel Tuning
  • Security Hardening
  • Ulimits / File Descriptors
  • Swap Configuration

🛡️ Safety First

The script never touches:

  • RAID topology
  • ZFS pool layout
  • CPU voltage / PBO / Curve Optimizer
  • Kernel security mitigations
  • C-states (automatically)
  • VM configurations
  • XDP/eBPF programs
  • MTU / IP addresses / routing / firewall rules

Every file the script modifies is backed up to /var/lib/auto-host-optimize/backup/ before the first change.


📋 Requirements

  • Linux (kernel 5.15+)
  • root privileges
  • bash
  • Internet connection for dependency installation (optional if deps already present)

🔄 Rollback

From the main menu choose Rollback, or run:

/root/auto-host-optimize.sh
# then select Rollback

This removes all created sysctl files, systemd services, limits, and swap configuration.


🧪 Dry Run

Before applying anything, enable Dry-Run Mode in the main menu. The script will print every command it would run without modifying your system.


📝 Files Managed

  • /etc/sysctl.d/99-zzz-host-performance.conf
  • /etc/sysctl.d/99-zzz-host-security.conf
  • /etc/sysctl.d/99-zzz-host-limits.conf
  • /etc/security/limits.d/99-zzz-host-limits.conf
  • /etc/systemd/system.conf.d/99-zzz-host-limits.conf
  • /etc/systemd/user.conf.d/99-zzz-host-limits.conf
  • /etc/systemd/system/host-performance-*.service
  • /var/lib/auto-host-optimize/

👤 Author

PingLess.ORG aka AnAverageBeing


📄 License

MIT License — see LICENSE for details.

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages