$ mathion

Self-hosted · Open source

Run your own teaching platform.

Mathion hosts your courses, assignments, and student work on a server you control — installed and kept up to date from the terminal, with releases you can cryptographically verify.

install
curl -fsSL https://raw.githubusercontent.com/svkucheryavski/mathion/main/deploy/install.sh | sudo sh

What it is

Your platform, on your server.

  • Yours to hostRuns on your own machine with Docker. Your students and their data stay with you.
  • One commandThe mathion CLI installs, backs up, restores, and updates the whole stack.
  • VerifiableEvery release is GPG-signed; the installer checks the signature before it installs anything.

Install

Read it, then run it.

The one-liner above downloads the latest release, verifies its signature and checksum, and installs mathion to /usr/local/bin. Prefer to read before you run:

inspect, then run
curl -fsSL https://raw.githubusercontent.com/svkucheryavski/mathion/main/deploy/install.sh -o install.sh
less install.sh          # review what it does
sudo sh install.sh

Trust

Verify the release key.

The installer carries Mathion's release key. To see which key it accepts, run the command below on the script you downloaded; the first fingerprint it prints must be this one.

Primary key fingerprint

F006 02DF E1BF 8CD2 B321  FC72 AD21 D4AD 294C 31A0

Without spaces: F00602DFE1BF8CD2B321FC72AD21D4AD294C31A0

check it
sed -n '/BEGIN PGP PUBLIC KEY BLOCK/,/END PGP PUBLIC KEY BLOCK/p' install.sh | gpg --show-keys

If it prints a different fingerprint, stop. This shows the key the installer trusts, not that the rest of the script is honest: read it before you run it.