Skip to content

RanvOS, (from norwegian; raven), is a operative system programmed in Rust. Aims to be; minimal, stable, secure and modern ( this maybe you know as; state-of-art ).

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

ShyanJMC/RavnOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RavnOS

Image created with Stable Diffusion 2.1

RanvOS, (from norwegian; raven), is a operative system programmed in Rust. Aims to be; minimal, stable, secure and modern ( this maybe you know as; state-of-art ).

Is my personal project to make from scratch an operative system, take this project as a hobby, nothing professional.

Objetive

The objetive of RavnOS is make an operative system minimalist, self hosted, stable and secure.

Think in this situation; you are in a wood or in another place, working with critical systems and without the time or resources to fix issues in the compilation process or fixing regretion issues. RavnOS fix that isolating the system and the user parts.

Screenshots

Huginn v0.1.0
Rune v0.43.19
Search v0.6.1

Run over existing OS

To run the system over an existing OS, the kernel must have support for POSIX (specially file, vector, hashmap and threads).

Target

The pillars of RavnOS are;

  • Minimalism

Nothing of bloatware inside the code or system. Just the necessary to do the job (maximum viable product).

Also the minimalism affects the system's scope, check that point.

  • Stability and security over features

Will have absolute priority the stability and security of the system over X feature.

  • Isolation and portability

Each part of system must be portable over Rust supported platforms.

Each part of system must be self hosted, no external crates (over internet) are allowed. All must be local, how can you be sure that the remote dependency is secure? how can you be sure that the remote dependency will be developed to the end of times? how can you be sure that the remote dependency will not break the compatibility?

Each part of system distributed in binary form must be done as static, at 2022 the best way for this is use MUSL standard C library.

  • Keys - Data

The information is printed in screen and worked with syntax;

[key] {
	[data]
}

This allow work with data grouped by keys and avoid issues trying to extract data when it have "", '', \, \, and others characters.

  • OS Image - Container

The final distribution must use the 'OS image' schema; the base system is immutable and the mutable part is used trough containers schema.

Requirements

  • Rustc

  • A terminal

  • Cargo with the target toolchain you want/need:

    This is not mandatory but will help you to build with one just command.

  • Musl target:

    This is not mandatory, but I recommend it to build as static. MUSL only is available for linux, for the rest use glibc.

Versioning

The versioning schema for releases follows Semantic Versioning v2 ( https://semver.org/spec/v2.0.0.html ), here a resume;

Given a version number MAJOR.MINOR.PATCH, increment the:

    MAJOR version when you make incompatible API changes
    MINOR version when you add functionality in a backwards compatible manner
    PATCH version when you make backwards compatible bug fixes

Additional labels for pre-release and build metadata are available
as extensions to the MAJOR.MINOR.PATCH format.

A change from early development is; each MINOR version also indicate each new / existing feature inside internal programs. And performance patches go to "PATCH" section instead "MINOR" section.

With this versioning schema you know that whiting each MAJOR version the system is always compatible with the oldest versions.

Documentation

The files with documentation (like features, issues, etc) are;

  • Documentation/FEATURES.md

Contains information about each program and features.

  • Documentation/PATRONS.md

Contains information about each patrons in each month.

  • Documentation/ISSUES.md

Contains information about each issue fixed.

  • Documentation/PARTS.md

Contains information about each system part.

Build

Right now the OS is in alpha, so right now you can only test it another OS.

There are two ways for build RavnOS. ;

  • Cargo

Remember replace; [x86_64/aarch64] and [linux/windows/etc] for your case.

I recommend use this configuration inside "~/.cargo/.config";

[build]
target= "[x86_64/aarch64]-unknown-linux-musl"
jobs=20
rustflags = ["-C","opt-level=2","-C","debuginfo=0","-C", "target-feature=+crt-static","-C","target-cpu=native"]

Add the target built with musl;

rustup target add [x86_64/aarch64]-unknown-[linux/windows/etc]-musl

To build;

cargo build --release --target [x86_64/aarch64]-unknown-[linux/windows/etc]-musl

All binaries will be in "target/[TARGET]/release".

If you have space requirements, do "strip" to the final binaries. This is because even with "--release" target I still found debug symbols in the final binary.

  • Rustc

For each RavnOS's lib you must first build them as object file and then can be used inside compilation process;

rustc --crate-type=rlib --crate-name libconfarg [PATH_TO_LIBCONFARG]/src/lib.rs -o libconfarg.rlib
rustc --crate-type=rlib --crate-name libstream [PATH_TO_LIBSTREAM]/src/lib.rs -o libstream.rlib
rustc --crate-type=rlib --crate-name libfile [PATH_TO_LIBFILE]/src/lib.rs -o libfile.rlib

Then you can link into the binary build;

rustc --target=[x86_64/aarm64/etc]-unknown-[linux/windows/etc]-musl -C opt-level=2 -C target-feature=+crt-static --extern libconfarg=libconfarg.rlib --extern libfile=libfile.rlib --extern libstream=libstream.rlib [COMPONENT]/src/main.rs -o [final_name]

with above command, you will the final binary of [COMPONENT] in static final form (aka; statically linked) with optimization level 2 and specific libs (crates).

As with cargo, I recommend do "strip" to the final binaries to delete debug symbols.

Before - After strip binary

Before strip;

f: ls 	[10/4/2023 10:44:0 UTC-0]	["sticky bit", "rwx", "r-x", "r-x"]	[uid=1000(shyanjmc) gid=1000(shyanjmc)] 4M

After strip;

f: ls 	[10/4/2023 10:49:11 UTC-0]	["sticky bit", "rwx", "r-x", "r-x"]	[uid=1000(shyanjmc) gid=1000(shyanjmc)] 542K

The strip command clean the debug symbols, which are the 86.45% of space.

Coypright

I, Joaquin Manuel 'ShyanJMC' Crespo, am the main developer and creator of this project.

  • 2023-02-13; I have the signed copyright disclaimer agreement with my employer in which they (the company) waive the copyright on this.

  • 2023-02-13; I am in the process of registering the software at my name in República Argentina.

  • 2023-03-13; This project is registered in República Argentina at my name.

License

RavnOS and all parts are licensed under GPLv3.

Contact

If you want contact me, you can do it trough:

Email:

Linkedin:

Contributions and support

For now I am the main and only dev in this project, maybe in the future I will allow collaborations.

If you want support this project you can;

Join my patreon;

Donate me crypto;

  • DAI (ERC-20) - The preferred stablecoin;

    0x27219354cC70dE84e7fae0B71E9e2605026b10B2

  • Bitcoin (BTC);

    16n6GP4XkZiyoGCZei6uxdpohCkPm7eQ7L

  • Ethereum (ETH);

    0x27219354cC70dE84e7fae0B71E9e2605026b10B2

And if you know me personally, let me know that you have donated, since that moment we will share a beer (or mead if you are man/women of honor).

About

RanvOS, (from norwegian; raven), is a operative system programmed in Rust. Aims to be; minimal, stable, secure and modern ( this maybe you know as; state-of-art ).

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages