settings firefox custom background

This commit is contained in:
Amazed 2021-01-26 18:58:12 +01:00
parent 82721cc686
commit 85807290b9
9 changed files with 421 additions and 2 deletions

View File

@ -40,5 +40,9 @@ Les modifications actuelles sont les suivantes :
* KeepassXC
* Modification de l'écran d'accueil ISOLinux pour rajouter un fond d'écran LIS67
* Modification de GRUB pour lancer immédiatement l'OS
* Renforcement des paramètres de sécurité de Firefox (à venir)
* Modification du fond d'écran par défaut (à venir)
* Renforcement des paramètres de sécurité de Firefox
* Désactivation de Yahoo comme moteur de recherche
* Activation de Startpage comme moteur de recherche
* Changement page d'accueil par Startpage
* Installation automatique de l'extension uBlock Origin
* Modification du fond d'écran par défaut

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

Binary file not shown.

View File

@ -0,0 +1,144 @@
{
"data": [
{
"orderHint": 8000,
"default": "no",
"webExtension": {
"id": "startpage@search.mozilla.com"
},
"id": "e63902c3-55b1-4de4-bfb2-c795769a9da5",
"appliesTo": [
{
"default": "yes",
"included": {
"regions": [
"us"
]
},
"webExtension": {
"id": "startpage@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"dk"
]
},
"webExtension": {
"id": "startpage-da@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"de"
]
},
"webExtension": {
"id": "startpage-de@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"gb",
"ie"
]
},
"webExtension": {
"id": "startpage-gb@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"es"
]
},
"webExtension": {
"id": "startpage-es@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"fr"
]
},
"webExtension": {
"id": "startpage-fr@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"nl"
]
},
"webExtension": {
"id": "startpage-nl@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"br"
]
},
"webExtension": {
"id": "startpage-pt@search.mozilla.org"
}
},
{
"default": "yes",
"included": {
"regions": [
"no"
]
},
"webExtension": {
"id": "startpage-no@search.mozilla.org"
}
}
]
},
{
"orderHint": 1100,
"webExtension": {
"id": "duckduckgo@search.mozilla.org"
},
"id": "5c79046a-7c95-4ef1-984e-b96d75d27f2a",
"appliesTo": [
{
"default": "yes-if-no-other",
"included": {
"everywhere": true
}
}
]
},
{
"orderHint": 1000,
"default": "no",
"webExtension": {
"id": "wikipedia@search.mozilla.org"
},
"id": "8d16872c-a33f-4548-8799-20d36a927e60",
"appliesTo": [
{
"included": {
"everywhere": true
}
}
]
}
]
}

66
firefox/distribution.ini Normal file
View File

@ -0,0 +1,66 @@
[Global]
id=mint
version=1.0
about=Mozilla Firefox for Linux Mint
[Preferences]
app.distributor="mint"
app.distributor.channel="mint"
app.partner.mint="mint"
intl.locale.requested=""
[LocalizablePreferences]
# Startup page
browser.startup.homepage="https://www.startpage.com/fr/"
# General settings
extensions.update.enabled=true
browser.backspace_action=0
# Use LANG environment variable to choose locale
intl.locale.matchOS=true
# Disable default browser checking.
browser.shell.checkDefaultBrowser=false
# Prevent EULA dialog to popup on first run
browser.EULA.override=true
# Set the UserAgent
general.useragent.vendor="Linux Mint"
general.useragent.vendorSub="20"
general.useragent.vendorComment="Ulyana"
# Default search engine
browser.search.order.1="Startpage"
browser.search.order.2="DuckDuckGo"
browser.search.selectedEngine="Startpage"
browser.search.defaultenginename="Startpage"
browser.search.searchEnginesURL="http://www.linuxmint.com/searchengines/"
keyword.URL="https://duckduckgo.com/?t=lm&q="
# Ignore release notes startup pages
browser.startup.homepage_override.mstone="ignore"
# Do not interrupt user workflow
datareporting.policy.dataSubmissionPolicyBypassNotification=true
browser.slowStartup.notificationDisabled=true
browser.disableResetPrompt=true
browser.rights.3.shown=true
toolkit.telemetry.prompted=2
toolkit.telemetry.rejected=true
# apturl
network.protocol-handler.app.apt="/usr/bin/apturl"
network.protocol-handler.app.apt+http="/usr/bin/apturl"
network.protocol-handler.warn-external.apt=true
network.protocol-handler.warn-external.apt+http=true
# identify default locale to use if no /usr/lib/firefox-addons/searchplugins/LOCALE
# exists for the current used LOCALE
#distribution.searchplugins.defaultLocale="en-US"
# Do not disable our bundled extensions in the application directory
extensions.autoDisableScopes=0
extensions.shownSelectionUI=true

