Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fcecagno/b710f01125511f51ff09 to your computer and use it in GitHub Desktop.
Save fcecagno/b710f01125511f51ff09 to your computer and use it in GitHub Desktop.
#!/bin/bash
set -xe
# no 64 bit version of the flash debug player is available, thus we will use the 32 bit version and use nspluginwrapper to make it work
set +e
sudo killall -9 firefox
set -e
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
sudo rm -f /usr/lib/mozilla/plugins/*flash*
sudo rm -f ~/.mozilla/plugins/*flash*
sudo rm -f /usr/lib/firefox/plugins/*flash*
sudo rm -f /usr/lib/firefox-addons/plugins/*flash*
sudo apt-get install -y firefox:i386 ia32-libs nspluginwrapper libcurl3 libnss3-1d libnspr4-0d
cd /tmp
wget http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug.i386.tar.gz
mkdir -p flashplayer_11_plugin_debug.i386
tar zxvf flashplayer_11_plugin_debug.i386.tar.gz -C flashplayer_11_plugin_debug.i386/
sudo cp flashplayer_11_plugin_debug.i386/libflashplayer.so /usr/lib/mozilla/plugins/
sudo chmod +rx /usr/lib/mozilla/plugins/libflashplayer.so
sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so
sudo mkdir -p /usr/lib/nspluginwrapper/plugins/
sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/
sudo ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment