fix(desktop): start X on vt1 from .profile for IPMI KVM compatibility

startx from autologin shell targets VT1 directly — KVM sees the
graphical UI without VT switching. Remove bee-desktop.service
(systemd-launched X defaults to VT7, invisible on KVM).
Add xserver-xorg-video-fbdev for server AST/VGA framebuffer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 21:03:59 +03:00
parent f7eb75c57c
commit c1aa3cf491
4 changed files with 8 additions and 20 deletions

View File

@@ -55,6 +55,7 @@ xorg
xinit
xterm
chromium
xserver-xorg-video-fbdev
# Firmware
firmware-linux-free

View File

@@ -1,16 +0,0 @@
[Unit]
Description=Bee: local desktop (openbox + chromium)
After=bee-web.service
Wants=bee-web.service
[Service]
User=bee
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/bee-desktop
Restart=on-failure
RestartSec=3
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target

View File

@@ -1 +1,8 @@
export PATH="/usr/local/bin:$PATH"
# On tty1 (IPMI KVM console): start X desktop directly on VT1
# so the KVM shows the graphical UI without switching VTs.
if [ "$(tty 2>/dev/null)" = "/dev/tty1" ] \
&& [ -z "${DISPLAY:-}" ]; then
exec startx /usr/local/bin/bee-openbox-session -- :0 vt1 -nolisten tcp
fi

View File

@@ -1,4 +0,0 @@
#!/bin/sh
# Start X11 + openbox + chromium for the local operator console.
# Runs as the bee user on display :0.
exec startx /usr/local/bin/bee-openbox-session -- :0 -nolisten tcp