Binary file not shown.

183
firefox/vendor-firefox.js Normal file
View File

@ -0,0 +1,183 @@
// This is the Debian specific preferences file for Mozilla Firefox
// You can make any change in here, it is the purpose of this file.
// You can, with this file and all files present in the
// /etc/firefox/pref directory, override any preference that is
// present in /usr/lib/firefox/defaults/pref directory.
// While your changes will be kept on upgrade if you modify files in
// /etc/firefox/pref, please note that they won't be kept if you
// do them in /usr/lib/firefox/defaults/pref.
pref("extensions.update.enabled", true);
// Use LANG environment variable to choose locale
pref("intl.locale.matchOS", true);
pref("intl.locale.requested", "");
// Disable default browser checking.
pref("browser.shell.checkDefaultBrowser", false);
// Prevent EULA dialog to popup on first run
pref("browser.EULA.override", true);
// identify linuxmint @ yahoo searchplugin
pref("browser.search.param.yahoo-fr", "linuxmint");
// Set the UserAgent
pref("general.useragent.vendor", "Linux Mint");
pref("general.useragent.vendorSub", "20");
pref("general.useragent.vendorComment", "Ulyana");
// Default search engine
pref("browser.search.searchEnginesURL", "http://www.linuxmint.com/searchengines/");
// Activate the backspace key for browsing back
pref("browser.backspace_action", 0);
// Ignore Mozilla release notes startup pages
pref("browser.startup.homepage_override.mstone", "ignore");
// Don't interrupt user workflow
pref('datareporting.policy.dataSubmissionPolicyBypassNotification', true);
pref('browser.slowStartup.notificationDisabled', true);
pref('browser.disableResetPrompt', true);
pref("browser.rights.3.shown", true);
pref("toolkit.telemetry.prompted", 2);
pref("toolkit.telemetry.rejected", true);
// identify default locale to use if no /usr/lib/firefox-addons/searchplugins/LOCALE
// exists for the current used LOCALE
pref("distribution.searchplugins.defaultLocale", "en-US");
// Enable the NetworkManager integration
//pref("network.manage-offline-status", true);
// Don't disable our bundled extensions in the application directory
pref("extensions.autoDisableScopes", 0);
pref("extensions.shownSelectionUI", true);
// Don't apply the GTK theme to the inner content (this fixes support for Dark themes)
pref("widget.content.gtk-theme-override", "#");
// Map to hyphenation patterns from openoffice.org-hyphenation and openoffice.org-dictionaries
pref("intl.hyphenation-alias.af", "af-za");
pref("intl.hyphenation-alias.af-*", "af-za");
pref("intl.hyphenation-alias.bn", "bn-in");
pref("intl.hyphenation-alias.bn-*", "bn-in");
pref("intl.hyphenation-alias.ca-*", "ca");
pref("intl.hyphenation-alias.cs", "cs-cz");
pref("intl.hyphenation-alias.cs-*", "cs-cz");
pref("intl.hyphenation-alias.da", "da-dk");
pref("intl.hyphenation-alias.da-*", "da-dk");
pref("intl.hyphenation-alias.de", "de-de");
pref("intl.hyphenation-alias.de-*", "de-de");
pref("intl.hyphenation-alias.de-AT-1901", "de-de");
pref("intl.hyphenation-alias.de-CH-*", "de-de");
pref("intl.hyphenation-alias.de-DE-1901", "de-de");
pref("intl.hyphenation-alias.el", "el-gr");
pref("intl.hyphenation-alias.el-*", "el-gr");
pref("intl.hyphenation-alias.en", "en-us");
pref("intl.hyphenation-alias.en-*", "en-us");
pref("intl.hyphenation-alias.es", "es-es");
pref("intl.hyphenation-alias.es-*", "es-es");
pref("intl.hyphenation-alias.et", "et-ee");
pref("intl.hyphenation-alias.et-*", "et-ee");
pref("intl.hyphenation-alias.fi", "fi-fi");
pref("intl.hyphenation-alias.fi-*", "fi-fi");
pref("intl.hyphenation-alias.fr-*", "fr");
pref("intl.hyphenation-alias.ga", "ga-ie");
pref("intl.hyphenation-alias.ga-*", "ga-ie");
pref("intl.hyphenation-alias.gu", "gu-in");
pref("intl.hyphenation-alias.gu-*", "gu-in");
pref("intl.hyphenation-alias.hi", "hi-in");
pref("intl-hyphenation-alias.hi-in", "hi-in");
pref("intl.hyphenation-alias.hr", "hr-hr");
pref("intl.hyphenation-alias.hr-*", "hr-hr");
pref("intl.hyphenation-alias.hu", "hu-hu");
pref("intl.hyphenation-alias.hu-*", "hu-hu");
pref("intl.hyphenation-alias.id", "id-id");
pref("intl-hyphenation-alias.id-*", "id-id");
pref("intl.hyphenation-alias.is", "is-is");
pref("intl.hyphenation-alias.is-*", "is-is");
pref("intl.hyphenation-alias.it", "it-it");
pref("intl.hyphenation-alias.it-*", "it-it");
pref("intl.hyphenation-alias.kn", "kn-in");
pref("intl.hyphenation-alias.kn-*", "kn-in");
pref("intl.hyphenation-alias.lt", "lt-lt");
pref("intl.hyphenation-alias.lt-*", "lt-lt");
pref("intl.hyphenation-alias.lv", "lv-lv");
pref("intl.hyphenation-alias.lv-*", "lv-lv");
pref("intl.hyphenation-alias.nb", "nb-no");
pref("intl.hyphenation-alias.nb-*", "nb-no");
pref("intl.hyphenation-alias.nl", "nl-nl");
pref("intl.hyphenation-alias.nl-*", "nl-nl");
pref("intl.hyphenation-alias.nn", "nn-no");
pref("intl.hyphenation-alias.nn-*", "nn-no");
pref("intl.hyphenation-alias.pa", "pa-in");
pref("intl.hyphenation-alias.pa-*", "pa-in");
pref("intl.hyphenation-alias.pl", "pl-pl");
pref("intl.hyphenation-alias.pl-*", "pl-pl");
pref("intl.hyphenation-alias.pt", "pt-pt");
pref("intl.hyphenation-alias.pt-*", "pt-pt");
pref("intl.hyphenation-alias.ro", "ro-ro");
pref("intl.hyphenation-alias.ro-*", "ro-ro");
pref("intl.hyphenation-alias.ru", "ru-ru");
pref("intl.hyphenation-alias.ru-*", "ru-ru");
pref("intl.hyphenation-alias.sh-*", "sh");
pref("intl.hyphenation-alias.sk", "sk-sk");
pref("intl.hyphenation-alias.sk-*", "sk-sk");
pref("intl.hyphenation-alias.sl", "sl-si");
pref("intl.hyphenation-alias.sl-*", "sl-si");
pref("intl.hyphenation-alias.sr-*", "sr");
pref("intl.hyphenation-alias.sv", "sv-se");
pref("intl.hyphenation-alias.sv-*", "sv-se");
pref("intl.hyphenation-alias.uk", "uk-ua");
pref("intl.hyphenation-alias.uk-*", "uk-ua");
pref("intl.hyphenation-alias.zu", "zu-za");
pref("intl.hyphenation-alias.zu-*", "zu-za");
// Disable Telemetry
pref("toolkit.telemetry.unified", false);
pref("toolkit.telemetry.archive.enabled", false);
pref("toolkit.telemetry.enabled", false);
pref("toolkit.telemetry.unifiedIsOptIn", false);
pref("toolkit.telemetry.server", "data:,");
pref("toolkit.telemetry.newProfilePing.enabled", false);
pref("toolkit.telemetry.shutdownPingSender.enabled", false);
pref("toolkit.telemetry.updatePing.enabled", false);
pref("toolkit.telemetry.bhrPing.enabled", false);
pref("toolkit.telemetry.firstShutdownPing.enabled", false);
pref("toolkit.telemetry.coverage.opt-out", true);
pref("toolkit.coverage.opt-out", true);
pref("toolkit.coverage.endpoint.base", "");
pref("datareporting.policy.dataSubmissionEnabled", false);
pref("datareporting.healthreport.uploadEnabled", false);
pref("app.shield.optoutstudies.enabled", false);
pref("browser.discovery.enabled", false);
pref("breakpad.reportURL", "");
pref("browser.tabs.crashReporting.sendReport", false);
pref("browser.crashReports.unsubmittedCheck.enabled", false);
pref("browser.crashReports.unsubmittedCheck.autoSubmit2", false);
// Disable welcome pages
pref("startup.homepage_welcome_url", "");
pref("startup.homepage_welcome_url.additional", "");
pref("startup.homepage_override_url", ""); // what's new page afer update
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.addons", false);
pref("browser.newtabpage.activity-stream.asrouter.userprefs.cfr.features", false);
pref("browser.newtabpage.activity-stream.feeds.snippets", false);
// Remove sync account from toolbar
pref("identity.fxaccounts.toolbar.enabled", false); // Firefox Accounts & Sync [FF60+] [RESTART]
pref("identity.fxaccounts.toolbar.accessed", true); // Firefox Accounts & Sync [FF60+] [RESTART]
// Disable modern search config
pref("browser.search.modernConfig", false);
// CUSTOM LIS67
pref("browser.startup.homepage", "https://www.startpage.com/fr/");
pref("browser.search.order.1", "Startpage");
pref("browser.search.order.2", "DuckDuckGo");
pref("browser.search.selectedEngine", "Startpage");
pref("browser.search.defaultenginename", "Startpage");

