#!/bin/bash set -e # Limpiar locks de arranques anteriores rm -f /tmp/.X1-lock /tmp/.X11-unix/X1 # Servidor VNC con TigerVNC (X server + VNC integrados) Xvnc :1 \ -SecurityTypes None \ -geometry 1280x960 \ -depth 24 \ -rfbport 5900 \ & sleep 2 DISPLAY=:1 setxkbmap es 2>/dev/null || true DISPLAY=:1 openbox & # noVNC: sirve el VNC como página web en el puerto 6080 websockify \ --web=/usr/share/novnc/ \ --wrap-mode=ignore \ 6080 localhost:5900 \ & echo "==> AFRYCA disponible en http://localhost:6080/vnc.html?autoconnect=true&resize=scale" exec /app/afryca \ -data @user.home/.afryca \ -vmargs -Djava.library.path=/app/plugins