stornic56 53088aad4b Docs Update
- ZRAM Scaling (docs/QUICKSTART.md): Updated Step 9 with the current fixed-4096MB formula: `≤8 GB → 50%`, `>8 GB → 4096 MB fixed`. Replaced obsolete `ram_gb > 16 ? 25% : 50%` and `/4` vs `/2` logic with the new behavior (`ram_gb <= 8 ? 50% : 4096 MB`). Examples: 4GB → 2048 MB, 8GB → 4096 MB, 16GB → 4096 MB, 32GB → 4096 MB.

- GPU Configuration (docs/gpu.md): Added AMD GCN Migration subsection with duplicate guard (`content_differs-style` check) and sed fix logic. Added Secure Boot warning for NVIDIA DKMS (`mokutil --sb-state` detection). Documented `|| return 1` protection for `/etc/modprobe.d/nvidia-wayland.conf` writing. Renumbered duplicate sections 7 → 8 → 9 to avoid duplicate headings.

- Firmware Installation (docs/firmware.md): Updated Broadcom section with `_run_cmd` wrappers (`|| true`) for `apt install broadcom-sta-dkms` and `modprobe wl`. Added SSH network warning (`WARNING: SSH is not recommended on a router`) before `modprobe -r`. Updated Initramfs step with `_run_cmd` wrapper (`|| true`).

- Repo Configuration (docs/repos_config.md): Removed `REPOS_CONFIGURED=true` from the POST-EXECUTION PHASE diagram and Safety Mechanisms. Added `_write_branch_sources` with its `_restore_backup` rollback and "Branch Migration Rollback" safety note to the diagram.

- System Info & Pre-flight (docs/system_info.md): Added pre-flight init (auto-install whiptail + lsb-release). Added LSPCI_OUTPUT cache with `command -v lspci` guard. Added `_ensure_apt_updated` deduplication helper. Added `STATE_REFRESHED=true` flag mechanism across all menu branches.

- User Home Ownership (docs/user_priv_feed.md): Updated Option 3 (Repair Home Ownership) to use `getent passwd "${SUDO_USER:-$USER}"` instead of the insecure `eval echo "~$USER"` pattern. Added documentation note explaining the security rationale.

- QuickStart ZRAM (docs/QUICKSTART.md): Updated Step 9 ZRAM scaling to "50% of RAM (≤8 GB) or 4096 MB fixed (>8 GB)".
2026-09-12 16:53:10 -05:00
2026-09-12 16:53:10 -05:00
2026-07-16 01:02:51 -05:00
2026-08-27 01:41:33 -05:00
2026-05-15 16:15:20 -05:00
2026-09-12 16:53:10 -05:00

Debianito - Post-Installation Automation for Debian

Debianito is a user-friendly post-installation automation script for Debian 11 (Bullseye), Debian 12 (Bookworm) and Debian 13 (Trixie). It streamlines system configuration, driver installation (including NVIDIA drivers), repository setup with backports support, gaming tools integration, and more with an interactive menu-driven interface.

License: GPL v3 Script


System Requirements

Requirement Specification
OS Debian 11 (Bullseye), Debian 12 (Bookworm), Debian 13 (Trixie)
Privileges Normal user with sudo access, script validates root/sudo in utils.sh
Terminal Any modern terminal emulator supporting ANSI colors and UTF-8 box-drawing characters
Dependencies Standard Debian packages (whiptail, lsb-release); auto-installed if missing

Installation Instructions

Clone the repository, make the script executable, and run it:

git clone https://github.com/stornic56/debianito-post-install
cd debianito-post-install
chmod +x debianito.sh && ./debianito.sh

⚠️ Do not run as root. The script checks for non-root execution and requires sudo privileges.


Usage

After running the script:

  1. Select Option: Use arrow keys or type 1-14.
  2. Navigation: Use Arrow Keys (Up↑/Down↓) to move between list options and ENTER key to confirm selection.
  3. Confirm Actions: Installation prompts use whiptail for TUI confirmations.
  4. Review System Info: Header displays detected Debian version and hardware summary before each action.
  5. Repeat as Needed: Return to main menu at any time or exit when done.
