Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save laszlomiklosik/2857310 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/2857310 to your computer and use it in GitHub Desktop.
Install Flash Player debug version in Ubuntu 12.04 64 bit
# 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
sudo killall -9 firefox
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 ia32-libs nspluginwrapper libcurl3 libnss3-1d libnspr4-0d
cd ~
wget http://fpdownload.macromedia.com/pub/flashplayer/updaters/11/flashplayer_11_plugin_debug.i386.tar.gz
tar zxvf flashplayer_11_plugin_debug.i386.tar.gz
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 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/
@scho
Copy link

scho commented Oct 15, 2012

Thanks for the script, it worked for me, except one little thing.
/usr/lib/nspluginwrapper/plugins/ might not exists so it must be created first.

@vmasalov
Copy link

Thanks for the script, finally worked for me as well
There are some problems that I found...
First of all I had to create missing directory.

mkdir flashplayer_11_plugin_debug.i386 && tar -zxvf flashplayer_11_plugin_debug.i386.tar.gz -C flashplayer_11_plugin_debug.i386

The second problem I had with nspluginwrapper. In my case I got script call error on "sudo nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so" call.

To fix the problem try this solution

ls /usr/lib/nspluginwrapper/noarch
cat /usr/lib/nspluginwrapper/i386/linux/npviewer

the last line should have ".sh" at the end if you have "npviewer.sh" in "/usr/lib/nspluginwrapper/noarch" folder.
Edit npviewer by adding missing ".sh"

sudo nano /usr/lib/nspluginwrapper/i386/linux/npviewer

This how it looks the last line for me now.

. /usr/lib/nspluginwrapper/noarch/npviewer.sh

@liorboord
Copy link

@vmasalov thanks, ran into the same issues and used your solution

@pepi55
Copy link

pepi55 commented Sep 27, 2013

Hello

i followed your instructions but firefox doesnt recognize flash! it says missing plugin :/ help please?

thanks!

@fcecagno
Copy link

Hi, thanks for sharing!

Used your instructions to configure it on Ubuntu 14.04 64 bits. There are basically two differences:

  1. ia32-libs isn't available on Ubuntu 14.04, so I added "deb http://ubuntu.c3sl.ufpr.br/ubuntu/ precise main universe" at the end of /etc/apt/sources.list, then "sudo apt-get update" and "sudo apt-get install ia32-libs";
  2. I had to install firefox:i386, which is the 32 bits version of Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment