Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 3.05 KB

LINUX-HOST.md

File metadata and controls

51 lines (32 loc) · 3.05 KB

Host EE on an Ubuntu rack

The Ubuntu 24.04 amd64 package runs switch control as a system service. Open Etherlighting Evolved Rack on the attached display. Closing the rack window leaves lighting running. The service starts at boot and the rack account can open its workspace before signing in to the switch.

Install and enroll

Install the host .deb from the EE build you intend to run. The separate Linux client archive opens a workspace that is already running.

[WINUX]

sudo dpkg -i ./EtherlightingEvolved-*-linux-host-amd64.deb

In an enrollment JSON file, set rack_user to the Linux account that operates the touchscreen, switch_address to the switch's numeric address, and switch_fingerprint to its trusted SHA256 SSH host-key fingerprint. Copy the fingerprint from the previously trusted EE installation or verify it through the switch's management console. The optional switch_port defaults to 22. Set controller_origin to the numeric HTTPS address and port of your local UniFi Network controller if you use one. Enrollment contains device identifiers only. Keep passwords in the EE sign-in screen.

[WINUX]

sudo /usr/bin/python3 -I /usr/lib/etherlighting-host/configure.py ./enrollment.json
systemctl is-active etherlighting-host.service etherlighting-host.socket

When moving from another EE host, select Settings → Handoff to UniFi on the old host and wait for confirmation. Open Etherlighting Evolved Rack on the new host, enter the switch login there, and select its lighting setup. Save the login there to reconnect after a reboot. Windows saved logins are bound to the Windows account.

Access and storage

The rack client talks to a local Unix socket owned by the enrolled user, with mode 0600. The engine's internal loopback API requires a fresh random token on each start. The service runs under a dedicated unprivileged account with home directories hidden. Switch SSH uses the enrolled address, port and host key, and authenticates with the switch login. Enrollment does not change the server's SSH daemon or router settings.

The system service keeps lighting and settings under /var/lib/etherlighting-host. It encrypts saved logins with a key supplied by systemd. Keep /etc/etherlighting-host private. The authenticated rack desktop and server administrators are trusted. Lock the desktop when it is unattended.

Upgrade or stop

For a package upgrade or planned removal, hand off lighting first. Stop both units, then install the replacement package. The enrollment and saved settings persist. Start the socket and service after upgrading.

[WINUX]

sudo systemctl stop etherlighting-host.socket etherlighting-host.service
sudo dpkg -i ./EtherlightingEvolved-*-linux-host-amd64.deb
sudo systemctl daemon-reload
sudo systemctl start etherlighting-host.socket etherlighting-host.service

To switch back to the previous host, confirm handoff on the rack and disable both units before reconnecting the previous host.

[WINUX]

sudo systemctl disable --now etherlighting-host.socket etherlighting-host.service