Option Description What it does
1 System Info Show detected OS, CPU, RAM, GPU and hardware details
2 User Privileges & Feedback Configure sudo group membership, enable passwordless sudo for frequent tasks, repair home directory ownership issues, and toggle visual password feedback (asterisks) in terminal
3 System Preferences Configure date/time & timezone, language/locales & keyboard layout, and audio stack (PipeWire, ALSA, PulseAudio)
4 Configure Repositories Setup official repos with non-free/contrib options, optional Backports support and Deb822/classic format injection
5 Firmware, Wireless & Bluetooth Install essential firmware for GPUs and wireless; configure Bluetooth stack (bluez, bluedevil/blueman)
6 Graphics Drivers & Mesa Stack Configure AMD/Intel/NVIDIA drivers and Mesa graphics stack + monitoring tools
7 Kernel Install kernel variants: Stable, RT, Cloud, or Backports (Debian 13)
8 Gaming Setup Steam, Heroic Games Launcher, RetroArch, GameMode, MangoHud, OpenRGB, Java JRE (Temurin 8/17/21/25)
9 ZRAM Configure compressed RAM for memory optimization
10 Swap Management Manage swap file or partition size and enable/disable swap space for system stability
11 Install Programs and Software Browse and install packages by category (Development, Themes, System Tools, etc.) using APT
12 Boot Rescue + GRUB Config and fix GRUB bootloader issues, chroot repair, or restore system boot configuration
13 Desktop & Display Install and configure desktops (XFCE, LXDE) and display managers (LightDM, GDM3, SDDM, greetd)
14 Exit Return to terminal

Install Programs and Software (Option 11)

The submenu offers the next categories:

Option Category Title Description
0 Essential Pack Quick install of common tools (compression, system info, VLC, MS fonts)
1 Customization System Desktop themes, icon themes, cursor themes, and fonts
2 Download & Network Downloaders (aria2, ytdlp, FileZilla) + Torrent clients (qBittorrent, Deluge, Transmission)
3 Internet (Browsers, Email Clients, VPN) Web browsers (Firefox, LibreWolf, Floorp, Chromium, Tor), email client (Thunderbird), and VPN tools (RiseUp, Proton, Mullvad)
4 Communication Signal, Telegram, HexChat — chat and messaging clients (GUI only)
5 Media Players Multimedia playback with VLC media player and MPV for advanced video/audio support
6 Multimedia & Design Image editing (GIMP), video editing (Kdenlive, HandBrake), 3D modeling (Blender), audio recording (Audacity), and graphics design (Inkscape)
7 Code Editors & IDEs vim, vim-gtk3, Neovim, Helix, nano, Emacs, Kate, Mousepad, Gedit, Geany, GNOME Text Editor, and VSCodium (VS Code open-source)
8 Servers & Dev Tools Web servers (Nginx/Apache), databases (PostgreSQL/MariaDB), Java Development Kit (Temurin 17/21/25 JDK), Docker, Python, SSH tools, Jellyfin Server and essential utilities
9 Security & Networking Wireshark, tcpdump, Zenmap, ClamAV, UFW, fail2ban
10 Software Center & Flatpak GNOME Software / KDE Discover and Flatpak support
11 Office & Productivity Office suites (LibreOffice), document tools, productivity apps
12 System Tools htop/btop, ncdu, Timeshift, tmux/screen, nvme-cli, extension repository manager and qemu/virtmanager
13 Fetch / System Info fastfetch/neofetch, hyfetch, Linux logo and screenfetch
14 Back to Main Menu Return directly to the main Debianito menu (exit submenu)

File Structure

