Compare commits

...

2 Commits
v2 ... v2.2

Author SHA1 Message Date
a6dcaf1c7e fix(desktop): fix X permissions for server hardware (IPMI KVM)
- Add bee user to video,input groups (fixes /dev/fb0 permission denied)
- Add Xwrapper.config: needs_root_rights=yes (X gets hw access)
- Add xserver-xorg-video-vesa as fallback driver
- Remove dead bee-tui chmod from setup hook

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 22:07:25 +03:00
88727fb590 fix(desktop): don't exec startx — fall back to shell on X failure
If X fails to start, the user gets a working shell prompt instead
of a dead session or autologin loop.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 21:48:26 +03:00
4 changed files with 7 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ ensure_bee_console_user() {
mkdir -p /home/bee
chown -R bee:bee /home/bee
echo "bee:eeb" | chpasswd
usermod -aG sudo bee 2>/dev/null || true
usermod -aG sudo,video,input bee 2>/dev/null || true
}
ensure_bee_console_user
@@ -39,7 +39,6 @@ chmod +x /usr/local/bin/bee-network.sh 2>/dev/null || true
chmod +x /usr/local/bin/bee-nvidia-load 2>/dev/null || true
chmod +x /usr/local/bin/bee-sshsetup 2>/dev/null || true
chmod +x /usr/local/bin/bee-smoketest 2>/dev/null || true
chmod +x /usr/local/bin/bee-tui 2>/dev/null || true
chmod +x /usr/local/bin/bee 2>/dev/null || true
chmod +x /usr/local/bin/bee-log-run 2>/dev/null || true

View File

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

View File

@@ -0,0 +1,2 @@
allowed_users=anybody
needs_root_rights=yes

View File

@@ -4,5 +4,7 @@ export PATH="/usr/local/bin:$PATH"
# 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
startx /usr/local/bin/bee-openbox-session -- :0 vt1 -nolisten tcp
echo ""
echo "X session ended. Type 'startx' to retry or use the shell."
fi