Last active
April 23, 2021 13:20
-
-
Save elmijo/cdceca95acde0916b81982d4df70bdfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
OS=$(getconf LONG_BIT) | |
LANG=$(echo $LANGUAGE | sed -e 's/_/-/g') | |
FIREFOX_DEV_URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux$OS&lang=$LANG" | |
FIREFOX_DESKTOP="[Desktop Entry]\nName=Firefox Developer\nGenericName=Firefox Developer Edition\nExec=/opt/firefox_dev/firefox\nTerminal=false\nIcon=/opt/firefox_dev/browser/icons/mozicon128.png\nType=Application\nCategories=Application;Network;X-Developer;\nComment=Firefox Developer Edition Web Browser." | |
echo "Download Firefox Dev..." | |
wget --quiet --output-document="firefox_dev.tar.bz2" $FIREFOX_DEV_URL | |
echo "Extracting and install Firefox Dev..." | |
tar -jxvf firefox_dev.tar.bz2 | |
sudo rm firefox_dev.tar.bz2 | |
sudo mv firefox /opt/firefox_dev | |
echo -e ${FIREFOX_DESKTOP} > ~/.local/share/applications/firefox_dev.desktop | |
echo "Installation complete!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the simple way to use
curl -sSo- https://gist.github.com/ElMijo/cdceca95acde0916b81982d4df70bdfc/raw/040fa986f8e6ac0c55aefb4e8b0a2c8d5e745d0a/ubuntu-install-firefox-dev.sh | sudo sh