accetto / ubuntu-vnc-xfce-g3

Headless Ubuntu/Xfce containers with VNC/noVNC (G3v6).
MIT License
214 stars 62 forks source link

Redirect to novnc full client #60

Closed kulmann closed 5 days ago

kulmann commented 5 months ago

According to the docs noVNC offers a full and a lite client. Is there a way to skip the choice and always use e.g. the full client? I'm currently building my own docker image based on your accetto/ubuntu-vnc-xfce-g3:latest image and have it running in a compose stack. Both build time and runtime config change would work. Thank you!

accetto commented 5 months ago

Hello @kulmann ,

thank you for your feedback. If I've understood you well, you want to skip the noVNC connect screen.

Under normal circumstances you wouldn't need to change anything in the images. Just access the running container using the full URL as it's described in the User Guide on the page Using web browser.

However, it shows up, that the noVNC full client currently doesn't process the password from the access URL correctly.

There was already the issue #1839 about it, so I've also added my comment there. Hopefully they will fix it soon.

For now you can use the lite client, if it helps.

Regards, accetto

samhed commented 5 months ago

If I understand @kulmann's question, it's not about the connect screen. I think he is asking if the choice between vnc_lite.html (lite UI) or vnc.html (full UI) could be skipped.

kulmann commented 5 months ago

Thanks a lot to both of you @accetto and @samhed for looking at my issue!

If I understand @kulmann's question, it's not about the connect screen. I think he is asking if the choice between vnc_lite.html (lite UI) or vnc.html (full UI) could be skipped.

Yes, exactly this. I'm almost certain that my users won't understand which one to choose, so I'd like the container to immediately redirect to either the light or the full ui.

I don't care too much, which one it will be (although I'd opt for the full UI vnc.html), as long as the password prompt is the first thing my users get presented. If that's not possible via config or build params, I'll find an external solution (traefik is in place already anyway), but I'd prefer a built in solution. :-)

accetto commented 5 months ago

I see. In that case you would need to modify the images. There are several possibilities.

Basically you have to replace the file index.html by the file vnc.html in the directory defined by the environment variable NOVNC_HOME.

Because I find your hint generally useful, I would like to offer also some compromise solution. I've uploaded the following temporary images, that automatically redirect to the full client after 5 seconds. Could you check them please and let me know, how do you find it?

I would also like to mention, that the correct connection link to the full client including the password is vnc.html?autoconnect=true&password=headless. My User Guide is not up-to-date in this part. Thanks to @samhed for the hint.

accetto commented 5 days ago

All images since the release 24.09 automatically redirect to the full client after 10 seconds.