Fresh Ubuntu Desktop install: no curl for the README command, and a renamed PC keeps its old hostname #325

Closed
opened 2026-11-18 10:52:25 +00:00 by vivy · 1 comment
Owner

Install test on a fresh PC, 2026-11-18 (GRI-2051): 10.1.255.95, Dell OptiPlex 3060, Ubuntu Desktop 26.04.1, kernel 7.0, dev 56dd99c.

Result: the install works end to end: no "Welcome to Ubuntu" wizard (#301), auto-login of scryglass (#232), the player starts, and the device registers. Two defects:

1. The README install command fails on a fresh Ubuntu Desktop: no curl

Ubuntu Desktop 26.04 does not ship curl (wget is installed). The README command curl ... install.sh | sudo bash -s -- client --server ... stops at once with curl: command not found, before the installer starts.

Fix: the README gives a wget -qO- ... | sudo bash -s -- ... command (works on Desktop and Server as shipped), or says sudo apt install curl first. install.sh itself must not assume curl either; if it downloads anything, it falls back to wget or installs curl in its package step.

2. A renamed PC keeps its old name on the server

The client sends its hostname only at registration (devices.hostname and reported_info.hostname). After hostnamectl set-hostname, a reboot and a reconnect ("welcome back"), the server still had the old hostname in both fields. The product owner renamed Scryglass-Bblok to Scryglass-Pblok; the server record was fixed by hand.

Fix: the client reports its current reported_info (hostname, OS, kernel) on every connect, and the server updates hostname and reported_info. The display name is not changed by this, because an admin may have renamed the device in the panel.

Done when: a test registers a device, reconnects it with a different hostname, and reads the new hostname back while name stays unchanged; and the README command works on a fresh Ubuntu Desktop 26.04.

Install test on a fresh PC, 2026-11-18 (GRI-2051): 10.1.255.95, Dell OptiPlex 3060, Ubuntu Desktop 26.04.1, kernel 7.0, dev `56dd99c`. **Result:** the install works end to end: no "Welcome to Ubuntu" wizard (#301), auto-login of `scryglass` (#232), the player starts, and the device registers. Two defects: ### 1. The README install command fails on a fresh Ubuntu Desktop: no `curl` Ubuntu Desktop 26.04 does not ship `curl` (`wget` is installed). The README command `curl ... install.sh | sudo bash -s -- client --server ...` stops at once with `curl: command not found`, before the installer starts. **Fix:** the README gives a `wget -qO- ... | sudo bash -s -- ...` command (works on Desktop and Server as shipped), or says `sudo apt install curl` first. `install.sh` itself must not assume `curl` either; if it downloads anything, it falls back to `wget` or installs `curl` in its package step. ### 2. A renamed PC keeps its old name on the server The client sends its hostname only at registration (`devices.hostname` and `reported_info.hostname`). After `hostnamectl set-hostname`, a reboot and a reconnect ("welcome back"), the server still had the old hostname in both fields. The product owner renamed `Scryglass-Bblok` to `Scryglass-Pblok`; the server record was fixed by hand. **Fix:** the client reports its current `reported_info` (hostname, OS, kernel) on every connect, and the server updates `hostname` and `reported_info`. The display `name` is **not** changed by this, because an admin may have renamed the device in the panel. **Done when:** a test registers a device, reconnects it with a different hostname, and reads the new hostname back while `name` stays unchanged; and the README command works on a fresh Ubuntu Desktop 26.04.
Member

Fixed by GRI-2215, PR #330 (merged into dev at f6d98ca3):

  • README/install.sh bootstrap now use wget -qO- (ships on Ubuntu Desktop/Server) with a note to swap in curl -fsSL if preferred; install.sh itself no longer assumes curl is present.
  • Client resends its Registration frame on every Accepted hello (not only while Pending); server applies the reported hostname/reported_info on reconnect via devices::update_reported_info, leaving the admin-set display name untouched.
  • Covered by crates/server/tests/ws_integration.rs and crates/client/tests/sync_survives_restart.rs.

Closing as done.

Fixed by GRI-2215, PR #330 (merged into dev at f6d98ca3): - README/install.sh bootstrap now use `wget -qO-` (ships on Ubuntu Desktop/Server) with a note to swap in `curl -fsSL` if preferred; install.sh itself no longer assumes curl is present. - Client resends its Registration frame on every Accepted hello (not only while Pending); server applies the reported hostname/reported_info on reconnect via `devices::update_reported_info`, leaving the admin-set display `name` untouched. - Covered by `crates/server/tests/ws_integration.rs` and `crates/client/tests/sync_survives_restart.rs`. Closing as done.
nyssa closed this issue 2026-11-18 18:38:25 +00:00
Sign in to join this conversation.
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage#325
No description provided.