[debian-edu-commits] [Git][debian-edu/debian-edu-config][master] 3 commits: Set DuckDuckGo as default search provider for both Firefox-ESR and Chromium

Wolfgang Schweer gitlab at salsa.debian.org
Tue Nov 17 16:02:19 GMT 2020



Wolfgang Schweer pushed to branch master at Debian Edu / debian-edu-config


Commits:
4570bc61 by Wolfgang Schweer at 2020-11-17T16:18:25+01:00
Set DuckDuckGo as default search provider for both Firefox-ESR and Chromium

This setting isn't forced, users are allowed to change it; compare #955707.

Adjust share/firefox-esr/distribution/policies.json
Add etc/chromium/policies/recommended/search_provider.json.
Adjust Makefile

Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>

- - - - -
11a7ef4b by Wolfgang Schweer at 2020-11-17T16:21:11+01:00
Improve homepage and startup page setup and newtab content for both Firefox-ESR and Chromium

Adjust etc/firefox-esr/debian-edu.js

Adjust share/debian-edu-config/tools/update-chromium-homepage

Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>

- - - - -
2a256b69 by Wolfgang Schweer at 2020-11-17T17:00:52+01:00
Fix typo in share/firefox-esr/distribution/policies.json

Signed-off-by: Wolfgang Schweer <wschweer at arcor.de>

- - - - -


6 changed files:

- Makefile
- debian/changelog
- + etc/chromium/policies/recommended/search_provider.json
- etc/firefox-esr/debian-edu.js
- share/debian-edu-config/tools/update-chromium-homepage
- share/firefox-esr/distribution/policies.json


Changes:

=====================================
Makefile
=====================================
@@ -82,6 +82,7 @@ SYSCONFFILES = \
 	default/munin-node \
 	default/ldap2zone \
 	chromium/policies/managed/chromium-networked-prefs \
+	chromium/policies/recommended/search_provider.json \
 	cups/cupsd-debian-edu.conf \
 	cups/cups-files-debian-edu.conf \
 	dhcp/dhclient-exit-hooks.d/autofs-reload \


=====================================
debian/changelog
=====================================
@@ -1,7 +1,18 @@
 debian-edu-config (2.11.36) UNRELEASED; urgency=medium
 
+  [ Holger Levsen ]
   * Update standards version to 4.5.1, no changes needed.
 
+  [ Wolfgang Schweer ]
+  * Set DuckDuckGo as default search provider for both Firefox-ESR and Chromium.
+    This setting isn't forced, users are allowed to change it, compare #955707:
+    - Adjust share/firefox-esr/distribution/policies.json,
+    - Add etc/chromium/policies/recommended/search_provider.json.
+  * Improve homepage and startup page setup and newtab content for both
+    Firefox-ESR and Chromium:
+    - Adjust etc/firefox-esr/debian-edu.js,
+    - Adjust share/debian-edu-config/tools/update-chromium-homepage.
+
  -- Holger Levsen <holger at debian.org>  Tue, 17 Nov 2020 13:08:22 +0100
 
 debian-edu-config (2.11.35) unstable; urgency=medium


=====================================
etc/chromium/policies/recommended/search_provider.json
=====================================
@@ -0,0 +1,9 @@
+{
+  "DefaultSearchProviderEnabled": true,
+  "DefaultSearchProviderName": "DuckDuckGo",
+  "DefaultSearchProviderIconURL": "https://duckduckgo.com/favicon.ico",
+  "DefaultSearchProviderEncodings": ["UTF-8"],
+  "DefaultSearchProviderSearchURL": "https://duckduckgo.com/?q={searchTerms}",
+  "DefaultSearchProviderSuggestURL": "https://duckduckgo.com/ac/?q={searchTerms}&type=list",
+  "DefaultSearchProviderNewTabURL": "https://duckduckgo.com/chrome_newtab"
+}


=====================================
etc/firefox-esr/debian-edu.js
=====================================
@@ -2,19 +2,14 @@
 // filling up their home directory with cache files.
 pref("browser.cache.disk.enable", false);
 pref("browser.cache.offline.enable", false);
-
 pref("browser.cache.disk.capacity", 5120);
-// This need to point to a user specific file, can't use a common file for all users
-//pref("browser.cache.disk.parent_directory", "/var/tmp");
 
 // Only cache to memory instead
 pref("browser.cache.memory.enable", true);
 pref("browser.cache.memory.max_entry_size", -1);
 
-// Printer Settings
-pref("print.postscript.print_size", "A4");
-pref("print.postscript.print_command", "kprinter");
-pref("print.print_command", "kprinter");
+// Disable storing website screenshots on disk
+pref("browser.pagethumbnails.capturing_disabled", true);
 
 // Enable spell checking in both single-line and multi-line fields
 pref("layout.spellcheckDefault", 2);
