Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Last active October 6, 2017 00:08
Show Gist options
  • Save swyngaard/b58e5d54abae683090ba7c588d8a4be5 to your computer and use it in GitHub Desktop.
Save swyngaard/b58e5d54abae683090ba7c588d8a4be5 to your computer and use it in GitHub Desktop.
Manually download Flash plugin for Firefox

Manually download Flash plugin for Firefox

If the Debian package flashplugin-nonfree is installed but not functioning you can use the attached script to update the plugin from a link to the tarball.

Usage

Run the script with the default link:

./update_flash.sh

Alternatively, execute the script with your own link to the Flash archive

./update_flash.sh https://fpdownload.adobe.com/get/flashplayer/pdc/27.0.0.130/flash_player_npapi_linux.x86_64.tar.gz

References

  1. https://wiki.debian.org/FlashPlayer
#!/bin/bash
latest_link=https://fpdownload.adobe.com/get/flashplayer/pdc/27.0.0.130/flash_player_npapi_linux.x86_64.tar.gz
if [ -n "$1" ]
then
latest_link="$1"
fi
# Download plugin
wget -qO- $latest_link | sudo tar -C /usr/lib/flashplugin-nonfree/ -zxf - libflashplayer.so
# Set correct permissions if download is successful
if [ $? -eq 0 ]
then
sudo chown root:root /usr/lib/flashplugin-nonfree/libflashplayer.so
sudo chmod 644 /usr/lib/flashplugin-nonfree/libflashplayer.so
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment