DEV Community

Cover image for Debian 13 "Trixie" Complete Guide: Installation, Security & Server Setup (2026)
Dargslan
Dargslan

Posted on

Debian 13 "Trixie" Complete Guide: Installation, Security & Server Setup (2026)

Debian 13 "Trixie" Complete Guide: Installation, Security & Server Setup (2026)


Debian has long been one of the most trusted Linux distributions in the world.
Known for its stability, reliability, and strong
security model, it powers millions of servers, cloud environments,
and even other distributions such as Ubuntu.


With Debian 13 “Trixie”, the project continues its tradition of
delivering a stable and dependable operating system while embracing the modern
tools, performance improvements, and security defaults that administrators expect in 2026.


Whether you are deploying a fresh VPS, building a home lab, preparing a production
web server, or upgrading an existing Debian environment, this guide covers the
essentials you need to get started with confidence.


Why Debian 13 Matters


Debian remains one of the most respected Linux distributions for both servers and
desktops. It is widely chosen because of its predictable package ecosystem, long-term
reliability, and clean approach to system administration.


Debian 13 “Trixie” builds on that foundation by delivering a newer kernel,
updated software packages, better hardware compatibility, and stronger default security.
For developers, sysadmins, and DevOps engineers, it offers a practical balance between
modern features and operational stability.

What’s New in Debian 13 "Trixie"

Updated Core Components


  • Linux Kernel 6.12+ for improved hardware support and better performance
  • systemd 256 with modern service and boot management improvements
  • GCC 14 for updated compiler features and optimizations
  • 64-bit time_t support for full Year 2038 readiness

Security Enhancements


  • nftables as the default firewall framework
  • AppArmor enabled by default for stronger application confinement
  • OpenSSL 3.2+ with modern cryptographic improvements
  • Improved installer firmware support for easier deployment on modern systems


These upgrades make Debian 13 especially attractive for anyone building secure,
modern Linux servers with minimal unnecessary complexity.


Installation Options


Debian 13 is available in multiple installation formats, each designed for different use cases.

  • Netinstall ISO — ideal for lean server deployments
  • Full DVD ISO — useful for offline installation environments
  • Cloud images — convenient for AWS, Azure, and other platforms
  • Live images — great for testing before installing


For most server deployments, the Netinstall ISO is the recommended choice.
It keeps the installation light and allows packages to be downloaded fresh during setup.

Example Bootable USB Command

sudo dd if=debian-13-amd64-netinst.iso of=/dev/sdX bs=4M status=progress

Verify the ISO before using it:

sha256sum debian-13-amd64-netinst.iso

Recommended Server Setup


A clean Debian installation is only the beginning. After the OS is installed,
it is important to apply updates, install essential packages, configure networking,
secure SSH access, and enable a firewall before exposing the server to the internet.

Initial Update

sudo apt update && sudo apt upgrade -y

Essential Tools

sudo apt install -y vim curl wget git htop tmux unzip zip ca-certificates

Basic Service Management

sudo systemctl start nginx
sudo systemctl enable nginx
systemctl status nginx

Security Best Practices


One of Debian’s strongest qualities is that it provides an excellent base for
hardening and secure operations. A few early decisions can significantly improve
the security posture of any new Debian 13 server.

  • Disable root SSH login
  • Use SSH keys instead of passwords
  • Enable a firewall with a default deny policy
  • Install Fail2Ban to reduce brute-force attacks
  • Keep packages updated regularly
  • Use AppArmor profiles where applicable

Example SSH Hardening

PermitRootLogin no
PasswordAuthentication no
MaxAuthTries 3

Example UFW Rules

sudo apt install ufw
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

Web Server and Application Stack


Debian 13 is a strong platform for web hosting, APIs, internal tooling, and database-backed applications.
A common stack includes NGINX, PHP-FPM, and PostgreSQL.

Install NGINX and PHP

sudo apt install nginx
sudo apt install php8.3-fpm php8.3-cli
sudo systemctl enable nginx
sudo nginx -t && sudo systemctl reload nginx

Install PostgreSQL

sudo apt install postgresql postgresql-contrib
sudo -u postgres createuser myapp
sudo -u postgres createdb myappdb -O myapp


This makes Debian 13 a practical choice not only for traditional websites,
but also for container workloads, backend services, and modern application deployment.


Docker on Debian 13


Containerization remains a core part of infrastructure in 2026, and Debian continues
to be a reliable host operating system for Docker-based environments.

sudo apt install docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER


For teams running self-hosted services, CI/CD runners, or development environments,
Debian 13 provides a clean and efficient Docker base.


Backup and Maintenance


No server setup is complete without a backup plan. Debian 13 works well with simple
and reliable backup tools such as BorgBackup.

sudo apt install borgbackup
borg init --encryption=repokey /backup/borg-repo

Follow the 3-2-1 rule:


  • 3 copies of your data
  • 2 different storage media
  • 1 offsite backup

Upgrading from Debian 12 to Debian 13


If you are already running Debian 12 “Bookworm”, the upgrade path to Debian 13
is straightforward, but it should always be tested first in a non-production environment.

sudo apt update && sudo apt full-upgrade -y
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sudo apt update
sudo apt full-upgrade -y
sudo reboot


Before upgrading production systems, take a full backup and review all third-party repositories.


Final Thoughts


Debian 13 “Trixie” continues the project’s long-standing reputation for stability while
delivering the updates needed for modern infrastructure. It is an excellent choice for
sysadmins, developers, cloud engineers, and anyone looking for a dependable Linux platform.


From installation and first boot to security hardening and service deployment,
Debian 13 offers a clean, professional foundation for serious workloads in 2026.


Tags:

#debian #linux #devops #sysadmin #cloud #docker #opensource

Top comments (0)