@@ -22,13 +17,42 @@ pref("layout.spellcheckDefault", 2);
 // Mailto settings
 pref("network.protocol-handler.app.mailto", "thunderbird");
 
-// Disable malware detection to avoid heavy I/O during login.
-// Should be disabled when BTS #? is fixed.
-// http://www.debianhelp.org/node/14453
-// https://bugs.launchpad.net/firefox/+bug/215728
-// https://bugs.edge.launchpad.net/ubuntu/+source/firefox-3.0/+bug/229745
+// Disable malware and other crap detection to avoid heavy I/O during login.
+// This should be no problem because ublock-origin is installed and the system
+// can be kept up-to-date easily.
+pref("browser.safebrowsing.phishing.enable", false);
 pref("browser.safebrowsing.malware.enabled", false);
-pref("browser.safebrowsing.enabled", false);
+pref("browser.safebrowsing.blockedURIs.enabled", false);
+pref("browser.safebrowsing.downloads.enabled", false);
+pref("browser.safebrowsing.downloads.remote.block_dangerous", false);
+pref("browser.safebrowsing.downloads.remote.block_dangerous_host", false);
+pref("browser.safebrowsing.downloads.remote.block_potentially_unwanted", false);
+pref("browser.safebrowsing.downloads.remote.block_uncommon", false);
+pref("browser.safebrowsing.downloads.remote.url", "");
+pref("browser.safebrowsing.provider.*.gethashURL", "");
+pref("browser.safebrowsing.provider.*.updateURL", "");
+
+// Disable telemetry data reporting and toolkit.
+pref("datareporting.policy.dataSubmissionEnabled", false);
+pref("toolkit.telemetry.unified", false);
+// Also disable the telemetry coverage toolkit, just in case it is present.
+pref("toolkit.coverage.endpoint.base", "");
+pref("toolkit.coverage.opt-out", true);
+pref("toolkit.telemetry.coverage.opt-out", true);
+
+// Disable location tracking
+pref("browser.region.update.enabled", false);
+pref("browser.region.network.url", "");
+
+// Avoid connecting to Mozilla after upgrades
+pref("browser.startup.homepage_override.mstone", "ignore");
+
+// Avoid connecting to Mozilla at each startup
+pref("app.normandy.enabled", false);
+
+// Disable screenshot uploads
+pref("extensions.screenshots.upload-disabled", true);
+
 
 // Disable location-bar suggestion feature that is sludgy on
 // thin-clients.
@@ -45,3 +69,9 @@ pref("intl.locale.matchOS", true);
 
 // Disable default browser checking.
 pref("browser.shell.checkDefaultBrowser", false);
+
+// Use clean new tab page without any distraction except search.
+pref("browser.newtabpage.activity-stream.feeds.section.highlights", false);
+pref("browser.newtabpage.activity-stream.feeds.topsites", false);
+pref("browser.newtabpage.activity-stream.feeds.snippets", false);
+pref("browser.newtabpage.activity-stream.feeds.asrouterfeed", false);


=====================================
share/debian-edu-config/tools/update-chromium-homepage
=====================================
@@ -26,8 +26,11 @@ if [ -z "$url" ] || [ "about:blank" = "$url" ]; then
 else
     cat > $etcfile.new <<EOF
 {
+  "ShowHomeButton" : true,
   "HomepageLocation" : "$url",
-  "HomepageIsNewTabPage" : false
+  "HomepageIsNewTabPage" : false,
+  "RestoreOnStartup" : 4,
+  "RestoreOnStartupURLs" : ["$url"]
 }
 EOF
     chmod 644 $etcfile.new


=====================================
share/firefox-esr/distribution/policies.json
=====================================
@@ -7,6 +7,18 @@
       ]
     },
     "NewTabPage": false,
-    "OverrideFirstRunPage": ""
+    "OverrideFirstRunPage": "",
+    "SearchEngines": {
+      "Add": [
+        {
+          "IconURL": "https://duckduckgo.com/favicon.ico",
+          "Method": "POST",
+          "Name": "DuckDuckGo",
+          "SuggestURLTemplate": "https://duckduckgo.com/ac/?q={searchTerms}&type=list",
+          "URLTemplate": "https://duckduckgo.com/?q={searchTerms}"
+        }
+      ],
+      "Default": "DuckDuckGo"
+    }
   }
-}
\ No newline at end of file
+}



View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/f933b75b9d3b1914fe80cbb8fad87ca26f5659e6...2a256b697cfa0bc264c8d689bdaf19e992c5cf9c

-- 
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-config/-/compare/f933b75b9d3b1914fe80cbb8fad87ca26f5659e6...2a256b697cfa0bc264c8d689bdaf19e992c5cf9c
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20201117/e8344a15/attachment-0001.html>


More information about the debian-edu-commits mailing list