playing around with vnc

This commit is contained in:
Victor Vobis 2026-02-07 00:10:07 +01:00
parent b02540db29
commit 48a0606734

View File

@ -1,21 +1,19 @@
#!/bin/bash
VNC=novnc
XVNC=Xvnc
XVNC_HOST=0.0.0.0
XVNC_PORT=5901
DISPLAY_WIDTH=$1
DISPLAY_HEIGHT=$2
if ! command -v novnc &> /dev/null; then
echo "NoVnc installation missing! Aborting..."
if ! command -v novnc_proxy &> /dev/null; then
echo "noVNC (novnc_proxy) not found! Aborting..."
exit 1
fi
if ! command -v Xvnc &> /dev/null; then
echo "X server or vnc extention missing! Aborting..."
echo "Xvnc not found! Aborting..."
exit 1
fi
@ -24,15 +22,13 @@ $XVNC :1 \
-depth 24 \
-SecurityTypes None \
-interface $XVNC_HOST \
-rfbport $XVNC_PORT \
&
-rfbport $XVNC_PORT &
sleep 2
$VNC --vnc localhost:5901 &
novnc_proxy --vnc localhost:${XVNC_PORT} &
sleep 2
export DISPLAY=:1
exec ./miniRT