Update VNC-Dockerfile to configure Firefox policies #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added policies to disable pop-ups and password prompts in Firefox.
this is other options for test
The Base Image used to create this Image
FROM accetto/ubuntu-vnc-xfce-firefox-g3
Just my name who wrote this file
MAINTAINER HubbelBubbel
USER root
Remove all panel inputs
RUN mv /usr/bin/xfce4-panel /usr/bin/xfce4-panel-old
RUN rm /usr/libexec/noVNCdim/app/images/icons/novnc.ico
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y python3-pip locales
RUN pip install pyxhook --break-system-packages
🔧 FIREFOX CONFIG: No popups with functions
RUN echo '{\n
"policies": {\n
"PasswordManagerEnabled": true,\n
"OfferToSaveLogins": false,\n
"PrimaryPassword": false,\n
"Preferences": {\n
"signon.rememberSignons": true,\n
"signon.autofillForms": true,\n
"signon.generation.enabled": false,\n
"signon.management.page.breach-alerts.enabled": false\n
},\n
"Cookies": {\n
"Default": true,\n
"AcceptThirdParty": "always",\n
"RejectTracker": false\n
},\n
"SanitizeOnShutdown": {\n
"Cache": true,\n
"Cookies": false,\n
"Downloads": false,\n
"FormData": false,\n
"History": false,\n
"Sessions": false\n
}\n
}\n
}' > /usr/lib/firefox/distribution/policies.json
USER headless
COPY XFCE4 config for white background
COPY ./vnc/xfce4-desktop.xml /home/headless/.config/xfce4/xfconf/xfce-perchannel-xml/
COPY ./vnc/WinCursor /home/headless/.icons/WinCursor/
Copy adjusted html file for noVNC
COPY ./vnc/conn.html /usr/libexec/noVNCdim/
COPY ./vnc/ui.js /usr/libexec/noVNCdim/app/
COPY ./vnc/base.css /usr/libexec/noVNCdim/app/styles/