Before you begin
Install on a clean, dedicated server or VM with root access and provider console access. The installer changes packages, databases, Nginx and system services; it is not a website-only installer. Keep a snapshot and an external copy of important data. This guide describes the current installer; inspect the help in your approved release because older packages may use a different first-access workflow.
Procedure
- Record the server address, SSH port, panel hostname and planned optional services.
- Use a release package matching the host. Do not install over another hosting panel or reuse an active hosting stack without a migration plan.
Verify the result
You have console access, a recovery copy and a dedicated environment.
Requirements and system checks
The installer automatically checks the system, architecture, RAM, available disk space, systemd, DNS resolution and outbound HTTPS before installation. You do not need to run these checks manually. The commands below are optional diagnostics for inspecting the host or investigating a failed check; they also inspect details such as inodes, time and listening ports that are not all covered by the automatic preflight. Ubuntu 22.04/24.04 is the documented development target. The current shell installer also accepts Debian-family systems; passing this check is not a complete compatibility certification. Its preflight requires x86_64, at least 1800 MB RAM, at least 10 GB available on /var, systemd, DNS resolution and outbound HTTPS. It recommends 4 GB RAM. These are installer checks, not a capacity guarantee for hosted applications. Rocky Linux does not pass this installer’s distribution check.
cat /etc/os-release
uname -m
free -h
df -h /var
df -i /var
timedatectl status
sudo ss -lntupProcedure
- Let the installer run its automatic preflight. If a resource check fails, correct the reported issue before continuing.
- Optionally use the commands above for additional inspection, especially if the server already has services installed. They are not a required manual installation step.
Verify the result
The host meets the preflight thresholds and has room for your actual workload and backups.
DNS, firewall and ports
Before installing, identify how your server connects to the internet. A cloud instance usually arrives with its operating system, IP connectivity and initial SSH access prepared. On a physical server or a VM you manage yourself, you must prepare those foundations. The installer checks DNS resolution and outbound HTTPS, but does not create records at your DNS provider or configure your cloud firewall or router. Working SSH alone does not prove that the panel and website ports are accessible.
# Optional checks / Comprobaciones opcionales
getent ahosts panel.example.com
ip -br address
ip route
sudo ss -lntupWith a cloud provider: OVHcloud, DonWeb or similar
Confirm the instance public IP, the SSH user or key and the provider console or rescue access. You normally do not need to reconfigure an already working network interface or reinstall SSH. In the provider panel, review any firewall or security groups and allow the required ports; available controls vary by product. Create the panel hostname at the service hosting your domain DNS, which may be a different provider. Restart and console controls manage the instance infrastructure; they do not replace DNS or hosting-service configuration.
On a server or VM you prepare manually
Install a compatible system and prepare its network address, default gateway, DNS resolver, outbound internet access and remote administration. Reserve a stable local address if using DHCP. For a VM, inspect whether the virtual network is bridged, routed or NAT: NAT can require forwarding at the hypervisor as well as at the router. Use network settings appropriate to your environment rather than copying an arbitrary static-IP configuration.
Behind a router, in a local network or with CGNAT
For public access behind NAT, point public DNS to the router public IP and forward only the required TCP ports to the server private IP. Test from outside the LAN because internal access can behave differently. With CGNAT, ordinary router forwarding is insufficient: request a public IP or use a suitable routed connectivity solution. For LAN-only testing use a private address or internal DNS; do not expect public Let’s Encrypt HTTP validation without public reachability. A private test installation does not require exposing the panel to the internet.
Procedure
- Choose a hostname such as panel.example.com. At the authoritative DNS provider, point A to the public IPv4 address; publish AAAA only if IPv6 is configured and reachable. Use the public address, not a private LAN address, for internet access.
- Check all network layers: provider firewall or security group, router or hypervisor firewall if present, and the Linux firewall. Preserve your actual SSH port and console access before changing rules.
- Allow TCP 8800 for the default panel and TCP 80/443 for public websites. Optional webmail uses TCP 8802. If you choose different installer ports, use those instead. Where practical, restrict administrative access to trusted addresses.
- For Let’s Encrypt HTTP validation, the hostname must resolve publicly and TCP 80 must reach this server. Local authoritative DNS needs deliberate delegation and UDP/TCP 53; mail has its own port and provider requirements. Expose gRPC 8443 only when remote agents require it.
- After installation, test the actual HTTPS address from another network. Before services are installed, no listener on their future ports is expected; an empty port check at that point is not a failure.
Verify the result
Before installation, DNS and network rules are prepared. After installation, the public hostname reaches the intended server and the required services respond from another network.
Obtain and verify the release
Obtain the installer and approved amd64 archive through the project release channel. This development website does not guarantee a public release download. Verify SHA-256 against a trusted release checksum, list the archive contents and enter the directory actually included. The shell installer can also download a package when local components are absent; VUSDA_DOWNLOAD_BASE_URL selects an alternative release host. A source checkout requires the release’s build toolchain and is a different workflow.
sha256sum -c vusda-panel-linux-amd64.tar.gz.sha256
tar -tzf vusda-panel-linux-amd64.tar.gz
tar -xzf vusda-panel-linux-amd64.tar.gzProcedure
- If the checksum fails, stop and obtain the matching archive and checksum again. Do not bypass verification.
- If download fails, check DNS, HTTPS, system time, disk and the configured release URL. An HTML error page is not an archive.
Verify the result
The checksum passes and the archive contains the expected release components.
Preflight and interactive installation
Run help and preflight from the extracted directory. --check performs the diagnostic without installing services. The current shell assistant offers language selection, terms, diagnostics, preview or real installation, then environment settings. Preview simulates progress; it does not install the panel. If the terminal cannot run the interactive workflow, use the non-interactive command in the next section.
bash install.sh --help
sudo bash install.sh --check
# Interactive installation / Instalación interactiva
sudo bash install.shProcedure
- Correct each failed diagnostic before selecting real installation. A successful preview is not a successful installation.
- Keep the SSH session open and record the last stage if an error occurs. For unreliable connections use a persistent terminal session if available.
Verify the result
You selected real installation and the installer is running its package and service stages.
Non-interactive options and optional services
Replace the example domain and email. --panel-port and --webmail-port select HTTPS ports. --no-mail skips Postfix/Dovecot; --no-webmail skips Roundcube; --no-dns skips BIND9; --no-db skips MariaDB for hosted sites, not the panel PostgreSQL database. --open-agent-port is intended for remote agents. Do not assume the legacy --admin-password option creates your account: the current first-run flow creates it in the browser at /setup.
sudo bash install.sh --non-interactive \
--panel-domain panel.example.com \
--le-email [email protected]Procedure
- Choose optional services before running and keep a record of the arguments and custom ports.
- Adjust network rules to match the ports chosen. Use the same choices when resuming an interrupted installation.
Verify the result
The enabled services and network rules match the intended installation.
What the installer changes
The installer prepares packages, deploys binaries and web assets under /opt/adminins, writes private configuration under /etc/adminins, prepares PostgreSQL and migrations, and installs systemd services. The panel API is local on 127.0.0.1:8080 and Nginx exposes HTTPS on the selected panel port. Migration files and their ledger entry are applied transactionally. The local-agent helper waits for onboarding and license activation before enrollment. A waiting agent at this stage can be expected.
sudo systemctl status adminins-panel nginx postgresql redis-server --no-pager
sudo systemctl status vusda-local-agent-setup --no-pagerFirst access and installation code
At completion, open the printed HTTPS address ending in /setup, normally https://panel.example.com:8800/setup. Enter the installation code shown in the terminal. The current installer writes it to /root/vusda-setup-token.txt with private permissions before the final summary. Create your account and password in the browser, complete preferences and second factor as offered, save recovery codes, then complete license activation and email confirmation.
Procedure
- Confirm you are opening your server and its configured port, not the public Vusda website or this documentation preview.
- Keep installation code, license key and recovery codes separate: they serve different purposes.
Verify the result
Your administrator account exists, you can sign in and the activation workflow has completed.
Installer closed: recover the installation code
You do not need to reinstall just because you missed the final summary. Reconnect by SSH or provider console and read the saved code as root. Return to /setup using the same server and HTTPS port. Treat the output as a secret; do not paste it in a ticket, screenshot or public chat. If the file is missing, the installation may have stopped before writing it, or the package may use an older first-run flow.
sudo cat /root/vusda-setup-token.txt
# Fallback: show only the setup token / Solo el token, si falta el archivo
sudo grep -m 1 '^SETUP_TOKEN=' /etc/adminins/panel.envProcedure
- Use the saved token first. If necessary, inspect only SETUP_TOKEN in panel.env, not the entire configuration containing database and signing secrets.
- If an account already exists, use normal login. The setup code does not reset an existing password or reopen completed onboarding.
- If both sources are absent, inspect the failed stage and follow interrupted-installation recovery with the same approved package. Do not invent a token or delete configuration.
Verify the result
You can continue the first-run page with the saved code, or sign in with the account already created.
Interrupted installation: resume safely
An interrupted process can leave packages or configuration partly written. Reconnect, check whether the original installer is still running, and wait for any active package manager. Do not launch two installers simultaneously. The installer explicitly supports rerunning with the same options: it recovers pending packages, reuses existing configuration and secrets, checks recorded migrations and preserves existing users. It is a rerun, not a checkpoint resume; stages may execute again.
pgrep -af 'install.sh|apt-get|dpkg'
# After the previous run has stopped / Tras detenerse la ejecución anterior
sudo bash install.sh --non-interactive \
--panel-domain panel.example.com \
--le-email [email protected]Procedure
- Use the same release, hostname, service flags and ports for repair. A new release is an upgrade and needs separate review.
- On an installation with real data, take a recovery copy first. Rerunning can rewrite managed Nginx and service configuration.
Verify the result
The rerun finishes, the existing account is retained and the panel and hosted services pass their checks.
APT locks and unfinished packages
The installer waits up to ten minutes for package-manager locks and attempts dpkg recovery. A lock often belongs to normal background updates. Never delete lock files or kill package processes as a generic repair. Wait for the active operation. If no package manager is running and a previous operation was interrupted, configure pending packages and let APT repair dependencies before rerunning.
sudo systemctl status apt-daily.service apt-daily-upgrade.service --no-pager
# Only after the active package operation has finished
# Solo cuando haya terminado la operación de paquetes activa
sudo dpkg --configure -a
sudo apt-get -f installProcedure
- Read the actual failing package error. DNS, disk exhaustion and repository errors need their own correction.
- Review the proposed dependency repair before confirming; then rerun the installer with the original options.
Verify the result
dpkg completes without errors and APT can resolve the required dependencies.
Panel will not open: diagnose by layer
Separate a failed panel process from a failed HTTPS proxy or an external networking problem. Check services and logs first, then the local API health endpoint, Nginx syntax and listening ports. The default /healthz address below is internal HTTP, not the public login URL. An externally timed-out connection with healthy local services points you toward DNS, provider rules, routing or the selected public port.
sudo systemctl status adminins-panel nginx postgresql redis-server --no-pager
curl --fail --show-error http://127.0.0.1:8080/healthz
sudo nginx -t
sudo ss -lntup
sudo journalctl -u adminins-panel -u nginx -n 100 --no-pagerProcedure
- For connection refused, confirm the expected listener exists. For 502, inspect whether the API service and upstream address are available.
- For a port conflict, identify the owner before changing services. Correct configuration, validate it and restart only the affected component.
Verify the result
The local API responds, Nginx validates and the real HTTPS address opens from another network.
Certificate warnings and Let’s Encrypt failures
The installer creates a self-signed certificate if no panel certificate exists. It attempts Let’s Encrypt when both panel domain and email are supplied. If issuance fails, HTTPS may still respond with the self-signed certificate. The installer’s final HTTPS probe ignores certificate trust, so a successful probe does not establish a browser-trusted certificate. Check the real hostname, issuer and expiry in the browser.
getent ahosts panel.example.com
sudo nginx -t
sudo journalctl -u nginx -n 80 --no-pager
sudo tail -n 80 /var/log/letsencrypt/letsencrypt.logProcedure
- Check A/AAAA, system time and public HTTP port 80. Inspect the Certbot error for challenge, connectivity or issuance-limit problems.
- Correct the cause before retrying certificate issuance through the approved installer workflow. Avoid repeated blind retries.
Verify the result
The correct public hostname has a trusted, unexpired certificate and the HTTPS page loads normally.
License active but local agent is offline
The current installer creates vusda-local-agent-setup.service, which waits for onboarding and activation, requests local enrollment and starts adminins-agent. Before activation, waiting is expected. After activation, inspect the helper, panel and agent logs. The helper uses private local enrollment credentials; do not post those files or manually replace agent identity material.
sudo systemctl status vusda-local-agent-setup adminins-agent --no-pager
sudo journalctl -u vusda-local-agent-setup -u adminins-agent -u adminins-panel -n 100 --no-pagerProcedure
- Confirm first-run completion and license status in the panel. Check local API availability and enrollment errors.
- If the helper or agent failed, correct the reported cause before restarting the affected service. Do not open 8443 publicly as a generic fix for a local agent.
Verify the result
The server appears connected and a non-destructive test task finishes successfully.
Database and migration repair
For database connection failures inspect PostgreSQL service health and the panel log, without printing panel.env in support output. A failed migration transaction is rolled back; fix the reported cause and rerun the matching installer. If tables exist without the migration ledger, stop for a schema audit: marking every migration as applied without checking the actual schema can leave an inconsistent installation. Do not drop the database, erase migration history or rotate secrets to force progress.
sudo systemctl status postgresql --no-pager
sudo journalctl -u postgresql -u adminins-panel -n 100 --no-pagerProcedure
- Record the failing migration filename and database error; back up the current database before manual repairs.
- Preserve JWT_SIGNING_KEY and SECRETS_KEY. Changing encryption secrets can invalidate access to stored credentials. An explicit short-key error on an existing installation requires reviewed repair.
Verify the result
The migration ledger matches the schema and the panel starts without database errors.
Lost password, recovery codes and older packages
The installation token only authorizes first setup. Recovery codes are separate single-use credentials. For an existing account, the local root recovery utility prompts for a recovery code and a new password in an interactive terminal and revokes existing sessions. If recovery codes are lost, root can issue a replacement set; this invalidates the previous codes and shows the new set once. Older installer releases may have saved initial credentials in /root/adminins-credentials.txt; that file is not the setup-code file used by the current installer.
# Existing account / Cuenta existente
sudo /usr/local/sbin/vusda-reset-password --email [email protected]
# Only if replacement recovery codes are needed
# Solo si necesitas reemplazar los códigos de recuperación
sudo /usr/local/sbin/vusda-reset-password --email [email protected] --issue-recovery-codesProcedure
- Run in a private interactive SSH or console session. Do not pipe passwords or redirect recovery codes.
- Save replacement codes securely, then run password recovery if needed. This does not reactivate suspended accounts or remove second-factor verification.
Verify the result
The account holder can sign in and has a securely stored, current recovery-code set.
Final acceptance and support information
Before hosting customer data, verify login, license, connected agent, a test domain, HTTP/HTTPS, a database-backed application and a backup restore. Test mail separately if enabled. Record release, OS, installation options, custom ports and operational checks. For a support request include the failed stage, exact error, timestamp and redacted service logs. Exclude installation tokens, license keys, passwords, recovery codes and private configuration.
sudo systemctl --failed --no-pager
sudo systemctl status adminins-panel adminins-agent nginx --no-pagerProcedure
- Keep the approved release and a tested recovery copy. Installation success is only the start of ongoing maintenance.
- Use the configuration guide for domains and hosting, and the maintenance guide for updates and recovery drills.
Verify the result
The installation passes end-to-end checks and you can recover without relying on the closed installer window.