app
The Headless Deskman
Public Unreviewedby barrett-land
A browser desktop for a headless Adom container. Runs Xvfb+fluxbox+x11vnc+noVNC inside the container and maps a *.adom.cloud port so any browser (or a Hydrogen webview tab) shows the container's GUI — no SSH tunnel, no local viewer. The container hosts the page itself. (Formerly Headview.)
#!/bin/sh
# The Headless Deskman install — put the CLI on PATH. Skills are placed by the wiki installer.
set -e
SRC="$(cd "$(dirname "$0")" && pwd)"
install_to() {
cp "$SRC/headless-deskman" "$1/headless-deskman"
chmod +x "$1/headless-deskman"
echo "installed headless-deskman -> $1/headless-deskman"
}
if command -v sudo >/dev/null 2>&1 && sudo -n cp "$SRC/headless-deskman" /usr/local/bin/headless-deskman 2>/dev/null; then
sudo chmod +x /usr/local/bin/headless-deskman
echo "installed headless-deskman -> /usr/local/bin/headless-deskman"
elif [ -w /usr/local/bin ]; then
install_to /usr/local/bin
else
mkdir -p "$HOME/.local/bin"
install_to "$HOME/.local/bin"
case ":$PATH:" in
*":$HOME/.local/bin:"*) : ;;
*) echo "note: add \$HOME/.local/bin to your PATH to run headless-deskman" ;;
esac
fi
# Retire the pre-0.2.0 `headview` binary so the two names can't drift apart.
for d in /usr/local/bin "$HOME/.local/bin"; do
if [ -e "$d/headview" ]; then
if [ -w "$d" ]; then rm -f "$d/headview"
elif command -v sudo >/dev/null 2>&1; then sudo rm -f "$d/headview" 2>/dev/null || true
fi
echo "removed old $d/headview (renamed to headless-deskman)"
fi
done
echo "run: headless-deskman up"