View File

@ -40,6 +40,24 @@ sudo cp /etc/resolv.conf /etc/hosts "$WORKDIR/custom/etc/"
echo "==== CHROOT ===="
cat "$SPATH/tasks.sh" | sudo chroot "$WORKDIR/custom" /bin/bash
echo "==== Copy custom background ===="
sudo cp background/sele_ring_lis67.jpg "$WORKDIR/custom/usr/share/backgrounds/linuxmint/sele_ring_lis67.jpg"
echo "==== Copy Firefox settings ===="
sudo cp "$SPATH/firefox/distribution.ini" "$WORKDIR/custom/usr/lib/firefox/distribution/distribution.ini"
sudo cp "$SPATH/firefox/distribution.ini" "$WORKDIR/custom/usr/share/ubuntu-system-adjustments/firefox/distribution.ini"
sudo cp "$SPATH/firefox/vendor-firefox.js" "$WORKDIR/custom/usr/lib/firefox/browser/defaults/preferences/vendor-firefox.js"
sudo cp "$SPATH/firefox/vendor-firefox.js" "$WORKDIR/custom/usr/share/ubuntu-system-adjustments/firefox/firefox.js"
echo "==== Disable Yahoo, enable Startpage on Firefox ===="
cd "$SPATH/firefox"
sudo zip "$WORKDIR/custom/usr/lib/firefox/browser/omni.ja" defaults/settings/main/search-config.json
cd -
echo "==== Install extensions ===="
sudo cp "$SPATH/firefox/extensions/"* "$WORKDIR/custom/usr/lib/firefox/distribution/extensions/"
echo "==== Mod ISOLINUX (BIOS) AND GRUB (EFI) ===="
# isolinux
chmod -R +w "$WORKDIR/cd/isolinux"

View File

@ -27,6 +27,10 @@ for l in $(cat /usr/share/linuxmint/mintlocale/language_packs); do
fi
done
# setup custom background
rm /usr/share/backgrounds/linuxmint/default_background.jpg
ln -s sele_ring_lis67.jpg /usr/share/backgrounds/linuxmint/default_background.jpg
# gen locales
locale-gen fr