To get Spectrum, you need to build it from source. As long as you’re running Linux and have Nix and git installed, it’s very easy to do.
|Before you start, consider setting up the Spectrum binary cache, which will save you a lot of time waiting for builds.|
If you want to try Spectrum out to get a feel for it, without installing it, you can run it in a development VM with some example applications.
git clone https://spectrum-os.org/git/spectrum git clone https://github.com/NixOS/nixpkgs git clone -b rootfs --reference nixpkgs \ https://spectrum-os.org/git/nixpkgs nixpkgs-spectrum cd spectrum/host/rootfs nix-shell -I nixpkgs=../../../nixpkgs-spectrum --run 'make run'
This builds just enough of Spectrum to try it out in a VM, but it will still take a very long time.
To install Spectrum on a computer, you can use a USB drive as a bootable Spectrum installer device. When booting a system from the installer device, you will be able to choose whether to try out Spectrum without installing it on your system (as a live image), or to install it to your computer’s internal storage.
First, you need to build the Spectrum image:
git clone https://spectrum-os.org/git/spectrum nix-build spectrum/release/combined \ -I nixpkgs=https://spectrum-os.org/git/nixpkgs/snapshot/nixpkgs-rootfs.tar.gz
If you haven’t set up the binary cache, this will take a very long time. When it’s done, a symbolic link named "result" will appear in the current directory, pointing to the installer image. Write that image to a USB drive, for example using
dd (command line) or
usbimager (graphical, available in Nixpkgs). Boot your system from the USB drive, and you should see a menu allowing you to choose between "Try Spectrum" and "Install Spectrum".
|While it’s possible to install Spectrum to your internal storage, at this point in Spectrum’s development there is not much reason to, as OS updates are not yet implemented, and persistent storage is not yet exposed to VMs. Using the "Try Spectrum" option to boot Spectrum will let you try out everything in Spectrum, without having to go through the additional step of reinstalling Spectrum every time you want to use a newer version.|
|Do not use Spectrum for anything important or sensitive as it is not yet suitable for real-world use. Many important security properties are currently missing, and there is no procedure for updating to new versions—you have to reinstall the OS.|