RepositoryJinjaCHSwitzerland
moodlebox

moodlebox/moodlebox

A Moodle server and Wi-Fi router on Raspberry Pi Zero 2w, 3, 4 and 5

148stars
31forks
8issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: wifi-hotspot

#1 Repository of the month

1
TINIX TRENDING·Topic: access-point

#1 Repository of the week

1
TINIX TRENDING·Topic: moodle

#1 Repository of the week

MoodleBox

GitHub release GitHub Release Date Github Downloads GitHub last commit CI Donate PayPal

A Moodle server and Wi-Fi router on Raspberry Pi.

MoodleBox Documentation

Visit the MoodleBox web site for more information about the MoodleBox features or any question about the usage of a MoodleBox.

If you just want to use a MoodleBox, just install it with Raspberry Pi Imager on your Raspberry Pi Zero 2 W, 3A, 3B, 3B+, 4B, 400 or 5 and use it out of the box. Follow the instructions on the MoodleBox web site.

Asking Support Questions

We have an active discussion forum where users and developers can ask questions. Please don't use the GitHub issue tracker to ask questions.

Building the MoodleBox disk image from scratch

If you just want to use a MoodleBox, you don't need to build the MoodleBox disk image yourself. Just install it with Raspberry Pi Imager on your Raspberry Pi Zero 2 W, 3A, 3B, 3B+, 4B, 400 or 5 and use it out of the box. Follow the instructions on the MoodleBox web site.

To build a MoodleBox from scratch with this script, you need a Raspberry Pi 3B, 3B+, 4B or 5.

  1. Clone Raspberry Pi OS (64-bit) Lite image on your microSD card using Raspberry Pi Imager.
  2. During the Customization step, set your hostname, your localization, a username (e.g. moodlebox) and a password (e.g. MoodleBox4$); enable SSH and tick the radio button Use password authentication.
  3. When finished, eject the microSD card and insert it into your Raspberry Pi.
  4. Connect your Raspberry Pi to your Ethernet network and boot it.
  5. Install Ansible on your computer. On macOS, use e.g. brew install ansible.
  6. Install sshpass to enable passing SSH password to the Raspberry Pi. On macOS, use e.g. brew tap esolitos/ipa; brew install sshpass.
  7. Clone this repository to your local drive.
  8. Create a keys directory in the repository folder and copy your public key into it, under the name id_rsa.pub.
  9. Get the IP address of your Raspberry Pi and change it in the hosts.yml file. Do not change anything else, unless you know what you're doing. You're on your own.
  10. Run ansible-playbook moodlebox.yml -K from the repository folder and enter the user password you gave in when cloning your microSD card.
  11. Wait 15–50 minutes, depending on your Raspberry Pi model, SD card speed and Internet bandwidth. You're done.

Overriding defaults

You can override any of the defaults configured in default.config.yml by creating a config.yml file and setting the overrides in that file. For example, you can change the MoodleBox main credentials and the timezone with something like:

moodlebox_username: 'myusername'
moodlebox_password: 'secret'
moodlebox_timezone: 'Australia/Perth'

Any variable can be overridden in config.yml; see the file default.config.yml for a list of available variables.

Availability

The code is available at https://github.com/moodlebox/moodlebox.

Release notes

See Release notes.

MoodleBox is sponsored by E-learning Touch' Moodle Partner.

Thanks

License

Copyright © 2016 onwards, Nicolas Martignoni nicolas@martignoni.net.

All contributions to this repository are licensed under AGPLv3 or any later version.

MoodleBox doesn't require a CLA (Contributor License Agreement). The copyright belongs to all the individual contributors. Therefore we recommend that every contributor adds following line to the header of a file, if they changed it substantially:

@copyright Copyright © <year>, <your name> (<your email address>)

Similar Projects

Discover other similar projects and AI models.

RepositoryRust
rust-embedded/rust-raspberrypi-OS-tutorials

:books: Learn to write an embedded OS in Rust :crab:

14.8k
Feb 10, 2024
RepositoryTypeScript
getumbrel/umbrel

An elegant home server OS. Run AI agents, store your files, backup your photos, and do more with over 300 apps in the Umbrel App Store.

12.6k
Nov 25, 2026
RepositoryShell
Drewsif/PiShrink

Make your pi images smaller!

4.2k
May 10, 2026
RepositoryPython
opencardev/crankshaft

Crankshaft: A turnkey GNU/Linux solution that transforms a Raspberry Pi to an Android Auto head unit.

2.7k
Nov 23, 2026
RepositoryShell
openfans-community-offical/Debian-Pi-Aarch64

This is the first 64-bit system in the world to support all Raspberry Pi 64-bit hardware!!! (Include: PI400,4B,3B+,3B,3A+,Zero2W)

2.6k
Jan 7, 2026
RepositoryRust
balena-os/wifi-connect

Easy WiFi setup for Linux devices from your mobile phone or laptop

1.5k
Nov 20, 2026
RepositoryPython
SHUR1K-N/Project-Pwnag0dchi

A dope AF repo of all customized plugins & configurations I use as seen on my socials / YouTube. Helpful guides and troubleshooting too.

807
Nov 19, 2025
RepositoryShell
Botspot/wor-flasher

Legal utility that runs on RPiOS to flash another SD card with Windows 10/11

728
Jun 16, 2026
RepositoryPython
home-assistant/core

:house_with_garden: Open source home automation that puts local control and privacy first.

92.6k
Nov 27, 2026