Run a server, then keep it safe.
★ Challenge completeFor Years 9–10: run a small server the way administrators do. Log in over the network, install software, add accounts and groups, start and keep services running, share files and host a media server, and keep it all backed up and behind a firewall. Everything runs on a pretend Raspberry Pi in the browser; a real Pi is the real thing, and the lessons say how.
Log in to the Pi over the network and install software.
A Raspberry Pi can run with no screen. From your laptop you reach it by name or address and type to it with ssh. Every command after ssh runs on the Pi, until you type exit.
On a Pi you add programs with apt, from a software source on the internet. You update the lists first, then install. sudo runs one command as the administrator, and the system records who used it.
Accounts, groups and sudo: who may do what.
Each person gets an account and a private home folder. Groups give several accounts the same rights. Only users in the sudo group may use sudo, and the system logs every time they do.
Services, file sharing with Samba and a Jellyfin media server.
A service is a program that runs in the background so others can use it. systemctl starts and stops one now, and enable decides whether it starts at every boot. These are two separate things.
Samba shares a folder so Windows, Mac and Linux computers can use it. The share is described in a config file the service reads when it starts, so you restart it after a change. The folder's group and permissions decide who may write.
Jellyfin serves your films and music to any device on the network, through a web page on port 8096. It runs as its own user, so it can only read files that user is allowed to read. A firewall decides which ports can be reached.
Backups, schedules and watching the disk.
A server that nobody looks after fails. Back up what matters with tar to a separate disk, schedule the job with cron, watch the disk space, and test the restore: a backup you have never restored is only a hope.
Put every layer together, then explain what each protects.
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.
Progress is saved in this browser only. Nothing is sent anywhere.
For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)