Firefox (Application)

From campisano.org
Jump to navigation Jump to search

Firefox

Install

# shared/opt install schema v1.5.1

#### as common user ####
# setup env vars
export SOFTWARE_PATH="/home/shared/opt/software"
export NAME="firefox"
export VERSION="85.0.2"
export URL="https://download-installer.cdn.mozilla.net/pub/firefox/releases/${VERSION}/linux-x86_64/en-US/firefox-${VERSION}.tar.bz2"
su - -w SOFTWARE_PATH,NAME,VERSION

#### as root ####
# generic dependencies
apt-get -qq -y install wget coreutils findutils
# dependencies
apt-get -qq -y install tar bzip2
# paths
mkdir -m 777 -p "${SOFTWARE_PATH}/tmp_install/" "${SOFTWARE_PATH}/${NAME}_${VERSION}/"
exit

#### as common user ####
umask 0027
cd "${SOFTWARE_PATH}/tmp_install"
wget -c --no-check-certificate "${URL}"
tar -xjf "firefox-${VERSION}.tar.bz2" -C "${SOFTWARE_PATH}/${NAME}_${VERSION}"
# (optional) disable firefox update
mkdir "${SOFTWARE_PATH}/${NAME}_${VERSION}"/firefox/distribution
cat > "${SOFTWARE_PATH}/${NAME}_${VERSION}"/firefox/distribution/policies.json << 'EOF'
{
  "policies": {
    "DisableAppUpdate": true
  }
}
EOF
su - -w SOFTWARE_PATH,NAME,VERSION

#### as root ####
cd "${SOFTWARE_PATH}"
chown -R root:users "${NAME}_${VERSION}"
find "${NAME}_${VERSION}" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \;
find "${NAME}_${VERSION}" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \;
rm -rf tmp_install
ln -s -f -T "${NAME}_${VERSION}" "${NAME}"
exit

#### as common user ####
cd
"${SOFTWARE_PATH}/firefox/firefox/firefox"

Plugins




Other notes

JRE plugin for browsers

Firefox old links to releases