apio
1176e64a7c
All checks were successful
Build and test / build (push) Successful in 1m44s
The editor is supposed to create files if they don't exist, however before this commit stat() would fail and exit load_file() before we even got to File::open_or_create(). |
||
---|---|---|
.gitea/workflows | ||
.vscode | ||
apps | ||
base | ||
docs/screenshots | ||
editor | ||
initrd/sys | ||
kernel | ||
libc | ||
libluna | ||
libos | ||
libui | ||
ports | ||
shell | ||
terminal | ||
tests | ||
tools | ||
wind | ||
.clang-format | ||
.gdbconf | ||
.gitignore | ||
CMakeLists.txt | ||
LICENSE | ||
luna.json | ||
README.md |
Luna
A simple POSIX-based operating system for personal computers, written in C++.
Another UNIX clone?
Features
- x86_64-compatible lightweight kernel.
- Simple round-robin scheduler.
- Read-only ext2 filesystem.
- Can load ELF programs, shebang scripts or arbitrary binary formats (registered through kernel modules, which are not supported yet =D).
- C Library, aiming for POSIX compatibility, with many features such as local domain sockets, signals, and shared memory.
- Support for several third-party programs, including the GNU binutils suite of utilities.
- Designed to be portable, no need to be restricted to x86_64.
- Everything is designed around UTF-8.
- Environment-agnostic utility library, which can be used in both kernel and userspace.
- An extensive set of standard Unix utilities, from ls to uname to base64. Written in modern C++ and very small amounts of code, using Luna's practical OS library.
- A simple and efficient windowing system, providing a lightweight GUI environment (still in development, not many GUI apps exist).
Screenshot
Setup
To build and run Luna, you will need to build a cross-compiler and cross-binutils for x86_64-luna
.
For this, you should start by installing the required dependencies.
Then, run tools/setup.sh
to build the toolchain.
Please beware that building GCC and Binutils can take some time, depending on your machine.
Running
To run Luna in a virtual machine, you should have QEMU installed.
Additionally, the build process needs some extra dependencies to run: cmake
, ninja
, nasm
, fakeroot
and genext2fs
.
tools/run.sh
is the script you should use in most cases. It will build changed files, install, make an ISO image, and run Luna in QEMU.
If you have no toolchain set up, run.sh
will build it automatically, which means that you don't necessarily have to run setup.sh
manually since run.sh
does it for you.
Prebuilt images
Prebuilt ISO images for every release version can be found at pub.cloudapio.eu.
Is there third-party software I can use on Luna?
Yes! A ports system is in place, and you can use the build scripts to add some ports to your image. More information in the Ports page.
License
Luna is open-source and free software under the BSD-2-Clause License.