Collapse OS - An OS Created to Run After the World Ends

When most people think about preparing for a post-apocalyptic world, the first time that comes to mind is food and other living essentials. Recently, a programmer has decided that it would be just as important to create a versatile and survivable operating system after the collapse of society. We will be taking a look at it today, as best we can.

Collapse OS – For when the fecal matter hits the rotating device

Collapse OS

The operating system in question is called Collapse OS. According to the website, Collapse OS is a “z80 kernel and a collection of programs, tools and documentation”. It would allow you to:

  • Run on minimal and improvised machines.
  • Interface through improvised means (serial, keyboard, display).
  • Edit text files.
  • Compile assembler source files for a wide range of MCUs and CPUs.
  • Read and write from a wide range of storage devices.
  • Replicate itself.

The creator, Virgil Dupras, started the project because he sees “our global supply chain to collapse before we reach 2030”. He bases this conclusion on the works of Pablo Servigne. He seems to understand that not everyone shares his views. “That being said, I don’t consider it unreasonable to not believe that collapse is likely to happen by 2030, so please, don’t feel attacked by my beliefs.”

The overall goal of the project is to jumpstart a post-collapse civilization’s return to the computer age. The production of electronics depends on a very complex supply chain. Once that supply chain crumbles, man will go back to a less technical age. It would take decades to regain our previous technical position. Dupras hopes to jump several steps by creating an ecosystem that will work with simpler chips that can be scavenged from a wide variety of sources.

What is the z80?

The initial CollapseOS kernel is written for the z80 chip. As a retro computing history buff, I am familiar with Zilog and it’s z80 chip. In the late 1970s, Zilog introduced the z80 to compete with Intel’s 8080 CPU. The z80 was used in a whole bunch of early personal computers, such as the Sinclair ZX Spectrum and the Tandy TRS-80. The majority of these systems used the CP/M operating system, which was the top operating system of the time. (Interestingly, Dupras was originally looking to use an open-source implementation of CP/M, but ultimately decided to start from scratch.)

Both the z80 and CP/M started to decline in popularity after the IBM PC was released in 1981. Zilog did release several other microprocessors (Z8000 and Z80000), but these did not take off. The company switched its focus to microcontrollers. Today, an updated descendant of the z80 can be found in graphic calculators, embedded devices and consumer electronics.

Dupras said on Reddit that he wrote Collapse OS for the z80 because “it’s been in production for so long and because it’s been used in so many machines, scavenger have good chances of getting their hands on it.”

Current status and future of the project

Collapse OS has a pretty decent start. It can self replicate with enough RAM and storage. It is capable of running on an RC2014 homebrew computer or a Sega Master System/MegaDrive (Genesis). It can read SD cards. It has a simple text editor. The kernel is made up of modules that are connected with glue code. This is designed to make the system flexible and adaptable.

There is also a detailed roadmap laying out the direction of the project. Listed goals include:

  • Support for other CPUs, such as 8080 and 6502
  • Support for improvised peripherals, such as LCD screens, E-ink displays, and ACIA devices.
  • Support for more storage options, such as floppys, CDs, SPI RAM/ROMs, and AVR MCUs
  • Get it to work on other z80 machines, such as TI-83+ and TI-84+ graphing calculators and TRS-80s

If you are interested in helping out or just taking a peek at the project, be sure to visit their GitHub page.

Final Thoughts

To put it bluntly, I see Collapse OS as more of a fun hobby project (for those who like building operating systems), than something useful. When a collapse does come, how will Collapse OS get distributed, since I imagine that GitHub will be down? I can’t imagine more than a handful of skill people being able to create a system from scavenged parts. There is a whole new generation of makers out there, but most of them are used to picking up an Arduino or a Raspberry Pi and building their project than starting from scratch.

Contrary to Dupras, my biggest concern is the use of EMPs. These things fry all electrical systems, meaning there would be nothing left to scavenge to build system. If that doesn’t happen, I imagine that we would be able to find enough x86 components made over the past 30 years to keep things going.

That being said, Collapse OS sounds like a fun and challenging project to people who like to program in low-level code for strange applications. If you are such a person, check out Collapse OS.

Hypothetical question: what is your post-apocalyptic operating system of choice? Please let us know in the comments below.

If you found this article interesting, please take a minute to share it on social media, Hacker News or Reddit.

About the author
John Paul Wohlscheid

John Paul Wohlscheid

My name is John Paul Wohlscheid. I'm an aspiring mystery writer who loves to play with technology, especially Linux. You can catch up with me at:

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.