Skip to content

Conversation

@Dazmed707
Copy link

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/

Added policies to disable pop-ups and password prompts in Firefox.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant