What Server Administration Is
The Linux & Bash course taught you to drive a shell: files, pipes, permissions, processes, a first look at cron and systemd. This course is about the next job: keeping a server healthy while other people depend on it. A server runs services that must start on boot and restart when they crash, accepts logins only from the right people, exposes only the ports it should, keeps its disks from filling up, can be restored from a backup, and serves its traffic over TLS with certificates that never quietly expire.
The server lifecycle
| Stage | The admin's question | Section of this course |
|---|---|---|
| Provision | "What is installed, and how do I get a shell on it safely?" | A Practice Server, SSH Keys & ssh-agent |
| Configure | "Does the app run as a service, under its own user, with the right limits?" | systemd & Logs, Users & Access |
| Secure | "Who can log in, who can become root, and which ports are open?" | Hardening the SSH Server, sudo & sudoers, Firewalls, fail2ban |
| Store | "Where does the data live, can it grow, and can I get it back?" | Storage & Backups |
| Serve | "Does traffic reach the app, over TLS, through a proxy?" | Reverse Proxies & TLS |
| Operate | "Why is it slow, why did it die, what did the logs say?" | Network Diagnostics, Performance & Hardening, journalctl |
A DevOps engineer automates most of this later with configuration management (Ansible), images (Docker) and infrastructure as code (Terraform). Automation only encodes decisions you already understand, though: you can't write a good Ansible role for SSH hardening without knowing what each sshd_config line does.
Commands you already know, problems you don't yet
This course assumes the Linux & Bash basics and builds on them instead of repeating them:
| You learned | Here you go deeper |
|---|---|
The Permissions Model, umask |
service accounts, setgid directories, ACLs, UMask= in units |
| ps, kill & top | load average, vmstat, iostat, the OOM killer, cgroups |
| cron & systemd | unit files, dependencies, timers, drop-ins, sandboxing, the journal |
Users & Groups (sudo basics) |
sudoers drop-ins, visudo -c, least-privilege rules |
| ssh & scp | ssh-agent, sshd_config hardening, SSH certificates, bastions |
| df, du & free | mounts, fstab, LVM, quotas, deleted-but-open files |
The theory of networks lives in Computer Networking (DNS, TLS, Firewalls & ACLs). Here you meet the same ideas from the server's side: which process listens on a port, what the server's resolver answers, what a packet capture shows.
A first session
Every lesson has real tool sessions you can read line by line. This one checks three files an admin writes on day one (a systemd unit, an SSH server config and a sudo rule) with the tools that would load them, then puts Nginx in front of a small app:
cat > app.service <<'EOF'
[Unit]
Description=Demo app
[Service]
User=app
ExecStart=/usr/bin/python3 -m http.server 9000
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
systemd-analyze verify ./app.service && echo "unit file: OK"
ssh-keygen -q -t ed25519 -N "" -f hostkey
printf 'HostKey %s/hostkey\nPermitRootLogin no\nPasswordAuthentication no\n' "$PWD" > sshd_config
sshd -t -f sshd_config && echo "sshd_config: OK"
echo 'deploy ALL=(root) NOPASSWD: /usr/bin/systemctl restart app.service' > 90-deploy
visudo -cf 90-deploy
mkdir www && echo "hello from the app" > www/index.html
python3 -m http.server 9000 --bind 127.0.0.1 --directory www > app.log 2>&1 &
cat > nginx.conf <<'EOF'
pid nginx.pid;
error_log stderr;
events {}
http {
access_log off;
server {
listen 127.0.0.1:8080;
location / { proxy_pass http://127.0.0.1:9000; }
}
}
EOF
nginx -t -p "$PWD" -c nginx.conf -e stderr
for i in $(seq 50); do curl -s localhost:9000/ >/dev/null && break; sleep 0.1; done
nginx -p "$PWD" -c nginx.conf -e stderr
curl -s localhost:8080/
nginx -p "$PWD" -c nginx.conf -e stderr -s quit 2>/dev/nullunit file: OK
sshd_config: OK
90-deploy: parsed OK
nginx: the configuration file /home/learner/nginx.conf syntax is ok
nginx: configuration file /home/learner/nginx.conf test is successful
hello from the app
Every check here is something you should run before reloading a service on a real server: a broken sshd_config can lock you out, a broken sudoers file can take away sudo itself, and a broken Nginx config takes the site down on reload. The pattern "validate, then apply" runs through the whole course.
How this course is organised
- Each section starts with the model (what the kernel or the daemon actually does), then the configuration, then a real session that checks or runs it.
- Things that need root or a booted systemd (starting services, adding users, firewall rules, LVM) are shown as sample sessions: realistic transcripts marked as such, next to the parts the sandbox can verify. A Practice Server explains how to get a VM where you can run them yourself.
- The Toolkit and Field Notes collect the tools and the hard-won habits; the Mini Project hardens a fresh server and puts a TLS reverse proxy in front of an app.
Test yourself
Why does the first session run sshd -t and visudo -cf before anything is reloaded?
- They make the services start faster
- A broken SSH or sudoers file can lock you out of the server, so you validate first and apply second
- They are required by systemd
- They encrypt the files
Which topic does this course deliberately leave to the Computer Networking course?
- Which process listens on port 443
- How TCP, DNS and TLS work in theory
- Reading a packet capture on the server
- Testing the server's own resolver
What is a "sample session" in this course?
- A session that was verified in the sandbox
- A realistic transcript of a command that needs root, a booted systemd or real hardware, shown but not run
- A Python model
- An exercise answer