Application firefox

From campisano.org
Jump to navigation Jump to search

Firefox

Install

shared/opt install schema v1.2

su -
#### as root
# dependencies
apt-get install curl tar bzip2
# binary
DESTINATION="/home/shared/opt/software"                 # Edit when needed
VERSION="68.2.0esr"                                     # Edit when needed
URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/${VERSION}/linux-x86_64/en-US/firefox-${VERSION}.tar.bz2"
umask 0027
mkdir -p "${DESTINATION}/tmp"
cd "${DESTINATION}/tmp"
curl -C - -kLO "${URL}"
tar -xjf "firefox-${VERSION}.tar.bz2"
# (optional) disable firefox update
mkdir firefox/distribution
cat > firefox/distribution/policies.json << 'EOF'
{
  "policies": {
    "DisableAppUpdate": true
  }
}
EOF
cd "${DESTINATION}"
chown -R root:users "tmp"
find "tmp" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "tmp" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
mv "tmp/firefox" "firefox-${VERSION}"
rm -rf tmp firefox
ln -s "firefox-${VERSION}" firefox
exit
#### as final user
SOFTWARE_PATH="/home/shared/opt/software"               # Edit when needed
nice -3 "${SOFTWARE_PATH}/firefox/firefox"

Plugins




Other notes

JRE plugin for browsers

Firefox old links to releases

Testing Tips

After 6x.x version (Quantum?), there is no option to disable the update alert

open about:config and search for app.update

- set app.update.auto = false

- set app.update.checkInstallTime = false'

- set app.update.silent = true

- set app.update.url as empty

the other attributes should be default

note: app.update.url as empty make Firefox unable to know that there is a new version

additional info in

https://support.mozilla.org/en-US/questions/1232918#answer-1176526

https://superuser.com/a/1392487