Start-of-lab checklist
Do these at the start of every Pi lab. Five minutes here saves an hour of confusing errors later.
1. Power up in the right order
- microSD card into the Pi (contacts facing the board).
- Micro-HDMI to the monitor, keyboard and mouse into the Pi.
- Power last, with the official Pi 5 supply.
Monitor shows nothing? Check the monitor's input is set to HDMI. A grey screen with a QR code and boot messages: the Pi cannot boot from the card, see The Pi will not boot.
:::warning Keep the card, not the Pi Take only the microSD card home. Every lab after 5a needs the work saved on it. :::
2. Set the date and time
sudo date -s "26 MAR 2026 14:55" # the real date and time now
date # check
Why every lab: the lab Pis have no clock battery, so the time goes back to your last shutdown (details). A wrong date breaks apt update and puts wrong times in your database.
3. Note your IP address
hostname -I
In the lab it starts with 172.16. It can change every lab, so check it each time before using SSH, VNC or opening your web pages from a laptop.
4. Check the services are running
systemctl is-active apache2 mariadb
Two lines saying active = ready. Anything else: see Services with systemctl before you start the lab, not halfway through.
5. Check the card is healthy
df -h / # "Use%" should be well under 90%
vcgencmd get_throttled # throttled=0x0 = power supply is fine
A full card or a weak power supply causes strange failures later. Details: The microSD card.
6. Open the lab sheet on the Pi
Open Chromium, log in to PoliteMall and download the lab sheet PDF, so you can copy commands instead of typing them.
- Paste in the terminal with Ctrl+Shift+V or right-click → Paste (plain Ctrl+V does not work).
- Code copied from a PDF often loses its indentation (Python) or swaps quotes for "smart quotes" (
’instead of'). If a pasted command fails with an odd error, retype the quotes.
At the end of the lab
sudo shutdown now
Wait until the green light stops flashing, then unplug and take out the card. Pulling the power while the Pi is writing is the most common cause of a corrupted card.
If this is a brand-new card
You only do this once, in Lab 5a: the card is cloned from the class image, so Raspberry Pi OS is already installed and the user is pi / raspberry. Check what you have:
cat /etc/os-release # should say Debian GNU/Linux 12 (bookworm)
whoami # pi