Debian 12 - Configuration Initiale du Serveur
Un guide complet étape par étape pour la configuration initiale d'un serveur Debian 12 fraîchement installé avec les étapes de configuration les plus importantes.
Étapes d'Installation
Generate UTF-8 locale
locale-gen C.UTF-8Update system locale
update-locale LANG=C.utf8 LC_ALL=C.utf8A restart may be required to fully apply the changes
Set timezone to Europe/Berlin
timedatectl set-timezone Europe/BerlinUse timedatectl list-timezones to see all available options
Update, upgrade and cleanup system
apt update && apt upgrade -y && apt autoremove -y && apt autoclean -yMore information can be found in the Debian Wiki on APT configuration
Edit cloud-init configuration (if present)
Set new hostname
sudo hostnamectl set-hostname server.chad.luRestart system for full application
rebootClear default MOTD file
sudo truncate -s 0 /etc/motdInstall hardware information tool
apt install inxi -yDisplay complete hardware information
inxi -FazDisplay CPU information
lscpuDisplay memory information
free -hDisplay disk information
df -hDisplay system version information
lsb_release -aDisplay kernel information
uname -aCheck systemd status
systemctl statusCheck available updates
apt list --upgradableConseils Supplémentaires
Commandes et conseils utiles pour une meilleure gestion
Configuration Terminée !
Votre serveur Debian 12 est maintenant configuré de base et prêt à être utilisé. N'oubliez pas d'effectuer d'autres configurations liées à la sécurité selon vos besoins.