Skip to content

Instantly share code, notes, and snippets.

@martinhbramwell
Last active December 20, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save martinhbramwell/6188800 to your computer and use it in GitHub Desktop.
Save martinhbramwell/6188800 to your computer and use it in GitHub Desktop.
Downgrade Firefox to v22 Get rid of the official install in my Ubuntu machine, then create a local copy in my own account. This is a *cheap* fix for a development virtual machine; not intended for long-term use. See installation instruction in the shorter file.
#!/bin/bash
apt-get -y update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get clean
apt-get autoremove
apt-get purge firefox
apt-get -y update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get clean
apt-get autoremove
apt-get install --no-install-recommends gnome-panel
#
mkdir -p ~/tmp
rm -fr ~/tmp/firefox*
rm -fr ~/firefox
rm -fr ~/Desktop/Firefox.desktop
cd ~/tmp
wget ftp://ftp.mozilla.org/pub/firefox/releases/22.0/linux-x86_64/en-US/firefox-22.0.tar.bz2
tar jxf firefox-22.0.tar.bz2 -C ~
cat << 'EOF' > ~/Desktop/Firefox.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_CA]=/home/yourself/firefox/browser/icons/mozicon128.png
Name[en_CA]=Firefox
Exec=/home/yourself/firefox/firefox-bin
Name=Firefox
Icon=/home/yourself/firefox/browser/icons/mozicon128.png
EOF
chown yourself:yourself ~/firefox
chown yourself:yourself ~/Desktop/Firefox.desktop
chmod 775 ~/Desktop/Firefox.desktop
Usage :
wget -N https://gist.github.com/martinhbramwell/6188800/raw/f17fdc1ad7f3217059bfe963db175e34a5ded21f/downgrade_firefox.sh
chmod a+x downgrade_firefox.sh
sudo ./downgrade_firefox.sh
# drag the desktop icon to the launcher
# click on it
# you should be back in action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment