Skip to content

Installation

XLX Observatory is packaged for Debian 13 (trixie) on amd64 and arm64. It runs on the same machine as xlxd, as a systemd service, and nginx or Apache publishes it.

Replacing the PHP dashboard?

Read Moving from the PHP Dashboard first. It matters whether the PHP dashboard's callinghome.php is in place when you install the package.

Prerequisites

  • Debian 13 (trixie)
  • xlxd, ideally from its Debian package. The defaults match that package's paths. With another build of xlxd, check the paths in Configuration.
  • nginx or Apache, for HTTPS and the public address
  • Basic familiarity with running services on Linux

This guide does not cover installing xlxd or the web server themselves.

Install the Package

The steps in this guide assume you are working as the root user.

  1. Install the Packet Warriors software repository:

    wget -O/tmp/packetwarriors-repo.deb https://repo.packetwarriors.com/packetwarriors-repo.deb
    dpkg -i /tmp/packetwarriors-repo.deb
    apt update
    rm /tmp/packetwarriors-repo.deb
    

    This adds the repository and its signing key, so apt installs and upgrades Packet Warriors packages like any other.

  2. Install XLX Observatory:

    apt install xlx-observatory
    

    amd64 only, for now

    The repository has XLX Observatory for amd64 (64-bit Intel and AMD). On arm64, such as a Raspberry Pi, build the package yourself as described in Command Line & Building, then install the file it makes:

    apt install ./xlx-observatory_1.0-1.deb13_arm64.deb
    

    The package:

    • creates the system user and group xlx-observatory
    • installs the settings in /etc/xlx-observatory/xlx-observatory.ini and a starter /etc/xlx-observatory/custom.css
    • creates the reflector's directory key, /etc/xlx-observatory/callinghome.hash, importing it from the PHP dashboard's /etc/xlxd/callinghome.php if that file exists (see Calling Home)
    • puts the example web server configurations in /usr/share/doc/xlx-observatory/examples/
  3. Edit /etc/xlx-observatory/xlx-observatory.ini. Every setting is described in the file and in Configuration. At a minimum, look at:

    • CONTACT_EMAIL and CUSTOM_TEXT in [Page]
    • the module names in [Modules]
    • [CallingHome], if the reflector should be listed in the XLX directory. It is off until you set ENABLE=1.
  4. Start the service and have it start at boot:

    systemctl enable --now xlx-observatory
    

    Check that it started:

    systemctl status xlx-observatory
    curl -s http://127.0.0.1:8090/ | head
    

Publish It with nginx or Apache

The dashboard listens on 127.0.0.1:8090. The web server passes requests through to it. Two things need care:

  • Live updates come over a long-lived connection to /events. The web server must not buffer it or time it out after a minute, or pages stop updating live.
  • Certificates: requests for /.well-known/acme-challenge/ should be answered by the web server from disk, so certbot's --webroot mode can issue and renew certificates.

The examples in /usr/share/doc/xlx-observatory/examples/ set up both.

nginx

Put these inside the server { } block for the dashboard's host name:

location ^~ /.well-known/acme-challenge/ {
    root /var/www/html;
    default_type text/plain;
}

location / {
    proxy_pass http://127.0.0.1:8090;
    include proxy_params;
}

# Live updates: a long-lived stream that must not be buffered.
location = /events {
    proxy_pass http://127.0.0.1:8090;
    include proxy_params;
    proxy_http_version 1.1;
    proxy_set_header Connection "";
    proxy_buffering off;
    proxy_read_timeout 1h;
}

Keep the acme-challenge block in the port 80 server block too, if that one redirects to HTTPS.

Apache

Enable the proxy modules:

a2enmod proxy proxy_http

Then put these inside the <VirtualHost> for the dashboard's host name. The acme-challenge exclusion must come before the ProxyPass lines:

ProxyPreserveHost On

ProxyPass /.well-known/acme-challenge/ !
Alias /.well-known/acme-challenge/ /var/www/html/.well-known/acme-challenge/
<Directory /var/www/html/.well-known/acme-challenge/>
    Require all granted
</Directory>

# Live updates: a long-lived stream, sent on as it arrives.
ProxyPass        /events http://127.0.0.1:8090/events flushpackets=on timeout=3600
ProxyPass        /       http://127.0.0.1:8090/
ProxyPassReverse /       http://127.0.0.1:8090/

Certificates

With either web server in place, issue a certificate with:

certbot certonly --webroot -w /var/www/html -d xlx.example.org

Under a Path Instead

To publish the dashboard under a path of an existing site, such as https://example.org/xlx/, use the commented-out blocks at the end of each example file. Every link in the dashboard is relative, so it works under any path. Its robots.txt isn't at the site root then, so search engines won't see it.

Check It

Open the dashboard in a browser. In the header:

  • Reflector shows your reflector's name, such as XLX381
  • Up shows how long xlxd has been running
  • Updates shows a green Live

If any of these is wrong, see Troubleshooting.

Files

Path What it is
/usr/bin/xlx-observatory The program
/etc/xlx-observatory/xlx-observatory.ini Settings
/etc/xlx-observatory/custom.css Your colors and styles, see Logos, Name & Colors
/etc/xlx-observatory/callinghome.hash The reflector's directory key
/usr/share/doc/xlx-observatory/examples/ nginx and Apache examples
/usr/lib/systemd/system/xlx-observatory.service The systemd service

apt purge xlx-observatory removes the directory key along with the rest, so back it up first.

Upgrading

Installed from the repository, XLX Observatory updates with the rest of the system:

apt update
apt upgrade

A package you built yourself upgrades the same way as it was installed: build the new version and apt install the file.

Upgrades keep your changes to the files in /etc: dpkg asks before replacing a file you have changed. The service restarts by itself after an upgrade if it is enabled.