Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect to novnc full client #60

Open
kulmann opened this issue Mar 26, 2024 · 4 comments
Open

Redirect to novnc full client #60

kulmann opened this issue Mar 26, 2024 · 4 comments
Assignees
Labels
question Further information is requested

Comments

@kulmann
Copy link

kulmann commented Mar 26, 2024

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
Copy link
Owner

accetto commented Mar 28, 2024

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

@accetto accetto added the question Further information is requested label Mar 28, 2024
@accetto accetto self-assigned this Mar 28, 2024
@samhed
Copy link

samhed commented Apr 8, 2024

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
Copy link
Author

kulmann commented Apr 8, 2024

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
Copy link
Owner

accetto commented Apr 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants