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