Skip to content
Faizul Karim Fahim

Linux Server Administration Checklist: Essential Steps for Ubuntu, Debian, and AlmaLinux

A hands-on sysadmin checklist for Linux server administration covering Ubuntu, Debian, and AlmaLinux systems.

Published 4 min read DevOps
Terminal interface showing Linux server administration commands on a dark screen
On this page
  1. Initial System Provisioning and User Management
  2. Creating Sudoers and Disabling Root Login
  3. Configuring System Firewalls
  4. Managing UFW on Ubuntu and Debian
  5. Managing Firewalld on AlmaLinux
  6. Package Management and System Updates
  7. Debian and Ubuntu (APT)
  8. AlmaLinux (DNF)
  9. Log Monitoring and Resource Troubleshooting
  10. Essential Diagnostic Commands
  11. Conclusion

Effective Linux server administration requires a systematic approach to provisioning, securing, and maintaining production nodes. Whether you manage Debian, Ubuntu, or AlmaLinux instances, following a standardized checklist ensures consistency, minimizes downtime, and hardens your infrastructure against common attack vectors. This practical guide covers the core operational tasks every sysadmin should execute when bringing up or maintaining a modern enterprise server.

Initial System Provisioning and User Management

When you first spin up a fresh server instance, never leave it running on the default configuration. Root access should be strictly managed, and administrative tasks must be delegated through dedicated user accounts utilizing secure shell keys.

Creating Sudoers and Disabling Root Login

Begin by logging into your server via the temporary root account or provider-supplied console. Create a new user with administrative privileges and assign a strong password:

adduser sysadmin
usermod -aG sudo sysadmin  # Use 'wheel' group on AlmaLinux

Next, lock down SSH access to prevent direct root logins and password-based authentication. Open your SSH daemon configuration file:

sudo nano /etc/ssh/sshd_config

Ensure the following parameters are set explicitly:

PermitRootLogin no
PasswordAuthentication no
X11Forwarding no
MaxAuthTries 3

Restart the SSH service to apply changes. On Ubuntu and Debian, run sudo systemctl restart ssh, while AlmaLinux users should run sudo systemctl restart sshd. If you are configuring a custom home lab setup or experimenting with local networking gear, you might encounter unexpected throughput bottlenecks—similar to troubleshooting issues discussed when analyzing why why my 300 Mbps router shows only 144 Mbps on Wi-Fi—always verify your physical or virtual network interfaces are negotiating at maximum speed before deploying production services.

Configuring System Firewalls

Network security starts at the perimeter. Unused ports must be closed, and traffic rules must be explicitly defined. Linux server administration workflows differ slightly depending on whether your distribution uses Debian-based utilities or Red Hat-based wrappers.

Managing UFW on Ubuntu and Debian

For Ubuntu and Debian environments, Uncomplicated Firewall (UFW) provides a straightforward management layer over netfilter:

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

Managing Firewalld on AlmaLinux

For AlmaLinux distributions, firewalld is the default zone-based packet filtering tool:

sudo systemctl start firewalld
sudo systemctl enable firewalld
sudo firewall-cmd --permanent --set-default-zone=public
sudo firewall-cmd --permanent --add-service=ssh
sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

Verify active rules using sudo ufw status verbose or sudo firewall-cmd --list-all depending on your operating system.

Package Management and System Updates

Keeping your software stack patched is a fundamental pillar of Linux server administration. Unpatched vulnerabilities are the primary entry point for automated malware and targeted exploits.

Debian and Ubuntu (APT)

Update local package indexes and upgrade installed system packages safely:

sudo apt update && sudo apt upgrade -y
sudo apt autoremove -y && sudo apt clean

To automate critical security patches without human intervention, install and configure the unattended-upgrades package:

sudo apt install unattended-upgrades -y
sudo dpkg-reconfigure -plow unattended-upgrades

AlmaLinux (DNF)

For enterprise RPM-based systems, use the DNF package manager:

sudo dnf upgrade --refresh -y

For automated security updates on AlmaLinux, install the dnf-automatic utility:

sudo dnf install dnf-automatic -y
sudo systemctl enable --now dnf-automatic.timer

Log Monitoring and Resource Troubleshooting

When applications throw errors or system performance degrades, log files and resource metrics provide the diagnostic trail needed to resolve incidents quickly.

Essential Diagnostic Commands

Familiarize yourself with native utilities to inspect real-time system state:

  • htop or top: Monitor CPU, memory, and running process tables interactively.
  • df -h: Check available disk space across mounted filesystems.
  • free -m: Inspect RAM and swap utilization.
  • journalctl -u nginx.service -e: View systemd journal entries for specific services.

If you are managing resource-constrained environments—such as optimizing lightweight hardware deployments or evaluating single-board computers like those analyzed in comparisons such as Raspberry Pi vs Orange Pi—keeping a close eye on memory pressure using vmstat or sar prevents out-of-memory crashes.

Conclusion

Mastering Linux server administration is an ongoing discipline that blends rigorous security hygiene, automated patch management, and proactive resource monitoring. By standardizing your initial setup procedures across Ubuntu, Debian, and AlmaLinux, you build resilient infrastructure capable of scaling securely. Always document your custom configurations, maintain off-site backups, and test your disaster recovery procedures regularly.

Frequently asked questions

Which Linux distribution is best for beginners?

Ubuntu Server is often recommended for beginners due to its massive documentation base, extensive package repositories, and widespread community support.

How often should I apply security updates?

Critical and security updates should be applied as soon as possible, ideally through automated tools like unattended-upgrades, while major OS upgrades require careful staging and testing.

What is the difference between UFW and Firewalld?

UFW (Uncomplicated Firewall) is a frontend for iptables primarily used on Ubuntu and Debian, whereas Firewalld is the default dynamic firewall management tool on AlmaLinux and RHEL-based systems.

How can I monitor server resource utilization?

You can use standard command-line tools like top, htop, and glances, or implement comprehensive monitoring solutions like Prometheus and Grafana for long-term metric tracking.

// keep reading

Related posts

All blog posts