Teacher pages

Laptop setup

Prepare both laptops while the internet is available, serve the site from the MacBook over the local hotspot to the Lenovo and your phone, keep a fallback copy on the Lenovo, and do a 5 minute check before class.

Before you start

Do all of this while internet is available. Once class starts, you will need no data at all.

Links change. Confirm each download page before you rely on it. Open the page, check the name of the program and that it is the official site, and only then download. If a page has moved, search for the program name and choose the official site.

Menu names in Windows and macOS change a little with updates. If a step below does not match your screen exactly, look for the nearest word, and correct this page.

1. Prepare the MacBook (the server)

The MacBook builds the site and serves it to the Lenovo and to your phone. Do these steps in your own account, not the Learner account.

2. Keep the site running while learners use the MacBook

Learners use the MacBook’s Learner account, but the site runs in your account. Switch accounts without logging out.

  1. Turn on fast user switching: System Settings, Control Centre, Fast User Switching, Show in Menu Bar.
  2. Start pnpm preview in your account, as above.
  3. Click the user icon in the menu bar and choose Learner. Your account, and the site, keep running in the background.
  4. Never log out of your account during class. Logging out, restarting, shutting down, or closing the lid stops the site for everyone, including your phone.

Test this once at home: switch to Learner, and open the site on your phone.

3. Open the site on the Lenovo and on your phone, with no data

The Network address works over a local connection. No internet is needed.

  1. Turn on the hotspot on a phone (or use a small router if you have one). Connect the MacBook and the Lenovo to it. A phone hotspot uses no data when the devices only talk to each other.
  2. On the Lenovo, and on your own phone, open a browser.
  3. Type the Network address exactly, with http:// and the port, like http://192.168.43.17:4321/.
  4. The Wan Bene site should open. Open the teacher script for the day on your phone. You read it from your phone in every teacher block.

If it does not open:

4. Fallback: a copy of dist on the Lenovo

If the MacBook fails, the Lenovo can run its own copy.

  1. After pnpm build, copy the whole dist folder to the Lenovo on a flash disk.
  2. Put it in a folder like C:\wanbene\dist.
  3. Do not open index.html by double click. It will not work properly. The pages use paths that start at the top of the site, such as /lessons/, so a browser reading a plain file cannot find them. You need a small local server.
  4. Start a local server with one of these:
    • With Thonny (it brings its own Python). Open Thonny, then Tools, then Open system shell. In the black window, type cd C:\wanbene\dist and press Enter. Then type python -m http.server 8000 and press Enter. Open http://localhost:8000/ in the browser.
    • With Node on the Lenovo. While online, run npm install -g serve once. In class, run serve C:\wanbene\dist. It prints an address like http://localhost:3000/.
  5. Open the address in a browser and check that a lesson loads.

Do this test once at home, with the internet off, before the first class. Copy a fresh dist each time you rebuild the site.

5. Programs to install on both laptops

Install these while online. Confirm each page first.

Program What for Where to get it
Scratch 3 Block programming (Explorers, Builders), from week 2 Windows: the Microsoft Store. Mac: the download on scratch.mit.edu/download
Thonny Python (Builders, Pioneers), and the fallback server above thonny.org
GCompris Learning games for mouse and keys gcompris.net
A typing tutor Typing practice Klavaro or TIPP10. Find them on their own sites
VS Code Writing web pages and code, later weeks code.visualstudio.com
LibreOffice Documents and spreadsheets, if Microsoft Office is not installed libreoffice.org

After installing, open each program once on each laptop. Some ask for a first time setup. Do that now, not in front of learners.

For Scratch, check you can open the editor and save a project to the computer with no internet. Save a test file called test and reopen it.

6. A Learner account on each laptop

Learners should not use your account or an administrator account.

7. Power settings

The screen must not sleep during class, and the MacBook must never sleep.

8. Charging routine

9. The 5 minute check before class

Do this at least 15 minutes before learners arrive.

  1. Both laptops are charged, or plugged in.
  2. In your account on the MacBook, pnpm astro preview status says the preview server is running. The Network address is on the card. Then switch the MacBook to the Learner account.
  3. Your phone opens the site at the Network address. Open today’s teacher scripts.
  4. The Lenovo opens the site at that address, in the Learner account. Then shut the Lenovo down: the Explorers switch it on.
  5. The big screen is connected to the MacBook and shows today’s opening circle.
  6. Sound works, or is off on purpose.
  7. Today’s worksheets are printed, and a pack of paper and pencils is on each table. A printed copy of today’s teacher scripts is in your bag, in case your phone is flat.
  8. The phone timer is charged and the swap times are on the board.
  9. The fallback works: the dist copy on the Lenovo opens, and a paper plan for each block is ready.

If something fails, switch to the paper plan in “How the day runs” and fix it after class.