Trying NEX from a USB stick
By Roberto Arato of aratoingegneria.it
NEX Live is a USB stick with Debian 13, the light XFCE desktop and nex-cluster. You start any computer from the stick, and in a few clicks it becomes a node of a NEX cluster: nothing is installed on the computer, and its own disk is not touched. Three computers and three sticks (or one stick started on each computer in turn) are a real cluster: shared files, programs that run on the other nodes, copies of the data on more than one computer.
A laptop can join the cluster on the fly as a terminal: it sees the cluster files and runs programs on the other nodes, and it can be switched off at any time.
Contents
- What you need
- Writing the stick
- Starting a computer from the stick
- The desktop and NEX Setup
- Where the data stay
- The first computer: create the cluster
- The other computers: join the cluster
- Using the cluster
- When something goes wrong
1. What you need
- A USB stick of at least 8 GB for each computer, or one stick started on each computer in turn. To keep the data on the stick itself (section 5), 16 GB or more.
- Computers with a 64-bit Intel or AMD processor (amd64) and at least 8 GB of memory: the whole system runs from memory. Old Macs with an Intel processor work too.
- The same network for all the computers, wired or Wi-Fi.
- Secure Boot can stay on: the stick starts with it.
2. Writing the stick
Download nex-live-VERSION-amd64.iso from the Downloads page, with its
.sha256 file. The image is written as it is onto the stick: everything that was on the
stick is erased.
Windows: balenaEtcher, or Rufus choosing "DD image mode" when it asks.
macOS: balenaEtcher.
Linux: balenaEtcher, the Disks application ("Restore Disk Image"), or in a terminal (replace
sdXwith the stick, seelsblk):sha256sum -c nex-live-VERSION-amd64.iso.sha256 sudo dd if=nex-live-VERSION-amd64.iso of=/dev/sdX bs=4M status=progress oflag=sync
3. Starting a computer from the stick
Plug the stick in and switch the computer on, pressing the key of the boot menu: often F12, F11, F8 or Esc (it is written on the screen for a moment; on an old Intel Mac, hold the Option key). Choose the USB stick.
The NEX Live menu appears with two entries: NEX Live (English), with the US keyboard, and NEX Live (Italiano), with the Italian language and keyboard and the time of Rome. After 5 seconds the first one starts by itself. NEX Setup and the desktop follow the language chosen here. The whole system is copied into memory: after a minute or two the desktop is ready, and the stick could even be removed (unless it keeps the data, section 5).
Every computer gets its own name, nex- followed by four characters of its network card, always
the same for the same computer.
4. The desktop and NEX Setup

At the start NEX Setup opens by itself, until the computer is in a cluster. It can be opened again from the Set up NEX icon on the desktop or from the applications menu.
The first page asks for the password of this computer (at least 8 characters). The stick
has no known password: until one is chosen, nobody can log in as the user nex, from the
keyboard or from the network. The password chosen here unlocks the screen and is asked by
sudo. With the data kept on the stick or on a disk it is asked only once; in memory only, at
every start.

Then: where the data stay, then Create a new cluster on the first computer and Join a cluster on the others.

5. Where the data stay
There are three ways, chosen in NEX Setup with Keep the data...:
| Way | Where | When it is the right choice |
|---|---|---|
| In memory only (the start) | the computer's memory | trying NEX, showing it: everything is lost when the computer is switched off |
| On this USB stick | a part of the free space of the stick | trying NEX for some days without touching the computer's disks |
| On a disk | a second USB stick, or a disk of the computer | a real test, or old computers reused as storage nodes |

With the stick or a disk, the computer restarts once; then the node, its configuration and its data survive every restart. A disk chosen here is erased completely: NEX Setup shows what is on each disk (it warns when Windows is there) and asks to type the name of the disk to confirm.
6. The first computer: create the cluster

On the first computer choose Create a new cluster:
- Name in the cluster: the name of the computer is already there;
- Cluster password: at least 8 characters. Every computer that joins asks for it: write it down;
- What this computer does: for the first computer, Runs programs and keeps the cluster data;
- The first user of the cluster (optional): the name and password of the person who will use
the cluster. They get a home in
/nex/homeand the same password on every computer of the cluster.nexis the administrator, not a user of the cluster; other users are added later withsudo nexctl users add.
Create the cluster shows the steps one by one. At the end the cluster announces itself on the network, so the other computers find it by themselves.
7. The other computers: join the cluster

On every other computer choose Join a cluster. The cluster of the first computer is in the list (if it is not, type the address of the first computer). Then:
- the user on the first node:
nex, already filled in, if the cluster was made with NEX Live or the VM images. For a cluster installed by hand from the packages, the administrator who installed it (the one who usessudoon the first node); - the cluster password: the password of that user;
- what this computer does:
- Runs programs: the cluster uses its processor;
- Keeps a share of the cluster data: it keeps copies of the data;
- Both;
- Terminal: it sees the cluster files and runs programs on the other nodes, but runs nothing for others and keeps no data. The right choice for laptops and light computers.
With three computers that keep the data, the cluster keeps three copies of every file: one computer can be switched off and the files are still there.
The cluster password becomes the password of nex on every computer of the cluster: it
replaces the password chosen at the start. Once the computer has created the cluster or joined
it, sudo asks for it: a program running in the session cannot become administrator without
it.
8. Using the cluster
- NEX Monitor (applications menu): nodes, processes, network and disks of the whole cluster.
- Files: the cluster files are in
/nex, also in the file manager (NEX Cluster on the left). With the right mouse button on a file, the NEX menu runs it on the least loaded node or on a chosen one, or opens a terminal there. - Terminal:
nex nodesshows the nodes;nex run --node any COMMANDruns a command on the cluster;nexshis a shell for the whole cluster. - One more disk for a node that keeps data: connect the disk and open NEX Setup from the
applications menu. On a node already set up it shows Add a disk: the disks already used by
the cluster with their free space, the empty disks to choose from, and the others, which NEX
does not touch. The chosen disk is erased entirely, and you confirm by typing its name (for
example
sdb). The node stays in the cluster; new data go to the freest disk, the data already there stay where they are. From a terminal:sudo nexctl storage disk-add sdb.
The other guides tell more: the user guide, the desktop, nexsh.
9. When something goes wrong
| What you see | What to do |
|---|---|
| The computer starts its usual system | choose the stick in the boot menu (section 3); some computers need "USB boot" enabled in their settings |
| The keyboard writes different letters | choose NEX Live (Italiano) in the start menu for the Italian keyboard; for another one, Settings > Keyboard > Layout adds it |
| No network | the network icon at the top right: choose the Wi-Fi network |
| The cluster is not in the list | the computers must be on the same network; type the address of the first computer (it is in the messages of Create the cluster, in the summary line "node ..., address ...") |
| "wrong password" while joining | the password is the one chosen when the cluster was created: Back returns to the page with everything you wrote, correct the password and press Join again |
| Everything was lost after switching off | the data were in memory only: choose Keep the data... before creating the cluster |