Last active
February 6, 2025 09:04
-
-
Save Ruslan-Skira/9b4aac282d2157ab9bb40de78b5161f4 to your computer and use it in GitHub Desktop.
Installing Firefox Developer Edition on Ubuntu
This file contains hidden or 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 | |
# 1. chmod +x install_firefox_dev.sh | |
# 2. ./install_firefox_dev.sh | |
# Define download URL and destination directory | |
DOWNLOAD_URL="https://download.mozilla.org/?product=firefox-devedition-latest-ssl&os=linux64&lang=en-US" | |
DEST_DIR="/opt/firefox-developer" | |
# Download the latest Firefox Developer Edition tarball | |
echo "Downloading Firefox Developer Edition..." | |
wget -O firefox-developer.tar.bz2 "$DOWNLOAD_URL" | |
# Extract the tarball and move to /opt | |
echo "Installing Firefox Developer Edition..." | |
tar -xjf firefox-developer.tar.bz2 | |
sudo rm -rf $DEST_DIR | |
sudo mv firefox $DEST_DIR | |
# Create a symbolic link to access firefox binary easily | |
sudo ln -sf $DEST_DIR/firefox /usr/local/bin/firefox-developer | |
# Create desktop entry for ease of access | |
echo "Creating desktop entry..." | |
sudo tee /usr/share/applications/firefox-developer.desktop > /dev/null <<EOF | |
[Desktop Entry] | |
Name=Firefox Developer | |
GenericName=Firefox Developer Edition | |
Exec=/usr/local/bin/firefox-developer | |
Terminal=false | |
Icon=$DEST_DIR/browser/chrome/icons/default/default128.png | |
Type=Application | |
Categories=Development;WebBrowser; | |
EOF | |
# Cleanup downloaded tarball | |
rm firefox-developer.tar.bz2 | |
echo "Firefox Developer Edition installation completed. You can start it from your applications menu or run 'firefox-developer' from the terminal." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
give permissions
chmod +x install_firefox_dev.sh
run script
./install_firefox_dev.sh