Modular Computers the manual GitHub

mcos

mcos is the operating system of Modular Computers. It is written in Lua, it lives on a disk you craft, and it is modeled on Linux: a kernel that owns every resource, programs that reach it only through system calls, a shell, files, pipes, sockets and services.

If you know Linux, most of it will look familiar; where mcos differs from Linux, the pages and the programs’ pages say so. If you don’t, it is a good way to learn how a real operating system works, because the parts are small enough to read.

The pieces

How it is built

What it needs

A tier 1 memory stick is enough to run mcos to its shell. Every disk tier comes with mcos: its files are made when the disk is first installed. A disk crafted alone is blank. The Disk Station can format a disk, clone it, and install or update mcos on it: see the Disk Station tutorial.

Getting started

Your first computer builds one and gets it to a prompt. After that, your first program writes a Lua program, and Redstone controls the world with it.