Installation guide
Install a NEXXVU Portal
Current installer: NEXXVU Portal 0.3.0-alpha.429 (released 2026-11-26, test signing key), for Ubuntu Server 26.04 LTS. Follow the steps in order; once installed, the Portal keeps itself up to date (see the Configuration guide).
Overview
The NEXXVU Portal is a web application that runs on your own server. It keeps an inventory of your infrastructure and shows its monitoring data. After enrollment it reports its status to the update centers named on this page and receives signed releases from them.
Recommended release
- Version
- 0.3.0-alpha.429
- Released
- Release notes
- Release notes for 0.3.0-alpha.429
- Status
- Beta
Supported platform
- System
- Ubuntu Server 26.04 LTS
- Architecture
- amd64 (x86_64)
- Python
- exactly 3.14.4 (the Ubuntu
python3.14package)
The installer stops on any other system, architecture or Python version.
Server size
| Resource | Tested configuration |
|---|---|
| CPU | 4 vCPU |
| Memory | 8 GB RAM |
| Disk | 64 GB |
This is the configuration the installation was tested on. A smaller minimum has not been tested.
Network
- Outbound HTTPS (TCP 443) to
update1.nexxvu.comandupdate2.nexxvu.com. - Inbound TCP 80 and 443 to this server: the Portal's public HTTPS address (Let's Encrypt validation, then HTTPS). Nothing else needs to be reachable from outside.
- A DNS name for the Portal (
<PORTAL_NAME>.<YOUR_DOMAIN>) that resolves to this server.
Downloads
Both update centers serve the same files. Use update1.nexxvu.com; update2.nexxvu.com is the alternative.
| File | Primary | Alternative |
|---|---|---|
| Package nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz | update1.nexxvu.com | update2.nexxvu.com |
| Release public key TEST-release-public.key | update1.nexxvu.com | update2.nexxvu.com |
- Package SHA-256
8c50c90713424bb56078aae270dba0aa74a07eedd6b877c403887dcb5e20593b- Release key SHA-256
950e04d0629c465998681f4c092f4e6a84f1948ef906bd6dcd4d6441562a47e7
Where is the signature?
There is no separate signature file. Inside the package, package/manifest.sig (Ed25519, Base64) signs
package/manifest.json, which names the SHA-256 of the Portal release it carries. Tab 3 checks both with
the release public key.
The steps
- Prepare Ubuntu: check the server, install the required packages.
- Install NEXXVU: download, verify, install and activate.
- First setup and enrollment: create the administrator password, enroll, enable reporting and updates.
- Updates and recovery: what happens afterwards, and what to do when something fails.
Prefer guided help? Install with Claude gives you one complete set of instructions to paste into Claude.
Easiest start: a ready-to-run image for Proxmox, VMware, VirtualBox or a physical server installs everything on its first boot; then continue at the short path. The installer and the images can be a few releases behind the newest one: once connected, the Portal updates itself.
Words you will see
- Server, VM
- A computer that stays on. A VM (virtual machine) is a computer inside another one, for example on Proxmox.
- Console, terminal
- The text window of the server where you type commands. On Proxmox: the VM's Console.
- sudo
- Put in front of a command to run it as the server's administrator. It asks for your password.
- SSH
- A safe way to open the server's terminal from your own computer.
- IP address
- The number that finds a device on the network, like a house number (for example 192.0.2.10).
- DNS, DNS name
- The phone book of the internet: it turns a name like portal.example.com into an IP address. The server itself also needs a working DNS server.
- Port
- A door on the server for one kind of traffic. Web pages use 80 and 443; the router must let them in (NAT, port forwarding).
- Certificate, HTTPS
- Proof that the site really is yours, so the browser shows a padlock. NEXXVU gets one free from Let's Encrypt.
- HTTPS front
- The part that answers on the public address with the certificate and passes visitors to the Portal. One command sets it up.
- Enrollment, connect
- Joining your Portal to the NEXXVU update centers with your invitation code, so it gets new releases.
- Devices
- A Portal watches 5 devices for free; ask NEXXVU in the Portal for more (how).
- Ecosystem
- A group of devices you look after together, for example one office or one customer.
Prepare Ubuntu
Run these commands on the new server as a user that can use sudo.
Check the server
Read-only checks. Expect ubuntu 26.04 x86_64, at least the tested size, both update centers
resolving, and 200 twice.
. /etc/os-release; echo "$ID $VERSION_ID $(uname -m)"
nproc; free -h; df -h /
getent hosts update1.nexxvu.com update2.nexxvu.com
curl --fail --proto =https -sS -o /dev/null -w '%{http_code}\n' https://update1.nexxvu.com/downloads/installers.json
curl --fail --proto =https -sS -o /dev/null -w '%{http_code}\n' https://update2.nexxvu.com/downloads/installers.json
Install the required packages
The installer itself downloads nothing. python3.14-venv is in the universe component.
Answer Y when apt asks.
sudo apt update
sudo apt install python3.14-venv acl nftables openssl curl caddy
Check Python (expect 3.14.4), then hold the Python packages so apt upgrade
does not replace them:
python3 -c 'import sys; print(sys.version.split()[0])'
sudo apt-mark hold python3.14 python3.14-venv python3.14-minimal libpython3.14-stdlib libpython3.14-minimal
Why Python is held
This release needs Python 3.14.4 exactly. Release the hold (sudo apt-mark unhold with the
same package names) only when a release names a newer Python.
Install NEXXVU
On the server, create an empty working directory and change into it (for example
mkdir nexxvu-download && cd nexxvu-download). Stop at the first mismatch or error and
do not install. Report it to the update-center operator.
Download and verify
Download the package and the release public key from
update1.nexxvu.com:curl --fail --proto =https --remote-name https://update1.nexxvu.com/downloads/nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz curl --fail --proto =https --remote-name https://update1.nexxvu.com/downloads/TEST-release-public.keyupdate1.nexxvu.com not reachable? Download the same files from update2.nexxvu.com
curl --fail --proto =https --remote-name https://update2.nexxvu.com/downloads/nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz curl --fail --proto =https --remote-name https://update2.nexxvu.com/downloads/TEST-release-public.keyCheck the package checksum. Expect
nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz: OK.echo '8c50c90713424bb56078aae270dba0aa74a07eedd6b877c403887dcb5e20593b nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz' | sha256sum --check --strictCheck the release public key. The printed value must equal the release key SHA-256 (
950e04d0629c465998681f4c092f4e6a84f1948ef906bd6dcd4d6441562a47e7), and the key must decode to exactly32bytes.sha256sum TEST-release-public.key base64 --decode TEST-release-public.key | wc -cUnpack a copy for checking and confirm the package carries the same key (
cmpprints nothing when the files are identical):mkdir check tar --extract --gzip --file nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz --directory check cmp TEST-release-public.key check/package/update-signing-public-keyVerify the signed manifest. Expect
Signature Verified Successfully.{ printf '\060\052\060\005\006\003\053\145\160\003\041\000'; base64 --decode TEST-release-public.key; } > release-public.der base64 --decode check/package/manifest.sig > manifest.sig.raw openssl pkeyutl -verify -pubin -keyform DER -inkey release-public.der -rawin -in check/package/manifest.json -sigfile manifest.sig.rawWhat this does
The first line wraps the 32-byte key in its standard DER header so OpenSSL can read it. This is the same method the installer's own package check uses.
Check the Portal release against the signed manifest. The output must end in
: OK.python3 -c 'import json; m = json.load(open("check/package/manifest.json")); print(m["artifact_sha256"] + " check/package/" + m["artifact_locator"])' | sha256sum --check --strictThen remove the checking copy:
rm -r check. The installer checks the package again below.
Install and activate
Each command prints a result line. Continue only after the expected result.
Unpack the verified package into a new directory that only root can read (no output):
sudo install -d -o root -g root -m 0700 /root/nexxvu-install sudo tar --extract --gzip --file nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz --directory /root/nexxvu-installCheck the unpacked package. Expect
GROUP-1=PASS.sudo /root/nexxvu-install/package/GROUP-1-VERIFY.sh /root/nexxvu-install/packageCheck the server, then rehearse without changes. Expect
PREFLIGHT=PASS, thenDRY-RUN=PASS.sudo /root/nexxvu-install/package/installer/INSTALL.sh --preflight /root/nexxvu-install/package sudo /root/nexxvu-install/package/installer/INSTALL.sh --dry-run /root/nexxvu-install/packageInstall, then verify. Expect
INSTALL=PASS, thenVERIFY=PASS. Nothing is started yet.sudo /root/nexxvu-install/package/installer/INSTALL.sh --install /root/nexxvu-install/package sudo /root/nexxvu-install/package/installer/INSTALL.sh --verify /root/nexxvu-install/packageActivate: start the Portal on this server, then verify again. Expect
LOCAL_RUNTIME_ACTIVATED_HEALTH_VERIFIED, thenVERIFY-PROFILE=activatedandVERIFY=PASS.sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py activate sudo /root/nexxvu-install/package/installer/INSTALL.sh --verify /root/nexxvu-install/package
Keep /root/nexxvu-install/package: verification and recovery use it.
If activation stops with ACTIVATION_DRIVER_REFRESH_UNAVAILABLE (the 0.3.0-alpha.52 installer): the Portal is already activated; the installer misreads the result of its own driver refresh. Finish the two remaining steps, then verify again - expect a DRIVER-REFRESH= line, then READINESS=READY, then VERIFY=PASS:
sudo sh -c 'cd /opt/nexxvu-updater/current && env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin LANG=C LC_ALL=C TZ=UTC ./.venv/bin/python -E -B -m app.update.driver_refresh refresh'
sudo sh -c 'cd /opt/nexxvu-updater/current && env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin LANG=C LC_ALL=C TZ=UTC ./.venv/bin/python -E -B -m app.update.readiness --package /root/nexxvu-install/package --wait 180'
sudo /root/nexxvu-install/package/installer/INSTALL.sh --verify /root/nexxvu-install/package
The ready-to-run images do this by themselves. A newer installer removes the step.
First setup and enrollment
Public HTTPS address
The Portal itself answers only on this server. Caddy, installed with the packages above, gives it its public
address with a Let's Encrypt certificate that renews itself. Before this step the DNS name must resolve to this server
and inbound TCP 80 and 443 must reach it. Expect PORTAL-FRONT-VERIFY=PASS, then
PORTAL-FRONT=PASS.
sudo /root/nexxvu-install/package/installer/PORTAL-FRONT.sh --enable --hostname <PORTAL_NAME>.<YOUR_DOMAIN> --tls acme
What this changes
It writes the Caddy configuration for that one name, lets the Portal accept the visitor's address from Caddy on this server only, and pins the Portal's local certificate for Caddy (re-pinned automatically after each renewal). It changes no firewall, DNS or Portal data. Caddy renews the certificate by itself; no e-mail address is needed.
First administrator
The administrator account is admin. There is no default password. The first sign-in
needs a one-time setup code. The Portal creates it when it starts,
and activation then prints the command that shows it:
sudo nexxvu-portal setup-code
Open https://<PORTAL_NAME>.<YOUR_DOMAIN>/ in your browser. Type the setup code, then
choose a new password for admin. The code then stops working.
The code gives access to the administrator account. Do not send it by e-mail or chat, and do not paste it into tickets or logs.
Enrollment
Enrollment connects this Portal to the update centers. You need a one-time enrollment code from your NEXXVU operator, issued for this Portal's name.
- The code looks like
NXV1-followed by 32 letters and digits. It works once, only for that Portal name, and it expires. Do not share it. - Run the command in an interactive terminal and type the code at the hidden prompt
NEXXVU enrollment code:. It is never a command-line argument. - Replace
<PORTAL_NAME>and<YOUR_DOMAIN>with this Portal's name and your domain.
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enroll --center https://update1.nexxvu.com --portal-name <PORTAL_NAME> --endpoint https://<PORTAL_NAME>.<YOUR_DOMAIN>
Expect PORTAL_ENROLLED. Enrollment contacts the primary update center, update1.nexxvu.com, only.
Enrolling a reinstalled Portal
A Portal that is already enrolled is refused. To enroll a reinstalled Portal again, ask for a new code and add
--reinstall-identity to the command.
Reporting and updates
The order matters: enable reporting first, then schedule it, then enable updates. Expect
SERVICE_ENABLED three times.
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enable-reporting
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enable-reporting --schedule
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enable-updates
Check the result. Expect RUNTIME_ACTIVATION_VERIFIED.
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py verify-activated
After the first scheduled report, the update-center operator sees the Portal in the fleet as online, with its name and installed version. Ask the operator to confirm this.
The short path (since alpha.435). Before you start: a DNS name for the Portal (an A record to your public address), and on your router TCP 80 and 443 forwarded to the Portal (destination NAT), its outgoing traffic leaving from that same public address (source NAT).
- HTTPS and the administrator. A ready-to-run image sets up HTTPS by itself when the VM was given its full name (for example name
nexxvuand search domainpacecrm.net) and that name is already in DNS. Otherwise run on the console:sudo nexxvu-start. It suggests the name, shows the DNS record and port forwards it needs, sets up HTTPS with a free Let's Encrypt certificate, says in plain words what to fix if that fails, and then prints the administrator's one-time setup link. Installed without the image:sudo /root/nexxvu-install/package/installer/PORTAL-FRONT.sh --setup. Never write the Caddyfile by hand (why). - Open the link. Set the administrator password. The code in it is short (like
K7QM-2XPA-…) if you type it.sudo nexxvu-portal setup-linkprints a new link later. - Connect. Since alpha.436: finish Getting started steps 1-3 (ecosystem, organization, e-mail), then step 8 Connect to the NEXXVU update centers (Settings › Updates › Ask to connect); NEXXVU approves it (how). Or, with an invitation code from your NEXXVU operator:
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py connect --center https://update1.nexxvu.com. It asks for the Portal name and the code, enrolls, and switches on reporting and updates (expectPORTAL_CONNECTED).
After you sign in: the Portal's Getting started list shows what comes next - 1 an ecosystem, 2 your organization, 3 e-mail, then (recommended) 4 Google, 5 pictures, 6 your first device, 7 your data server, 8 the connection to the NEXXVU update centers, and 9 NEXXVU AI when it is ready (Configuration guide).
Installing with an AI helper? Let it create new VMs only, keep existing VMs and bridges untouched, and confirm every change with you before it makes it.
Planning backups? Prepare a MikroTik RDS (or another MikroTik with disks) and, for VMs, your Proxmox nodes with root SSH. Then follow Configuration › Backups and VM control.
Data server (recommended)
A NEXXVU installation uses two servers: the Portal server you installed above, and a data server that keeps the Portal's monitoring history and logs in PostgreSQL. Each Portal gets its own data server, named after it, for example acme.nxv-db for the Portal acme.
- 1
Install
Ubuntu Server, fixed address - 2
Network
Portal → 5432 and 22 - 3
Sign-in once
password from the Portal only - 4
Add as a device
Inventory → Add device → Ubuntu - 5
Make this a data server
the device's Tools tab - 6
Approve
Settings → Data server - 7
Move the history
then Move now
Why two servers
| Reason | What it means for you |
|---|---|
| Fast pages | Collecting, cleaning up and compacting millions of readings happens on the data server; the Portal's pages never wait for it. |
| Room to grow | A busy Portal writes about a million readings a day, and logs add far more. The data server's disk grows on its own, without touching the Portal. |
| Safe, quick updates | Every Portal update backs up its database and can roll back. With the history elsewhere that backup stays small, so updates need little free space and finish quickly; a rollback never rewinds your history. |
| Security | The data server is unreachable from the internet and from everything except its Portal, on one port, over TLS. It reaches the internet only during a short daily update window. |
| Independent recovery | Either server can be rebuilt or restored without the other, and old history is removed per day instead of row by row. |
Size
| Data server | |
|---|---|
| System | Ubuntu Server 26.04 LTS (the same as the Portal) |
| Processor and memory | 2–4 virtual CPUs, 4–8 GB |
| Disk | 64–128 GB to start, on storage you can enlarge later |
| Network | Its own network segment (VLAN) and a fixed address, next to the Portal |
1. Create the virtual machine
On Proxmox VE, from the node's shell (adjust the VM number, VLAN tag, storage and image path to yours; the Ubuntu cloud image is the same one you can use for the Portal):
qm create 1221 --name acme.nxv-db --memory 8192 --cores 4 --cpu host --ostype l26 \
--scsihw virtio-scsi-single --agent enabled=1 --onboot 1 \
--net0 virtio,bridge=vmbr0,tag=1221
qm set 1221 --scsi0 local-lvm:0,import-from=/path/to/ubuntu-26.04-server-cloudimg-amd64.img,discard=on,ssd=1
qm resize 1221 scsi0 128G
qm set 1221 --ide2 local-lvm:cloudinit --boot order=scsi0 \
--ipconfig0 ip=10.20.21.2/30,gw=10.20.21.1 --ciuser youradmin --sshkeys ~/your_key.pub
qm start 1221
Any hypervisor or a physical server works too: install Ubuntu Server with a fixed address on its own segment.
2. Isolate it on the network
The data server needs exactly these paths; block everything else:
- Portal → data server, TCP 5432 (PostgreSQL), from the Portal's address only.
- Portal → data server, TCP 22 (SSH): NEXXVU sets the server up through it and then monitors it as a device, with its own key.
- Your administration computer → data server, TCP 22 (SSH).
- Data server → internet, only during a daily update window (for example 03:00–03:45).
Example for a MikroTik router (RouterOS 7). Replace the addresses and interface, and move the filter rules above your router's general accept rules:
/interface vlan add name=vlan1221-acme-nxv-db vlan-id=1221 interface=<trunk-to-hypervisor>
/ip address add address=10.20.21.1/30 interface=vlan1221-acme-nxv-db
/ip firewall filter
add chain=input action=drop connection-state=new src-address=10.20.21.0/30 comment="nxv-db: no new connections to the router"
add chain=forward action=accept connection-state=new protocol=tcp src-address=<portal-ip> dst-address=10.20.21.2 dst-port=5432 comment="nxv-db: Portal to PostgreSQL"
add chain=forward action=accept connection-state=new protocol=tcp src-address=<portal-ip> dst-address=10.20.21.2 dst-port=22 comment="nxv-db: Portal SSH (set-up and monitoring)"
add chain=forward action=accept connection-state=new protocol=tcp src-address=<admin-ip> dst-address=10.20.21.2 dst-port=22 comment="nxv-db: administration SSH"
add chain=forward action=drop connection-state=new dst-address=10.20.21.0/30 log=yes comment="nxv-db: nothing else in"
add chain=forward action=accept connection-state=new src-address=10.20.21.0/30 out-interface-list=WAN disabled=yes comment="nxv-db update window"
add chain=forward action=drop connection-state=new src-address=10.20.21.0/30 log=yes comment="nxv-db: nothing else out"
/ip firewall nat add chain=srcnat action=masquerade src-address=10.20.21.0/30
/system scheduler
add name=nxv-db-window-open start-time=03:00:00 interval=1d on-event="/ip firewall filter enable [find comment=\"nxv-db update window\"]"
add name=nxv-db-window-close start-time=03:45:00 interval=1d on-event="/ip firewall filter disable [find comment=\"nxv-db update window\"]"
Open the window by hand (enable the update window rule) while PostgreSQL is installed (step 5, or M1 and M2), and close it afterwards.
3. Let the Portal sign in once
For the set-up NEXXVU signs in once with an account that may use sudo and its password; afterwards it uses only its own key. Ubuntu cloud images allow keys only, so a password is refused ("Permission denied (publickey)"). Allow it from the Portal's address only, on the data server's console:
sudo tee /etc/ssh/sshd_config.d/60-nexxvu-setup.conf >/dev/null <<'CONF'
Match Address <portal-ip>/32
PasswordAuthentication yes
CONF
sudo sshd -t && sudo systemctl reload ssh
If the server's own firewall (ufw) is on, allow the Portal on SSH too: sudo ufw allow from <portal-ip> to any port 22 proto tcp. Once the data server is connected you can remove the file again: sudo rm /etc/ssh/sshd_config.d/60-nexxvu-setup.conf && sudo systemctl reload ssh.
4. Add it as a device
- In the Portal: Inventory → Add device → Ubuntu, the data server's address, and the account from step 3 with its password (used for this set-up only, then forgotten).
- Finish the device's set-up as for any server: NEXXVU creates its monitoring account and from then on signs in with its own key.
5. Make this a data server
- Open the new device, its Tools tab, and choose Data server → Make this a data server. Enter the sudo account and password once (kept in memory for at most 15 minutes) and choose Check: system, PostgreSQL, free space (at least 20 GB), firewall and package source are read; nothing is changed.
- If PostgreSQL is missing, NEXXVU installs it and the page follows the install. A PostgreSQL that is already there is used as it is.
- NEXXVU lists exactly what it will change: PostgreSQL also listens on the server's address, TLS on, only this Portal's address may sign in (over TLS, to NEXXVU's two databases), the account nexxvu_portal and the databases, and the firewall rule for this Portal on 5432. Confirm, and it is applied. The database password is generated on the server and stored write-only in the Portal: nobody sees or types it.
- The server is saved under Settings → Data server for you; continue there.
6. Approve and check
- Settings → Data server → Connection: compare the certificate fingerprint with the one the data server shows (sudo openssl x509 -in /etc/ssl/certs/ssl-cert-snakeoil.pem -outform der | sha256sum), tick the box and approve with your Portal sign-in password. The Portal restarts once.
- Choose Check connection: both databases answer over TLS and the status reads Connected.
7. Move the monitoring history
Settings → Data server → Monitoring history → Move monitoring history; when it reads On the data server, Move now removes the older readings from the Portal and gives the space back to the disk within minutes. Details are in step M6 below.
By hand instead of steps 3 to 6
The steps below do what Make this a data server does, on the server's console. Use them only if NEXXVU may not sign in to the server. In Settings → Data server you then type the address, the account nexxvu_portal and its password yourself (step M5).
M1. Install PostgreSQL and the firewall
sudo apt update
sudo apt install -y postgresql ufw unattended-upgrades
sudo timedatectl set-timezone <your router's time zone, for example America/Toronto>
M2. Create the NEXXVU databases
Run as root on the data server, with your two addresses filled in. The password is generated on the server and kept in a file only root can read; you enter it once in the Portal when you connect it.
sudo -i
PORTAL_IP=<portal-ip>; DB_IP=10.20.21.2
C=$(ls -d /etc/postgresql/*/main | tail -1)
cat > $C/conf.d/nexxvu.conf <<EOF
listen_addresses = 'localhost,$DB_IP'
ssl = on
password_encryption = scram-sha-256
EOF
cp $C/pg_hba.conf $C/pg_hba.conf.package
cat > $C/pg_hba.conf <<EOF
local all postgres peer
local all all peer
hostssl nexxvu_monitoring,nexxvu_logs nexxvu_portal $PORTAL_IP/32 scram-sha-256
EOF
umask 077
PW=$(openssl rand -base64 30 | tr -dc 'A-Za-z0-9')
printf 'host=%s\nport=5432\nuser=nexxvu_portal\npassword=%s\n' "$DB_IP" "$PW" > /root/nexxvu-db-credentials
{ printf '\set pw %s\n' "$PW"; cat <<'SQL'
CREATE ROLE nexxvu_portal LOGIN PASSWORD :'pw';
CREATE DATABASE nexxvu_monitoring OWNER nexxvu_portal;
CREATE DATABASE nexxvu_logs OWNER nexxvu_portal;
SQL
} | sudo -u postgres psql -q
unset PW
make-ssl-cert generate-default-snakeoil --force-overwrite
systemctl restart postgresql
Only the Portal's address may sign in, only over TLS, and only to the two NEXXVU databases.
M3. Server firewall and update timing
The server's own firewall repeats the router's rules, and package updates run inside the window:
sudo ufw default deny incoming
sudo ufw allow from <portal-ip> to any port 5432 proto tcp
sudo ufw allow from <admin-ip> to any port 22 proto tcp
sudo ufw enable
sudo systemctl edit apt-daily.timer # [Timer] OnCalendar= then OnCalendar=*-*-* 03:05 RandomizedDelaySec=0
sudo systemctl edit apt-daily-upgrade.timer # [Timer] OnCalendar= then OnCalendar=*-*-* 03:15 RandomizedDelaySec=0
M4. Check
From the Portal server, the data server answers over TLS:
openssl s_client -starttls postgres -connect 10.20.21.2:5432 </dev/null 2>/dev/null | grep -E "^subject=|Protocol"
It shows the data server's name and TLSv1.3. From any other machine the connection must time out, and with the window closed the data server must not reach the internet (curl -m 6 https://archive.ubuntu.com/ fails).
M5. Connect the Portal
- In the Portal, open Settings → Data server. Enter the data server's address, the port (5432), the account nexxvu_portal and its password (on the data server: sudo cat /root/nexxvu-db-credentials), and choose Save data server. The password is write-only: stored in the Portal's protected credential store, never shown or logged.
- NEXXVU reads the data server's certificate. Compare the fingerprint the page shows with the one on the data server:
If they match, tick the box and approve with your Portal sign-in password. The Portal restarts once; from then on only the Portal's own account may reach that one address and port, and only while the server shows that exact certificate.sudo openssl x509 -in /etc/ssl/certs/ssl-cert-snakeoil.pem -outform der | sha256sum - Choose Check connection. NEXXVU signs in to nexxvu_monitoring and nexxvu_logs and shows, for each, the PostgreSQL version, TLS version, size and whether the Portal may create its tables. Status then reads Connected.
If the data server is rebuilt (new certificate), the check stops before sending anything; save the server again and approve its new certificate.
M6. Move the monitoring history (details)
In Settings → Data server, tick the confirmation and choose Move monitoring history. NEXXVU copies every reading and hourly summary to the data server, oldest first, while monitoring continues; the page shows the progress. When everything is copied and the counts match, the status reads On the data server: from then on the Portal keeps only the last 6 hours of readings for its live pages, and longer periods are read from the data server. Readings leave the Portal only after the data server has them. Afterwards, Compact on the Portal Host's Capacity tab gives the freed space back to the disk.
- The retention on the Capacity tab and Clean up now then apply on the data server: days older than the period are summarised into hourly averages and removed a whole day at a time.
- If the data server cannot be reached, readings wait on the Portal and are sent when it is back; after an hour a notice tells you.
- The nexxvu_logs database is ready for device logs, with its own retention on the same page.
NEXXVU AI
The attack analysis and AI defence (since alpha.373-375) use your own NEXXVU AI: its AI Gateway and AI Engine. No log line leaves your network. Without them, the Portal still shows which rule drops each attack (the Rule column).
How your Portal works with your own AI
- 1
The Portal finds it
An attack shows in your logs. The Portal picks a few lines of evidence - never private addresses, never passwords.
- 2
Through one door
The AI Gateway is the only way to the AI Engine: it checks the Portal's certificate and key, and passes on only clean, short requests.
- 3
Two models agree
The AI Engine asks two different models the same question. Only when they agree does it count; otherwise it says so.
- 4
You decide
The answer comes back as advice: what the attack is, how risky, which rule would stop it. Nothing is blocked by the AI itself.
- Stays with you. The Portal, the AI Gateway and the AI Engine all run on your network; no outside AI service sees your traffic.
- Little is sent. At most 40 lines about one attacker, cleaned and size-limited - never private addresses, user names or passwords.
- Two opinions. Two different models must agree; a disagreement is shown as one, never hidden.
- It learns from you. Every day your Portal writes a signed summary of what it detected into the AI Library, so returning attackers are recognised.
- You stay in charge. The AI advises; blocks come from you or from rules you approved with your password.
- AI Gateway. A VM on your network running the AI Gateway, connected to the AI Engine and its models, set up with the NEXXVU team. Its installer prints the address, port, certificate fingerprint (
CERT-SHA256=…) and access token. - Connect. In the Portal, Settings › NEXXVU AI: enter those four values and press Test. The router must let the Portal reach the endpoint.
- Limits. Under Limits: how many addresses one press analyses, the pause between them, the hourly limit, and how many new high-risk attackers are analysed by themselves (30 an hour by default).
- AI defence. Settings › Rules shows AI defence On. Drafted rules then appear under Waiting for approval (how to review them).
Install with Claude
Claude can guide you through the whole installation. Copy the scope of work below and paste it into Claude on a computer that can reach your server (for example Claude Code, or the Claude extension in your editor). Claude asks for your server details, runs the published commands with you and stops on any failed check.
- You keep every secret to yourself: passwords, the setup code and the enrollment code are typed by you, never pasted into the chat.
- Some steps are yours alone, for example DNS records, firewall ports and the hosting console.
SCOPE OF WORK: install NEXXVU Portal 0.3.0-alpha.429 on my Ubuntu server
You are my installation assistant. I am a beginner. Install NEXXVU Portal 0.3.0-alpha.429 on my own server by following this scope of work, one step at a time. It comes from the official installation guide https://www.nexxvu.com/install/ (the files are on https://update1.nexxvu.com/downloads/ and https://update2.nexxvu.com/downloads/). Before each step, tell me in one or two plain sentences what it does. After each command, compare its output with the "Expect" line and tell me the result.
PLACEHOLDERS - ask me for these values first, repeat them back to me, and use them everywhere below:
<SERVER_ADDRESS> the IP address or DNS name of my server
<SSH_USER> the account you use on the server (it must be allowed to use sudo)
<PORTAL_NAME> the Portal name my NEXXVU operator registered for this server
<YOUR_DOMAIN> my domain; the Portal address becomes https://<PORTAL_NAME>.<YOUR_DOMAIN>/
SAFETY RULES - these always apply
1. Never ask me for a password, setup code, enrollment code, private key or token, and never put one in a command, a file, a log or this chat. I type secrets myself: passwords in my browser, codes in my own terminal. If I paste a secret here by mistake, tell me, do not use it, and remind me to replace it.
2. Use only the commands in this scope of work, exactly as written (only the placeholders change). If another command is needed, first explain what it does and why, and wait for my OK.
3. Never disable, skip or work around a checksum or signature check, and never use a file that failed one.
4. If a check fails, a command reports an error, or the output differs from "Expect": STOP. Show me the exact result line and ask me what to do. Do not retry with other options on your own.
5. Do not change firewall, DNS, SSH or user settings yourself. Tell me what is needed; I do it.
6. Steps marked "I DO" are done by me. Give me clear instructions and wait until I confirm.
RELEASE FACTS (every download is checked against these)
Version: 0.3.0-alpha.429, released 2026-11-26
Package: nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz
Package SHA-256: 8c50c90713424bb56078aae270dba0aa74a07eedd6b877c403887dcb5e20593b
Release public key: TEST-release-public.key
Release key SHA-256: 950e04d0629c465998681f4c092f4e6a84f1948ef906bd6dcd4d6441562a47e7
Download from: https://update1.nexxvu.com/downloads/ (if unreachable: https://update2.nexxvu.com/downloads/, same files)
Platform: Ubuntu Server 26.04 LTS, x86_64 (amd64), Python exactly 3.14.4
Server size: 4 vCPU, 8 GB RAM, 64 GB disk (the tested configuration; no smaller size has been tested)
STEP 1 - Collect the details (ask me)
- <SERVER_ADDRESS> and how you reach the server: (a) SSH with a key: I give you <SSH_USER> and confirm that "ssh <SSH_USER>@<SERVER_ADDRESS>" works from this computer without a password prompt; or (b) my hosting provider's web console: then I run each command there and paste the output back to you.
- <PORTAL_NAME> and <YOUR_DOMAIN>.
- Whether I have asked my NEXXVU operator for a one-time enrollment code for <PORTAL_NAME>. If not, remind me to ask now; I need it in step 10 and keep it to myself.
STEP 2 - Prepare the server (I DO - give me this checklist and wait until I confirm every item)
- In my hosting console: a server with Ubuntu Server 26.04 LTS, x86_64, at least the server size above.
- DNS: a record for <PORTAL_NAME>.<YOUR_DOMAIN> that points to the server's address.
- Firewall: outbound HTTPS (TCP 443) to update1.nexxvu.com and update2.nexxvu.com; inbound TCP 80 and 443 to the server (its public HTTPS address); nothing else inbound.
- The account <SSH_USER> can use sudo and is reachable by SSH key (or I use the hosting console).
STEP 3 - Check the server (read-only)
. /etc/os-release; echo "$ID $VERSION_ID $(uname -m)"
nproc; free -h; df -h /
getent hosts update1.nexxvu.com update2.nexxvu.com
curl --fail --proto =https -sS -o /dev/null -w '%{http_code}\n' https://update1.nexxvu.com/downloads/installers.json
curl --fail --proto =https -sS -o /dev/null -w '%{http_code}\n' https://update2.nexxvu.com/downloads/installers.json
Expect: "ubuntu 26.04 x86_64"; at least 4 CPUs, 8 GB memory and 64 GB disk on /; both update centers resolve; "200" twice. Anything else: STOP (rule 4).
STEP 4 - Prepare Ubuntu (apt asks to confirm the install: answer Y)
sudo apt update
sudo apt install python3.14-venv acl nftables openssl curl caddy
python3 -c 'import sys; print(sys.version.split()[0])'
sudo apt-mark hold python3.14 python3.14-venv python3.14-minimal libpython3.14-stdlib libpython3.14-minimal
Expect: the python3 line prints 3.14.4; the packages are then held.
STEP 5 - Download, on the server, in a new empty directory (mkdir nexxvu-download && cd nexxvu-download)
curl --fail --proto =https --remote-name https://update1.nexxvu.com/downloads/nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz
curl --fail --proto =https --remote-name https://update1.nexxvu.com/downloads/TEST-release-public.key
Only if update1.nexxvu.com cannot be reached, download the same files from update2.nexxvu.com instead:
curl --fail --proto =https --remote-name https://update2.nexxvu.com/downloads/nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz
curl --fail --proto =https --remote-name https://update2.nexxvu.com/downloads/TEST-release-public.key
STEP 6 - Verify the download, in the same directory (every check must pass; never continue after a mismatch)
echo '8c50c90713424bb56078aae270dba0aa74a07eedd6b877c403887dcb5e20593b nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz' | sha256sum --check --strict
Expect: "nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz: OK"
sha256sum TEST-release-public.key
base64 --decode TEST-release-public.key | wc -c
Expect: the SHA-256 printed equals 950e04d0629c465998681f4c092f4e6a84f1948ef906bd6dcd4d6441562a47e7, then "32".
mkdir check
tar --extract --gzip --file nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz --directory check
cmp TEST-release-public.key check/package/update-signing-public-key
Expect: no output.
{ printf '\060\052\060\005\006\003\053\145\160\003\041\000'; base64 --decode TEST-release-public.key; } > release-public.der
base64 --decode check/package/manifest.sig > manifest.sig.raw
openssl pkeyutl -verify -pubin -keyform DER -inkey release-public.der -rawin -in check/package/manifest.json -sigfile manifest.sig.raw
Expect: "Signature Verified Successfully".
python3 -c 'import json; m = json.load(open("check/package/manifest.json")); print(m["artifact_sha256"] + " check/package/" + m["artifact_locator"])' | sha256sum --check --strict
Expect: the line ends in ": OK".
Then remove the checking copy: rm -r check
STEP 7 - Install and activate, in the same directory (keep /root/nexxvu-install/package afterwards)
sudo install -d -o root -g root -m 0700 /root/nexxvu-install
sudo tar --extract --gzip --file nexxvu-portal-0.3.0-alpha.429-b9a7fc3f-generic-TEST-KEY-NOT-FOR-PRODUCTION.tar.gz --directory /root/nexxvu-install
Expect: no output.
sudo /root/nexxvu-install/package/GROUP-1-VERIFY.sh /root/nexxvu-install/package
Expect: GROUP-1=PASS
sudo /root/nexxvu-install/package/installer/INSTALL.sh --preflight /root/nexxvu-install/package
sudo /root/nexxvu-install/package/installer/INSTALL.sh --dry-run /root/nexxvu-install/package
Expect: PREFLIGHT=PASS, then DRY-RUN=PASS
sudo /root/nexxvu-install/package/installer/INSTALL.sh --install /root/nexxvu-install/package
sudo /root/nexxvu-install/package/installer/INSTALL.sh --verify /root/nexxvu-install/package
Expect: INSTALL=PASS, then VERIFY=PASS
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py activate
sudo /root/nexxvu-install/package/installer/INSTALL.sh --verify /root/nexxvu-install/package
Expect: LOCAL_RUNTIME_ACTIVATED_HEALTH_VERIFIED, then VERIFY-PROFILE=activated and VERIFY=PASS
STEP 8 - Public HTTPS address (the DNS record from step 2 must already point to the server)
sudo /root/nexxvu-install/package/installer/PORTAL-FRONT.sh --enable --hostname <PORTAL_NAME>.<YOUR_DOMAIN> --tls acme
Expect: PORTAL-FRONT-VERIFY=PASS, then PORTAL-FRONT=PASS. If it stops with a reason line about the certificate or health: STOP (rule 4); DNS or inbound TCP 80/443 is usually not in place yet.
STEP 9 - First administrator (I DO - you do not run this command: its output is a secret)
I run this in my own SSH session or the hosting console:
sudo nexxvu-portal setup-code
It shows a one-time setup code. I open https://<PORTAL_NAME>.<YOUR_DOMAIN>/ in my browser, type the code, and choose a new password for the account "admin" (there is no default password). Ask me only whether it worked.
STEP 10 - Enrollment (I DO - the code prompt needs my own interactive terminal)
Give me this command with my placeholders filled in; I run it in my SSH session or the hosting console:
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enroll --center https://update1.nexxvu.com --portal-name <PORTAL_NAME> --endpoint https://<PORTAL_NAME>.<YOUR_DOMAIN>
I type the one-time enrollment code from my NEXXVU operator (NXV1- followed by 32 letters and digits) at the hidden prompt "NEXXVU enrollment code:". It is never a command-line argument. I tell you only the result line.
Expect: PORTAL_ENROLLED. If it is refused: STOP; a code works only once.
STEP 11 - Reporting and updates (the order matters: plain enable-reporting first, then --schedule, then updates)
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enable-reporting
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enable-reporting --schedule
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py enable-updates
Expect: SERVICE_ENABLED three times.
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py verify-activated
Expect: RUNTIME_ACTIVATION_VERIFIED
STEP 12 - Final checks
a) HTTPS (I DO): I open https://<PORTAL_NAME>.<YOUR_DOMAIN>/ and sign in as admin. Ask me whether the dashboard opens.
b) Reporting (I DO): I ask my NEXXVU operator to confirm that <PORTAL_NAME> appears online in the fleet with version 0.3.0-alpha.429 after its first scheduled report.
c) Reboot (ask me before you reboot):
sudo reboot
Wait a few minutes, reconnect, then:
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py verify-activated
sudo /root/nexxvu-install/package/installer/INSTALL.sh --verify /root/nexxvu-install/package
Expect: RUNTIME_ACTIVATION_VERIFIED, then VERIFY-PROFILE=activated and VERIFY=PASS
d) Local certificate renewal:
systemctl is-enabled nexxvu-local-tls-renew.timer
sudo python3 -B /opt/nexxvu-runtime/runtime-lifecycle.py renew
sudo /root/nexxvu-install/package/installer/PORTAL-FRONT.sh --verify
Expect: "enabled", then TLS_NOT_DUE (nothing due yet) or TLS_RENEWED_HEALTH_VERIFIED, then PORTAL-FRONT-VERIFY=PASS
STEP 13 - Report back to me
- the Portal address: https://<PORTAL_NAME>.<YOUR_DOMAIN>/
- the installed version, from:
sudo cat /opt/nexxvu-updater/state/current-release.json
Expect: "semver" is 0.3.0-alpha.429
- every step that is not finished or did not pass, with its exact result line.
IF SOMETHING FAILS
- A refused step prints a fixed reason line, for example GREENFIELD-INSTALL=STOP reason=... or RUNTIME_LIFECYCLE_REFUSED_EVIDENCE_RETAINED. Nothing is deleted on a refusal. Show me the line; I send it to my NEXXVU operator. These read-only commands show the state of the NEXXVU services:
systemctl --no-pager list-units 'nexxvu-*'
sudo journalctl -u nexxvu-portal.service -n 50 --no-pager
- Lost administrator password (I DO; it prints a new one-time setup code, then I set a new password at https://<PORTAL_NAME>.<YOUR_DOMAIN>/setup):
sudo nexxvu-portal recovery reset-admin