Directory/File Description
debianito.sh Main entry point; handles menu navigation and system detection.
docs/ Documentation directory containing Markdown files for each module.
modules/ Core modular scripts organized by category: repos, gpu, gaming, kernel, firmware, zram, etc.
modules/bullseye/ Legacy Debian 11 (Bullseye) specific modules: extras.sh, legacy.sh, repos.sh.
modules/system/ System preferences: system_prefs.sh (timezone, locale, keyboard) and audio.sh (PipeWire, ALSA).
modules/extras/ Software installer sub-modules split by category (themes, downloaders, internet, dev tools, etc.).
modules/gaming/ Gaming launcher and optimization scripts: Steam, Heroic, Lutris, performance tools.
modules/gpu/ GPU driver installation scripts for AMD and NVIDIA with architecture detection.
modules/repos/ Repository management scripts: migration tool (migrate.sh) and format detection (repo_detect.sh).
├── debianito.sh
├── docs
│   ├── boot.md
│   ├── desktops_display.md
│   ├── firmware.md
│   ├── gaming.md
│   ├── gpu.md
│   ├── kernel.md
│   ├── QUICKSTART.md
│   ├── repos_config.md
│   ├── retroarch.md
│   ├── swap.md
│   ├── system_info.md
│   ├── system_prefs.md
│   ├── user_priv_feed.md
│   └── zram.md
├── media
│   └── gift
│       └── script.gif
├── modules
│   ├── bluetooth.sh
│   ├── bullseye
│   │   ├── extras.sh
│   │   ├── legacy.sh
│   │   └── repos.sh
│   ├── desktop_display.sh
│   ├── extras
│   │   ├── audio
│   │   ├── communication
│   │   │   └── communication.sh
│   │   ├── design
│   │   │   └── design.sh
│   │   ├── dev
│   │   │   ├── dev.sh
│   │   │   └── jellyfin.sh
│   │   ├── download
│   │   │   └── download.sh
│   │   ├── essential
│   │   │   └── essential.sh
│   │   ├── fetch
│   │   │   └── fetch.sh
│   │   ├── _helpers.sh
│   │   ├── internet
│   │   │   └── internet.sh
│   │   ├── java.sh
│   │   ├── office
│   │   │   └── office.sh
│   │   ├── players
│   │   │   └── players.sh
│   │   ├── programming
│   │   │   └── programming.sh
│   │   ├── security
│   │   │   └── security.sh
│   │   ├── system
│   │   │   ├── software_centers.sh
│   │   │   └── system.sh
│   │   ├── terminals
│   │   │   └── terminals.sh
│   │   └── themes
│   │       ├── cursors
│   │       │   └── cursors.sh
│   │       ├── desktop-themes
│   │       │   └── desktop-themes.sh
│   │       ├── fonts
│   │       │   └── fonts.sh
│   │       ├── icons
│   │       │   └── icons.sh
│   │       └── themes.sh
│   ├── extras.sh
│   ├── firmware.sh
│   ├── gaming
│   │   ├── _helpers.sh
│   │   ├── heroic.sh
│   │   ├── steam.sh
│   │   └── tools.sh
│   ├── gaming.sh
│   ├── gpu
│   │   ├── amd_intel.sh
│   │   ├── _helpers.sh
│   │   ├── nvidia_manage.sh
│   │   └── nvidia.sh
│   ├── gpu.sh
│   ├── kernel.sh
│   ├── repos
│   │   ├── migrate.sh
│   │   └── repo_detect.sh
│   ├── repos.sh
│   ├── rescue.sh
│   ├── sudo_config.sh
│   ├── swap.sh
│   ├── sysinfo.sh
│   ├── system
│   │   ├── audio.sh
│   │   └── system_prefs.sh
│   ├── utils.sh
│   └── zram.sh
└── README.md

🤖 AI-Assisted Development Note
This project was developed with assistance from large language models for code generation, documentation and testing suggestions. The author takes full responsibility for the accuracy of all scripts included in this repository. All modifications have been reviewed manually before inclusion to ensure compatibility with Debian systems.

S
Description
Debianito is a post-installation automation script for Debian 11, 12 and Debian 13.
Readme GPL-3.0 1.4 MiB
Languages
Shell 100%