-
Notifications
You must be signed in to change notification settings - Fork 625
Building From Source
-
Git. To install using:
- for Debian/Ubuntu:
apt-get install git - for Arch:
pacman -S git
- for Debian/Ubuntu:
-
Node 6.x
-
NPM 3.x
After you installed the prerequisites just clone the repository
$ git clone https://github.com/NodeOS/NodeOS.gitOnce you've installed the prerequisites you need the dependencies for
Debian/Ubuntu using apt-get. First you need to update your cache.
To do so run
$ dpkg --add-architecture i386
$ apt-get -qq -y updateThen you install the dependencies listed below
- cross compiler dependencies:
apt-get -qq -y gcc g++ realpath texinfo - barebones dependencies:
apt-get -qq -y bc libpixman-1-dev - bootfs dependencies:
apt-get -qq -y genisoimage libuuid:i386 - initramfs dependencies:
apt-get -qq -y cpio - userfs dependencies:
apt-get -qq -y autoconf automake - qemu dependencies:
apt-get -qq -y libsdl1.2-dev
Or as a one liner:
$ apt-get -qq -y gcc g++ realpath texinfo bc libpixman-1-dev genisoimagelibuuid:i386 cpio autoconf automake libsdl1.2-devOr just run if you're outside the folder
$ cd NodeOS/
$ bin/install-dependenciesOnce you have installed the prerequisites you need the dependencies for Arch Linux
- cross compiler dependencies:
pacman -S gcc texinfo python2 - barebones dependencies:
pacman -S bc libcurl-gnutls pixman lib32-pixman - bootfs dependencies:
pacman -S cdrkit - initramfs dependencies:
pacman -S cpio - userfs dependencies:
pacman -S autoconf automake - qemu dependencies:
pacman -S sdl
Or as one liner:
$ pacman -S gcc texinfo python2 bc pixman lib32-pixman cdrkit cpio autoconf automake sdlOnce you've installed the correct dependencies for your operating system you can start with the installation of NodeOS.
To do this, run following commands:
$ cd /usr/bin
$ ln -sf python2 pythonThe next step is to install the npm dependencies and the bundled dependencies to do this run following command:
$ npm installWe've installed all neccassary dependencies and prerequisites, the next thing we need to do is to build the whole thing, to do so just run:
$ npm run buildif you want to build NodeOS for Docker run the following commands:
$ PLATFORM=docker npm run build
$ npm run dockerBuildthen precede with Step 5
Now you can run your fresh build with:
For QEmu:
$ npm startFor Docker:
$ npm run dockerIf NodeOS boot without a error, then everything was compiled correctly. If not look under Troubleshooting
After NodeOS has booted up you should see something like:
Hello! I'm a user init script :-)
Now you're prompted to enter your username and password. By default, the
username and password is nodeos and cannot be changed without altering code.
$ username: nodeos
$ password: nodeos
- What is NodeOS
- Introduction
- Installation
- Getting Started
- Roadmaps
- Contributing
- Troubleshooting
- FAQ