Set up the Pi as the class server: a hand-in share, accounts in one group, a firewall that lets only the right ports through, and a nightly backup. Then explain what each part protects, and what it does not.
Your class gets one Pi. By Friday it has to be a safe place to hand in work. Where do you start?
What you should already know:
Host Jellyfin, a media server· Jellyfin serves your films and music to any device on the network, through a web page on port 8096.
This is the whole of the course in one job. Each part covers a different risk: accounts and groups decide who, permissions decide what, the firewall decides which doors, the backup covers what if it breaks. No one part is enough on its own. This also covers AC9TDI10K01's last idea: how several components together secure a networked system.
How this lesson works: Predict, Try, Investigate, Modify, Practise, Make
Predict: Read the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.
Try: Try it on the board and compare the result with your prediction.
Investigate: Work out why it happens, one step at a time.
Modify: Change the problem on purpose and see what happens.
Practise: A few on your own, to check you have it.
Make: Make your own problem using what you have learned. Expect a few tries; that is normal.
Make your prediction first. Help opens once you've locked it in.
PredictRead the problem and decide what you think before you try anything. A wrong guess is fine: it shows you what to look for.
Firewall order
TryTry it on the board and compare the result with your prediction.
Try: the safe order
Was your prediction right?
Try it yourselfYour edits are saved in this browser.
Log in with ssh pi@raspberrypi.local, allow ssh with sudo ufw allow ssh, and only then enable the firewall: sudo ufw enable.
Use the board. This ticks when you get there.
InvestigateWork out why it happens, one step at a time.
Worked example: Layers, not one lock
Worked exampleBefore each step, say what you think comes next.
accounts and groupswho is allowed (lesson 3).
owners and permissionswhat each may do (lessons 3 and 5).
firewallwhich doors can be reached (lesson 6).
backup and schedulewhat if it breaks (lesson 7).
Now try it yourself.
Sam is locked out. Click the line where it first goes wrong.
ModifyChange the problem on purpose and see what happens.
Vary: change one thing
Try it yourselfYour edits are saved in this browser.
Install samba and jellyfin.
Use the board. This ticks when you get there.
Turn the firewall on so that only Jellyfin's port 8096 gets through (and ssh).
Use the board. This ticks when you get there.
smbd runs but is not enabled. Make it survive a reboot, reboot, and check it is up.
Use the board. This ticks when you get there.
PractiseA few on your own, to check you have it.
Practise
MakeMake your own problem using what you have learned. Expect a few tries; that is normal.
The class server
Then write up your server: for each part, what it protects against and what it does not. That is the brief for this course.
Try it yourselfYour edits are saved in this browser.
Set up the class server: Samba installed with a [class] share of /srv/class that Alex and Bob (group class) can write to, the firewall on with port 445 reachable, and a backup scheduled at 02:30 every night.
Use the board. This ticks when you get there.
Lesson done. You've finished every step you need.
Now you can
Set up a share, accounts, a firewall and a backup that work together.
Say what each part protects against and what it does not.
Explain why exposing a server to the internet raises the stakes.
Set up the Pi as the class server: a hand-in share, accounts in one group, a firewall that lets only the right ports through, and a nightly backup. Then explain what each part protects, and what it does not. About 40 minutes.
I can set up a share, accounts, a firewall and a backup that work together.
I can say what each part protects against and what it does not.
I can explain why exposing a server to the internet raises the stakes.
Before class
Try the board yourself; it is the longest Make in the course.
The one idea: several components together secure a networked system, and each covers a different risk. Students should leave able to say, for each layer, what it does not protect: the firewall does not stop a stolen password; permissions do not stop a failed disk; a backup does not stop a leak.
Simplifications: the pretend firewall tracks allow <port> and enable, not source addresses or default policies. The real ufw lets you restrict by network (for example only 192.168.1.0/24) which is what a school would do.
This is the capstone for System admin. Students then complete the brief (an admin log and a short report), which assesses AC9TDI10K01 nodes 3 and 5. If you have a real Pi, setting up the same server on it is a good practical.
A later extension, a lab with Kali Linux on a Pi in an offline network, is planned (roadmap/systems.md); it needs your sign-off and a lab network the school IT team approves.
With internet: automatic updates, off-site backups and a VPN (Tailscale or WireGuard) belong on a server people use from home. A domain name and certificate (Let's Encrypt) matter when a service is public, and so does an honest answer to 'should it be public at all?'
Running the lesson
Predict: wrong answers think the rule can come second.
Try: ask what would have happened in the other order.
Worked example: ask which layer would have stopped each of the 'what if' stories.
Vary: have pairs check each other's work.
Make: ask each pair which layer they would add next.
The hard part (on purpose)
The order of the firewall steps and remembering every layer. Give students a checklist and tick it as they go.
When students get stuck
The share works but nobody can save. Ask: Who owns the folder, and which group? Fix: chgrp class and chmod 775.
A student gets locked out of ssh. Ask: Did you allow ssh before enabling? Fix: Restart the board: this is the lesson. On a real Pi it needs a keyboard.
Stretch and support
Stretch: Add automatic security updates (unattended-upgrades) and say which risk they cover.
Support: A checklist of the five layers.
Where it leads
Links: Networks (ports); Cyber safety and privacy; Security and privacy; The command line.
What each step is for
firewall order: Committing to the order of two steps tests the new move: a firewall can lock you out of the machine you are fixing.
Try: the safe order: Doing it in the safe order settles the prediction.
Worked example: Layers, not one lock: Following the method once, then finding where a plausible account goes wrong, models the new move.
Vary: change one thing: Each task is one layer of the class server: the software, the firewall and surviving a reboot.
Practise: Matching layers to risks and judging what is safe is the same move in new forms.
the class server: Putting every layer together is the whole challenge.