Hi all,
I am trying to implement noVNC + websockify in my Docker image, whereby I can launch a desktop in my browser.
Right now, I have a script that starts up what I need and looks like this:
================================
#!/bin/bash
VNC_PASSWORD="passwrd"
vncpasswd <<EOF
$VNC_PASSWORD
$VNC_PASSWORD
n
EOF
xinit /etc/X11/xdm/Xsession startxfce4 -- /usr/bin/Xvnc :10 -auth $HOME/.Xauthority -fp /usr/share/fonts/misc,/usr/share/fonts/75dpi,/usr/share/fonts/100dpi,/usr/share/fonts/Type1 -pn -rfbauth $HOME/.vnc/passwd -rfbport 5910 2>&1 &
x0vncserver -display :10
websockify -D --web /usr/share/novnc/
0.0.0.0:6080 localhost:5910
sleep infinity
=================
This script is called from my entrypoint and I am able to visit localhost:6080/vnc.html to connect, enter my password, and view the desktop.
Is there a way I can handle all this in the background? Is there a way to autoconnect and propagate the password from .vnc/passwd to this that is supported by noVNC/websockify?