blog_os Documentation

HTML kernel & operating-system repository by @phil-opp. Docker Compose & container deployment with 18k stars.

17,773 stars HTML HTML 3 files ยท ~2,130 tokens #kernel#operating-system#rust#x86-64
RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy blog_os on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name blog_os --restart always phil-opp/blog_os:latest

Technical Documentation: phil-opp/blog_os

โ„น๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference

Overview (`README.md`)

Blog OS

This repository contains the source code for the Writing an OS in Rust series at os.phil-opp.com.

If you have questions, open an issue or chat with us on Gitter.

Where is the code?

The code for each post lives in a separate git branch. This makes it possible to see the intermediate state after each post.

The code for the latest post is available here.

You can find the branch for each post by following the (source code) link in the post list below. The branches are named post-XX where XX is the post number, for example post-03 for the VGA Text Mode post or post-07 for the Hardware Interrupts post. For build instructions, see the Readme of the respective branch.

You can check out a branch in a subdirectory using git worktree:

text
git worktree add code post-10

The above command creates a subdirectory named code that contains the code for the 10th post ("Heap Allocation").

Posts

The goal of this project is to provide step-by-step tutorials in individual blog posts. We currently have the following set of posts:

Bare Bones:

Interrupts:

Memory Management:

Multitasking:

First Edition Posts

The current version of the blog is already the second edition. The first edition is outdated and no longer maintained, but might still be useful. The posts of the first edition are:

Click to expand

Bare Bones:

Memory Management:

Exceptions:

Additional Resources:

License

This project, with exception of the blog/content folder, is licensed under either of

at your option.

For licensing of the blog/content folder, see the blog/content/README.md.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


Overview (`docker/README.md`)

Building Blog OS using Docker

Inspired by redox.
You just need git, make, and docker.
It is better to use a non-privileged user to run the docker command, which is usually achieved by adding the user to the docker group.

Run the container to build Blog OS

You can build the docker image using make docker_build and run it using make docker_run.

Run the container interactively

You can use the make target docker_interactive to get a shell in the container.

Clear the toolchain caches (Cargo & Rustup)

To clean the docker volumes used by the toolchain, you just need to run make docker_clean.

License

The source code is dual-licensed under MIT or the Apache License (Version 2.0). This excludes the blog directory.


Overview (`blog/content/README.md`)

Blog Content

This folder contains the content for the "Writing an OS in Rust" blog.

License

This folder is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, available in LICENSE-CC-BY-NC or under https://creativecommons.org/licenses/by-nc/4.0/.

All code examples between markdown code blocks denoted by three backticks (\```) are additionally licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.


--- METRICS ---