.
CappuccinOS is a small next generation x86-64 operating system written from scratch in Rust. This README will guide you through the process of building and running CappuccinOS.
Warning
This project is in early development. Things will change.
Before building CappuccinOS, make sure you have the following installed on your machine:
Clone the repo:
git clone https://github.com/juls0730/CappuccinOS.git
cd CappuccinOSInstall rust, if you haven't already:
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain noneInstall the dependencies:
sudo pacman -S gptfdisk dosfstools squashfs-tools python
# Optionally
sudo pacman -S qemu-system-x86
sudo apt install gdisk dosfstools squashfs-tools
# Optionally
sudo apt install qemu
Run CappuccinOS with QEMU:
make runIf you would like to just build CappuccinOS but not run it:
make buildIf you would like to target another architecture other than x86_64, set the ARCH variable to the a supported architecture. CappuccinOS is also built in release mode by default, if you would like to build CappuccinOS in debug mode, set the MODE variable to debug.
Run on a bare metal machine by flashing to a USB stick or hard drive:
sudo dd if=bin/CappuccinOS.iso of=/dev/sdX bs=1M && sync
Be careful not to overwrite your hard drive when using dd!
Inspiration was mainly from JDH's Tetris OS, mixed with a growing interest in low level in general and an interest in learning rust (yeah, I started this project with not that much rust experience, maybe a CLI app or two, and trust me it shows).
Some Resources I used over the creation of CappuccinOS:
And mostly for examples of how people did stuff I used these (projects made by people who might actually have a clue what they're doing):
Copyright (C) 2019-2024 mintsuki and contributors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
CappuccinOS is license under the MIT License. Feel free to modify and distribute in accordance with the license.