<!--- NodeOS Copyright (c) 2013-2017 Jacob Groundwater, Jesús Leganés-Combarro 'piranna' and other contributors MIT License --> NodeOS Lightweight operating system using Node.js as userspace. NodeOS is an operating system built…
<!---
NodeOS
Copyright (c) 2013-2017 Jacob Groundwater, Jesús Leganés-Combarro 'piranna' and
other contributors
MIT License
-->




NodeOS

Lightweight operating system using Node.js as userspace.
NodeOS is an operating system built entirely in Javascript and managed by
npm. Any package in npm is a NodeOS package, that
means a selection of more than 400.000 packages. The goal of NodeOS is to
provide just enough to let npm provide the rest. Since anyone can contribute
to it, anyone can create NodeOS packages.
This project won the Spanish 9th National Free Software Championship
on the Systems category and was Honorable Mention of its 10th edition.
It was also presented as the degree thesis of Jesús Leganes Combarro
with a qualification of 10/10 with distinction.
Useful links
- New Wiki (under work)
- pre-build releases images
- 1.0 Roadmap
- 2.0 Roadmap
- media files (logos, wallpapers...)
- discussion
Introduction
NodeOS is a Node.js based operating system, built-off of the Linux kernel. The
NodeOS Project is aiming to, and can already run on some of the following
platforms:
- real hardware like desktops, laptops, or SoC's (Raspberry Pi)
- cloud providers like Joyent, Amazon or Rackspace
- virtual machines like QEmu, VirtualBox, VMWare and KVM
- PaaS providers like Heroku or Joyent's Manta
- container providers like Docker & Vagga
- *barebones* custom Linux kernel with an initramfs that boots to a Node.js REPL
- *initramfs* Initram environment to mount the users partition & boot the system
- *usersfs* multi-user environment with the same behaviour of traditional OSes
Booting process
All the layers are bootable, leading *barebones* to a raw naked Node.js
REPL prompt as PID 1, while *initramfs* exec
actual NodeOS code to isolate user code from the core system and, if available,
mount a partition with the users' home directories and root filesystems.
If a *usersfs* partition is being set at boot time, it will be mounted and the
system will consider each one of its folders as the home folder for a valid user
on the system, and will execute a init file in the root of each of them. If
found, the root user will be the first to be considered and will have access
to all of the home directories, but by design it will not be possible to elevate
permissions once the system has finished booting.
Hacking
If you are hacking on NodeOS for a somewhat production environment, you are
likely interested on building a custom *usersfs* image or modify it once booted,
since each user is isolated from the others and everyone can be able to define
its own root filesystem, but you can customize all other layers if you want. For
example, you can modify *initramfs* to login users and mount their home folders
from a cloud service or craft a system without global services (no root user),
or also dedicate a full NodeOS instance to a single Node.js application.
Pre-built Images
Ready to use pre-build images are
automatically generated after each commit in master branch that sucessfully
pass the tests. To exec them, you'll
need to have QEmu installed on your system.
The *iso* can be written to a CD-R or flashed to a USB pendrive, but will only
provide the read-only rootfs and the changes will be done in memory, losing them
after reboot, so you'll manually need to set a read-write *usersfs* partition if
you want to persist them. On the other hand, if you want to flash it to a USB
pendrive, We recommended doing it by using bin/installUSB command so it will
automatically create a read-write *usersfs* partition to fill the remaining
space and use it as persistent storage.
Build NodeOS in five steps
1. Download the project source code:
bash
git clone [email protected]:NodeOS/NodeOS.git
cd NodeOS
2. Install the required build tools. On a Ubuntu based system you can do it by
executing:
bash
sudo bin/install-dependencies
3. Install NodeOS build dependencies:
bash
npm install
4. Build NodeOS:
bash
npm run build
By default it will generate some files that can be used with QEmu, compiled
for your current machine architecture. You can configure the build process
by passing some environment variables. For example, to force to build for 32
bits, use BITS=32 npm install instead.
5. Exec your freshly compiled NodeOS image:
bash
npm start
It will automatically detect what CPU architecture will need to be used on
QEmu and exec the correct emulation.
...profit! :-D
If you encounter an error when building NodeOS, take a look at
the wiki or
open an issue.
Single Process OS
NodeOS can be used as a Single Process OS, where only run a single executable.
To do so, set the SINGLE_USER environment variable to the name of a npm
module when executing npm run build. This will run fully from initram,
persistence can be achieved by setting this environment variable to an empty
string and later using a custom usersfs partition, but this is still
experimental.
NodeOS on LXC containers (Docker and vagga)
NodeOS fully officially supports Docker, published images are available at the
DockerHub NodeOS organization. If you are
interested in helping or testing, you can build them from source code.
Vagga support is fairly experimental, and help here will be greatly appreciated.
Quick Start
1. Install Docker
2. One Liner
bash
sudo docker run -t -i nodeos/nodeos
Build from Source
bash
git clone https://github.com/NodeOS/NodeOS.git
cd NodeOS
PLATFORM=docker npm install
License
MIT
This software consists of voluntary contributions made by many individuals. For
exact contribution history, see the revision history available at
https://github.com/NodeOS/NodeOS
Members
-
NodeOS ★ PINNED
Lightweight operating system using Node.js as userspace
Shell ★ 7.3k 3y agoExplain → -
nodeos-cross-toolchain ★ PINNED
No description.
JavaScript ★ 6 3y agoExplain → -
nodeos-bootfs ★ PINNED ⑂
No description.
Shell ★ 2 3y agoExplain → -
nodeos-barebones ★ PINNED
No description.
Shell ★ 5 3y agoExplain → -
nodeos-initramfs ★ PINNED
No description.
Shell ★ 6 3y agoExplain → -
nodeos-usersfs ★ PINNED
No description.
Shell ★ 2 6y agoExplain → -
NodeOS-RaspberryPi
Raspberry Pi Build of NodeOS
★ 32 12y agoExplain → -
nodeos-mount ⑂
mount(2) for node.js
JavaScript ★ 20 1y agoExplain → -
nodeos.github.io
NodeOS Website
HTML ★ 13 5y agoExplain → -
GitBlog ⑂
Blog engine using GitHub issues as backend
JavaScript ★ 8 2y agoExplain → -
nogit ⑂
A command-line git client powered by js-git and node.js
JavaScript ★ 7 1y agoExplain → -
nodejs
Node.js as a npm package for NodeOS
Shell ★ 7 3y agoExplain → -
qemu
QEmu as a npm package for NodeOS
Shell ★ 7 3y agoExplain → -
PalmTree
A service starter for NodeOS.
JavaScript ★ 6 9y agoExplain → -
genfatfs ⑂
fat filesystem generator for embedded systems
C ★ 6 3y agoExplain → -
NodeOS-Illumos
Illumos kernel for NodeOS
★ 6 12y agoExplain → -
nodeos-boot-multiUser ⑂
Basic mount and booting of NodeOS users filesystem
JavaScript ★ 4 2y agoExplain → -
media
Media files for NodeOS
★ 4 10y agoExplain → -
nodeos-linux
Downloads Linux source for use when compiling NodeOS
JavaScript ★ 2 8y agoExplain → -
ngit
A nodejs git client (with command line).
JavaScript ★ 2 2y agoExplain → -
genext2fs ⑂
genext2fs as npm package for NodeOS
C ★ 2 1y agoExplain → -
termios
No description.
C++ ★ 2 6y agoExplain → -
ci-blog
A GitHub Pages (Jekyll) blog system built on repo issues and continuous integration
JavaScript ★ 2 9y agoExplain → -
linux ⑂
Linux kernel source tree
★ 1 6y agoExplain → -
send ⑂
Better streaming static file server with Range and conditional-GET support
JavaScript ★ 1 3y agoExplain → -
nodeos-mount-utils
No description.
JavaScript ★ 1 6y agoExplain → -
standard ⑂
:star2: JavaScript Standard Style
JavaScript ★ 1 6mo agoExplain → -
unistd
`unistd` for NodeOS / Linux
C++ ★ 1 6y agoExplain → -
ifconfig
No description.
JavaScript ★ 1 11y agoExplain → -
nodeos-console-font
No description.
Shell ★ 0 11y agoExplain → -
cjktty-patch ⑂
cjktty patch for Linux kernel
★ 0 8y agoExplain → -
getty
No description.
JavaScript ★ 0 9y agoExplain → -
node-dup2 ⑂
No description.
C++ ★ 0 8y agoExplain → -
eslint-config-standard ⑂
ESLint Shareable Config for JavaScript Standard Style
JavaScript ★ 0 9y agoExplain → -
sockios
No description.
C++ ★ 0 9y agoExplain → -
node-src-errno
No description.
C++ ★ 0 6y agoExplain → -
node-src-ifaddrs
No description.
C++ ★ 0 6y agoExplain → -
jsdiff ⑂
A javascript text differencing implementation.
JavaScript ★ 0 9y agoExplain → -
node-dhcpjs ⑂
dhcpjs provides native DHCP support in Node.js
JavaScript ★ 0 9y agoExplain → -
ip
No description.
JavaScript ★ 0 11y agoExplain →
No repos match these filters.