Requirements
- Debian or Ubuntu with
apt-getandsystemd. - Root access (
sudo). - Node.js 20 or newer. If Node is missing or older than 20, the installer adds Node.js 22 LTS from NodeSource.
Install
- One command
- From a local clone
tailscale is present), the admin username, and a random initial password.
What the installer does
1
Checks the host
Exits unless it runs as root on a host with
systemctl and apt-get.2
Installs prerequisites
Installs
curl, git, ca-certificates, gnupg, build-essential, and python3. Installs Node.js 22 LTS through NodeSource if Node is missing or older than 20.3
Clones or updates the repository
Clones
AEROS_BRANCH into AEROS_DIR. If a Git checkout already exists there, it runs git fetch, git checkout, and git pull --ff-only instead.4
Builds the frontend and backend
Runs
npm ci and npm run build in frontend/, then deletes frontend/node_modules (unless AEROS_CLEAN_FRONTEND_MODULES=0). Builds the backend and prunes dev dependencies with npm prune --omit=dev.5
Writes the backend environment file
Creates
backend/.env with NODE_ENV=production, PORT, and HOST=0.0.0.0, mode 0600. An existing file is left alone.6
Seeds the admin account
On first install only, generates a random password, runs
backend/dist/seed.js, and sets aeros.db to mode 0600. An existing database is preserved.7
Installs the systemd unit
Writes
/etc/systemd/system/aeros-panel.service with Restart=always and MemoryMax=${AEROS_MEMORY_MAX}, then enables and restarts it.8
Caps journald disk use
If no
SystemMaxUse= or RuntimeMaxUse= is configured yet, writes a journald drop-in. See journald limits.Environment variables
All variables are optional. Pass them throughsudo -E or set them inline:
AEROS_PORT only applies when backend/.env does not exist yet. To change the port later, edit PORT in /opt/aeros-panel/backend/.env and run sudo systemctl restart aeros-panel.The generated unit
/etc/systemd/system/aeros-panel.service
/etc/systemd/system and calls systemctl. The ExecStart path is whatever command -v node returned during install.
journald limits
WhenAEROS_JOURNALD_LIMITS=1 (the default) and no journald size cap exists yet, the installer writes:
/etc/systemd/journald.conf.d/aeros-limits.conf
systemd-journald. If SystemMaxUse= or RuntimeMaxUse= is already set in /etc/systemd/journald.conf or any file in /etc/systemd/journald.conf.d/, nothing is changed.
Updating
Run the installer again. It pulls the configured branch with--ff-only, rebuilds both parts, rewrites the unit, and restarts the service. Your backend/.env and aeros.db are kept.
Reset the admin password
From an SSH session on the host:seed.js takes a username and a password of at least 10 characters. If the user exists, its password is replaced and all of its sessions are deleted. If it does not exist, the user is created. Usernames must be 3 to 32 letters, numbers, _, or -.
First visit without a seeded user
If the database has no users (for example, when you run the backend by hand withoutseed.js), the first visit to the panel opens an Initial Admin Setup screen. It backs POST /api/auth/setup, which works only while no user exists.
Uninstall
/etc/systemd/system. Remove them from the panel before you uninstall, or delete them by hand.