On Mon, 26 Oct 2015 23:37:22 -0500, MWBradburne wrote:
> I'll post separately the procedure I used to install Firefox into
> that location since I just typed it up a couple of days ago when
> I most recently installed the latest version of Firefox.
Here are the steps used to install Firefox, and to set it up.
============================================================================
How to install Firefox on Kubuntu 14.04:
============================================================================
0. Download and unpack the Firefox binaries:
$ cd /tmp/
$ wget
https://download.mozilla.org/?product=firefox-41.0.2-SSL&os=linux64&lang=en-US
This creates a file named "/tmp/firefox-*.tar.bz2".
Unpack Firefox binaries:
$ tar xjf firefox-*.tar.bz2
This creates a directory named "firefox".
1. Find where firefox currently lives:
$ which firefox
/usr/bin/firefox
$ ls -l /usr/bin/firefox
lrwxrwxrwx 1 root root 25 Nov 27 03:53 /usr/bin/firefox -> ../lib/firefox/firefox.sh
2. Get rid of the old Firefox:
$ sudo rm -rf /usr/lib/firefox/
3. Put the new Firefox in place:
$ sudo mv /tmp/firefox /usr/lib/.
4. Check your work:
$ /usr/lib/firefox/firefox --version
(process:28565): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Mozilla Firefox 41.0.2
5. Start up Firefox to test that it's working:
$ /usr/lib/firefox/firefox &
6. Kill Firefox and modify the ffox script to point to this new Firefox
$ killall firefox
$ sudo vi /usr/local/bin/ffox
#!/bin/bash
/usr/lib/firefox/firefox -new-instance -P xxx &
exit 0
7. Test ffox to see if it's working:
$ ffox
This brings up Firefox.
============================================================================
How to set up Firefox to always have the same settings on Kubuntu 14.04:
============================================================================
0. Remove all Firefox profiles and create a RAM file system for profiles:
$ rm -rf $HOME/.mozilla/
$ sudo vi /etc/fstab
tmpfs /mytmp tmpfs auto,nodev,nosuid,size=70% 0 0
$ sudo mkdir -p /mytmp && sudo chmod 1777 /mytmp && sudo mount /mytmp
$ mkdir /mytmp/firefox/
1. Start Firefox to make sure it comes up:
$ /usr/lib/firefox/firefox &
Kill Firefox once you've done that test.
2. Start Firefox with a script intended to create a new profile:
$ ffox
Where /usr/local/bin/ffox is:
#!/bin/bash
/usr/lib/firefox/firefox -new-instance -P xxx &
exit 0
3. The Choose User Profile form comes up where you have to press:
Create Profile > Next > Choose Folder > Create Folder > /mytmp/firefox
4. Disable all plugins (the combination of which can fingerprint you):
OpenH264 Codec, Shockwave Flash, Gnome Shell Integration, iTunes Application Detector
5. Load privacy extensions and turn off automatic updates:
NOTE: See step 21 first (in case the addons add URLs you need to remove).
Tools > Addons > Extensions > Settings > Update Addons Automatically = off
Tools > Addons > Extensions > Settings > Install Addon from file:
CanvasBlocker
CloseButton
Ghostery.xpi resource://firefox-at-ghostery-dot-com/ghostery/data/options.html
NoScript
RandomAgentSpoofer.xpi
Press the web page for each one to turn automatic updates off:
Tools > Addons > Extensions > Settings > {select the addon & then press More}
6. Set your desired preferences:
Edit > Preferences > General > Always check if Firefox is your default browser = off
Edit > Preferences > General > When Firefox Starts = Show a blank page
Edit > Preferences > General > Downloads = Always ask me where to save files
Edit > Preferences > Search > Provide search suggestions = off
Edit > Preferences > Search > Default Search Engine = DuckDuckGo
Edit > Preferences > Search > One-click search engines = (turn all off)
Edit > Preferences > Content > no changes
Edit > Preferences > Applications > no changes
Edit > Preferences > Privacy > History > Firefox will = never remember history
Edit > Preferences > Privacy > Location Bar > suggest History = off
Edit > Preferences > Privacy > Location Bar > suggest Bookmarks = off
Edit > Preferences > Privacy > Location Bar > suggest Open tabs = off
Edit > Preferences > Security > General > Block reported attack sites = no
Edit > Preferences > Security > General > Block reported web forgeries = no
Edit > Preferences > Sync > no changes
Edit > Preferences > Advanced > General > no changes
Edit > Preferences > Advanced > Data Choices > Enable Firefox Health Report = no
Edit > Preferences > Advanced > Data Choices > Enable Crash Reporter = no
Edit > Preferences > Advanced > Network > no changes
Edit > Preferences > Advanced > Update > Firefox updates = Never check for updates
Edit > Preferences > Advanced > Update > Automatically update > Search engines = no
Edit > Preferences > Advanced > Certificates > Requests > Query OCSP servers = no
7. Customize your firefox look and feel as desired:
Hamburger > Customize > (drag and drop icons as needed, e.g., CloseButton).
8. Customize your tabs look and feel as desired:
Control+t > Gear > Show your top sites = off (include suggested sites = off)
Control+t > Gear > Show blank page = on
9. Bear in mind that Firefox reads preferences in the following order:
a. about:config changes
b. prefs.js ($HOME/.mozilla/firefox/########.Default User/prefs.js)
c. user.js
For example:
user_pref("browser.chrome.site_icons", false); // Don't show bookmark icons
10. Opt out of the spying, once a day, on your extensions:
Set about:config extensions.getAddons.cache.enabled = false
11. Filter for "safebrowsing" and set all syncs to false and set all the string values to null:
about:config services.sync.prefs.sync.browser.safebrowsing.enabled;false
about:config services.sync.prefs.sync.browser.safebrowsing.malware.enabled;false
about:config browser.safebrowsing.downloads.remote.enabled;false
about:config browser.safebrowsing.downloads.enabled;false
Remove:
about:config browser.safebrowsing.appRepURL;
https://sb-ssl.google.com/safebrowsing/clientreport/download?key=%GOOGLE_API_KEY%
about:config browser.safebrowsing.gethashURL;
https://safebrowsing.google.com/safebrowsing/gethash?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2
about:config
browser.safebrowsing.id;navclient-auto-ffox
about:config browser.safebrowsing.malware.reportURL;
https://safebrowsing.google.com/safebrowsing/diagnostic?client=%NAME%&hl=%LOCALE%&site=
about:config browser.safebrowsing.reportMalwareMistakeURL;https://%LOCALE%.
malware-error.mozilla.com/?hl=%LOCALE%&url=
about:config browser.safebrowsing.reportPhishMistakeURL;https://%LOCALE%.
phish-error.mozilla.com/?hl=%LOCALE%&url=
about:config browser.safebrowsing.reportPhishURL;https://%LOCALE%.
phish-report.mozilla.com/?hl=%LOCALE%&url=
about:config browser.safebrowsing.updateURL;
https://safebrowsing.google.com/safebrowsing/downloads?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2&key=%GOOGLE_API_KEY%
about:config browser.trackingprotection.gethashURL;
https://tracking.services.mozilla.com/gethash?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2
about:config browser.trackingprotection.updateURL;
https://tracking.services.mozilla.com/downloads?client=SAFEBROWSING_ID&appver=%VERSION%&pver=2.2
12. Disable DOM storage
about:config dom.storage.enabled;false
13. Disable referrer headers
about:config network.http.sendSecureXSiteReferrer;false
14. Disables WebRTC, which can leak your IP if you are behind a VPN
about:config media.peerconnection.enabled = false
15. Double disable WebRTC
about:config media.peerconnection.turn.disable = true
16. Privacy Tracking:
about:config privacy.trackingprotection.enabled = true
17. Disable geolocation
about:config geo.enabled = false
18. Disable javascript:
about:config javascript.enabled;false
about:config services.sync.prefs.sync.javascript.enabled;false
19. I'm not sure what to do about the useragent.site_specific_overrides:
about:config general.useragent.site_specific_overrides;false
20. Tell Firefox to take hosts file changes immediately:
about:config browser.cache.check_doc_frequency;1
0 (check once per session),
1 (check every time the page is accessed no matter what) <use this
2 (never check no matter what),
3 (check when the cached copy of the page says it might be out of date). <default
21. Remove any web sites that will be notified if you click a button:
NOTE: Some of these may come from the addons so you might want to do this first:
about:config (search for "http") and you'll find dozens, for example:
about:config dom.mozApps.signed_apps_installable_from;
https://marketplace.firefox.com
about:config gecko.handlerService.schemes.irc.0.uriTemplate;
https://www.mibbit.com/?url=%s
about:config gecko.handlerService.schemes.mailto.0.uriTemplate;
https://compose.mail.yahoo.com/?To=%s
about:config gecko.handlerService.schemes.webcal.0.uriTemplate;
https://30boxes.com/external/widget?refer=ff&url=%s
about:config geo.wifi.uri;
https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_API_KEY%
22. Save the current changes (prefs.js) to a safe "user.js" file:
??? how do we do this best ???
23. Exit Firefox and copy the profile directory to a safe place:
$ killall firefox
$ mkdir ~/.firefox_profile_template
$ cp -r /mytmp/firefox ~/.firefox_profile_template/.
WIP: Maybe I should figure out how to put it all into a "user.js" file?
24. Modify the ffox script that starts Firefox:
#!/bin/bash
cp -pr ~/.firefox_profile_template/. /mytmp/firefox
/usr/lib/firefox/firefox -new-instance -P xxx &
exit 0
============================================================================