If you want to keep all your Firefox settings, configure it exactly as you want (Preferences, addons etc...) and copy the hidden subfolder of guest .mozilla (/home/guest/.mozilla/) into the rootcopy folder of Porteus (/rootcopy/home/guest/.mozilla/)
I was pleased to be able to recover all the passwords of Firefox under Windows to place them under Linux
you have to copy 2 files in your profile folder :
- key4.db
- logins.json
There are other old files that can be recovered, but there should not be too much difference between the versions (compatibility problem). Here is the list of files:
Profiles - Where Firefox stores your bookmarks, passwords and other user data
https://support.mozilla.org/en-US/kb/pr ... -user-data
Also, I learned with the help of Ed_P, that you can avoid the regular "update prompt" message with the policies.json file edition
Sujet : [Solved] Firefox can't update to the latest version
It is also possible to prevent the default browser ask and the refresh message from Firefox.
You can also add other useful settings for Firefox.
The detail of each parameter of the file policies.json is given here for the Firefox v.89 and previous versions :
https://github.com/mozilla/policy-templ ... /README.md
For more recent versions, see the "readme" file:
https://github.com/mozilla/policy-templates/releases
First of all, you have to create 2 new folders "distribution" (and its parent folders) from the "rootcopy" folder
Go to the "rootcopy" folder then launch in the terminal :
Code: Select all
mkdir -p usr/lib64/firefox/distribution
Code: Select all
mkdir -p usr/lib64/firefox-88.0/
there are some strict rules to respect : there is a comma to add between each argument, an open brace and a closed one for each of them {}
Help yourself to this page, which allows you to test your code to see if there are any errors:- Data is separated by commas
- Objects are encapsulated within the opening and closing curly brackets
The JSON Validator
https://jsonlint.com/
Here is an example of my file policies.json that allows you to :
Turn off application updates.
- Disable the Refresh Firefox button
- Disable Telemetry
- Disable third-party cookies
- rejects cookies for trackers
- enable tracking protection
- fingerprinting scripts on websites are blocked
Code: Select all
{
"policies": {
"DisableAppUpdate": true,
"DisableProfileRefresh": true,
"DisableTelemetry": true,
"Cookies": {
"AcceptThirdParty": "never",
"RejectTracker": true
},
"EnableTrackingProtection": {
"Value": true,
"Fingerprinting": true
}
}
}