Debian 12 - Server Éischt-Arichtung

En ëmfassenden Schrëtt-fir-Schrëtt Guide fir d'éischt Arichtung vun engem frësche Debian 12 Server mat de wichtegsten Konfiguratiounsschrëtt.

Debian 12Server SetupLinuxSystem Administration

Wichteg Hiweiser

Bedenkt dës wichteg Punkten virum Setup

Root-Zougang erfuerderlech

Root-Zougang oder sudo-Berechtigungen sinn fir all Konfiguratiounsschrëtt erfuerderlech

Internet-Verbindung néideg

Aktiv Internet-Verbindung ass fir Paket-Updates an Downloads néideg

Backup erstellen

Erstellt Backuppen vun ären kritische Daten virun all wichteg Ännerungen

Zäitbedarf

Gesamt-Zäit: ongeféier 30-45 Minutten jee no System-Performance

Sécherheetsaspekter

Berücksichtegt all Sécherheetsaspekter bei der Server-Konfiguratioun

Ännerungen dokumentéieren

Dokumentéiert all gemaachten Ännerungen fir spéider Referenz

Setup Schrëtt

List available locales
locale -a
Generate UTF-8 locale
locale-gen C.UTF-8
Update system locale
update-locale LANG=C.utf8 LC_ALL=C.utf8
Check current locale configuration
locale

A restart may be required to fully apply the changes

Display current date and time
date
Check timezone configuration
timedatectl
List all available timezones
timedatectl list-timezones
Set timezone to Europe/Berlin
timedatectl set-timezone Europe/Berlin
Confirm new timezone configuration
timedatectl status
Update, upgrade and cleanup system
apt update && apt upgrade -y && apt autoremove -y && apt autoclean -y
Display main package sources
cat /etc/apt/sources.list
Check additional package sources
ls -la /etc/apt/sources.list.d/

More information can be found in the Debian Wiki on APT configuration

cloud.cfg
# This will cause the set+update hostname module to not operate (if true)
preserve_hostname: true
Set new hostname
sudo hostnamectl set-hostname server.chad.lu
Check hostname configuration
hostname
Restart system for full application
reboot
Clear default MOTD file
sudo truncate -s 0 /etc/motd
Install hardware information tool
apt install inxi -y
Display complete hardware information
inxi -Faz
Display CPU information
lscpu
Display memory information
free -h
Display disk information
df -h
Display system version information
lsb_release -a
Display kernel information
uname -a
Check systemd status
systemctl status
Check available updates
apt list --upgradable

Zousätzlech Tipps

Nëtzlech Kommandoen an Tipps fir besser Gestioun

Arichtung ofgeschloss!

Äre Debian 12 Server ass elo grondsätzlech konfiguréiert a betribsbereet. Vergiess net weider sécherheetsrelevant Konfiguratiounen entspriechend Ären Ufuerderungen ze maachen.