A Raspberry Pi is a small computer that runs its own operating system. When fitted to Marty, it can run Python programs and send commands through Marty's expansion cable.
You can use a Chromebook without enabling Linux on it. Raspberry Pi OS (Linux), Python and your programs run on the Pi. Your Chromebook, PC or Mac is the screen and keyboard used to access it remotely. All commands in this guide run in the Pi's terminal, unless a step explicitly names your other computer.
| Method | What you use on your computer | What staff need to arrange |
|---|---|---|
| Raspberry Pi Connect | A browser; no Chromebook Linux installation. Terminal access, or desktop sharing when supported. | Raspberry Pi OS Bookworm or later, internet access, Connect enabled and a school-approved account arrangement. |
| SSH | An SSH client. On ChromeOS, Google's Secure Shell extension is an option if permitted by IT. | SSH enabled on the Pi, its username and network address, and permission for the computer to reach the Pi. |
| Monitor and keyboard | Peripherals attached directly to the Pi. A desktop OS image also supports graphical editors. | Suitable peripherals and a separate Pi supply during initial setup, with the Pi disconnected from Marty. |
Start with Connect if a browser-based service fits your school's policies. Choose SSH if you prefer terminal access over the local network. A monitor and keyboard are useful for the first setup or if remote access is unavailable. You only need one working access method.
First check the Marty hardware and power requirements. If the Pi already boots and has your students' work on it, keep that installation unless an upgrade is needed. Writing an OS image erases the selected storage device, so back up existing work first.
For a new card, a teacher or IT team can follow these steps:
See the official Imager walkthrough for current screens. Prepare remote access before mounting the Pi in Marty so you can troubleshoot it easily.
“Headless” means using the Pi without a directly attached monitor or keyboard. Prepare its network and remote access first. It does not mean enabling a Linux environment on your Chromebook.
Connect requires Raspberry Pi OS Bookworm or later. Both the Pi and the computer need internet access to use the service. A Raspberry Pi account and school approval may be required; arrange access for students with IT rather than sharing a teacher's personal password. See the official Connect documentation for current account options.
One-time setup on the Pi:
rpi-connect on
rpi-connect signin
If rpi-connect is not installed, install one of these packages on the Pi, then repeat the commands above:
sudo apt update
sudo apt install rpi-connect
For Raspberry Pi OS Lite, use sudo apt install rpi-connect-lite instead; it provides remote terminal access without desktop sharing.
Each session on the Chromebook, PC or Mac:
If a Pi is offline, check its power, network and linked account. Connect runs as a user service. For remote shell access after reboot without a local login, staff can enable user lingering from the Pi account linked to Connect:
loginctl enable-linger
This keeps that user's services running while logged out. It does not create the desktop session needed for screen sharing. See Enable remote shell at all times. Reboot and check that browser terminal access works before installing the Pi in Marty. IT can run rpi-connect doctor on the Pi to diagnose service and network problems. A restrictive school firewall may need configuration even though the Chromebook can open the website.
SSH gives you a terminal on the Pi over the network. It does not provide a graphical desktop. Internet access is not needed for an established local SSH connection, though it is needed to download software during setup.
Your computer must be allowed to reach the Pi over the network. Sharing a Wi-Fi name does not guarantee this: school client isolation or separate network segments can block connections. Ask IT to provide an approved route rather than changing device security settings yourself. See Raspberry Pi's SSH documentation.
Connect the peripherals and use the Pi directly for setup. On a desktop edition of Raspberry Pi OS, open Terminal for the commands in our guides. OS Lite provides a text console instead. Configure and verify remote access before disconnecting the peripherals and mounting the Pi in Marty.
VNC is another way to access a graphical Pi desktop over a network. It requires a configured server on the Pi and a compatible viewer on your computer. Availability depends on the OS, desktop and school device policies. See Raspberry Pi's remote-access documentation. For a Chromebook with no permitted viewer, the browser-based Connect route above may be more convenient.
If you already have desktop Visual Studio Code and SSH working on your computer, the Remote - SSH extension can edit files and run commands on the Pi. Check its supported Pi hardware and OS requirements first. This is optional; it is not required for the Chromebook browser workflow.
Once you can open the Pi's terminal, follow Adding a Raspberry Pi to Marty for wiring and serial configuration, and Setting Up Python on Raspberry Pi for MartyPy installation. The main guide finishes with a walking program and an each-lesson checklist.
Documentation reviewed: 29 September 2026. Follow the linked Raspberry Pi documentation for current Imager and Connect screens.