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:
@@ -55,6 +55,7 @@ xorg
|
|||||||
xinit
|
xinit
|
||||||
xterm
|
xterm
|
||||||
chromium
|
chromium
|
||||||
|
xserver-xorg-video-fbdev
|
||||||
|
|
||||||
# Firmware
|
# Firmware
|
||||||
firmware-linux-free
|
firmware-linux-free
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -1 +1,8 @@
|
|||||||
export PATH="/usr/local/bin:$PATH"
|
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
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user