setup_wayland_jarvis.sh aktualisiert

This commit is contained in:
2026-05-22 12:38:56 +00:00
parent a65a362fec
commit 48c1155e01

View File

@@ -12,6 +12,10 @@ echo "📦 Aktualisiere Paketquellen und installiere Systemkomponenten..."
sudo apt update sudo apt update
sudo apt install -y labwc firefox-esr curl wget git sudo python3 python3-pip python3-venv original-awk tilix geany sudo apt install -y labwc firefox-esr curl wget git sudo python3 python3-pip python3-venv original-awk tilix geany
# 1.1 Gruppenrechte für Grafik und Eingabe vergeben
echo "👥 Füge Benutzer '$REAL_USER' zu den Grafik- und Input-Gruppen hinzu..."
sudo usermod -aG video,render,input "$REAL_USER"
# 2. Architektur erkennen und wdotool installieren # 2. Architektur erkennen und wdotool installieren
ARCH=$(uname -m) ARCH=$(uname -m)
echo "🔍 Erkannte Systemarchitektur: $ARCH" echo "🔍 Erkannte Systemarchitektur: $ARCH"
@@ -81,14 +85,25 @@ EOF
# Autostart ausführbar machen # Autostart ausführbar machen
chmod +x ~/.config/labwc/autostart chmod +x ~/.config/labwc/autostart
echo "⚙️ Richte Auto-Start für labwc ein..." e# 7. Auto-Start und Software-Rendering in .profile eintragen (Idempotent prüfen)
cat << 'EOF' >> ~/.profile echo "⚙️ Richte ausfallsicheren Auto-Start für labwc in .profile ein..."
if ! grep -q "labwc" "$REAL_HOME/.profile"; then
cat << 'EOF' >> "$REAL_HOME/.profile"
# labwc automatisch starten, wenn die Anmeldung auf Terminal 1 erfolgt # labwc mit Software-Rendering starten, wenn die Anmeldung auf TTY1 erfolgt
if [ "$(tty)" = "/dev/tty1" ]; then if [ "$(tty)" = "/dev/tty1" ]; then
exec labwc export WLR_RENDERER=pixman
export WLR_NO_HARDWARE_CURSORS=1
export LIBGL_ALWAYS_SOFTWARE=1
dbus-run-session labwc > ~/labwc.log 2>&1
fi fi
EOF EOF
fi
# Rechte für das Home-Verzeichnis korrigieren, falls sudo etwas verändert hat
chown -R "$REAL_USER:$REAL_USER" "$REAL_HOME/.config"
chown "$REAL_USER:$REAL_USER" "$REAL_HOME/.profile"
echo "====================================================" echo "===================================================="
echo "✅ Setup erfolgreich abgeschlossen!" echo "✅ Setup erfolgreich abgeschlossen!"