firefox-update.sh

Yes! If you noticed, I’m a huge fan of Firefox. Is the best browser ever and I do appreciate the efforts of Mozilla’s crew to keep our freedom safe from the ‘open’ internet by implementing functionalities to avoid our navigation data from being commercialized to huge marketing companies. We might be not aware of but, we’re giving away our data as we navigate through pages and visualize ads that catches our attention.

Firefox Quantum:

The new version of Firefox have implemented improvements on it’s core and some new functionalities that provides a better performance aiming user’s experience. The approach towards freedom have fomented a lot of discussion and Firefox is leading it’s users to a better understanding of how internet companies are working to steal our data, informing what we need to know about, but we didn’t care of.

The ‘Facebook Container’ extension for instance, is a way to keep your Facebook activity locked away from the rest of your browsing. It will automatically keep your Facebook access in a containerized tab so Facebook will not be able to access the rest of your web activity. Here goes a brief explanation of how Container tabs work:

Container tabs operate just as you would expect a normal tab to, except for the fact that the sites you visit will have access to a separate slice of the browser’s storage. This means your site preferences, logged in sessions, and advertising tracking data won’t carry over to the new container. Likewise, any browsing you do within the new container will not affect the preferences, logged in sessions, or tracking data of your other containers.

Mozilla’s Containers

Debian stability:

It’s well known that Debian provides some very old packages, but that’s the price of it’s stability. Debian is a rock solid environment that will not broke when we do a system upgrade unless you add some third party repositories on your apt source.list file. There are plenty of tutorials out there inducing us to add third party repositories into our system but, that’s a huge security breach which is obfuscated by the fact that users just want the software installed without much work, so they just copy and paste everything they found on the internet.

The standard repositories are very safe, and the community test every single package before provide a new version of a it into the system’s repository. This maintain software upgrades on hold and sometimes the upgrade will not be available until the next major distro upgrade. For instance, browsers receive updates almost every week and the system’s version will always be outdated. If one wants to keep it’s browser updated in a safe system, it’ll be better to install it directly from it’s source.

Since we’re already adapted to update our packages using apt-get upgrade, when we need to manually install a package from the source we have to download it, extract and set symbolic links on our system. I was a little tired of updating Firefox manually. Every time I opened my preferred browser, I was receiving a warning about a newer version, remembering me that I’ve got to do all the manually work again. So, for the sake of my lazyness, I created a simple shellscript to do this for me which I would like to share to anyone who enjoys Debian and Firefox Quantum.

firefox-update.sh:

Here follows a small shellscript to update your Firefox. It uses sudo to extract the package into ‘/usr/lib’ directory:

#!/bin/bash
# Author: MarcelFox

sudo killall firefox

sudo wget -O firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64"

if [ -d /usr/lib/firefox ];
  then
    sudo rm -rf /usr/lib/firefox
fi
sudo tar xvfj firefox.tar.bz2 -C /usr/lib/
sudo ln -sf /usr/lib/firefox/firefox /usr/lib/firefox
sudo rm -rf firefox.tar.bz2

clear
echo
firefox -V
echo
# done

Leave a Reply

Your email address will not be published. Required fields are marked *