From f335ffcd799158157c7aa5c2b0e9bbc741c78b79 Mon Sep 17 00:00:00 2001 From: Kablersalat Date: Mon, 24 Feb 2025 13:31:29 +0100 Subject: vnc password stuff --- kiosk.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/kiosk.sh b/kiosk.sh index 3e54c8b..e83321b 100644 --- a/kiosk.sh +++ b/kiosk.sh @@ -105,9 +105,14 @@ configure_start_sh() { # Helper function to configure start.sh for a single website set_start_script_single() { + VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-) + echo "$VNC_PASSWORD" | vncpasswd -f > /home/kiosk/.vnc/passwd + chmod 600 /home/kiosk/.vnc/passwd + cat > /home/kiosk/start.sh <&1 1>&2 2>&3 3>&-) + echo "$VNC_PASSWORD" | vncpasswd -f > /home/kiosk/.vnc/passwd + chmod 600 /home/kiosk/.vnc/passwd + # Write the script with properly formatted commands cat > /home/kiosk/start.sh <